btimofeev / lazy_ips

IPS patcher for Linux
GNU General Public License v3.0
46 stars 6 forks source link

Error message #8

Open rcrx opened 1 year ago

rcrx commented 1 year ago

Received the message:
error reading offset

What does this mean and how to fix it?

btimofeev commented 1 year ago

Please provide a link to your patch.

Estus-Dev commented 1 year ago

I get this error with Sonic 1 Bugfixes here: https://www.romhacking.net/hacks/4956/

I was intending to use the base patch there, but I also get it with the optional palettes as well.

Estus-Dev commented 1 year ago

As a side note, because I didn't check beforehand, my ROM does match the file to be patched. Doesn't look like it should matter from the code, but doesn't hurt anything to check.

Here's the output from my cartridge dump earlier today, it matches the expected CRC32:

OSCR HW5 V12.4

[+] Mega Drive/Genesis

[+] Game Cartridge

Cart Info

Name: SONICTHEHEDGEHOG
Size: 4 MBit
ChkS: 264A
Sram: None

Press Button...

[+] Read Rom

Saving to MD/ROM/SONICTHEHEDGEHOG/49/...
[*******************]
Internal checksum...OK
CRC32... F9394E97 -> Sonic The Hedgehog (USA, Europe).md

The patch file does start with PATCH and end with EOF. I'm digging into the code to try to understand what the patch lines should look like and why it's failing, but I'm sure you'd spot it quicker than I can.

I'm running this from Manjaro.