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 


Move bytes forward or insert a longer word

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Razi
Expert Cheater
Reputation: 1

Joined: 17 Jan 2018
Posts: 205

PostPosted: Sat Jan 30, 2021 4:00 pm    Post subject: Move bytes forward or insert a longer word Reply with quote

How to move bytes back and forth? Or insert a shorter or longer word?
The game has 23000 bytes of item descriptions. I want to change item descriptions to shorter or longer ones.
Example: need to change this description: "Attack with weapon" to "Attack with equipped weapon" or to "Attack". If I use a longer description, I need to move next 23000 bytes forward, from this address 009AF5C0, by 8 bytes. Or if I use a shorter description, I need to move next 23000 bytes back, from this address 009AF5C0, by 12 bytes.
If we move all bytes forward, from 009AF5C0, by 8 bytes, the game will crash.

It doesn't matter, found a solution to my question.
Code:
copyMemory(0x009AF5C0, 23000, 0x009AF5C8, 0)
copyMemory(0x009AF5C0, 23000, 0x009AF5B4, 0)
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 Lua Scripting 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