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 


saving problems about luaclient

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

Joined: 30 Dec 2022
Posts: 5

PostPosted: Fri Dec 30, 2022 5:16 am    Post subject: saving problems about luaclient Reply with quote

i am making a pvz mod now, and when i want to save the code with olly, the game crashed, then i found the following problem:

in the code it contains
Quote:
call CELUA_ExecuteFunction
, which will become
Quote:
call luaclient-i386.CELUA_ExecuteFunction
in memory view (in cheat engine), and after saving the code with ollydbg (to make the changes pernament), i attached the pvz to cheat engine and look back the
Quote:
call CELUA_ExecuteFunction
and it become
Quote:
call 10A4A150
(or other random address if i save again) which doesnt exist in my game, causing the game crash, (which is similar to the newmem thing), what should i do to fix this?


Screenshot (1872).png
 Description:
 Filesize:  184.17 KB
 Viewed:  1357 Time(s)

Screenshot (1872).png


Back to top
View user's profile Send private message Send e-mail
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25284
Location: The netherlands

PostPosted: Fri Dec 30, 2022 5:21 am    Post subject: Reply with quote

use cheat engine
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
marcwu531
How do I cheat?
Reputation: 0

Joined: 30 Dec 2022
Posts: 5

PostPosted: Fri Dec 30, 2022 5:26 am    Post subject: Reply with quote

Dark Byte wrote:
use cheat engine


im using cheat engine, but can i do sth like calling the function inside the pvz but not luaclient (like changing newmem to the address in pvz), because i want the pvz can run the code itself without cheat engine opening
Back to top
View user's profile Send private message Send e-mail
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25284
Location: The netherlands

PostPosted: Fri Dec 30, 2022 6:12 am    Post subject: Reply with quote

luaclient requires cheat engine to be running, have the luaserver running, and have the function defined that is being called
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
marcwu531
How do I cheat?
Reputation: 0

Joined: 30 Dec 2022
Posts: 5

PostPosted: Fri Dec 30, 2022 6:15 am    Post subject: Reply with quote

Dark Byte wrote:
luaclient requires cheat engine to be running, have the luaserver running, and have the function defined that is being called


then can i make the code no need require luaclienr?

or can i make a file that store the lua script and make pvz can run the thing inside that file?
Back to top
View user's profile Send private message Send e-mail
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25284
Location: The netherlands

PostPosted: Fri Dec 30, 2022 7:14 am    Post subject: Reply with quote

the lua script likely requires cheat engine itself (it's memory scanning, symbols, memory access, etc...)

if not then i guess you could write your own dll that implements something similar in the programming language you know

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
marcwu531
How do I cheat?
Reputation: 0

Joined: 30 Dec 2022
Posts: 5

PostPosted: Fri Dec 30, 2022 9:36 am    Post subject: Reply with quote

ok
Back to top
View user's profile Send private message Send e-mail
marcwu531
How do I cheat?
Reputation: 0

Joined: 30 Dec 2022
Posts: 5

PostPosted: Fri Dec 30, 2022 10:49 pm    Post subject: Reply with quote

is there any tutorial / how to write the dll file?
Back to top
View user's profile Send private message Send e-mail
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