[TOOL]FTLEdit: FTL Ship editor [v0.95 11th Jan] Open source!

Discuss and distribute tools and methods for modding. Moderator - Grognak
Darkfrost
Posts: 92
Joined: Mon Sep 24, 2012 9:11 pm

[TOOL]FTLEdit: FTL Ship editor [v0.95 11th Jan] Open source!

Postby Darkfrost » Tue Sep 25, 2012 6:58 am

Image
What is it?
It's a program for editing FTL ships, of course! The aim is for it to be an all-in-one tool for creating, and editing existing ships. So far, it will generate the blueprint xml file, and the layout txt file. It's not done yet though!

What do I need to run it?
It's built using C#, meaning it's a windows program. However, it should be possible to run it on a Mac or Linux via Mono.

Where can I download it?
Here's the download link:
http://jacobkeane.co.uk/FTLShipEdit.zip
It's not quite finished yet, but has the majority of features you'll need!
What's missing?
Setting up weapon mounts, gibs, shield size, and probably some more stuff. However, you can edit a ships layout / properties, export it in normal formats (Layout txt / xml & blueprints xml) or as a file for GMM, and use it ingame!
Know C#? Want to help out?
It's up on GitHub here: https://github.com/Darkfrost/FTLEdit
Feel free to drop me a message / pull request or whatever!

How do I use this / set it up?
alextfish wrote an awesome guide on how to set it up, make a ship with it, and do manual edits you may want to, you can find that here: viewtopic.php?f=12&t=10320&p=33474#p33347

Recent changes:

v0.96
- Fixed position offset issue in the top left of screen
- Fixed exporting slug crew count
http://jacobkeane.co.uk/FTLShipEdit.zip

v0.95
- Added a 'Save Paths' button in the options - If you were pasting the path into the textbox instead of using the browse button, they weren't saving!
- Added an 'export all' button
- Will now load in the Gibs / Weapon mounts from the xml file and save them back out after. There's no way of editing these yet, but now they wont all get load when you load and save a ship!
*It will however, assume your gibs are in order in the blueprint file, and ignore the actual <gibX> number, since the end tags on those are messed up and this kept breaking the importing.
- Added options to change the maxpower / health settings
- Imports shield size correctly now

v0.91:
- Fixed exporting the image position
v0.9:
- Exports the image position into the xml file now (No gibs / weapon mounts yet, sorry!)
- Tidied up the export screen
- Fixed the issue where you couldn't close the startup screen
- Loading custom ships should work now (Just make sure your layout name doesn't match a normal ship name)
- Added some more information here and there
v0.88:
- Fixed a crash that happens sometimes when opening the options window after closing it
v0.87:
- Added setting/loading crew members
- Added some error handling when trying to export a ship without everything set
- Fixed the blueprints not getting loaded when creating a ship from scratch
- Added the date to the ftl exported
v0.85:
- Fixed an issue with the auto extract not working
- Actually fixed augment exporting
v0.82
- Fixed a crash when you cancelled loading an image
- Fixed not saving augments
- Fixed not saving/loading the ship offset

Some screenshots:
Image
Image
-----------------------------

Instructions:
Open FTLEdit, then open up the options. You need to set up your paths to your data and resources folders.
It should be able to do this automatically - If you don't have ftl dat installed, click the download ftldat button to download the installer, then hit the extract files button. It should extract it all and configure the paths. If the cmd windows that pop up disappear instantly, it should atleast take a few seconds, something probably went wrong (Let me know if this happens)
It should save these options next time you load the program, but if it doesn't, let me know!
Click the load existing ship from the game folder button
Now doubleclick on a ship you want to load
(Or, click the create from scratch button)


Adding rooms:
To add a room, click the add room button, or press F1. Left click to place the room, then right click and drag to resize it.
To move an existing room, just click and drag it.
To delete a room, select it (click on it) and press the DEL key. Doors work the same way

Adding doors:
To add a door, click the add door button, or press F2. Space bar will rotate the door (I'll probably change this to a more intuitive system later).

Moving the bg:
To move the bg, click the move bg button. You can now roughly place the bg using the mouse. Once you click, you're able to fine adjust the position using the arrow keys. Once you have where you want it, press enter or click again.

Other options:
To change the majority of options, and export the ship, click the options button in the bottom right. Here you can change all of the main ship properties, like weapons, augments, drones, systems etc, and export the ship.

Anyway, what do you think? I'll post more updates as I add things!
Last edited by Darkfrost on Sun Jan 20, 2013 4:46 am, edited 20 times in total.
Love FTL? Wish you could fly around in the USS Enterprise, the Tardis, or a ship that looks just like your own face? Check out FTLEdit, a ship editor for FTL, so you can create your own custom ships and play them!
Don't forget to share them too! :)
Grognak
Posts: 172
Joined: Tue Sep 18, 2012 9:42 pm

Re: [MOD TOOL][WIP] FTL Ship editor

Postby Grognak » Tue Sep 25, 2012 7:03 am

Ooh, that's interesting. Was wondering when a tool like this is coming. Much better than editing the file by hand. :lol:
User avatar
Kieve
Posts: 952
Joined: Tue Sep 18, 2012 2:21 pm

Re: [MOD TOOL][WIP] FTL Ship editor

Postby Kieve » Tue Sep 25, 2012 7:20 am

Looks great so far!
All we need now is the ability to upload the ship_base.png, associated gib1-6 sections, and offset them. Manage that and you shall have the undying gratitude of shipbuilders everywhere :D
Actually... doesn't even seem that hard, just time-consuming. I wish I could remember what I learned from my programming classes or I'd offer to lend a hand even. :?
Darkfrost
Posts: 92
Joined: Mon Sep 24, 2012 9:11 pm

Re: [MOD TOOL][WIP] FTL Ship editor

Postby Darkfrost » Tue Sep 25, 2012 11:03 am

Image

Coming along slowly, it loads in the .txt files too now, aswell as base and floor pngs, and reads the offset for them from the xml (Doesn't parse the rest of the XML yet though, due to it being a pain, FTL devs, if you're reading this, please fix your gib tags :) <gib1> is not ended with </gib2>! (But other than that I love you guys) )

Nice ship btw :) http://i.imgur.com/XVkUh.png
I really need to offset the ship in the editor though... :p
Love FTL? Wish you could fly around in the USS Enterprise, the Tardis, or a ship that looks just like your own face? Check out FTLEdit, a ship editor for FTL, so you can create your own custom ships and play them!
Don't forget to share them too! :)
a__gun
Posts: 9
Joined: Fri Sep 21, 2012 7:55 pm

