This looks more like a question for Grognak's Mod Manager and similar tools - this tool is essentially just for unpacking/repacking the .dat files, and what you want is neither straightforward nor necessarily straightforward. Consider the following source/mod XML files:
<!-- Source -->
<event name="FINISH_BEACON">
<text>You've arrived at the Long-Range Beacon. When the FTL Drive is charged you can jump to the next Sector.</text>
<choice hidden="true">
<text>Continue...</text>
<event load="NON_HOSTILE"/>
</choice>
</event>
<!-- Mod -->
<event name="FINISH_BEACON">
<text>This is the end. Prepare yourself!</text>
<choice hidden="true">
<text>Continue...</text>
<event />
</choice>
<choice hidden="true">
<text>Pick a fight!</text>
<event load="HOSTILE1"/>
</choice>
<choice hidden="true">
<text>Go shopping!</text>
<store />
</choice>
</event>
1) What would even expect this to merge to?
2) Why? (It was intentionally ambiguous, for the record.)
Personally, I don't think that this tool should have XML merging, simply because that's outside of the scope,and should be done by other tools which implement this, rather than the ftldat tool itself.
Personally, I don't think that this tool should have XML merging, simply because that's outside of the scope,and should be done by other tools which implement this, rather than the ftldat tool itself.
You are 100% right, I misunderstood this. ftldat is for unpacking
Got a event, alternative text, or maybe a new sector? Add it to the Additional Events & Texts (AET) mod! Credits will be given, and you will help make a big pack of content!
Am I missing something?
When I try to execute the ftldat file, a window comes up for a split second and then goes away.
Is that normal, is something wrong, or do I need to look for another way to pack files?
Thanks in advance.
Coolguybest wrote:Am I missing something?
When I try to execute the ftldat file, a window comes up for a split second and then goes away.
Is that normal, is something wrong, or do I need to look for another way to pack files?
Thanks in advance.
@ECHO OFF
start ftldat unpack mods/original/data.dat dev_data/
ftldat is the call to the program, unpack/pack lets the program know which function to execute. the third parameter is where to grab the .dat file, the second is where to place the unpacked files.
MrAdam wrote:Ive been looking at that for the past two days. Im coding Java, which handles this in a much different way.
Out of curiosity, two questions:
Why? ("Because I want to" or whatnot is a perfectly valid reason, I'm just curious, given that the existing one seems to work flawlessly and is fully cross-platform)
I'm semi-familiar with Python (enough to be able to read and know what's going on, not quite as much to write new code from scratch) and very familiar with Java. Is there anything in particular you're having difficulty with? I may be able to help, or at least offer suggestions on what to look at/for.
MrAdam wrote:Ive been looking at that for the past two days. Im coding Java, which handles this in a much different way.
Out of curiosity, two questions:
Why? ("Because I want to" or whatnot is a perfectly valid reason, I'm just curious, given that the existing one seems to work flawlessly and is fully cross-platform)
I'm semi-familiar with Python (enough to be able to read and know what's going on, not quite as much to write new code from scratch) and very familiar with Java. Is there anything in particular you're having difficulty with? I may be able to help, or at least offer suggestions on what to look at/for.
Why? Well, I was thinking about making a mod manager with a bit more features than the existing one.
Im an Android developer and I don't have much experience with Java desktop development (started programming Java when I started working with Android), so my skillset is mostly for mobile stuff. Anyways, for what I can see, the .dat files are just binary encoded C objects? I would just like to know the basic structure of those objects, as it would make it much easier for me to work with
EDIT: Right now Im trying to get the data reading to work using a library called Preon, which enables be to define the structure of the byte-data, and it can then map it to java classes to make it easier to work with, like this:
MrAdam wrote:Why? Well, I was thinking about making a mod manager with a bit more features than the existing one.
Im an Android developer and I don't have much experience with Java desktop development (started programming Java when I started working with Android), so my skillset is mostly for mobile stuff. Anyways, for what I can see, the .dat files are just binary encoded C objects? I would just like to know the basic structure of those objects, as it would make it much easier for me to work with
EDIT: Right now Im trying to get the data reading to work using a library called Preon, which enables be to define the structure of the byte-data, and it can then map it to java classes to make it easier to work with, like this: