[Tool] ftldat r7

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

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

Postby Zuriki » Sat Sep 15, 2012 7:04 pm

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

Postby bas » Sat Sep 15, 2012 7:06 pm

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

Postby StealthCl0wn » Sat Sep 15, 2012 7:07 pm

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

Postby StealthCl0wn » Sat Sep 15, 2012 7:39 pm

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

Postby alexanderpas » Sat Sep 15, 2012 7:40 pm

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

Postby StealthCl0wn » Sat Sep 15, 2012 7:51 pm

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

Postby Kaoschan » Sat Sep 15, 2012 8:02 pm

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

Postby Zuriki » Sat Sep 15, 2012 8:52 pm

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

Postby Kaoschan » Sat Sep 15, 2012 9:04 pm

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

Postby StealthCl0wn » Sat Sep 15, 2012 9:15 pm

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

Any help?