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 


Changing String Types

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

Joined: 05 Feb 2017
Posts: 2

PostPosted: Sun Feb 05, 2017 2:06 pm    Post subject: Changing String Types Reply with quote

This might be a basic problem but I'm trying to change my codename in God Eater: Resurrection on steam and it's not working in the way I would assume it should be.

My original name was (let's say) 'The Dead' and is listed as a String[8] in CE. I'm trying to change it to just 'Dead' but it is then listed as 'DeadDead' in-game. I thought maybe I just need to change it to a String[4] and that's where I get confused. When I save and restart, my in-game name is still 'DeadDead' but if I pull it back up in CE, it's listed only as 'Dead' and a String[4]. If I then change it to something completely different, say 'Wren' it's copied over as 'WrenWren' in the game.

Am I doing something incorrectly, or is the game itself at fault?
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Feb 05, 2017 2:38 pm    Post subject: Reply with quote

Well, there could be two things (or both).

In memory viewer, go to the byte after the final 'd' and change it to hex 00.
That is a string null terminator and lets the code know when to end the string.

It's also possibly that the game stores the string length someplace as an integer.
You may also need to change that value from an 8 to a 4.
Back to top
View user's profile Send private message
Ganshin
How do I cheat?
Reputation: 0

Joined: 05 Feb 2017
Posts: 2

PostPosted: Sun Feb 05, 2017 3:50 pm    Post subject: Reply with quote

Zanzer wrote:
the byte after the final 'd' and change it to hex 00.


That was what I needed! Thank you very much! <3
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