brunogentili How do I cheat?
Reputation: 0
Joined: 22 Sep 2012 Posts: 1
|
Posted: Sat Sep 22, 2012 11:34 am Post subject: Help with pointers (maybe noob)... |
|
|
Hello everybody.
I hope that this is not too noob...
I'm trying to cheat on the game Seven Kingdom Ancient Adversaries (the new freeware version). For those who don't know it, is a good RTS.
I found that there are 3 kinds of objects in the game: Units, Towns and Firms (every other structure, like factories, mines, forts, and so on).
For each kind of object, I found in static memory a byte which is the number of the object selected, and an address which points at the array of pointers for that kind of structure. Every kind of object is a different kind of record.
So, if I want to heal a unit, for example, I select it, pause the game, go to CE, and add in the cheat table an address pointer which have the static pointer for the array of units, an offset of 4*(the number of selected unit), and another offset of 58 (which is the float of the hit points of the unit in the unit record).
After that, if I want to heal another one, I must select it, go to CE, and shift the first offset to the number of this other unit...
As in combats there are many units and structures involved, selecting one by one, going back and forth to CE, calculate new offset is about a pain!
Now for the question: can I input an expression for the offset in a pointer, like (address of number of selected unit) * 4, or I need to use a script (lua or assembler), and how could refer to the result in the cheat table, to set a value and so use a hot key in the game?
Thank everybody in advance for any suggestion.
And thank for CE!
|
|