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 


write to pointer ???

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

Joined: 27 Jan 2014
Posts: 2

PostPosted: Mon Jan 27, 2014 4:53 pm    Post subject: write to pointer ??? Reply with quote

Hey Guyz! im new to lua scripting.
sadly i cant figure out how to write a value into a pointer :/
i know how to read adresses and write to adresses. but as we all know adresses change every time so i have to create a script that does wirte a specific value into my pointer that i found.
i know the offsets of my pointer but cant make it to do what i want in lua!
Noob in trouble need help! Rolling Eyes
Back to top
View user's profile Send private message
pellik
Advanced Cheater
Reputation: 0

Joined: 14 Jun 2013
Posts: 93

PostPosted: Mon Jan 27, 2014 8:38 pm    Post subject: Reply with quote

http://wiki.cheatengine.org/index.php?title=Lua

Look for a function that sounds like what you want to do. It should be right up there towards the top of the list.
Back to top
View user's profile Send private message
ChampCrazy
How do I cheat?
Reputation: 0

Joined: 27 Jan 2014
Posts: 2

PostPosted: Tue Jan 28, 2014 4:44 am    Post subject: Reply with quote

I already knew that list...
writefloat(adress)
readfloat(adress)
works fine but i need something like :
readpointer(offsets)
writepointer(offsets)

can someone help who really understands my issue?

Shocked
Back to top
View user's profile Send private message
faizangmc
Expert Cheater
Reputation: 0

Joined: 12 Nov 2013
Posts: 167

PostPosted: Wed Feb 05, 2014 12:03 pm    Post subject: Reply with quote

first define the pointer eg

mypointer = "[[[game.exe+005D4D20]+c8]+b0]+1c"

for writing,
Code:
writeInteger(mypointer, 100)


which will write 100 to the the pointer u defined

For reading,
Code:
readInteger(mypointer)


or if you want to display the value contained in the pointer in an edit box named 'CEEdit1' in form named UDF1 then this :
Code:
UDF1.CEEdit1.Text       = readInteger(mypointer)
Back to top
View user's profile Send private message
Loeffel
How do I cheat?
Reputation: 0

Joined: 24 Dec 2014
Posts: 6

PostPosted: Sat Dec 27, 2014 9:11 am    Post subject: Reply with quote

ChampCrazy wrote:
or if you want to display the value contained in the pointer in an edit box named 'CEEdit1' in form named UDF1
What syntax do I need to use, when I have a pointer saved in a variable named pSelected_Unit_Address, that is defined in a table script.

I can show me the pointer and the value of the pointer in the table list, but I can't use it in a lua scipt.

I have testet eery function, that could be the correct one to get the integer value of the memory the pointer points to, but nothing works. I always get attempt to ...(depending on function)... (a nil value). The variable is filled and the pointer is valid, but nothing works.
I can't use game.exe+offset, as I don't know the offset. It changes not only with every game start, also with every loading of a saved game.

_________________
Yours

Loeffel
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