View previous topic :: View next topic |
Author |
Message |
antan77 Newbie cheater Reputation: 0
Joined: 04 Jan 2013 Posts: 13
|
Posted: Fri Feb 27, 2015 5:01 am Post subject: Very special Problem or even not ^^ Finding static address |
|
|
Hi,
i want to build a very special trainer and I need the static address(pointer) for each city in Rise of Venice.
I easiely can find the city with the first item(wood). I think the base of this structure is 0x58 cause when I use "Find out what accesses this address" it tells me this offset.
But when I make an PointerScan on wood or even wood-0x58 the first result shows a lot of, but the second result is empty.
Can somebody help me out?
regards
|
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Fri Feb 27, 2015 10:05 am Post subject: |
|
|
Create a code cave to just pull the base address from that code block you already found.
Use CE's AOB Injection to hook into that code.
My code below uses the EDI register, but set that to whatever the game uses.
I'm just making it up, but I assume the code you found is something like: mov eax,[edi+58]
In that example, EDI contains the base address you're trying to save.
After the code executes, you can create an address in your table with the address "myvar".
Code: | [ENABLE]
alloc(myvar,4)
registersymbol(myvar)
// ... other code
mov [myvar],edi
// ... other code
[DISABLE]
dealloc(myvar)
unregistersymbol(myvar)
// ... other code |
|
|
Back to top |
|
|
antan77 Newbie cheater Reputation: 0
Joined: 04 Jan 2013 Posts: 13
|
Posted: Fri Feb 27, 2015 10:40 am Post subject: |
|
|
Thank you for your answer. I always hesitate to do something like that, cause of the space in these instructions. For example:
Code: |
original:
1. PseudoCode
2. PseudoCode
3. PseudoCode
mymod:
1. PseudoCode
2. myPseudoCode
3. PseudoCode
|
As you can see i've overwriten the 2. PseudoCode, and have no chance to fix this since i can find a (think its called) code_cave.
How do you solve that problem?
Since its a very special and complex trainer(or should i say "very special mod" ^^ i want to do that with C++, is there a chance to do that?
regards
|
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
|
Back to top |
|
|
antan77 Newbie cheater Reputation: 0
Joined: 04 Jan 2013 Posts: 13
|
Posted: Fri Feb 27, 2015 3:36 pm Post subject: |
|
|
ok ty very much, that points me the right way
regards
|
|
Back to top |
|
|
|