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 


Cannot Set String Values to be Less then Original Length

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

Joined: 14 May 2017
Posts: 3

PostPosted: Sun May 14, 2017 11:32 am    Post subject: Cannot Set String Values to be Less then Original Length Reply with quote

I am using Cheat Engine 6.6 to attempt to change a value of a string in a program, but unlike in the past when I could change strings to be whatever I wanted, I am having a hard time doing it now, as I cannot make the string smaller or larger than whatever its current size is.

For example, if I have the string "This is a really long string" and I try to change it to "XXXXX", the program instead changes it to "XXXXXis a really long string" and leaves the remaining portion of the string that was not overwritten in place. Likewise, if I try to change the string to "This is a really long string BUT NOW IT IS EVEN LONGER", the newly added content will not be saved. I have also tried saving the found entries as records in the bottom panel and changing their size, and while that appears to work, as the values in the panel at the bottom are updated, the values listed at the top remain unchanged, and the values used by the program also remain unchanged.

What is wrong? I know that in the past I have been able to do this without any problem at all. Even this video (since I cannot post URLs as a new user - youtube[dot]com/watch?v=uRarh5djBck) shows what I want to do working properly. I understand that the game crashes, but at least the change worked for him.

_________________
~ Recursive Registrations
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 119

Joined: 09 Jun 2013
Posts: 3235

PostPosted: Sun May 14, 2017 12:46 pm    Post subject: Reply with quote

You need to make sure the string ends with a null byte (00).
For now, you'll have to manually set that last byte.
I believe Dark Byte fixed this issue for the next release.
Back to top
View user's profile Send private message
RecursiveRegistrations
How do I cheat?
Reputation: 0

Joined: 14 May 2017
Posts: 3

PostPosted: Thu May 18, 2017 12:41 pm    Post subject: Reply with quote

Zanzer wrote:
You need to make sure the string ends with a null byte (00).
For now, you'll have to manually set that last byte.
I believe Dark Byte fixed this issue for the next release.
Thanks! Is there a beta that I can download to try this out? I've looked around and have not found anything but I want to check because it is possible that I may have just missed it.

As for setting a null byte at the end of the string, how would I go about doing that? I cannot figure out how to change the strings at the byte level.

_________________
~ Recursive Registrations
Back to top
View user's profile Send private message
RecursiveRegistrations
How do I cheat?
Reputation: 0

Joined: 14 May 2017
Posts: 3

PostPosted: Wed May 24, 2017 7:58 pm    Post subject: Reply with quote

Does anyone here know how to do what I am trying to do? I am afraid that I have not made any progress in learning how to do this since the time of my last post.
_________________
~ Recursive Registrations
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 341

Joined: 09 May 2003
Posts: 19986
Location: The netherlands

PostPosted: Thu May 25, 2017 2:20 am    Post subject: Reply with quote

add a second 1 byte value type at the last byte of the string and set that to 0

or use lua: writeString(address, str) writeBytes(address+#str,0)

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Back to top
View user's profile Send private message MSN Messenger
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