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 


Setting the value to 1000/MAX

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

Joined: 28 May 2019
Posts: 5

PostPosted: Sun Jun 09, 2019 6:56 pm    Post subject: Setting the value to 1000/MAX Reply with quote

Hey, I just studied on how to make code injections. The problem is that I don't know how to actually change the value of the address assigned to it. I am trying #1000 for the new mem but it keeps popping up hat it is not injectable. Can anyone help me to turn the address and free it to a value of 1000?

Here is the code injection:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(OPreserve,1000)
label(originalcode)
label(exit)
label(returnhere)

OPreserve:
movss [esi+ecx*4+00010C74],#1000 //doesn't work, can't be injected

originalcode:
//movss [esi+ecx*4+00010C74],xmm1

exit:
jmp returnhere


0FDF0000:
jmp OPreserve
nop
returnhere:



[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(OPreserve)
0FDF0000:
movss [esi+ecx*4+00010C74],xmm1
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 51

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Sun Jun 09, 2019 7:14 pm    Post subject: Reply with quote

It's a float not an integer, and you can't use an immediate with the scalar instructions.

Try this:
Code:
mov [esi+ecx*4+00010C74],(float)1000


But this looks like a shared instruction, so it probably effects more than one thing.

_________________
Back to top
View user's profile Send private message Visit poster's website
xcd222
How do I cheat?
Reputation: 0

Joined: 28 May 2019
Posts: 5

PostPosted: Sun Jun 09, 2019 9:17 pm    Post subject: Reply with quote

Thanks, it did work but not the one I wanted it to work. Only the display values were changed Sad . Is there any other way to make a cheat table in a complicated game (God Eater Resurrection in this case) besides using a pointer scan or a code injection? I tried pointer scan as well but I can’t get any matches during the 2nd pointer scan so I down know what to do anymore.
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 51

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Mon Jun 10, 2019 4:24 am    Post subject: Reply with quote

Code injection is fine. But you need to find the right value be for you start, usually freezing the value will help you find the right address. Or you can backtrace the display value to the real value, but this requires some ASM knowledge.

If your doing a pointer scan with the display value you'll end up with the same result. And you'll likely need to increase the level or structure size to find any results when you do find the right address to scan for.

Try the CE tutorial. Here is a video playlist that may help.
https://www.youtube.com/playlist?list=PLMomQxQh6AdWKmqnX_jPtiu0tCCKD7Ffs

_________________
Back to top
View user's profile Send private message Visit poster's website
xcd222
How do I cheat?
Reputation: 0

Joined: 28 May 2019
Posts: 5

PostPosted: Mon Jun 10, 2019 4:01 pm    Post subject: Reply with quote

Thanks for the advice. I’m going to check it out.
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 Lua Scripting 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