ShootersForever.com Forum Index

GoldenEye 007 Nintendo 64 Community, GoldenEye X, Nintendo 64 Games Discussion
GoldenEye Cheats, GoldenEye X Codes, Tips, Help, Nintendo 64 Gaming Community


Compressing setups

 
Post new topic   Reply to topic    ShootersForever.com Forum Index -> Q-Lab Hacking Department
View previous topic :: View next topic  
K1lo
Agent
Agent


Joined: 10 Jun 2012
Posts: 112
Location: Albert Embankment, Vauxhall

 PostPosted: Thu Jul 13, 2017 9:07 am    Post subject: Compressing setups Reply with quote Back to top

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.
 
View user's profile Send private message
SubDrag
Administrator
Administrator


Joined: 16 Aug 2006
Posts: 6118

 PostPosted: Thu Jul 13, 2017 9:27 am    Post subject: Reply with quote Back to top

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.
 
View user's profile Send private message
K1lo
Agent
Agent


Joined: 10 Jun 2012
Posts: 112
Location: Albert Embankment, Vauxhall

 PostPosted: Thu Jul 13, 2017 9:37 am    Post subject: Reply with quote Back to top

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 Embarassed

Actually.. I've solved the problem. I had an extra NULL at the end of the setup file I was extracting... Rolling Eyes Rolling Eyes

So, it works Smile now to tweak and finesse
 
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ShootersForever.com Forum Index -> Q-Lab Hacking Department All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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

Cobalt 2.0 BB theme/template by Jakob Persson.
Copyright © 2002-2004 Jakob Persson


Powered by BB © 01, 02 BB Group

 


Please Visit My Other Sites: GoldenEyeForever.com | GrandTheftAutoForever.com

Got kids? Check out my Dora The Explorer site with games and coloring pages!

Our forums feature Nintendo 64 games, GoldenEye 007 N64 New Maps and Missions, GoldenEye Cheats, N64 Emulator, Gameshark, GoldenEye Multiplayer and more!

[ Privacy Policy ]