Page 1 of 1

[Mod] The Kamikaze! [Federation Bomber]

Posted: Fri Sep 21, 2012 3:46 pm
by Whale Cancer
Hey folks, here is a simple mod I made to teach myself the basics of FTL editing. It is the Federation Bomber outfitted to be practical as a player ship. There was a small modification made to layout of the ship: two 2x2 rooms were split into two 2x1 rooms so that all optional components are installable.

This ship is a weak (15 health; half normal) federation bomber with limited tech (Unmanned systems max out at 2; only 2 weapon and 2 drone slots). It has pretty good gibbing, a proper floor (harder to do than I thought it would be), an icon for ship selection, a couple custom room images, etc.,

Image
Download: https://sites.google.com/site/sebcraftl ... ects=0&d=1

Oh, this ship replaces the first Engi ship.

To be done: Clean up the mini image, clean up the gibbing a bit, see if I can add thruster animations; see if I can make custom achievements for it (probably just 'make it to sector x' since this thing is a flying coffin).

Questions: Is there a guide to how pixel offsetting works *exactly*? I assumed the cell grid and the image pixel offsetting would work off the same origin, but where you place rooms ends up moving the ship as well. Infuriating. If someone could help me on this, I could complete a program I am most of the way done to automate the procedure of writing the code for rooms, doors, and ship blueprints. Could be a nice way to save time rather than all this photoshop nonsense I do now.

Is there a way to add thruster animations to the ship (like the Kestral)? I can't seem to find anything in the code on this.

Plans for the Future: I want to do a sort of "Rise of the Federation" mod, where your goal is to fly around and form the federation rather than defend it from rebels as it falls apart. To that end, I'm going to be recoloring rebel ships to what I think would be their original federation colors and making them playable, adding diplomacy style events, and stuff like that; in the short term, I'll be doing the federation scout and then the rebel ships in federation style as 'challenge' ships for normal games of FTL.

Re: [Mod] The Kamikaze! [Federation Bomber]

Posted: Tue Sep 25, 2012 10:17 pm
by a__gun
Any luck working the thruster animation out?

Re: [Mod] The Kamikaze! [Federation Bomber]

Posted: Mon Oct 01, 2012 4:40 am
by rolfy
As near as I can tell, thrusters are fairly hard-coded, but there's a little bit of scope for modding them.
To make the thruster animation appear, you'll need to give your layout the same name as one of the FTL ships with thrusters. e.g.

Code: Select all

<shipBlueprint name="PLAYER_SHIP_HARD" layout="kestral" img="kamikaze">
You can change what the thrusters look like by editing img/effects/thrusters_on.png in resource.dat. Warning: the same thruster image is used for all ships with thrusters.

Re: [Mod] The Kamikaze! [Federation Bomber]

Posted: Mon Oct 01, 2012 6:03 pm
by Whale Cancer
rolfy wrote:As near as I can tell, thrusters are fairly hard-coded, but there's a little bit of scope for modding them.
To make the thruster animation appear, you'll need to give your layout the same name as one of the FTL ships with thrusters. e.g.

Code: Select all

<shipBlueprint name="PLAYER_SHIP_HARD" layout="kestral" img="kamikaze">
You can change what the thrusters look like by editing img/effects/thrusters_on.png in resource.dat. Warning: the same thruster image is used for all ships with thrusters.
The thruster origin and dimensions are hardcoded to the Kestral and the Osprey. So this won't work except in extremely specific projects.

Re: [Mod] The Kamikaze! [Federation Bomber]

Posted: Tue Oct 02, 2012 1:48 am
by rolfy
Thanks, Whale Cancer. I was still looking around in the vain hope that I'd just overlooked a mask image somewhere, for that :(