Page 2 of 3

Re: Ship Editing

Posted: Sun Nov 25, 2012 12:59 pm
by shark
thashepherd wrote:Well, shark, your answer was better than mine - something tells me you're already tearing up stack overflow :)
http://stackoverflow.com/users/1101692/shark :) it's not like its 15 or 150k. but its a start.

@Flypaste:
please post complete code blocks; it will be easier to explain the whole thing to you on a concrete example than pull things out of context.

for all i know that health line says the ship has no medbay.
as far as vertical displacement:

if you put -100 in x, the image will be 100 pixels to the left; thus you will shift it's "center point" a 100px to the right. Essentially you want your picture to be somewhat centered on the screen so you will need to put something there.

let's say you have a ship that is 300px tall and 1200px wide. You would want that to look like

Code: Select all

<img x="-500" y="-150" w="1200 h="300"
and then fine-tune it from there. do note that even though you can always measure weapon mounts from an image and they will use those coordinates; the x and y we mentioned is simply another level of adjustment when it comes to drawing that on the screen.

Re: Ship Editing

Posted: Mon Nov 26, 2012 2:45 am
by Flypaste
It has a medbay. The health, i think is the ship hull strength, but i dont know for sure. Also, thanks lots for the help with the imagry.

Re: Ship Editing

Posted: Fri Nov 30, 2012 2:43 pm
by alextfish
Health is indeed hull strength. The way I usually spot it is if I use FTLEdit to create a ship layout from scratch, and forget to specify health, it shows as exploding *in the hangar*.

For player ships you should usually leave health=30 like in all the default ships.

Re: Ship Editing

Posted: Sat Dec 01, 2012 2:16 am
by Flypaste
I'm adding the AI ships, zoltan and slug. I will be doing 15 HP for the scouts, 20 for the bombers or assault craft, havent decided, and 25 for the one that i dont pick 20 for.

EDIT

Been screwing around some more with it, and my game exploded, would like to know if someone could help me. I havent done the proper positioning for the ship hull image (also havent set a floorplan, i do NOT know if its required) in the game, so if somoene could for me, that would be lovely as well as figuring out why the game exploded. (not the ship in the hanger; the game wont start up)

http://www.mediafire.com/?xasrb539u522srg

NOTE: I am loading it using the mod manager and it is in the proper .ftl format. I just thought uploading it in a ZIP would be easier to manage.

Re: Ship Editing

Posted: Wed Dec 05, 2012 11:47 pm
by shark
You need to have a mental thread of all the things you changed and the order you changed them in... so when your game explodes, unless you have a very good critical judgement and guess what's the problem right off the bat - your best bet is to start undoing changes one by one until you pinpoint the one that made it go off.

Because let's face it, it's either that or reverting to the last backup. Who makes backups you say? Me neither :)

The game really doesn't provide much info I think. So, start commenting out parts of your .append file, it should be easy to hit the error causing one if you try with a binary search ;)

Re: Ship Editing

Posted: Thu Dec 06, 2012 12:24 am
by thashepherd
shark wrote:You need to have a mental thread of all the things you changed and the order you changed them in... so when your game explodes, unless you have a very good critical judgement and guess what's the problem right off the bat - your best bet is to start undoing changes one by one until you pinpoint the one that made it go off.

Because let's face it, it's either that or reverting to the last backup. Who makes backups you say? Me neither :)

The game really doesn't provide much info I think. So, start commenting out parts of your .append file, it should be easy to hit the error causing one if you try with a binary search ;)
Heh. That's why I use Git - gives me a good idea of what I messed with since the last time it worked.

IIRC you need a floorplan, but you'll get the Black Square instead of failure to start if you're missing one. Failure to start usually means an error in your XML syntax.

Lately, I've been discovering even more interesting errors. CTD-on-game-start, CTD-on-clicking-'JUMP'-button. That was a fun debug sesh :)

Re: Ship Editing

Posted: Fri Dec 07, 2012 8:19 am
by shark
*shivers* git...

I just take snapshots a-la "rename to .bak1" :D even svn would be somewhat overkill imo. this game doesn't deserve such sophisticated approach :D

Re: Ship Editing

Posted: Fri Dec 07, 2012 8:27 am
by boa13
You can do very advanced things with git (or svn), and it can be frighteningly complex at first sight, but for simple things, it remains rather simple. ;)

Re: Ship Editing

Posted: Fri Dec 07, 2012 1:10 pm
by thashepherd
shark wrote:*shivers* git...

I just take snapshots a-la "rename to .bak1" :D even svn would be somewhat overkill imo. this game doesn't deserve such sophisticated approach :D
I am VERY surprised to hear that from you. It's saved my ass a few times already - well worth it from a time/speed perspective alone.

EDIT: Sonata is ~152mb. The sophisticated approach is quite necessary.

Re: Ship Editing

Posted: Wed Dec 12, 2012 4:54 pm
by shark
thashepherd wrote:
shark wrote:*shivers* git...

I just take snapshots a-la "rename to .bak1" :D even svn would be somewhat overkill imo. this game doesn't deserve such sophisticated approach :D
I am VERY surprised to hear that from you. It's saved my ass a few times already - well worth it from a time/speed perspective alone.
I've been doing this for 10 years, i can keep a decent undo stack in my head; after all, it comes from a fact that I know exactly why i'm diving in ;) every time i got a crash i debugged it within 10 minutes by undoing suspicious things i did before the last test. mods are inherently test-driven imo.
thashepherd wrote: EDIT: Sonata is ~152mb. The sophisticated approach is quite necessary.
150megs of which are artistic assets that won't rapidly change once they're done. I really see no reason to version them other than for completeness of the trunk (this is a sort of file that you will always want just one version of - the latest one) :) let's be fair here, we have at best 10 000 lines of code total we can change in this game. you don't really incrementally patch sounds, or branch the flavor of a sound - you just make it and upload it...

on the other hand, if you work in a team a repository starts making much more sense as a syncing tool rather than being a backup solution.