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 


LuaSocket Error

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

Joined: 27 Mar 2014
Posts: 9

PostPosted: Wed Apr 09, 2014 3:27 pm    Post subject: LuaSocket Error Reply with quote

Luasocket works perfectly when I execute the script in CheatEngine, but when I compile the script to a .exe it gives me this error:
<see attachment>

All the code:
http = require("socket.http")
file = http.request("IPcheckerURL")
IP = "<myIP>"
if string.sub(file,1,file.len(IP))==IP then http = require("socket.http") bp = http.request(lua file) loadstring(bp) () else closeCE() end

I have literally tried EVERY version of celuasocket and the normal luasocket I could find on this forum and on Google. I have tried the 64 bit and the 32 bit versions of celuasocket and I put that bit of code in main.lua or at the beginning of the .lua script. I have tried the 32bit version only and I ran the 32bit version of CE and I compiled it at 32bits, but that didnt work either. I have tried all compressions and bits and I checked all features, or only the needed ones, or none. I have made almost every possible combination of compiling, but no result so far. I have also tried disabling all AVs and adding it to trusted files, and stuff like that.



Screenshot_3.png
 Description:
Screenshot
 Filesize:  89.07 KB
 Viewed:  11011 Time(s)

Screenshot_3.png




Last edited by kennard11 on Wed Apr 09, 2014 3:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Wed Apr 09, 2014 3:39 pm    Post subject: Reply with quote

while creating EXE, you must manually add few files:



_________________
Back to top
View user's profile Send private message MSN Messenger
abhijeet1001
Advanced Cheater
Reputation: 0

Joined: 10 Apr 2013
Posts: 87

PostPosted: Wed Apr 09, 2014 3:41 pm    Post subject: Reply with quote

would be more better if you stop leeching my hacks lol
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Wed Apr 09, 2014 3:56 pm    Post subject: Reply with quote

which lua socket package you are using?

Original from http://luaforge.net or package provided by DarkByte (he uploaded two versions)

_________________
Back to top
View user's profile Send private message MSN Messenger
kennard11
How do I cheat?
Reputation: 0

Joined: 27 Mar 2014
Posts: 9

PostPosted: Wed Apr 09, 2014 4:04 pm    Post subject: Reply with quote

mgr.inz.Player wrote:
which lua socket package you are using?

Original from luaforge. net or package provided by DarkByte (he uploaded two versions)

I have tried all 3 versions. Currently using the last one with 32 and 64bit support and I added that special piece of code to make it work. Do you have Skype or something you can add me on? So you can compile it for me.
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Wed Apr 09, 2014 4:12 pm    Post subject: Reply with quote

Maybe your AV/firewall blocked all traffic? Try disabling it and test again.
_________________
Back to top
View user's profile Send private message MSN Messenger
kennard11
How do I cheat?
Reputation: 0

Joined: 27 Mar 2014
Posts: 9

PostPosted: Wed Apr 09, 2014 4:13 pm    Post subject: Reply with quote

mgr.inz.Player wrote:
Maybe your AV/firewall blocked all traffic? Try disabling it and test again.

I have already tried that, as I stated in the OP. Mind adding me on Skype: one-lf
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Wed Apr 09, 2014 4:21 pm    Post subject: Reply with quote

I meant: disable AV/firewall the hard way. (some AV/firewalls can not be simply disabled, you have to uninstall them).
_________________
Back to top
View user's profile Send private message MSN Messenger
kennard11
How do I cheat?
Reputation: 0

Joined: 27 Mar 2014
Posts: 9

PostPosted: Wed Apr 09, 2014 4:27 pm    Post subject: Reply with quote

mgr.inz.Player wrote:
I meant: disable AV/firewall the hard way. (some AV/firewalls can not be simply disabled, you have to uninstall them).

I know, I tried that. But can you add me on Skype or not? Skype: one-lf
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Wed Apr 09, 2014 4:28 pm    Post subject: Reply with quote

don't have skype. I will send you created EXE soon.
_________________
Back to top
View user's profile Send private message MSN Messenger
kennard11
How do I cheat?
Reputation: 0

Joined: 27 Mar 2014
Posts: 9

PostPosted: Wed Apr 09, 2014 4:32 pm    Post subject: Reply with quote

mgr.inz.Player wrote:
don't have skype. I will send you created EXE soon.

Yeah but you dont have the URL and IP that should be in there. Is there any way I can contact you privately and send you that?
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Wed Apr 09, 2014 4:35 pm    Post subject: Reply with quote

That is not a problem, there will be URL edit box.
_________________
Back to top
View user's profile Send private message MSN Messenger
kennard11
How do I cheat?
Reputation: 0

Joined: 27 Mar 2014
Posts: 9

PostPosted: Wed Apr 09, 2014 4:38 pm    Post subject: Reply with quote

mgr.inz.Player wrote:
That is not a problem, there will be URL edit box.

It is, because I am selling this program and the URL is a users special subscription page... I have one customer at the moment, and now I cant compile his program. So the IP and the URL should be coded in the program and not change-able.
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Wed Apr 09, 2014 6:31 pm    Post subject: Reply with quote

In that case, I will post a link:
http://forum.cheatengine.org/viewtopic.php?p=5512293#5512293

and additional info:
- instructions in that thread are all correct.
- for developing/testing purposes, you have to extract/paste "clibs" and "lua" folders to the "My Cheat Tables" folder too

_________________
Back to top
View user's profile Send private message MSN Messenger
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