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 


Insert text in game

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

Joined: 26 Apr 2014
Posts: 5

PostPosted: Fri Nov 21, 2014 11:55 am    Post subject: Insert text in game Reply with quote

Code:
function CEButton1Click(sender)
writeString("w8.exe+00CBC1BC", getProperty(CETrainer_CEEdit1,"text"))
end


form_show(CETrainer)
strings_add(getAutoAttachList(),"w8.exe")


what is wrong?
is to change the text in the game to insert and click the button
doing so the game crashes
Back to top
View user's profile Send private message
chem0ne
Cheater
Reputation: 0

Joined: 19 Nov 2014
Posts: 33
Location: germany

PostPosted: Fri Nov 21, 2014 11:35 pm    Post subject: Re: Insert text in game Reply with quote

Am-rA wrote:
Code:
function CEButton1Click(sender)
writeString("w8.exe+00CBC1BC", getProperty(CETrainer_CEEdit1,"text"))
end


form_show(CETrainer)
strings_add(getAutoAttachList(),"w8.exe")


what is wrong?
is to change the text in the game to insert and click the button
doing so the game crashes


whole thing is wrong, how you think to adding text into a game? do you know it would work? without modding? no way, think about first what you want to do before.


regards

_________________
» GameHacking & Music Production :: Offical Channel
Back to top
View user's profile Send private message Visit poster's website
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Sat Nov 22, 2014 12:10 am    Post subject: Reply with quote

first do an fullAccess(address, size) as it's likely that module address is unwritable by default
_________________
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
View user's profile Send private message MSN Messenger
Am-rA
How do I cheat?
Reputation: 0

Joined: 26 Apr 2014
Posts: 5

PostPosted: Tue Nov 25, 2014 12:31 am    Post subject: kxjcvhkx Reply with quote

this example if it works, the only thing that changes is that I want to change a text
WriteInteger vs WriteString
Screen 1


I do the same, that pressing the button to insert the text
Screen 2



2014-11-25 05-18-25.png
 Description:
Screen 2
 Filesize:  6.46 KB
 Viewed:  8212 Time(s)

2014-11-25 05-18-25.png



2014-11-25 05-10-00.png
 Description:
Screen 1
 Filesize:  107.37 KB
 Viewed:  8212 Time(s)

2014-11-25 05-10-00.png


Back to top
View user's profile Send private message
pox911
Grandmaster Cheater
Reputation: 28

Joined: 29 Nov 2008
Posts: 918

PostPosted: Tue Nov 25, 2014 12:46 pm    Post subject: Reply with quote

Is it crashing with any swap? Even a one character swap? Depending on how the game handles the string, and if you are making the new name longer, you may be going over the max size and hitting other data.
Back to top
View user's profile Send private message
Am-rA
How do I cheat?
Reputation: 0

Joined: 26 Apr 2014
Posts: 5

PostPosted: Sat Nov 29, 2014 8:31 pm    Post subject: Reply with quote

if I change the name on the cheat engine works well, what does not work is when I use the button in the trainer
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