I must be missing something

The place to discuss scripting and game modifications for X²: The Threat.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

Blood Guzzlin Pete
Posts: 13
Joined: Sat, 19. Jun 04, 17:06
x2

I must be missing something

Post by Blood Guzzlin Pete »

I have been working on a "Sea of Tranquility" sound mod that eliminates some of the repetitive voice effects, but it doesn't seem to work.

I followed the instructions in Burianek's sticky about sound modification; Here's what I did:

1) Identify undesired sound effects in the 440001.pck file.
2) set the duration to 001 milliseconds in 00044.xml.
3) save and zip to 00044.xml.gz.
4) crypt to 00044.pck.
5) x2build to tranquility.dat and tranquility.cat.
6) copy to x2 root directory and rename 06.dat/06.cat (05 is removing the "modified" tag).
7) Run game and learn that nothing has changed.

The game is running in modified mode since I have access to the script editor.

I tried putting tranquility.dat/cat in the mods folder and activating them, but to no avail.

What am I doing wrong? :?
Q: What happens when an unstoppable force meets an immovable object?
XeHonk
Posts: 1087
Joined: Sun, 7. Mar 04, 23:03
x3tc

Post by XeHonk »

the 0004?.xml file isnt pck'ed (well.. at least mine isnt)

and.. are you sure it's in the proper folder? /mov/0004?.xml
Blood Guzzlin Pete
Posts: 13
Joined: Sat, 19. Jun 04, 17:06
x2

Post by Blood Guzzlin Pete »

I'm new to this. Are you saying I should put the modified 00044.xml in the mov directory? there isn't one there now. I found 00044.xml by unpacking 01.dat.
Q: What happens when an unstoppable force meets an immovable object?
XeHonk
Posts: 1087
Joined: Sun, 7. Mar 04, 23:03
x3tc

Post by XeHonk »

...\mov\00044.xml

that's where my file is at
and i'm saying that you cant just package files into other folders and expect the game to find 'em
(the .cat/.dat files do have a directory tree, not just a list of files)
Blood Guzzlin Pete
Posts: 13
Joined: Sat, 19. Jun 04, 17:06
x2

Post by Blood Guzzlin Pete »

I will try that.
Is there a way I can repack 01.dat with the modified file?
Q: What happens when an unstoppable force meets an immovable object?
XeHonk
Posts: 1087
Joined: Sun, 7. Mar 04, 23:03
x3tc

Post by XeHonk »

you can, but you really really really shouldnt do that :]
Blood Guzzlin Pete
Posts: 13
Joined: Sat, 19. Jun 04, 17:06
x2

Post by Blood Guzzlin Pete »

Well.. I,ve already reinstalled three times and one more wouldn't hurt so bad. So how would I go about repacking 01.dat?
Q: What happens when an unstoppable force meets an immovable object?
Blood Guzzlin Pete
Posts: 13
Joined: Sat, 19. Jun 04, 17:06
x2

Post by Blood Guzzlin Pete »

I tried putting 00044.xml in the mov directory but it didn't work. Any ideas about how to include directory information in dat/cat files?
Q: What happens when an unstoppable force meets an immovable object?
The_Rock
Posts: 4088
Joined: Wed, 6. Nov 02, 20:31
x2

Post by The_Rock »

This guide may help.. :roll:
"How very touching his meaningless death was. But this fight was never for mortals".
User avatar
Burianek
Posts: 2981
Joined: Mon, 29. Dec 03, 03:29
x3tc

Post by Burianek »

I think it mentions in the guide that if you have the 01 - 04.dat files in your root directory the game will run off of those. (At least it should, damn author) It's a question of priority.

Mods selected to be active placed in the /mods directory have highest priority. If none of these exist,
the game uses the packaged 01 - 04.dat files in your root directory. If these have been moved or deleted,
the game has no choice but to look for unpackaged files in folders.

So if you want to make the game use a .xml file you've placed in an unpacked /mov folder, you need to move the original .dats out of the root directory and run the game using completely unpacked files. You should have them all since you did unpack 01 - 04.dat in order starting with 01.dat right? (That way newer files overwrite older ones in case of the same file being in two .dats
Does that make sense?

I updated this guide to reflect this knowledge
http://www.egosoft.com/x2/forum/viewtopic.php?p=480309
Last edited by Burianek on Sat, 26. Jun 04, 01:50, edited 1 time in total.
"Nature's first green is gold" . . . stay golden.
XeHonk
Posts: 1087
Joined: Sun, 7. Mar 04, 23:03
x3tc

Post by XeHonk »

he was trying to pack the file
.. but he packed it wrong ;) that's the whole problem imho ^^
User avatar
Burianek
Posts: 2981
Joined: Mon, 29. Dec 03, 03:29
x3tc

Post by Burianek »

Right,
pack it correctly or run the game in unpacked mode.
(Sorry, I got a little carried away off topic :oops: )
"Nature's first green is gold" . . . stay golden.
Blood Guzzlin Pete
Posts: 13
Joined: Sat, 19. Jun 04, 17:06
x2

Post by Blood Guzzlin Pete »

I was not trying to pack the file. I was trying to do this the right way and it didn't work. Of course I immediately began to consider doing it the wrong way.

I don't mind playing with unpacked files but I would rather it function as a mod so I can upload it for other people to use.

I have a sneaking suspicion that I am not the only one who would rather not know that the fighter drone has left firing range for the 73rd time in the last 4 minutes. :P
Q: What happens when an unstoppable force meets an immovable object?
User avatar
Burianek
Posts: 2981
Joined: Mon, 29. Dec 03, 03:29
x3tc

Post by Burianek »

"Packing the file' refers to making a .dat / .cat combo out of it so that other users can use it easily.

You'd make a /temp dir
make a /mov dir in it (since that's where the .xml file belongs
Don't run gzip or x2tool -crypt, I don't think it's needed.
Back out to the dir that contains /temp that you created
run X2build temp temp
you'll get temp.cat and temp.dat that should contain your file.
I think the prob before was that you didn't have the directory structure right.
Think of the .dat file as a .zip that will be extracted to the /x2 directory. You need the files to be placed in the right location.
"Nature's first green is gold" . . . stay golden.
Blood Guzzlin Pete
Posts: 13
Joined: Sat, 19. Jun 04, 17:06
x2

Post by Blood Guzzlin Pete »

Thanks, I'll do that. Maybe you could add the info to the sticky.
Q: What happens when an unstoppable force meets an immovable object?
Bezredahl
Posts: 136
Joined: Sun, 13. Jun 04, 01:14
x2

Post by Bezredahl »

A: They both burn up and are destroyed by the friction!
You ask me who I am when I'm alone.
I am never alone, for Death is always with me.......

Return to “X²: The Threat - Scripts and Modding”