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 


Change specific path in a game

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

Joined: 15 Mar 2022
Posts: 2

PostPosted: Thu Mar 02, 2023 4:38 pm    Post subject: Change specific path in a game Reply with quote

I'm trying to change the path to the sound folder in the game's memory because I want to use a customized sound pack. The original sound folder is located in the root folder of the game (example: game\sound\shoot.wav), but I can't just replace it because of security reason, the game has protection against such behavior.
So, the only way that I see is modify path stored in the game’s memory.
After I scanned the game for string “sound” I was able to find several addresses but after I added them to my address list, I saw the they can randomly change after several minutes so I had to do scan again and again. This won’t work.
Later I read about pointers and was hoping to find pointers which would help me to find the entry point for my desirable changes, but after several tries, I found nothing.
Also I’ve notice that new sounds in the game could appears randomly in a random memory location after new game event happens and after event ends, garbage collector delete variable in a memory (path no longer exist after scanning).
I’m sure that somewhere should be a const with a path to sound folder which generates path for playing each sounds and I’m sure that it’s possible to change it, but I just can’t find where…
For now I’m looking for a new approach to solve my task and I hope someone could push me in a right way! Thanks in advanced!
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Fri Mar 03, 2023 9:49 am    Post subject: Re: Change specific path in a game Reply with quote

letmecheat wrote:
but I can't just replace it because of security reason, the game has protection against such behavior.
So, the only way that I see is modify path stored in the game’s memory.
-I stopped reading after this. I think, if the game recognizes and rejects a different wav file of the same name, in the correct folder, then there is likely some type of data validation occurring through CRC or similar.

As such, I would look for that check and trick the program into believing that the result is good.
Back to top
View user's profile Send private message
letmecheat
How do I cheat?
Reputation: 0

Joined: 15 Mar 2022
Posts: 2

PostPosted: Fri Mar 03, 2023 2:42 pm    Post subject: Re: Change specific path in a game Reply with quote

++METHOS wrote:
letmecheat wrote:
but I can't just replace it because of security reason, the game has protection against such behavior.
So, the only way that I see is modify path stored in the game’s memory.
-I stopped reading after this. I think, if the game recognizes and rejects a different wav file of the same name, in the correct folder, then there is likely some type of data validation occurring through CRC or similar.

As such, I would look for that check and trick the program into believing that the result is good.


Thank you for your time!
Yeah, you are right, game has CRC check built-in but game monitoring only original folder and files inside, that's why I can't do anything there.
But, if I'm changing the path to .wav file in the game's memory to a different folder, game uses faked file without any issue. I already tested it, and it works, but it works only for several minutes (5…10 min) after that period some sort of randomizer used inside of a game and it change the addresses and it happens again and again, I'm sure it's an anti-cheat algorithm. And this anti-cheat algorithm works always, no matter if I'm changing the value of the path or not, it will change the address anyway after some time.
Sure, I can do re-scan again and do manually path modification again, but it's not a solution what I'm looking for. I need automation for this because in a game world can be a lot of objects which will generate new sounds and every sound will has his own path which I need to change.
I'm not sure, but what do you think is it possible to have a parallel process with a game which will do scanning each second and modify existing paths? I never done such things before.
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Fri Mar 03, 2023 3:59 pm    Post subject: Reply with quote

All you should have to do is trick the program into thinking that the CRC check was valid. Or, completely jump over or nullify the entire scheme.

Regarding the changing of addresses, how are you changing the values? Are you using injection?
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