Re: [MOD TOOL][WIP] FTL Ship editor

Postby a__gun » Tue Sep 25, 2012 12:48 pm

Well this kinda torpedos my little project lol. Was aiming to do the same thing but no sense in doing things twice. I'd only really got as far as reading all of the files in to objects
tazardar
Posts: 45
Joined: Wed Sep 19, 2012 9:05 pm

Re: [MOD TOOL][WIP] FTL Ship editor

Postby tazardar » Tue Sep 25, 2012 1:57 pm

I' currently working on the same thing.
This is what it looks like so far:
Image

I guess i'll finish my little project and post it here. Maybe we can work together on the project after that.

TAz
jaded samurai
Posts: 2
Joined: Mon Sep 24, 2012 5:14 am

Re: [MOD TOOL][WIP] FTL Ship editor

Postby jaded samurai » Tue Sep 25, 2012 2:14 pm

Was going to do this myself as well, but it looks like you're doing it better and more thoroughly than I would have.

Eagerly awaiting the tool's release!
Darkfrost
Posts: 92
Joined: Mon Sep 24, 2012 9:11 pm

Re: [MOD TOOL][WIP] FTL Ship editor

Postby Darkfrost » Tue Sep 25, 2012 2:26 pm

Aw dammit, I made sure to check around that nobody else was making one before I started :p
Love FTL? Wish you could fly around in the USS Enterprise, the Tardis, or a ship that looks just like your own face? Check out FTLEdit, a ship editor for FTL, so you can create your own custom ships and play them!
Don't forget to share them too! :)
Didero
Posts: 14
Joined: Fri Sep 21, 2012 12:26 pm

Re: [MOD TOOL][WIP] FTL Ship editor

Postby Didero » Tue Sep 25, 2012 3:49 pm

The more tools, the merrier!

That way, if somebody doesn't like the way one tool works, they can use another.
Plus, a bit of competition usually brings out the best in people. Ship Editor creators will be motivated to add interesting and useful new features to their editor to draw attention, which'll be good for all of us.
Baby Fark McGee-zax
Posts: 14
Joined: Sun Sep 23, 2012 4:21 pm

Re: [MOD TOOL][WIP] FTL Ship editor

Postby Baby Fark McGee-zax » Tue Sep 25, 2012 4:37 pm

This is just awesome. Can't wait for you guys to release something for us to tinker with.