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 


Script freezing/unfreezing game

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
TschauKakau
How do I cheat?
Reputation: 0

Joined: 04 Mar 2017
Posts: 2

PostPosted: Sat Jun 10, 2017 3:28 am    Post subject: Script freezing/unfreezing game Reply with quote

First off I need to say that the game I'm trying to cheat is the first Sanctum from the year 2011. I want to make a script that negates the deletion or subtraction of money or at best even add money upon buying tower/upgrades.

Code:

[ENABLE]
aobscanmodule(INJECT,SanctumGame-Win32-Shipping.exe,89 0A C2 14 00 8B 49)
alloc(newmem,$1000)
label(code)
label(return)

newmem:
  push ecx
  mov ecx,100
  mov [edx],ecx
  pop ecx
  ret 0014
  jmp return

code:
  mov [edx],ecx
  ret 0014
  jmp return

INJECT:
  jmp newmem
return:
registersymbol(INJECT)

[DISABLE]
INJECT:
  db 89 0A C2 14 00

unregistersymbol(INJECT)
dealloc(newmem)


The problem as stated in the title is that either the game crashes instantly or freezes when activating the script. In case of the later event I can turn the script off again in a short amount of time and the game unfreezes.

As most can see I tried adding 100$ instead of losing money upon buying a building or losing money in general.

Please excuse any compiling errors in this post as this is my first post ever on this site but I hope someone can help me or just tell me to stop Very Happy

Thanks in advance,
Tschau Kakau <3

Edit: Seems like I found the main suspect for my inability to make this thing work! It's some kind of anticheat mechanism that gives out the same adress/function (mov [edx],ecx) for everything in this game!
From the costs of upgrades to the bonusmoney received at the end of a round, its all written to by the same adress/function (mov [edx],ecx).

If anyone has an idea how to outplay this little fella of an anticheat or at least get the original operations that write to these adresses pls do tell me.

And again,
thanks in advance!

_________________

  • Kill a Man and you're a murderer.
  • Kill Millions and you're a conquerer.
  • Kill them all and you are God.
Back to top
View user's profile Send private message
Schnitzelmaker
Advanced Cheater
Reputation: 6

Joined: 27 Jan 2012
Posts: 64

PostPosted: Sat Jun 10, 2017 9:09 pm    Post subject: Reply with quote

Your problem is the "ret 0014" which make the script not working correctly and crash the game.

Try to inject a little bit higher to avoid unwanted ret/calls/jmps in the script.

And as far as i know SanctumGame has an anti-cheat.
I think the only way cheating money was to set it before doing anything in the level.
Back to top
View user's profile Send private message
TschauKakau
How do I cheat?
Reputation: 0

Joined: 04 Mar 2017
Posts: 2

PostPosted: Sun Jun 11, 2017 4:08 am    Post subject: Reply with quote

Thanks alot!
I'll try your solution right away. The one with cheating the money before doing anything didn't work for me because the pointer I got from a fearless table never got the moneyvalue before I did anything :C It either did not update or only after I bought something :/

_________________

  • Kill a Man and you're a murderer.
  • Kill Millions and you're a conquerer.
  • Kill them all and you are God.
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