 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
rog9001 Expert Cheater
Reputation: 2
Joined: 22 Dec 2015 Posts: 214 Location: Jupiter
|
Posted: Mon Jul 18, 2016 3:59 pm Post subject: Dealloc and then alloc? Trouble. |
|
|
I made a script which makes you finish a race instantly after starting but to get the finish screen with all the rewards and stuff i have to disable the script and i really dont want to do that. Is it possible to have something like this (just a example):
Code: |
[ENABLE]
START:
aobscan(EXAMPLE,game.exe,FF FF FF FF FF FF FF)
alloc(newmem, $1000)
registersymbol (EXAMPLE)
newmem
//here is the cheat stuff
jmp return
EXAMPLE:
jmp isCOMPLETE
nop
return:
isCOMPLETE:
cmp [edx+1A4],0
je END
jmp newmem
END:
dealloc(newmem)
db FF FF FF FF
unregistersymbol(EXAMPLE)
jmp START
[DISABLE]
dealloc(newmem)
db FF FF FF FF
unregistersymbol(EXAMPLE)
|
Is the above possible?
|
|
Back to top |
|
 |
cooleko Grandmaster Cheater
Reputation: 11
Joined: 04 May 2016 Posts: 717
|
Posted: Mon Jul 18, 2016 4:27 pm Post subject: |
|
|
No, but you could put it on a timer instead, for instance.
Leave your code as is, create a lua timer that activates your script on a hotkey and then deactivates it immediately after (on w/e interval you choose).
You could put your asm into a thread, and have it perform the swap for you as well on an interval with hotkey.
|
|
Back to top |
|
 |
PinPoint Expert Cheater
Reputation: 10
Joined: 07 Apr 2016 Posts: 223 Location: Scotland
|
Posted: Mon Jul 18, 2016 8:36 pm Post subject: |
|
|
You could find a coupe of filters for when you start the race and when you have won it.
for example, something like:
Code: |
[ENABLE]
aobscan(EXAMPLE,game.exe,FF FF FF FF FF FF FF)
alloc(newmem, $1000)
registersymbol (EXAMPLE)
label(return)
label(originalcode)
newmem:
cmp [address+offset],FF //first filter to check if race started/happening..timer maybe
jne originalcode//if not game plays normally..if timer jnge 1 second or something
cmp [address+offset],FF //second filter to check if race won
je originalcode
mov [whatever],FF //your cheat
jmp return
originalcode:
mov [something],somethingelse
jmp return
EXAMPLE:
jmp newmem
nop
return:
registersymbol(EXAMPLE)
[DISABLE]
dealloc(newmem)
db FF FF FF FF
unregistersymbol(EXAMPLE)
|
I dont have the game to test something like that, but if you get sufficient filters it should work i think.
createthread() could possibly be an option also as you can make it run once (or another certain amount if you incorporate a counter) and terminate itself automatically.
|
|
Back to top |
|
 |
|
|
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
|
|