Super Mario Galaxy Collision

Started by Crashdance22, November 13, 2013, 10:07:18 PM

Previous topic - Next topic

Crashdance22

I'm trying to make a walk through walks code. I've done multiple searches trying to find Mario's wall collision bool with no success. Stuff I've found does things like mirror Mario's wall collision state, change when he is near a wall, change depending with the control stick, etc. Tried all 3 code types with a greater than/less than last unknown value search. Am I doing this right? Tried searching when Mario is actively running against the wall as well as hugging it (not moving). Can I use breakpoints to help me find this?

Edit: I had the idea that using an unknown search and alternating between equal and not equal was the wrong way to do it, but the "last" value doesn't change from the start when using equality operations right? Anyway I tried this again with a 32-bit search and got about 6 results. They all change to a value when I approach the wall and either hold that value or reset to 0x00000000 when I move away from it. It only updates when I encounter the wall which is what we're looking for. However, nopping the stw's causes the game to become unresponsive (not freeze as I can still do things like take screenshots). It can't be waiting on a write because nothing breaks on bpr. So it must be waiting on that function call.

Am I headed in the right direction here?

γRB

Well, yes, you do need to use Breakpoints, but I'd rather not use 'write' bps, more like rbp, but hey, it's up to you. I'd search for two different values, 32 bytes (What says it's not a float?), that can either be Equal or Not Equal, then observe the values' behaviour, set a rbp on the eventually correct values, and save the bp data.