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 


[Solved] Combined scripts not working?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
relentlesstech
Cheater
Reputation: 1

Joined: 02 Sep 2018
Posts: 29
Location: Rhode Island, USA

PostPosted: Sun Sep 02, 2018 7:04 pm    Post subject: [Solved] Combined scripts not working? Reply with quote

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 ) Rolling Eyes

_________________
.: 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
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 39

Joined: 24 Feb 2017
Posts: 824
Location: 'Merica

PostPosted: Sun Sep 02, 2018 7:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
relentlesstech
Cheater
Reputation: 1

Joined: 02 Sep 2018
Posts: 29
Location: Rhode Island, USA

PostPosted: Mon Sep 03, 2018 8:55 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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