[Tool] ftldat r7

Discuss and distribute tools and methods for modding. Moderator - Grognak
Post Reply
Zuriki
Posts: 30
Joined: Sat Sep 15, 2012 1:58 pm

Re: [Modding] Packing and unpacking data.dat and resource.da

Post 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.
bas
Posts: 36
Joined: Fri Sep 14, 2012 3:36 pm

Re: [Modding] Packing and unpacking data.dat and resource.da

Post 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.
Last edited by bas on Sat Sep 15, 2012 7:07 pm, edited 1 time in total.
StealthCl0wn
Posts: 78
Joined: Sat Sep 15, 2012 6:55 pm

Re: [Modding] Packing and unpacking data.dat and resource.da

Post 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
StealthCl0wn
Posts: 78
Joined: Sat Sep 15, 2012 6:55 pm

Re: [Modding] Packing and unpacking data.dat and resource.da

Post by StealthCl0wn »

It would also appear that manually editing the data.dat file with a text editor causes it to crash too.
alexanderpas
Posts: 7
Joined: Sat Sep 15, 2012 7:30 pm

Re: [Modding] Packing and unpacking data.dat and resource.da

Post 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.)
StealthCl0wn
Posts: 78
Joined: Sat Sep 15, 2012 6:55 pm

Re: [Modding] Packing and unpacking data.dat and resource.da

Post by StealthCl0wn »

Ran the unpack.bat and nothing appeared anywhere.

Got .xml files to appear, but I can't open them with anything.
Last edited by StealthCl0wn on Sat Sep 15, 2012 8:24 pm, edited 1 time in total.
Kaoschan
Posts: 4
Joined: Fri Sep 14, 2012 10:37 am

Re: [Modding] Packing and unpacking data.dat and resource.da

Post by Kaoschan »

this clearly screams for a weapon / ship mod ....

MOD ALL THE THINGS!!
Zuriki
Posts: 30
Joined: Sat Sep 15, 2012 1:58 pm

Re: [Modding] Packing and unpacking data.dat and resource.da

Post 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.
Kaoschan
Posts: 4
Joined: Fri Sep 14, 2012 10:37 am

Re: [Modding] Packing and unpacking data.dat and resource.da

Post 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.
StealthCl0wn
Posts: 78
Joined: Sat Sep 15, 2012 6:55 pm

Re: [Modding] Packing and unpacking data.dat and resource.da

Post by StealthCl0wn »

Okay so I've been editing the values for things in data.dat but they're not displaying in game.

Any help?
Post Reply