Importing custom weapons into .ftl files

Discuss and distribute tools and methods for modding. Moderator - Grognak
Kierany9

Re: Importing custom weapons into .ftl files

Post by Kierany9 »

Merged file: It doesn't load the ship or the weapons http://www.mediafire.com/download/pmah2 ... /ywing.rar
Weapon files: http://www.mediafire.com/download/ac9yq ... ORPEDO.rar and http://www.mediafire.com/download/j505y ... SSAULT.rar

Im not sure if I'm missing something really obvious here...
User avatar
kartoFlane
Posts: 1488
Joined: Mon Jan 14, 2013 10:20 pm

Re: Importing custom weapons into .ftl files

Post by kartoFlane »

They all work fine for me. Something you're probably missing is that .ftl files are, in fact, just renamed .zip archives -- and only zip, .rar will not work.
Also, your ship is replacing the Red-Tail, and not the Kestrel. So I guess that's why you didn't see it? :P

The proton torpedo is missing its weapon sprite, but that can be easily fixed by just correcting the weaponArt name.
Superluminal2 - a ship editor for FTL
Kierany9

Re: Importing custom weapons into .ftl files

Post by Kierany9 »

kartoFlane wrote:They all work fine for me. Something you're probably missing is that .ftl files are, in fact, just renamed .zip archives -- and only zip, .rar will not work.
Also, your ship is replacing the Red-Tail, and not the Kestrel. So I guess that's why you didn't see it? :P

The proton torpedo is missing its weapon sprite, but that can be easily fixed by just correcting the weaponArt name.
I changed the files from .ftl to .rar before uploading them, and then changed them back to .ftl to play them. The ship replaces the Red Tail, but I get different results depending on the .ftl files I use.

Ship file only: I get the buggy weapons on the Y-Wing(replacing Red Tail)
Ship and weapons file: Same as running the ship only.
Merged file: Nothing happens, vanilla FTL

I don't know why but I dont think SMM is registering the weapon files being added.

EDIT: The Torpedo's sprite is in img\weapons. Do you need animation.xml for custom weapon sprites?

EDIT EDIT: So by changing the extention of the downloaded files to .ftl and added them with *insert mod loading tool here* you got them to fully work. As mentioned above, regardless of what files I load in whatever order, it refuses to work.
User avatar
kartoFlane
Posts: 1488
Joined: Mon Jan 14, 2013 10:20 pm

Re: Importing custom weapons into .ftl files

Post by kartoFlane »

Well, here is the file I tested -- it's basically the merged file you've sent me. I haven't changed anything, only packed it to .zip, renamed it to .ftl, and loaded up using SMM. It works fine.

Are you absolutely sure that you're packing the mods as zip archives, and not rar ones?
Kierany9 wrote:EDIT: The Torpedo's sprite is in img\weapons. Do you need animation.xml for custom weapon sprites?
Yes.
Superluminal2 - a ship editor for FTL
Kierany9

Re: Importing custom weapons into .ftl files

Post by Kierany9 »

kartoFlane wrote:Well, here is the file I tested -- it's basically the merged file you've sent me. I haven't changed anything, only packed it to .zip, renamed it to .ftl, and loaded up using SMM. It works fine.

Are you absolutely sure that you're packing the mods as zip archives, and not rar ones?
Kierany9 wrote:EDIT: The Torpedo's sprite is in img\weapons. Do you need animation.xml for custom weapon sprites?
Yes.
It worked! I must've packed it as .rar, named it to .zip and then .ftl. Thanks a bunch. Also, noob question, but how do you make an animation.xml. Actually, just refer me to a guide.
User avatar
R4V3-0N
Posts: 1287
Joined: Sun Oct 06, 2013 11:44 am

Re: Importing custom weapons into .ftl files

Post by R4V3-0N »

R4V3-0N, a dreamer.
Kierany9

Re: Importing custom weapons into .ftl files

Post by Kierany9 »

Well, thanks for the help everybody. Here's the finished result: A very challenging, shieldless, two-man bomber with weapons that are great...but not together.

Y-Wing Assault Bomber: http://www.ftlgame.com/forum/viewtopic.php?f=11&t=20845
Kierany9

Re: Importing custom weapons into .ftl files

Post by Kierany9 »

One last question: Is it possible to modify the cost and availability of certain upgrades, in this case shields? And if so, how?
User avatar
Metzelmax
Posts: 364
Joined: Wed Sep 26, 2012 7:59 am

Re: Importing custom weapons into .ftl files

Post by Metzelmax »

Code: Select all

<systemBlueprint name="shields">
	<type>shields</type>
	<title>Shields</title>
	<desc>Powers your shields. Every shield bar can block one incoming shot. Upgrading increases bar count.</desc>
	<startPower>2</startPower>
	<maxPower>8</maxPower>
	<rarity>1</rarity>
	<upgradeCost>
		<level>100</level> <!-- level 2 -->
		<level>20</level> <!-- level 3 -->
		<level>30</level> <!-- level 4 -->
		<level>40</level> <!-- level 5 -->
		<level>60</level> <!-- level 6 -->
		<level>80</level> <!-- level 7 -->
		<level>100</level> <!-- level 8 -->
		<level>120</level> <!-- Imaginary level 9 -->
	</upgradeCost>
	<cost>150</cost>
</systemBlueprint>
change rarity and cost for desired effect. you can also change the upgrade costs, or add/remove upgrade levels (so your ships have 5 max shields), but note that this will change the shield systems on all ships including enemies, atleast I think so.
Here is the Stuff I made:
ImageImageImageImage
And stuff is always better than no stuff, right?
Post Reply