DewRecode icon indicating copy to clipboard operation
DewRecode copied to clipboard

Investigate equipment crashes

Open emoose opened this issue 9 years ago • 3 comments

Using the equipment branch, if you pick up equipment and then walk over a different type of equipment it'll cause a crash. Throwing equipment and then walking over the same type of equipment will also crash.

Both crashes happen at 0x5399BC, this func gets called every tick though and seems to interact with object globals, not sure what it's doing with them though.

emoose avatar Aug 19 '15 05:08 emoose

Here's some of that function labeled if you haven't done so already. It's primarily working with the player object. http://pastebin.com/rQArBCb0

I'd be interested to know what's in edx after the instruction at 0x5399A0 executes. I'd assume an incorrect object datum being "returned" (as an output argument) by sub_B35B60 for some reason, which causes a bad pointer dereference to occur at 0x5399BC.

Ernegien avatar Aug 19 '15 23:08 Ernegien

As a kludge hack, you can try hooking 0x5399A0 and jumping straight to 0x539A26 (optionally only if edx is >= to the current object count in the memory globals).

Ernegien avatar Aug 19 '15 23:08 Ernegien

More info for you - http://pastebin.com/mpYdE16P

Ernegien avatar Aug 20 '15 02:08 Ernegien