I am trying to find a function that places a furniture on the ground when I buy it and click the spot.
This is the way I am trying to do solve it at the moment.
- Find the address of money with cheat engine
- See which areas write to this address
- Backtrack the function calls and set breakpoints
I managed to backtrack the calls enough that the breakpoint doesn't anymore trigger by selling the item back but only by placing it on the ground. By looking at the arguments I determined that this is still not the function I am looking for as the arguments don't change according to what item I place on the ground.
I tried to backtrack more but then I ended up in a function that seems to be part of the main game loop(?) as it is run constantly.
Is there any better method in achieving this, or is it just blind testing and backtracking as I have done? I usually work by searching the addresses with cheat engine and then switching to ollydbg to do the tracking.
I've also been trying to find the functions that triggers when I press certain buttons but it's been really hard to even find an entry point for this, how should I try to proceed?