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 


[Unity 5.x] Find and change a variable

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

Joined: 08 Jan 2017
Posts: 2

PostPosted: Sun Jan 08, 2017 6:50 am    Post subject: [Unity 5.x] Find and change a variable Reply with quote

Hey guys,

Sorry if my question is dumb but it's my first attempt to make a real hack for a game.

So here is the situation :

The Game, at startup, read a json file and get a boolean. This boolean is named SaveGame.

If SaveGame is set to true, the player progression is kept from level to level and death to death.

If SaveGame is set to false, the player progression is reset to last saved data every time he died or complete the current level.

You might ask why devs allow player to choose if the game save the progression or not, the answer is simple : training.

Since The Game is permadeath and very challenging, I would like to be able to set SaveGame to true or false during the level.

The Game is made on Unity engine v5.x (i don't know which specific version).

Could you show me some good tutorials or give some tips ?

Thanks guys
Back to top
View user's profile Send private message
Filipe_Br
Master Cheater
Reputation: 3

Joined: 07 Jan 2016
Posts: 272
Location: My house

PostPosted: Sun Jan 08, 2017 8:42 am    Post subject: Re: [Unity 5.x] Find and change a variable Reply with quote

Do a scan with unknown initial value, go in the game and change "SaveGame", go to the cheat engine and look for values that have changed. And keep scanning until you find few addresses. And now test any of these addresses is working. (To help filter the list, also look for values that have not changed)
_________________
...
Back to top
View user's profile Send private message
PzKd
How do I cheat?
Reputation: 0

Joined: 08 Jan 2017
Posts: 2

PostPosted: Sun Jan 08, 2017 1:23 pm    Post subject: Reply with quote

As I say, the only way to change SaveGame is by editing the json config file. There is no other way to modify it when the game is launched.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8585
Location: 127.0.0.1

PostPosted: Sun Jan 08, 2017 1:25 pm    Post subject: Reply with quote

Unity is coded in C#, just decompile the games files using a tool such as dnSpy or ILSpy.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
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