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 


Code does not inject: offset too big

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

Joined: 27 Jul 2013
Posts: 121

PostPosted: Sun Nov 29, 2020 6:51 am    Post subject: Code does not inject: offset too big Reply with quote

Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048,"GTA5.exe"+F4AB83)
label(returnhere)
label(originalcode)
label(exit)
globalalloc(accbasepointer,4)
newmem:
mulss xmm8,[rdi+34]
mov [accbasepointer],rdi

originalcode:
mulss xmm8,[rdi+34]

exit:
jmp returnhere

"GTA5.exe"+F4AB83:
jmp newmem
nop
returnhere:


 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"GTA5.exe"+F4AB83:
mulss xmm8,[rdi+34]
//Alt: db F3 44 0F 59 47 34


Hi experts, i have no idea how to solve this or what the issue exactly is.

Any input appreciated,
Best regards
Back to top
View user's profile Send private message  
Dark Byte
Site Admin
Reputation: 468

Joined: 09 May 2003
Posts: 25719
Location: The netherlands

PostPosted: Sun Nov 29, 2020 8:37 am    Post subject: Reply with quote

replace globalalloc with alloc and then add a registersymbol(accbasepointer)
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger 
ICQ Number
careca777
Expert Cheater
Reputation: 0

Joined: 27 Jul 2013
Posts: 121

PostPosted: Sun Nov 29, 2020 9:09 am    Post subject: Reply with quote

That did the trick, many thanks.
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