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 


Writing to an addres's pointer

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
CityOfTheIris
Newbie cheater
Reputation: 0

Joined: 18 Sep 2016
Posts: 16

PostPosted: Fri Oct 14, 2016 7:27 am    Post subject: Writing to an addres's pointer Reply with quote

Code:

function CEButton2Click(sender)
health = "[[gta3.exe+6FB1C8]+5FC"
writeFloat(health,600)
end


it just doesnt work, the value isnt getting set to 600
is there anything im doing wrong? ( i attached to gta3 process )
and please post full solution
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Fri Oct 14, 2016 9:11 am    Post subject: Reply with quote

Delete one of those extra "[" maybe?
Back to top
View user's profile Send private message
CityOfTheIris
Newbie cheater
Reputation: 0

Joined: 18 Sep 2016
Posts: 16

PostPosted: Fri Oct 14, 2016 9:13 am    Post subject: Reply with quote

doesnt work

the example from down i tried and didnt work


Last edited by CityOfTheIris on Fri Oct 14, 2016 9:30 am; edited 1 time in total
Back to top
View user's profile Send private message
Twistedfate
Expert Cheater
Reputation: 1

Joined: 11 Mar 2016
Posts: 231

PostPosted: Fri Oct 14, 2016 9:25 am    Post subject: Reply with quote

Code:
function CEButton1Click(sender)
writeInteger("game.exe+78d9a0", getProperty(CEselectorTrainer.CEEdit1,"Text"))
end


Back to top
View user's profile Send private message
CityOfTheIris
Newbie cheater
Reputation: 0

Joined: 18 Sep 2016
Posts: 16

PostPosted: Fri Oct 14, 2016 9:29 am    Post subject: Reply with quote

Twistedfate wrote:
Code:
function CEButton1Click(sender)
writeInteger("game.exe+78d9a0", getProperty(CEselectorTrainer.CEEdit1,"Text"))
end




any clear explaination what dose this do?

help???
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Fri Oct 14, 2016 11:21 am    Post subject: Reply with quote

You sure your button push is even executing the code you think it is?
Add a print() statement just to be sure. Wink
Code:
function CEButton2Click(sender)
  health = "[gta3.exe+6FB1C8]+5FC"
  writeFloat(health,600)
  print("yay")
end
Back to top
View user's profile Send private message
CityOfTheIris
Newbie cheater
Reputation: 0

Joined: 18 Sep 2016
Posts: 16

PostPosted: Fri Oct 14, 2016 11:36 am    Post subject: Reply with quote

it outputs yay, but value no changed
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Fri Oct 14, 2016 12:14 pm    Post subject: Reply with quote

Then your pointer is wrong. Show us the working CE pointer.
And does updating the CE pointer actually change the game? Smile
Back to top
View user's profile Send private message
CityOfTheIris
Newbie cheater
Reputation: 0

Joined: 18 Sep 2016
Posts: 16

PostPosted: Fri Oct 14, 2016 12:17 pm    Post subject: Reply with quote

i.imgur. com/iRD7uXC.png

remove the spaces because it doesnt let me put urls

its gta 3 health pointer
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Fri Oct 14, 2016 12:55 pm    Post subject: Reply with quote

The pointer you posted is simply "[006FB1C8]+5FC"
It doesn't use gta3.exe as it's base or anything.
Doesn't sound very static, but that's your problem to solve!
Back to top
View user's profile Send private message
CityOfTheIris
Newbie cheater
Reputation: 0

Joined: 18 Sep 2016
Posts: 16

PostPosted: Fri Oct 14, 2016 2:09 pm    Post subject: Reply with quote

thanks, you really helped me ! <3 Very Happy
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