X2Patch 0.9 Beta

General discussions about the games by Egosoft including X-BTF, XT, X², X³: Reunion, X³: Terran Conflict and X³: Albion Prelude.

Moderator: Moderators for English X Forum

Stone-D
Posts: 151
Joined: Wed, 6. Nov 02, 20:31

X2Patch 0.9 Beta

Post by Stone-D »

What's new :

PCK Compression/Packing

What's changed :

DAT Unpacking - Fixed memory leak, extracted files use original filename in template. Eg,

01.DAT -> XData-01.idx & XData-01\....\....\....\....

PCK Decompression - Output file extension based on file content.

Coming soon(ish) :

Ship Editing. ( Depends how quick you guys get your act together ;)
PCK Unpack/Repack during DAT processing.
PCK Unpack/Repack for directories.

Download : X2Patch09.zip

Mirror at will.


BTW. As today is the last day of work for a period of two weeks, I suspect I won't be hanging around the forums as much. I may lurk (log in, shift-click-click-click with opera, log off and disconnect before reading) a bit but I probably won't be posting as much.

In the meantime, get cracking with figuring out the TYPES folder, will ya? Remember I'm coding blind here, need your input!
--
Look, no SIG!
User avatar
Commander Jamieson
Posts: 1478
Joined: Wed, 6. Nov 02, 20:31
x2

Re: X2Patch 0.9 Beta

Post by Commander Jamieson »

Stone-D wrote:
Mirror at will.
Done :wink:

Cheers
man2104
Posts: 57
Joined: Mon, 1. Dec 03, 15:54

Post by man2104 »

the decompressing part is working
but the compressing part is not
the packed pck file cause the crashing of the game!
i did a experiment
i unpack the TShield.pck and then pack it again without editing
the packed file is different from the orig. TShield.pck!
Last edited by man2104 on Fri, 19. Dec 03, 13:02, edited 1 time in total.
Stone-D
Posts: 151
Joined: Wed, 6. Nov 02, 20:31

Post by Stone-D »

Dammit!
--
Look, no SIG!
User avatar
mostlikely
Posts: 157
Joined: Sat, 29. Nov 03, 23:20
x4

Post by mostlikely »

man2104 wrote:the decompressing part is working
but the compressing part is not
the packed pck file cause the crashing of the game!
i did a experiment
i unpack the TShield.pck and then pack it again
the packed file is different from the orig. TShield.pck!
Did you try repacking the file without editing it?

I did some experimenting myself.. and found that .pck's in the script folder cause no problem when unpacking and repacking without editing any content..
Also scripts where accepted when editing content and updating their version number. (Wich did not seem to reflect the change to their use in game)
However plainly editing a scripts content and repacking seemed to caused the game to crash.

Therefore I conclude that, atleast for the files in the script folder, there is some kind of internal double of the files wich need to be equal.
man2104
Posts: 57
Joined: Mon, 1. Dec 03, 15:54

Post by man2104 »

yes
i have repacked it without editing
althoguh the orgi. file is different from the new one
i get the same data after decompressing it by the patcher!
but it doesn't work in game
this is strange!
Stone-D
Posts: 151
Joined: Wed, 6. Nov 02, 20:31

Post by Stone-D »

Grrrrrr. The problem is either the first 9 bytes of the file - particularly, bytes 6, 7, 8, 9 - or the compression I'm using. It *seems* to be ZLib using compression level 9.

Hmm. Could be CRC... I'll look. I've got TShips.pck somewhere, I'll run test on that and see what happens.
--
Look, no SIG!
dant
Posts: 4
Joined: Fri, 10. Oct 03, 15:35
x3

Post by dant »

I try to open an X2 Save and get the "Corrupted Save Game" error. I have not touched the files and I tried both 1.0 and 1.1 saves.
AnzelVincir
Posts: 110
Joined: Thu, 25. Sep 03, 19:46
x2

Post by AnzelVincir »

Seriously. I can't WAIT for the ship editing!!!
User avatar
Sandalpocalypse
Posts: 4447
Joined: Tue, 2. Dec 03, 22:28
x4

Post by Sandalpocalypse »

In the meantime, get cracking with figuring out the TYPES folder, will ya? Remember I'm coding blind here, need your input!
Hmm, if it'll help, Mehrunes and I posted all sorts of random info in the "big" thread. :)
AnzelVincir
Posts: 110
Joined: Thu, 25. Sep 03, 19:46
x2

Post by AnzelVincir »

With all of the interest in this project I don't see why someone at EGO doesn't step in here and give a little direction. I'm not saying they should provide full blown editor, just give us some pointers...
Stone-D
Posts: 151
Joined: Wed, 6. Nov 02, 20:31

Post by Stone-D »

AnzelVincir wrote:With all of the interest in this project I don't see why someone at EGO doesn't step in here and give a little direction. I'm not saying they should provide full blown editor, just give us some pointers...
What, and ruin all the fun? ;)

Anzel, just browsed through the big thread. Good stuff you and Mehrunes posted there, it looks like it won't be a problem modifying the XTPatch code and upgrading it to X2 functionality.

Progress will be slow due to the normal reasons (no X2, yada yada) and the fact I'm limited to 56k modem for the next two weeks.

But I assure you I'm still plugging away at it. :)
--
Look, no SIG!

Return to “X Trilogy Universe”