| View previous topic :: View next topic |
| Author |
Message |
AeriesDK How do I cheat?
Reputation: 0
Joined: 18 Sep 2015 Posts: 3
|
Posted: Fri Sep 18, 2015 10:08 am Post subject: Linking a manual entered address to another? |
|
|
I have tried search for this but was unable to find a solution, but I am not even sure if it's possible.
The problem is, that I have a number of different values for materials in a game. The first one is very random and the game crashed if I start a debugger.
Finding the first one is easy enough and the rest are all relative to the first found value.
Example:
Roses = address $1000 (4 bytes)
Carrots = (base of roses) + 4 bytes
Wood = (base of roses) + 8 bytes
By finding Roses, I can adjust the other offsets, but if I could make them linked to "Roses + 4 bytes", it would make my life easier (and faster ).
Can it be done, and how please?
/AeriesDK
|
|
| Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Fri Sep 18, 2015 10:38 am Post subject: |
|
|
Create one address with the Roses address.
I normally call it Base Address and make it a String with a length of 0.
Now add another address and give it the address "+0".
Name it Roses and drag-and-drop it on top of Base Address.
Do the same for Carrots [+4], Wood [+8], Next One [+C], etc.
Note the Hex notation. Not decimal.
Now all you have to do is change the address of Base Address and the rest will update for you.
Also, have you switched your debugger to VEH? That one doesn't normally crash the game.
Edit > Settings > Debugger Options > [x] Use VEH Debugger
|
|
| Back to top |
|
 |
AeriesDK How do I cheat?
Reputation: 0
Joined: 18 Sep 2015 Posts: 3
|
Posted: Fri Sep 18, 2015 10:47 am Post subject: |
|
|
Thank Zanzer,
this was almost too easy! I tried all sorts of stuff to make it work, cannot believe I hadn't tried this method!
I'll try out the VHE enabled debugger to see if it makes a difference.
Thanks again, been a great help
|
|
| Back to top |
|
 |
|