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 


error with sockets

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

Joined: 05 Nov 2014
Posts: 130

PostPosted: Wed Mar 02, 2016 6:51 am    Post subject: error with sockets Reply with quote

I am trying to get started with sockets, my first goal is to create 2 trainers that run on different pc's in the same local network, where

the server's trainer form has a text field
the client's trainer has a label

And as soon as I enter something into the server's textfield, the text appears in the client's label.

My problem: I have no idea on how to do it. I googled around and read that I need to look into sockets, so I downloaded http://cheatengine.org/temp/ce_luasocket.rar, extraced it in the CE main folder and ran the 32bit version of CE as administrator. (my pc is 64bit but DB said in this thread that you need to use the 32bit version, for whatever reason).

I used
Code:
socket = require('socket')
print(socket._VERSION)
To see if it worked, but I get an error:
Quote:
Error:error loading module 'socket.core' from file 'C:\Program Files (x86)\Cheat Engine 6.5\socket\core.dll': The module could not be found

script error
Or something like that (its in german, I translated it manually).

Whats wrong?
Back to top
View user's profile Send private message
Ludwig
Advanced Cheater
Reputation: 0

Joined: 10 Jan 2016
Posts: 68

PostPosted: Wed Mar 02, 2016 2:57 pm    Post subject: Reply with quote

hxxp:**cheatengine.org*temp*celuasocket.zip
this worked for me
xx=tt...**=//
Back to top
View user's profile Send private message
LastExceed
Expert Cheater
Reputation: 1

Joined: 05 Nov 2014
Posts: 130

PostPosted: Wed Mar 02, 2016 3:43 pm    Post subject: Reply with quote

Ludwig wrote:
hxxp:**cheatengine.org*temp*celuasocket.zip
this worked for me
xx=tt...**=//


Didn't help, problem persists... btw to post URL's use [url][/url]
Back to top
View user's profile Send private message
panraven
Grandmaster Cheater
Reputation: 62

Joined: 01 Oct 2008
Posts: 958

PostPosted: Wed Mar 02, 2016 5:26 pm    Post subject: Reply with quote

Try check the date of *.dll inside zip/rar, it is not for ce 6.5 if before late 2015.

Also try check the lua variable package.cpath, it is a string of paths ';' separated, check if the dll is in one of path.

btw, ce lua dll module may need custom made/compiled.

bye~

_________________
- Retarded.
Back to top
View user's profile Send private message
LastExceed
Expert Cheater
Reputation: 1

Joined: 05 Nov 2014
Posts: 130

PostPosted: Thu Mar 03, 2016 1:03 am    Post subject: Reply with quote

panraven wrote:
Try check the date of *.dll inside zip/rar, it is not for ce 6.5 if before late 2015.

Also try check the lua variable package.cpath, it is a string of paths ';' separated, check if the dll is in one of path.

btw, ce lua dll module may need custom made/compiled.

bye~


I used
Code:
print(package.cpath)
and the dll from the error message is NOT listed there.

I checked the date of the file and it says 2012, does that mean I need an older version of ce to get it to work? And if yes, which one?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Thu Mar 03, 2016 3:11 am    Post subject: Reply with quote

try 6.4
or find a luasocket build compiled fir lua 5.3

_________________
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
LastExceed
Expert Cheater
Reputation: 1

Joined: 05 Nov 2014
Posts: 130

PostPosted: Thu Mar 03, 2016 7:09 am    Post subject: Reply with quote

That did the trick, finally works!
Thanks everyone

For everyone who stumbles about this thread because he has the same problem:
Step1: Download CheatEngine 6.4
Step2: These are the socket files you will need
Step3: run the 32bit version of CheatEngine, even if your computer is 64bit
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