View previous topic :: View next topic |
Author |
Message |
KalasDev Master Cheater Reputation: 1
Joined: 29 May 2016 Posts: 311
|
Posted: Sun May 07, 2017 8:40 am Post subject: call "GameCode" |
|
|
I'm really confused, sunbeam told to "createthread" but I'm new to this and I don't understand how this code can be executed just by making a Script:
call TheForest.DebugConsole:_addAllItems
the Image of Mono Dissect:
http://fearlessrevolution.com/download/file.php?id=3012
|
|
Back to top |
|
|
panraven Grandmaster Cheater Reputation: 55
Joined: 01 Oct 2008 Posts: 942
|
Posted: Sun May 07, 2017 10:00 am Post subject: |
|
|
The function signature is
private void _addAllItems(object o)
which has 2 input parameter, the not-shown this-ptr (of class DebugConsole), and object o.
For this particular function, it does not refer/used the this-ptr or object, so it seems can be called with for example null values instead.
But in general the input parameters of a function should be properly obtained and supply to the call.
Code: |
globalalloc(_minimum,256)
_minimum:
xor eax,eax
push eax /// the Object o parameter, but not used
push eax /// DebugConsole Instance ptr, but not used
mov eax,"TheForest:DebugConsole:_addAllItems"
call eax
add esp,8 /// restore stack
ret
createthread(_minimum)
|
Also see
http://forum.cheatengine.org/viewtopic.php?t=604041
for the possible need of thread attaching.
bye~
_________________
- Retarded. |
|
Back to top |
|
|
STN I post too much Reputation: 42
Joined: 09 Nov 2005 Posts: 2672
|
Posted: Sun May 07, 2017 10:01 am Post subject: |
|
|
Please be considerate and don't use the site as image hoster (it doesn't have the server capability to support that. I replaced the image on FRF with imgur (can't delete the image for some reason).
Thank you
_________________
|
|
Back to top |
|
|
KalasDev Master Cheater Reputation: 1
Joined: 29 May 2016 Posts: 311
|
Posted: Sun May 07, 2017 11:07 am Post subject: |
|
|
panraven wrote: | The function signature is
private void _addAllItems(object o)
which has 2 input parameter, the not-shown this-ptr (of class DebugConsole), and object o.
For this particular function, it does not refer/used the this-ptr or object, so it seems can be called with for example null values instead.
But in general the input parameters of a function should be properly obtained and supply to the call.
Code: |
globalalloc(_minimum,256)
_minimum:
xor eax,eax
push eax /// the Object o parameter, but not used
push eax /// DebugConsole Instance ptr, but not used
mov eax,"TheForest:DebugConsole:_addAllItems"
call eax
add esp,8 /// restore stack
ret
createthread(_minimum)
|
Also see
http://forum.cheatengine.org/viewtopic.php?t=604041
for the possible need of thread attaching.
bye~ |
Sorry I'm really new at this, but what you posted is basically it? do I need to add anything else?
|
|
Back to top |
|
|
panraven Grandmaster Cheater Reputation: 55
Joined: 01 Oct 2008 Posts: 942
|
|
Back to top |
|
|
|