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 


(Need help): Writing an Integer (Error)

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

Joined: 05 Jan 2016
Posts: 61
Location: Germany

PostPosted: Thu May 26, 2016 8:33 am    Post subject: (Need help): Writing an Integer (Error) Reply with quote

Hey!

Im getting an error and I dont know how to fix it. But I know on which line it is.

Error: www fotos-hochladen net/uploads/adsafdsfsa5y9m60jc7l.png

This is line 21,22 and 23:
Code:
function CEButtonSetClick(sender)
  writeInteger("[[[[[[\"Grim Dawn.exe\" + 00585134] +1a8] +50] +34] +180] +f8"], getProperty(UDF1.CEEditMax,"Text"))
end


What is the problem now and how do I fix it?

regards, TPRammus
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4289

PostPosted: Thu May 26, 2016 9:07 am    Post subject: Reply with quote

Your last ending square bracket is outside the string.
_________________
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
TPRammus
Advanced Cheater
Reputation: 0

Joined: 05 Jan 2016
Posts: 61
Location: Germany

PostPosted: Thu May 26, 2016 10:12 am    Post subject: Reply with quote

ParkourPenguin wrote:
Your last ending square bracket is outside the string.


Thank you for your help I did not see that >.>

But I have another problem. If I put a number in the text box and click on the button, it doesnt change the value ingame.

The name of the text box is "CEEditMax", the name of the button is "CEButtonSet" and I defined "CEButtonSetClick" in the Event-tab of the button at "OnClick".

This is the address with the pointers in the cheat table: www fotos-hochladen net/uploads/sfadfsdafsdagdak6vlcs7mni.png

And this is the function currently:
Code:
function CEButtonSetClick(sender)
  writeInteger("[[[[[[\"Grim Dawn.exe\" + 00235248] +1a8] +170] +360] +2a8] +188]", getProperty(UDF1.CEEditMax,"Text"))
end


I would really appreciate it if you could tell me what the problem is now. (If I click on the button really nothing changes)
Sorry about the circumstances Rolling Eyes

regards, TPRammus
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4289

PostPosted: Thu May 26, 2016 10:20 am    Post subject: Reply with quote

Don't use getProperty. Just get the property from the userdata itself.

The parameters of the writeInteger function are an address and a value. You're trying to pass it the value being pointed at, not the address being pointed at. Remove the outside square brackets.

Your offsets are also in reverse order.

Code:
writeInteger("[[[[[Grim Dawn.exe+00235248]+188]+2a8]+360]+170]+1a8", UDF1.CEEditMax.Text)

_________________
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
TPRammus
Advanced Cheater
Reputation: 0

Joined: 05 Jan 2016
Posts: 61
Location: Germany

PostPosted: Thu May 26, 2016 10:47 am    Post subject: Solved :) Reply with quote

Thank you so much ParkourPenguin everything works fine now Very Happy

regards, TPRammus

Edit:
ParkourPenguin wrote:
Your offsets are also in reverse order.

And yeah I wasnt sure about that (I posted the picture with the offsets because I hoped that if there is a mistake with the sequence you would tell me) Laughing
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