|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
relentlesstech Cheater Reputation: 1
Joined: 02 Sep 2018 Posts: 44 Location: Rhode Island, USA
|
Posted: Sun Sep 02, 2018 7:04 pm Post subject: [Solved] Combined scripts not working? |
|
|
This is my first time trying to merge two AoB scripts, and for some reason I cannot seem to be able to activate it, but there is no error message regarding line or syntax error, it simply refuses to run - I followed an example that was posted here, and yet it still fails, so I am hoping someone here can tell me what I did wrong LOL
Code: |
[ENABLE]
aobscanmodule(INJECT,NeedForSpeedPayback.exe,0F 2F 81 1C 02 00 00) // should be unique
alloc(newmem,$1000,"NeedForSpeedPayback.exe"+12CA0F1)
label(codemax)
label(returnmax)
aobscanmodule(NOS,NeedForSpeedPayback.exe,F3 0F 5C C1 F3 0F 5F C7) // should be unique
alloc(newmem,$1000,"NeedForSpeedPayback.exe"+12CA22A)
label(codelock)
label(returnlock)
//////////////// max nos routine //////////////////////////
newmemmax:
codemax:
mov [rcx+0000021C],(float)10.42411804 //Maxes out NOS bar
comiss xmm0,[rcx+0000021C]
jmp returnmax
INJECT:
jmp codemax
nop
nop
returnmax:
registersymbol(INJECT)
////////////// lock routine /////////////////////////
newmemlock:
codelock:
addss xmm0,xmm10 //Locks NOS bar
maxss xmm0,xmm7
jmp returnlock
NOS:
jmp codelock
nop
nop
nop
returnlock:
registersymbol(NOS)
//////////////////////////////////////////////////////
[DISABLE]
INJECT:
db 0F 2F 81 1C 02 00 00
unregistersymbol(INJECT)
dealloc(newmemmax)
NOS:
db F3 0F 5C C1 F3 0F 5F C7
unregistersymbol(NOS)
dealloc(newmemlock)
|
Thank you in advance!
(I am assuming I made a n00b mistake )
_________________
.: Cheat Engine N00b in Progress :.
I'll earn my avatar someday ...
Last edited by relentlesstech on Tue Sep 04, 2018 6:31 pm; edited 1 time in total |
|
Back to top |
|
|
TheyCallMeTim13 Wiki Contributor Reputation: 50
Joined: 24 Feb 2017 Posts: 976 Location: Pluto
|
Posted: Sun Sep 02, 2018 7:28 pm Post subject: |
|
|
Looks like you forgot to rename the "newmem" for the allocation, but you changed it in the rest of the code.
Code: | //...
alloc(newmemmax,$1000,INJECT)
//...
alloc(newmemlock,$1000,NOS)
//... |
And you can just use the AOB symbols instead of the addresses.
_________________
|
|
Back to top |
|
|
relentlesstech Cheater Reputation: 1
Joined: 02 Sep 2018 Posts: 44 Location: Rhode Island, USA
|
Posted: Mon Sep 03, 2018 8:55 am Post subject: |
|
|
TheyCallMeTim13 wrote: | Looks like you forgot to rename the "newmem" for the allocation, but you changed it in the rest of the code.
Code: | //...
alloc(newmemmax,$1000,INJECT)
//...
alloc(newmemlock,$1000,NOS)
//... |
And you can just use the AOB symbols instead of the addresses. |
OMG I feel like such an idiot LMAO - It works perfectly now! Thank you!
_________________
.: Cheat Engine N00b in Progress :.
I'll earn my avatar someday ... |
|
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
|
|