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 


Please point me in the right direction

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

Joined: 20 Jun 2012
Posts: 25

PostPosted: Sat Dec 08, 2012 3:58 am    Post subject: Please point me in the right direction Reply with quote

Doing my best to learn but there are so many huge gaps in my understanding.

Here's what I got:

I have a game that I know accepts Lua scripts.
I have a function name and address
0052B660 - SetMoveSpeed

Now I'm lost. I need a script to allow me to use that function to set my base movement speed.

I humbly throw myself upon your mercy and wisdom.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8517
Location: 127.0.0.1

PostPosted: Sat Dec 08, 2012 11:21 am    Post subject: Reply with quote

CE doesn't allow you to call Lua functions from another games Lua engine. It doesn't work like that. Unless you to a handful of hooking and attach yourself into their Lua engine and all that jazz. But by default, CE doesn't do this.

If you just want to call stuff in their Lua engine though, you can do stuff like:
- Find the function address to their Lua engines functions for stuff like:
-- luaL_loadstring / lua_pcall
- Inject a thread to call these functions.
- Ensure you inject and point your function to a string buffer too for the string that you will be using.

Overall it's a lot of work. You're better off finding out what their function does to the raw object and just adjust speed that way rather then messing with their Lua engine stuff.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
bakadoodle
Cheater
Reputation: 0

Joined: 20 Jun 2012
Posts: 25

PostPosted: Sat Dec 08, 2012 8:31 pm    Post subject: Reply with quote

Thanks Wiccan. I appreciate you taking the time to respond.
The idea behind this was to learn .dll injection. I think I need to take a few steps backwards and get a more solid basic foundation in Lua before I attempt this.
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