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 


[Help] Lua WriteMemory / Trainer making help

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
ZxPwds
Advanced Cheater
Reputation: 0

Joined: 27 Oct 2015
Posts: 59

PostPosted: Tue Oct 27, 2015 1:20 pm    Post subject: [Help] Lua WriteMemory / Trainer making help Reply with quote

Hey everybody. I'm pretty new to the hole lua hacking.
I normally make trainers in vb.net but for some reason it wont let me WriteProcessMemory anymore but if I make a trainer in CE it works.

Why do I make trainers in vb.net?
Because I had a lot more flexibility when using vb.net, For example I had a health cheat and if I had:


3 Check boxes | [Set HP 100] [Set HP 200] [Set HP 300]
1 Timer | For Hotkeys - ALT+1

Depending which box I tick I will get that amount of health when I
use the hotkey: ALT+1

And create nice GUI XD





However now I see in CE theres LUA now and when I create trainers
i can add timers and checkboxes and buttons and all sorts of things
but I was wondering if its possible to do such things now with CE?


How would I WriteMemory to a float value or double type value?
is there any trainer making guides for this ?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 138

Joined: 06 Jul 2014
Posts: 4275

PostPosted: Tue Oct 27, 2015 1:34 pm    Post subject: Reply with quote

http://forum.cheatengine.org/viewtopic.php?p=5576412

As for writing memory, you can look through main.lua (should be in your CE directory), or it might be here. This is a small snippet of it that pertains to what you asked:
Code:
readFloat(address) : Reads a single precision floating point value from the specified address
readDouble(address) : Reads a double precision floating point value from the specified address
...
writeFloat(address,value) : Writes a single precision floating point to the specified address. Returns true on success
writeDouble(address,value) : Writes a double precision floating point to the specified address. Returns true on success

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
ZxPwds
Advanced Cheater
Reputation: 0

Joined: 27 Oct 2015
Posts: 59

PostPosted: Wed Oct 28, 2015 10:56 am    Post subject: Thanks Reply with quote

Hey ParkourPenguin thanks a lot. That thread was more then helpful. It gave me the quick information I needed on lua scripting for cheating. I don't know why I could not find it.

Do you know any other tutorials on this ? That thread was so great I was
wondering if anybody else had made any.

Also another question. You think you can add me on skype?
Since you might have a little bit of experience on the matter but if not it's
fine. My skype is. ZxPwds
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