nutcracker icon indicating copy to clipboard operation
nutcracker copied to clipboard

Error decoding Secret of Monkey Island.

Open pjschaafsma opened this issue 11 months ago • 0 comments

Command running: nutcracker sputm room decode ./monkey.000

After room 23 out of about 99, nutcracker errors out after logging

48 === <function decode_basic at 0x7978e6329940> === HORIZONTAL === None === 8
=====================
---------------------
589 589 307
ORIG b'$\x03k$\x92a\x8d\x00\xc0\x1aY#\x805\x12\xc9\xb0F\x00k\x04kd\x8d\x00\xd6H$\x894\xb2F\[...]\x91,\x92E\x02\x00'
ENCODED b'$\x03\xfb\x8e\x1d\x00\xfe\x1f\xf0\xef\xd8\x01?\xfe\x1f\xf0/\x91\xff?\xf8\x7f\xfc?\xe0\xf7\[...]\x1f'

╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ in decode:39                                                                                     │
│                                                                                                  │
│ in extract_room_images:209                                                                       │
│                                                                                                  │
│ in read_room:60                                                                                  │
│                                                                                                  │
│ in read_room_background:33                                                                       │
│                                                                                                  │
│ in decode_smap:381                                                                               │
│                                                                                                  │
│ in parse_strip:342                                                                               │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
NameError: name 'exit' is not defined
[84133] Failed to execute script 'runner' due to unhandled exception!

Now, the NameError is not the problem, but rather the mismatch between ORIG and ENCODED above, already in their sizes.

I'm running this against monkey.000 of 9135 bytes and monkey.001 of 6653379 bytes.

pjschaafsma avatar Feb 11 '25 21:02 pjschaafsma