|
|
GoldenEye 007 Nintendo 64 Community, GoldenEye X, Nintendo 64 Games Discussion GoldenEye Cheats, GoldenEye X Codes, Tips, Help, Nintendo 64 Gaming Community
|
|
|
|
|
|
|
|
|
|
|
K1lo Agent
Joined: 10 Jun 2012 Posts: 112 Location: Albert Embankment, Vauxhall |
Posted: Thu Jul 13, 2017 9:07 am Post subject: Compressing setups |
|
|
Hi guys,
So you may have seen from my other thread that I'm building a tool to edit guard inventories. I've completed 95% of the work now, however I've hit a road block when it comes to re-compressing the data to insert into the ROM.
For example, the dam setup - UsetupdamZ, occupies 0x008c10d0 - (0x008c53a0-1) which is 17103 bytes. The best compression (9) I can achieve using the same windowBits options as I did to decompress is 17961 which is too large. However, as a test of I write this block to the ROM and load the level, the screen remains black but the music plays properly.
If I change the compression parameters to use a windowBit of -15 and a memlevel of 6 I can get the setup to fit in the space. It comes out as 17083 bytes. However when I load the level the game will crash. The dam music will start to play and then stops after a few sounds. The screen remains black.
So, can anyone help me work out what is going on here?
I decompressed the setup from the rom, it matches the one in Goldeneye Setup Editor 1:1, I then try to recompress it and insert it back in to the rom but it crashes the game. |
|
|
|
|
|
|
|
|
|
|
SubDrag Administrator
Joined: 16 Aug 2006 Posts: 6124
|
Posted: Thu Jul 13, 2017 9:27 am Post subject: |
|
|
The newer versions of zlib/gzip can have compatibility issues because they compress better than GE's version can handle. You would probably want to use the gzip executable with the editor. I run it using:
gzip.exe -f -q -9 tempgh9.bin
Then you can strip off the bytes like you mention. |
|
|
|
|
|
|
|
|
|
|
K1lo Agent
Joined: 10 Jun 2012 Posts: 112 Location: Albert Embankment, Vauxhall |
Posted: Thu Jul 13, 2017 9:37 am Post subject: |
|
|
SubDrag wrote: | The newer versions of zlib/gzip can have compatibility issues because they compress better than GE's version can handle. You would probably want to use the gzip executable with the editor. I run it using:
gzip.exe -f -q -9 tempgh9.bin
Then you can strip off the bytes like you mention. |
I know, when I was investigating I wrote a program to capture the command line input and put it between GSE and the gzip binary
Actually.. I've solved the problem. I had an extra NULL at the end of the setup file I was extracting...
So, it works now to tweak and finesse |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|