| View previous topic :: View next topic |
| Author |
Message |
NoMoreBSoD Advanced Cheater
Reputation: 3
Joined: 03 Sep 2013 Posts: 85
|
Posted: Tue Sep 03, 2013 10:29 am Post subject: How to export auto assemble data into the table ? |
|
|
Recifense managed to do it brilliantly on Civilization 5 and I can't reproduce the steps he took there (edit : no url priviledge yet).
Using "what accesses this address" I can find the relevant code that uses a different pointer each time I select a different unit, and I would like to export this pointer in the cheat table so that I am able to modify different offsets on multiple units easily.
Here is my solution so far, and it crashes the game every time
| Code: |
[ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
label(UnitSel)
registersymbol(UnitSel)
alloc(UnitSel,8)
newmem:
UnitSel:
dd 0
mov [UnitSel],ebx
originalcode:
cmp dword ptr [ebx+000000CC],00
exit:
jmp returnhere
"CvGameCore_Expansion2.dll"+214B06:
jmp newmem
nop
nop
returnhere:
[DISABLE]
"CvGameCore_Expansion2.dll"+214B06:
cmp dword ptr [ebx+000000cc],00
| [/code][/url]
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25821 Location: The netherlands
|
Posted: Tue Sep 03, 2013 11:38 am Post subject: |
|
|
Move unitsel outside of newmem by either putting it at the end or do an alloc(unitsel,4) and put it before
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
NoMoreBSoD Advanced Cheater
Reputation: 3
Joined: 03 Sep 2013 Posts: 85
|
Posted: Tue Sep 03, 2013 12:13 pm Post subject: |
|
|
Wow it works ! Thank you Dark Byte ^^
Why didn't my initial
do the trick ?
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25821 Location: The netherlands
|
Posted: Tue Sep 03, 2013 2:19 pm Post subject: |
|
|
You probably placed it after newmem as well
That would mean all the code after unitsel: would be part of that instead of newmem, and newmem would just be uninitialized
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
NoMoreBSoD Advanced Cheater
Reputation: 3
Joined: 03 Sep 2013 Posts: 85
|
Posted: Wed Sep 04, 2013 12:56 am Post subject: |
|
|
| I understand now, thanks ^^
|
|
| Back to top |
|
 |
|