Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Help with Mono

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
NexuIV
Cheater
Reputation: 0

Joined: 24 Jul 2016
Posts: 26

PostPosted: Sun Jul 24, 2016 5:24 pm    Post subject: Help with Mono Reply with quote

Hello to all and please forgive me for my imprecise English. I enrolled at this forum, officially recently, although I have read a lot and I have spent many hours following this interesting forum as a Guest.

I have already created trainer and tables for different videogames following the guides present in the various sections, with various techniques (AoBScan, AutoAssembly, etc ...).

But now, I'd like to perfect myself more on the "Mono" where I feel stupid and a real newbie. The game in question would be "Militant".
This game should be protected. Besides having some encrypted data, it does not allow the classic procedures of PointerScan, What / write accesses adresses, etc ...
If you start these procedures, the game quits unexpectedly. (At least in the version they have in their possession). But this is unimportant.
The only access I managed to get it through Mono.
Running the Jit and thanks to one of Cielos script, I managed to create a table by retrieving the addresses and pointers I need. Now, however, I would like to translate all in on/off script.
I attached a few stamp for greater understanding.

OK, the question is simple. How do I change the Boolean bytes in the structure "gamecheats"? Someone would be kind enough to explain it to me perhaps by inserting a small example script?

Please do not kill me or not insult me ​​if I made an absurd request. Thanks to all those who want to give me an explanation.

P.S .: Forgive me if I posted in the wrong section
Byez



01a_Table.jpg
 Description:
 Filesize:  48.06 KB
 Viewed:  2541 Time(s)

01a_Table.jpg



02a_Dissect.jpg
 Description:
 Filesize:  148.21 KB
 Viewed:  2541 Time(s)

02a_Dissect.jpg



03a_Dissect_2.jpg
 Description:
 Filesize:  92.52 KB
 Viewed:  2541 Time(s)

03a_Dissect_2.jpg


Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Jul 24, 2016 6:48 pm    Post subject: Reply with quote

Booleans are enabled and disabled by setting their values to 1 and 0.

Inside a script, it could be:
Code:
[ENABLE]
[boolean_address_or_pointer]:
db 1
[DISABLE]
[boolean_address_or_pointer]:
db 0


Did you try changing the default debugger to VEH instead? May fix the crashing.
Edit > Settings > Debugger Options > Use VEH Debugger
Back to top
View user's profile Send private message
NexuIV
Cheater
Reputation: 0

Joined: 24 Jul 2016
Posts: 26

PostPosted: Mon Jul 25, 2016 10:00 am    Post subject: Reply with quote

Thanks for the answer Zanzer. I activated the VEH function and is much more stable. I created this script that works . Any suggestions to improve it or make it more effective ?

Code:
[ENABLE]
{$lua}
LaunchMonoDataCollector()
{$asm}

registersymbol(pGameManager)
registersymbol(CoolOff)

alloc(newmem,2048)
alloc(pGameManager,4)

label(CoolOff)
label(returnhere)
label(originalcode)
label(exit)

GameManager:Update:
jmp newmem
nop
returnhere:

newmem:
push [esp+4]
pop [pGameManager]

originalcode:
push ebp
mov ebp,esp
sub esp,08

Offset:
push eax
mov eax,[pGameManager]
mov eax,[eax+1C]
mov [eax+A],(int)1
mov [CoolOff],eax
jmp returnhere

CoolOff:
db 0

exit:
jmp returnhere

[DISABLE]
{$lua}
local ptr = readInteger("CoolOff")
if ptr ~= 1 then
  writeInteger(ptr + 0x0A, 0)
end
{$asm}

unregistersymbol(CoolOff)
unregistersymbol(pGameManager)
dealloc(newmem)
dealloc(pGameManager)

GameManager:Update:
//db 55 8B EC 57 83 EC 04
push ebp
mov ebp,esp
sub esp,08


Thanks and regards
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites