[Tool] ftldat r7

Discuss and distribute tools and methods for modding. Moderator - Grognak
GreenZanbato
Posts: 53
Joined: Tue Sep 18, 2012 9:31 pm

Re: [Modding] ftldat r7 (was: Packing ad unpacking data.dat.

Postby GreenZanbato » Sat Sep 22, 2012 2:47 pm

I'm using the standalone installer but every time I try to do anything it tells me that the file directory doesn't exist. Help?
bas
Posts: 36
Joined: Fri Sep 14, 2012 3:36 pm

Re: [Modding] ftldat r7 (was: Packing ad unpacking data.dat.

Postby bas » Sat Sep 22, 2012 2:50 pm

GreenZanbato wrote:I'm using the standalone installer but every time I try to do anything it tells me that the file directory doesn't exist. Help?


You are not detailed enough. What did you execute, where? And what did is say, exactly.
GreenZanbato
Posts: 53
Joined: Tue Sep 18, 2012 9:31 pm

Re: [Modding] ftldat r7 (was: Packing ad unpacking data.dat.

Postby GreenZanbato » Sat Sep 22, 2012 2:58 pm

I executed the unpack command found on captainshooby's modding guide (ftldat unpack original/data.dat dev_data/) and tried his bat as well. This is what it said:

Code: Select all

Loading index ...
Traceback (most recent call last):
  File "<string>", line 736, in <module>
  File "<string>", line 733, in main
  File "<string>", line 615, in main
  File "<string>", line 604, in cmd_unpack
  File "<string>", line 166, in __init__
IOError: [Errno 2] No such file or directory: 'original/data.dat'
bas
Posts: 36
Joined: Fri Sep 14, 2012 3:36 pm

Re: [Modding] ftldat r7 (was: Packing ad unpacking data.dat.

Postby bas » Sat Sep 22, 2012 3:01 pm

GreenZanbato wrote:I executed the unpack command found on captainshooby's modding guide (ftldat unpack original/data.dat dev_data/) and tried his bat as well. This is what it said:

Code: Select all

Loading index ...
Traceback (most recent call last):
  File "<string>", line 736, in <module>
  File "<string>", line 733, in main
  File "<string>", line 615, in main
  File "<string>", line 604, in cmd_unpack
  File "<string>", line 166, in __init__
IOError: [Errno 2] No such file or directory: 'original/data.dat'


So, is there a original/data.dat relative to the current working directory of the prompt?

To check: type dir original and see if data.dat is among the files listed.
GreenZanbato
Posts: 53
Joined: Tue Sep 18, 2012 9:31 pm

Re: [Modding] ftldat r7 (was: Packing ad unpacking data.dat.

Postby GreenZanbato » Sat Sep 22, 2012 3:05 pm

Code: Select all

C:\Users\Jake>dir original
 Volume in drive C is OS
 Volume Serial Number is 0275-E041

 Directory of C:\Users\Jake

File Not Found

Here's the location of everything copied straight from explorer:
C:\Users\Jake\Desktop\Ftl Mod\FTLdat\mods\original
bas
Posts: 36
Joined: Fri Sep 14, 2012 3:36 pm

Re: [Modding] ftldat r7 (was: Packing ad unpacking data.dat.

Postby bas » Sat Sep 22, 2012 3:35 pm

GreenZanbato wrote:

Code: Select all

C:\Users\Jake>dir original
 Volume in drive C is OS
 Volume Serial Number is 0275-E041

 Directory of C:\Users\Jake

File Not Found

Here's the location of everything copied straight from explorer:
C:\Users\Jake\Desktop\Ftl Mod\FTLdat\mods\original


Your current working directory is wrong. You are in "c:\Users\Jake". You should be in "C:\Users\Jake\Desktop\Ftl Mod\FTLdat\mods". To do this, type cd "C:\Users\Jake\Desktop\Ftl Mod\FTLdat\mods". Then the original command will work
GreenZanbato
Posts: 53
Joined: Tue Sep 18, 2012 9:31 pm

Re: [Modding] ftldat r7 (was: Packing ad unpacking data.dat.

Postby GreenZanbato » Sat Sep 22, 2012 3:45 pm

Thank you, I have almost zero experience with command prompt. Sorry for my incompetence.
Didero
Posts: 14
Joined: Fri Sep 21, 2012 12:26 pm

Re: [Modding] ftldat r7 (was: Packing ad unpacking data.dat.

Postby Didero » Sat Sep 22, 2012 6:13 pm

I sincerely hope this isn't bad form, and if it is I apologize, but for people who aren't that skilled with the command prompt, or just lazy people (like me!), I made a program in Java with a graphical interface to pack and unpack the .dat files. I made a thread about it here. It may be a bit easier than typing things into the command prompt.
All the same, a huge thanks to Bas for making his ftldat open-source, it was a huge help in making my program.
Ellenhard
Posts: 8
Joined: Mon Sep 24, 2012 9:26 am

Re: [Modding] ftldat r7 (was: Packing ad unpacking data.dat.

Postby Ellenhard » Mon Sep 24, 2012 9:52 am

Please explain to me a technical problem:

I'm trying to mod a new ship out of stealth 2 cruiser - because I like the ship's image and overall design. So, I'm trying to place additional augmentation, crew, systems and change some rooms placement. Using Win 7. Java packer/unpacker wouldn't work for me, so I'm using fltdat and cmd. So far I was able to unpack the files, edit blueprints.xml, found the values I needed to change and did it, but what steps I should do next?

I'm typing "fltdat pack data.dat" and data.dat updates. But nothing has changed. For some reason, the updated data.dat still holds the same info about stealth2 (Layout B) cruiser.

Please, can you explain step by step, what I am doing wrong or haven't done right?
Last edited by Ellenhard on Mon Sep 24, 2012 3:27 pm, edited 1 time in total.
Ellenhard
Posts: 8
Joined: Mon Sep 24, 2012 9:26 am

Re: [Modding] ftldat r7 (was: Packing ad unpacking data.dat.

Postby Ellenhard » Mon Sep 24, 2012 3:17 pm

For easier reference: the game's data.dat is in E:\Program Files\FTL\resources\
The files has unpacked to: E:\Program Files\FTL\resources\data-dat-unpacked\data\

So, how can I pack the stuff back after editing? I've tried many combinations in cmd, both being in original "resources" and unpacked "data" folders. There is a popping window saying something sometimes, but it closes in millisecond, so can't read anything. Help please?