[Mod] The Kamikaze! [Federation Bomber]

Discuss and distribute tools and methods for modding. Moderator - Grognak
Whale Cancer
Posts: 272
Joined: Fri Sep 21, 2012 3:28 pm
Location: Vancouver, BC

[Mod] The Kamikaze! [Federation Bomber]

Postby Whale Cancer » Fri Sep 21, 2012 3:46 pm

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.
Contribute to help save the Whales from their various diseases! *DELAYED* Should release the skeleton with the main quests attached by the end of the week (By NOV 9)! *DELAYED* Don't listen to my dates! Things always seem to come up!
a__gun
Posts: 9
Joined: Fri Sep 21, 2012 7:55 pm

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

Postby a__gun » Tue Sep 25, 2012 10:17 pm

Any luck working the thruster animation out?
rolfy
Posts: 11
Joined: Mon Oct 01, 2012 4:06 am

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

Postby rolfy » Mon Oct 01, 2012 4:40 am

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.
Whale Cancer
Posts: 272
Joined: Fri Sep 21, 2012 3:28 pm
Location: Vancouver, BC

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

Postby Whale Cancer » Mon Oct 01, 2012 6:03 pm

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.
Contribute to help save the Whales from their various diseases! *DELAYED* Should release the skeleton with the main quests attached by the end of the week (By NOV 9)! *DELAYED* Don't listen to my dates! Things always seem to come up!
rolfy
Posts: 11
Joined: Mon Oct 01, 2012 4:06 am

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

Postby rolfy » Tue Oct 02, 2012 1:48 am

Thanks, Whale Cancer. I was still looking around in the vain hope that I'd just overlooked a mask image somewhere, for that :(

Who is online

Users browsing this forum: No registered users and 41 guests