1
Programming / Re: Image decompression routine help (also: x86 code)
« on: May 24, 2012, 06:39:21 pm »
Yeah, I noticed a basic pattern like that yesterday. There are a couple more commands. one of them being "copy previous byte X number of times" (i'm guessing this is "command" bits "10"). And this seems to be a basic RLE until I change the first two bytes, let's say to 0x0303, and the plug-in delivers (starting at 0x0436):
EDIT: Oh wait! You are completely right. Teaches me to read this thread after going out for drinks. I'll try and whip out something that uses that pattern and see if the game rolls with it.
Code: [Select]
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000430 00 00 00 00 00 00 03 03 03 03 03 03 03 03 03 03 ................
00000440 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 ................
00000450 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 ................
00000460 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 ................
00000470 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 ................
00000480 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 ................
00000490 03 03 03 03 03 03 08 08 08 08 08 08 08 08 08 08 ................
000004A0 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 ................
000004B0 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 ................
000004C0 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 ................
000004D0 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 ................
000004E0 08 08 08 08 08 08 01 03 03 03 03 03 03 03 03 03 ................
000004F0 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 ................
00000500 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 ................
00000510 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 ................
00000520 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 ................
00000530 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 ................
00000540 03 03 03 03 03 03 08 08 08 08 08 08 08 08 08 08 ................
00000550 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 ...............
several repetitions.
So there is at least another code to repeat a previous sequence from a dictionary or sliding window ala LZ77.EDIT: Oh wait! You are completely right. Teaches me to read this thread after going out for drinks. I'll try and whip out something that uses that pattern and see if the game rolls with it.