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 


Problem with a lua script

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

Joined: 26 Apr 2014
Posts: 1

PostPosted: Sun Apr 27, 2014 12:08 am    Post subject: Problem with a lua script Reply with quote

Hi everyone , i don't know if its the good section but i need help..

After many hours of research and coding i made a little program through the Create Form of CE

But there's a problem with my lua script , he's supposed to modify a string value

The problem is, writeString only replaces the text, he doesn't delete the old value before...

Imagine,

First value : "RandomString", to modify into "String" but when valided the final value is : "StringString"

Its really hard to explain , if you don't understand tell me...

Here's my lua script for the button click

Quote:
writeString("[[[[[Something.dll+*******]+*]+***]+***]+*]+***", getProperty(UDF1_CEEdit1,"Text"))


Sorry for the "*" but i want to keep this adress private for the moment..

Thanks in advance for your help!
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Sun Apr 27, 2014 1:51 am    Post subject: Reply with quote

Most -if not all- programs use a single 00 byte (or 2 bytes for unicode strings) to mark the end of a string.
You just need to add a writeBytes(StringAddress+StringLength,0) and your game should read "String" instead of "StringString".

_________________
DO NOT PM me if you want help on making/fixing/using a hack.
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