View previous topic :: View next topic |
Author |
Message |
RecursiveRegistrations How do I cheat? Reputation: 0
Joined: 14 May 2017 Posts: 3
|
Posted: Sun May 14, 2017 11:32 am Post subject: Cannot Set String Values to be Less then Original Length |
|
|
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 |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sun May 14, 2017 12:46 pm Post subject: |
|
|
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 |
|
|
RecursiveRegistrations How do I cheat? Reputation: 0
Joined: 14 May 2017 Posts: 3
|
Posted: Thu May 18, 2017 12:41 pm Post subject: |
|
|
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 |
|
|
RecursiveRegistrations How do I cheat? Reputation: 0
Joined: 14 May 2017 Posts: 3
|
Posted: Wed May 24, 2017 7:58 pm Post subject: |
|
|
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 |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
Posted: Thu May 25, 2017 2:20 am Post subject: |
|
|
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.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
|