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 


I forgot lua scirpting

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

Joined: 31 Dec 2015
Posts: 39
Location: The Abyss

PostPosted: Mon Aug 01, 2016 3:52 pm    Post subject: I forgot lua scirpting Reply with quote

Code:
function CEButton1Click(sender)
writeInteger('[[[["THREADSTACK0-00000AF8"]+1b8]+44c]+7d8]+1cc]+24c', getProperty(CETrainer_CEEdit1,"Text"))
end


does not do anything when i press the button, but changing the value in the address list works fine.

_________________
D'S Nuts
Back to top
View user's profile Send private message
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Mon Aug 01, 2016 4:04 pm    Post subject: Reply with quote

Ok why are writing to the threadstack
_________________
Back to top
View user's profile Send private message
milosmml7777
Cheater
Reputation: 0

Joined: 31 Dec 2015
Posts: 39
Location: The Abyss

PostPosted: Mon Aug 01, 2016 4:10 pm    Post subject: Reply with quote

worked at first, then i closed the game and opened it again.
i got this:
Error:attempt to call a nil value
(did not use cheat engine in almost a year)
*EDIT
changing the value in the address list still works.

_________________
D'S Nuts


Last edited by milosmml7777 on Mon Aug 01, 2016 4:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Mon Aug 01, 2016 4:15 pm    Post subject: Reply with quote

Thats cause Threadstack is not a valid pointer. Find a better pointer or use an AOB injection.
_________________
Back to top
View user's profile Send private message
milosmml7777
Cheater
Reputation: 0

Joined: 31 Dec 2015
Posts: 39
Location: The Abyss

PostPosted: Mon Aug 01, 2016 4:26 pm    Post subject: Reply with quote

i found a better pointer and it still does not work.

Code:
writeInteger('[[["mugen.exe"+0007C0A8]+1b8]+44c]+8', getProperty(CETrainer_CEEdit1,"Text"))
end

*EDIT
Also i tried this
Code:
writeInteger('[[["mugen.exe+0007C0A8]+1b8]+44c]+8', 150)

_________________
D'S Nuts
Back to top
View user's profile Send private message
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Mon Aug 01, 2016 5:46 pm    Post subject: Reply with quote

milosmml7777 wrote:
i found a better pointer and it still does not work.

Code:
writeInteger('[[["mugen.exe"+0007C0A8]+1b8]+44c]+8', getProperty(CETrainer_CEEdit1,"Text"))
end

*EDIT
Also i tried this
Code:
writeInteger('[[["mugen.exe+0007C0A8]+1b8]+44c]+8', 150)



Try this

Code:


Point = '[[["mugen.exe"+0007C0A8]+1b8]+44c]+8'

Val = CETrainer_CEEdit1.Text

writeInteger(Point,Val)





Everything looks good on the surface though

_________________
Back to top
View user's profile Send private message
milosmml7777
Cheater
Reputation: 0

Joined: 31 Dec 2015
Posts: 39
Location: The Abyss

PostPosted: Mon Aug 01, 2016 5:57 pm    Post subject: Reply with quote

And i still get his --->> Error:attempt to call a nil value

If i change the value in the address bar it works, but when i press the button it does not work.
I get this message when i press the button.

This is my full code.
|
ˇ

Code:
function CEButton1Click(sender)
Point = '[[["mugen.exe"+0007C0A8]+1b8]+44c]+8'

Val = CETrainer_CEEdit1.Text

writeInteger(Point,Val)
end

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

_________________
D'S Nuts
Back to top
View user's profile Send private message
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Mon Aug 01, 2016 6:12 pm    Post subject: Reply with quote

Does the write work in the Lua Window.

Ctrl+Shift+Alt+L

_________________
Back to top
View user's profile Send private message
milosmml7777
Cheater
Reputation: 0

Joined: 31 Dec 2015
Posts: 39
Location: The Abyss

PostPosted: Mon Aug 01, 2016 6:19 pm    Post subject: Reply with quote

i execute the code you gave me
Code:
Point = '[[["zlib1.dll"+00002430]+1b8]+44c]+34]+4]+38'

Val = CETrainer_CEEdit1.Text

writeInteger(Point,Val)


it outputs the same thing.

_________________
D'S Nuts
Back to top
View user's profile Send private message
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Mon Aug 01, 2016 6:22 pm    Post subject: Reply with quote

You need 5 brackets [ on the start
_________________
Back to top
View user's profile Send private message
milosmml7777
Cheater
Reputation: 0

Joined: 31 Dec 2015
Posts: 39
Location: The Abyss

PostPosted: Mon Aug 01, 2016 6:29 pm    Post subject: Reply with quote

Oh silly me...
Well now it does not show the error message, it just does not work.
But if i change it in the address list it works.
Be right back in 8 hours (sleep)
*EDIT
Nevermind it still shows the error message.

_________________
D'S Nuts
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