Posted: Wed Dec 10, 2014 3:22 am Post subject: randomized number of bytes containing same value
Hi
I have rebus that I need help with.
I'm trying to write program that will read values from data file created by one custom game. Problem is that same values can be represented in different array of bytes and because size of this array is always 12 bytes long and game uses zlib1.dll I thought those values are compressed but they do not start with 78 9C as it should be with zlib compression.
for example:
DE 61 4C 81 62 4C FB D4 F2 A5 B3 7E is equal value 20 dec in game
CA 4C A6 9F 1C 7F 8B 65 06 BB 59 60 is also equal value 20 dec in game.
if I copy and past one of those array of bytes at special location in data file I'll get value 20. If I change one byte I'll get 0
some other examples made by game:
72 25 45 23 4E B6 CF 4D 92 87 BE DC = 2409
5C DE AB 35 41 99 9A 80 10 11 58 CA = 2579
49 E9 E2 0D 2B 81 C0 CF B7 16 1D F2 = 0
06 95 F7 4E 4A AE 3C 89 FA 6A 08 B1 = 0
How is this even possible?
Does anybody know how this works?
Cheat engine is not giving me anything.
Joined: 09 May 2003 Posts: 25805 Location: The netherlands
Posted: Wed Dec 10, 2014 6:38 am Post subject:
Zlib has no requirement that it has a header. It can be skipped
But try finding what reads it and then follow the disassembly to figure out what is going on _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping
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 You cannot attach files in this forum You can download files in this forum