[Tutorial] New Guide on creating weapons

Discuss and distribute tools and methods for modding. Moderator - Grognak
User avatar
kartoFlane
Posts: 1479
Joined: Mon Jan 14, 2013 10:20 pm

Re: [Tutorial] New Guide on creating weapons

Postby kartoFlane » Wed Apr 30, 2014 2:49 pm

Kaerius wrote:zipped up the test directory

That's your error. You need to zip up the data folder itself (along with any other folders, like img and less often audio/fonts, if you use them)
Superluminal2 - a ship editor for FTL
Kaerius
Posts: 87
Joined: Wed Sep 19, 2012 3:02 pm

Re: [Tutorial] New Guide on creating weapons

Postby Kaerius » Wed Apr 30, 2014 2:50 pm

Live and learn, I'll have a go when I get home.
Kaerius
Posts: 87
Joined: Wed Sep 19, 2012 3:02 pm

Re: [Tutorial] New Guide on creating weapons

Postby Kaerius » Wed Apr 30, 2014 10:37 pm

kartoFlane wrote:
Kaerius wrote:zipped up the test directory

That's your error. You need to zip up the data folder itself (along with any other folders, like img and less often audio/fonts, if you use them)

Got home, unpacked it, packed the data folder directly, made sure it was the right format and renamed to .ftl, patched it in with slipstream, as the last mod... and nope, did absolutely nothing.

And then I used FTL dat manager to remove the blueprints.xml.append~ file from the data.dat, saved, added my edited one, saved, and the ship STILL has the default loadout. So at this point I don't even know what's going on.
opticlops
Posts: 30
Joined: Sun Nov 17, 2013 6:07 pm

Re: [Tutorial] New Guide on creating weapons

Postby opticlops » Sat May 03, 2014 7:06 am

cheers :D
zabing12
Posts: 63
Joined: Fri Jul 18, 2014 5:35 pm

Re: [Tutorial] New Guide on creating weapons

Postby zabing12 » Fri Jul 25, 2014 7:56 pm

Then you open a Text editor of your choice (I am using Notepad++) and you create 2 files there. The two will be calle



Uuuh, how do I make a file in a text editor?
zabing12
Posts: 63
Joined: Fri Jul 18, 2014 5:35 pm

Re: [Tutorial] New Guide on creating weapons

Postby zabing12 » Fri Jul 25, 2014 8:46 pm

It says I can't have slashes as my names for folders
User avatar
kartoFlane
Posts: 1479
Joined: Mon Jan 14, 2013 10:20 pm

Re: [Tutorial] New Guide on creating weapons

Postby kartoFlane » Sat Jul 26, 2014 12:39 am

Slashes are just a way to separate folder names. So my_weapon/data/ means my_weapon folder with a data folder inside of it.
Superluminal2 - a ship editor for FTL
olePigeon
Posts: 4
Joined: Thu Dec 25, 2014 2:10 am

Re: [Tutorial] New Guide on creating weapons

Postby olePigeon » Thu Dec 25, 2014 4:17 am

I ran into some problems trying to do this on Mac. So here're some tips for Mac users:

1. Get a copy of ZipCleaner by Roger Jolly
2. Get a copy of TextWrangler by Bare Bones Software

Both of these applications are free.

Edit your .xml.append files in TextWrangler, and when you save, set Line Breaks to Windows CRLF. Slipstream is looking for CRLF, and TextEdit uses LF only.

When you zip up your files, don't select the parent folder. Select the two data and img folders, then Compress. Drop the .Zip file on the ZipCleaner to remove the invisible UNIX files. Then rename to .ftl.
User avatar
Biohazard063
Posts: 406
Joined: Fri Feb 14, 2014 4:38 pm
Location: Out of bounds
Contact:

Re: [Tutorial] New Guide on creating weapons

Postby Biohazard063 » Sat Apr 18, 2015 2:12 pm

Can't seem to get the audio working properly.
Trying to get a bomb weapon going.
Did the steps you said in the tutorial :

Created a folder myship/audio/was/weapons with in it a bombteleportchaos.wav and even the bombteleportchaos.ogg sound file. (Tried it with just one file there as well. No change.)
Creataed the sounds.xml.append where it says :
<bombteleport_chaos volume="4">weapons/bombteleport_chaos</bombteleport_chaos>
Placed the file in myship/data
In the weapons blueprint made sure that it said :
<launchSounds>
<sound>bombteleport_chaos</sound>
</launchSounds>
The custom animation (on my ship) works, but like I said, the sound doesn't play.
Anything obvious I did wrong or is it just an "I've got no idea what went wrong" kind of thing?
Amateur modder and Let's player (with a substantial FTL and ItB LP featuring countless mods).
Channel link
A list of all my mods can be found here.
User avatar
Sleeper Service
Posts: 2305
Joined: Sun Mar 24, 2013 8:49 pm

Re: [Tutorial] New Guide on creating weapons

Postby Sleeper Service » Sat Apr 18, 2015 2:27 pm

All FTL sounds seem to be .ogg as far as I can tell (at last in the Linux version). It's possible that .wav might just not work as a format.

Also the file path in the sound data needs to have the correct ending, else the game probably won't find the file. That's also how its done in the vanilla sound data:
<bombTeleport volume="8">weapons/bp_SFX_BombTeleport.ogg</bombTeleport>

Who is online

Users browsing this forum: No registered users and 17 guests