How does the reasource file work?

Discuss and distribute tools and methods for modding. Moderator - Grognak
madattak9
Posts: 75
Joined: Sun Sep 16, 2012 7:27 pm

How does the reasource file work?

Postby madattak9 » Mon Dec 03, 2012 9:43 pm

Because I was getting so fed up, I went into data.dat in the FTL reasources and changed the burst lasers power to 1 and rarity to 1, saved it, opened FTL, and got a runtime error. Luckily I backed up the original, but why does changing these values do that?
(Sorry if this should be in mods..)
boa13
Posts: 829
Joined: Mon Sep 17, 2012 11:42 pm

Re: How does the reasource file work?

Postby boa13 » Mon Dec 03, 2012 11:05 pm

This should be in mods. And now it is. :)
Forum janitor — If you spot spam, PM me the URL and/or the username of the spammer.
I have powers, moderator powers. I am not keen on using them, but will do so if needed.
User avatar
Kieve
Posts: 952
Joined: Tue Sep 18, 2012 2:21 pm

Re: How does the reasource file work?

Postby Kieve » Tue Dec 04, 2012 3:58 am

madattak9 wrote:Because I was getting so fed up, I went into data.dat in the FTL reasources and changed the burst lasers power to 1 and rarity to 1, saved it, opened FTL, and got a runtime error. Luckily I backed up the original, but why does changing these values do that?
(Sorry if this should be in mods..)


You can't edit the .DAT directly and expect it to work.
You'll need FTLDat to unpack/repack the game resources, at which point you should be able to edit the various data files in a simple text editor, as they're all XML's.
FTLDat is command-line stuff, so it's not the most user-friendly thing out there, but if you run into trouble, read through the thread. Odds are, if there's a problem, someone else has already encountered and solved it.

Happy modding!