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 


How to set values at the beginning of launching a game

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

Joined: 31 Oct 2022
Posts: 7

PostPosted: Sat Nov 05, 2022 7:12 am    Post subject: How to set values at the beginning of launching a game Reply with quote

I am creating cheats for Monster Hunter 3 Ultimate with Cemu Emulator.

I want to set a value to a certain address where the value is loaded only once at the beginning of launching the game.
(I can't enable cheats when I change the values after game launched since the game does not read the value any more.)
I need to change the value before some functions read it so that I can enable cheats.

How can I do that?
Back to top
View user's profile Send private message
cooleko
Grandmaster Cheater
Reputation: 11

Joined: 04 May 2016
Posts: 717

PostPosted: Sat Nov 05, 2022 9:45 am    Post subject: Reply with quote

Do you already know the address or the functions? Then you can write a script to open the game, pause it, make your changes, and unfreeze the process once verified or permanently edit the executable to do it for you.

Ultimately, even if the game only reads from a source once, it must reference its internal copy many times, its not like it is magic, so you dont have to edit it early if you find the backup copy it references and edit it at any time.

What I expect from you since you asked the question is you dont kmow any of the above and need advice on how to find the address and/or instruction, for which there are 100s of potential solutions.

Personally, I'd find a function that inherently must rely on the value you want to edit and trace it back to the internal, backup copy of the value you want to change. Then just edit it live during gameplay.

Once you have found it there, you can dig into the structure of the game to find where that is first set, and edit the exe to implement your cheat as a default. There are a number of good software for performing that analysis (ghidra, ida, cerbero, etc).

Good luck!
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