Page 4 of 26
Re: [Modding] Packing and unpacking data.dat and resource.da
Posted: Sat Sep 15, 2012 7:04 pm
by Zuriki
Oddly, I was just looking into that when I was thinking about how you would effectively install changes within files without redistributing the file itself (which would be potentially illegal). I guess a diff patch actually would be required.
Re: [Modding] Packing and unpacking data.dat and resource.da
Posted: Sat Sep 15, 2012 7:06 pm
by bas
StealthCl0wn wrote:Anyone got any... simplified methods of doing this? I am horrible with the command line.
Either someone could write a nice graphical frontend to ftldat or capture a video of using ftldat. Both is hard for me, for I do not have easy access to a Windows computer.
Re: [Modding] Packing and unpacking data.dat and resource.da
Posted: Sat Sep 15, 2012 7:07 pm
by StealthCl0wn
bas wrote:StealthCl0wn wrote:Anyone got any... simplified methods of doing this? I am horrible with the command line.
Either someone could write a nice graphical frontend to the application or capture a video of using the commandline tool. Both is hard for me, for I do not have easy access to a Windows computer.
My hand shakes a lot so I often make typos and have to restart the command ALL OVER AGAIN. It is very frustrating
Re: [Modding] Packing and unpacking data.dat and resource.da
Posted: Sat Sep 15, 2012 7:39 pm
by StealthCl0wn
It would also appear that manually editing the data.dat file with a text editor causes it to crash too.
Re: [Modding] Packing and unpacking data.dat and resource.da
Posted: Sat Sep 15, 2012 7:40 pm
by alexanderpas
StealthCl0wn wrote:bas wrote:StealthCl0wn wrote:Anyone got any... simplified methods of doing this? I am horrible with the command line.
Either someone could write a nice graphical frontend to the application or capture a video of using the commandline tool. Both is hard for me, for I do not have easy access to a Windows computer.
My hand shakes a lot so I often make typos and have to restart the command ALL OVER AGAIN. It is very frustrating
Create 2 batch file next to your .dat files. (basically .txt files with the .bat extenstion instead of .txt)
unpack.bat
Code: Select all
@echo off
ftldat unpack data.dat
ftldat unpack resources.dat
pack.bat
Code: Select all
@echo off
ftldat pack data.dat
ftldat pack resources.dat
StealthCl0wn wrote:It would also appear that manually editing the data.dat file with a text editor causes it to crash too.
You can change the data.dat file with a text editor, as long as you keep the file entries on the same bytes. (causing the filesize not to change.)
Re: [Modding] Packing and unpacking data.dat and resource.da
Posted: Sat Sep 15, 2012 7:51 pm
by StealthCl0wn
Ran the unpack.bat and nothing appeared anywhere.
Got .xml files to appear, but I can't open them with anything.
Re: [Modding] Packing and unpacking data.dat and resource.da
Posted: Sat Sep 15, 2012 8:02 pm
by Kaoschan
this clearly screams for a weapon / ship mod ....
MOD ALL THE THINGS!!
Re: [Modding] Packing and unpacking data.dat and resource.da
Posted: Sat Sep 15, 2012 8:52 pm
by Zuriki
Kaoschan, I'm working on it, I could easily do one by hand, but I'd rather spend a couple of days making a tool that does the hard work for me. The biggest problem is, all ship designs are broken into three files.
blueprints.xml (contains all ships room types, weapons and crew data)
<shipname>.xml (contains ships weapon mount and gibs data)
<shipname>.txt (contains room and door layout, shield image size and position and ship position offsets)
They're all pretty straight forward, but it's kind of annoying to have to produce three separate sets of data.
Re: [Modding] Packing and unpacking data.dat and resource.da
Posted: Sat Sep 15, 2012 9:04 pm
by Kaoschan
i would like to help you, but i lack programming skill.
yet if the tool are ready i would galdly help out in any way possible.
Re: [Modding] Packing and unpacking data.dat and resource.da
Posted: Sat Sep 15, 2012 9:15 pm
by StealthCl0wn
Okay so I've been editing the values for things in data.dat but they're not displaying in game.
Any help?