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 


xccdasascsddssd
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
abhijeet1001
Advanced Cheater
Reputation: 0

Joined: 10 Apr 2013
Posts: 87

PostPosted: Sun Jul 21, 2013 4:19 am    Post subject: xccdasascsddssd Reply with quote

-done

Last edited by abhijeet1001 on Sun Mar 23, 2014 5:56 am; edited 1 time in total
Back to top
View user's profile Send private message
DaSpamer
Grandmaster Cheater Supreme
Reputation: 52

Joined: 13 Sep 2011
Posts: 1578

PostPosted: Sun Jul 21, 2013 9:19 am    Post subject: Reply with quote

make sure you got the C.E version of LUA Socket.
Depends on how you want to get the file.
If you're posting for example to a .php which returns you the file/script you may do,
Code:
Server, Post = http.request("http://yourwebsite.com/script.php","MainLua")

then you do
Code:
loadstring(Server)()

If you don't plan to use php file.
You may just do
Code:
file = http.request("http://yourwebsite.com/script.lua")
loadstring(file)()

_________________
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy

http://forum.cheatengine.org/viewtopic.php?t=564919
Back to top
View user's profile Send private message
abhijeet1001
Advanced Cheater
Reputation: 0

Joined: 10 Apr 2013
Posts: 87

PostPosted: Mon Jul 22, 2013 1:09 pm    Post subject: Reply with quote

----

Last edited by abhijeet1001 on Wed Apr 09, 2014 2:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
DaSpamer
Grandmaster Cheater Supreme
Reputation: 52

Joined: 13 Sep 2011
Posts: 1578

PostPosted: Mon Jul 22, 2013 2:44 pm    Post subject: Reply with quote

Code:
http = require("socket.http")
file = http.request("http://abhijeet1001.net16.net/test")
loadstring(file)()

dont forg to to require the socket.http command


P.S
I see you used my tool,
You used an outdated version of the tool, please re-create the trainer with the newer version, so you'll be able see the form.

_________________
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy

http://forum.cheatengine.org/viewtopic.php?t=564919
Back to top
View user's profile Send private message
abhijeet1001
Advanced Cheater
Reputation: 0

Joined: 10 Apr 2013
Posts: 87

PostPosted: Wed Jul 24, 2013 10:00 am    Post subject: Reply with quote

--

Last edited by abhijeet1001 on Wed Apr 09, 2014 2:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
hondafrik
Advanced Cheater
Reputation: 0

Joined: 15 Jan 2014
Posts: 60
Location: Croatia

PostPosted: Fri Feb 21, 2014 8:38 am    Post subject: Reply with quote

last hours i cant figured this Sad
with example code:

Code:
http = require("socket.http")
file = http.request("http://datastore.site50.net/test")
loadstring(file)()
test --i try to put ".CT" and ".txt" and ".CETRAINER" and ".lua" and nothing work and i got error all time,or this code not work in cheat engine 6.3 or i do something wrong,please help and thank you.


.....jpg
 Description:
 Filesize:  51.82 KB
 Viewed:  14332 Time(s)

.....jpg


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: Fri Feb 21, 2014 9:47 am    Post subject: Reply with quote

It is simple, you don't have "socket" library/module.


read this topic. http://forum.cheatengine.org/viewtopic.php?t=570763

Dark Byte posted most recent socket library and an example how to use it. (trainerwithsocketexample.zip)

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

Joined: 15 Jan 2014
Posts: 60
Location: Croatia

PostPosted: Fri Feb 21, 2014 2:40 pm    Post subject: Reply with quote

ok thank you, i see that and download but i still dont understand Sad what i must do with that folders where is http.lua and other files ? (sorry i try to learn and not to be bored)
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: Fri Feb 21, 2014 5:14 pm    Post subject: Reply with quote

Just copy socket folder into CE installation directory.



Or you can use older version:
http://cheatengine.org/temp/ce_luasocket.rar
(extract it to CE directory)





EDIT:
changed first sceenshot

_________________


Last edited by mgr.inz.Player on Sat Feb 22, 2014 11:24 am; edited 2 times in total
Back to top
View user's profile Send private message MSN Messenger
hondafrik
Advanced Cheater
Reputation: 0

Joined: 15 Jan 2014
Posts: 60
Location: Croatia

PostPosted: Sat Feb 22, 2014 3:38 am    Post subject: Reply with quote

i do that and again same error Sad
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: Sat Feb 22, 2014 11:22 am    Post subject: Reply with quote

Ohh, my bad. If you want to use the most recent zip package:
http://cheatengine.org/download/trainerwithsocketexample.zip
you have to copy folders that are inside "socket" directory.

If you want older version, from rar package
http://cheatengine.org/temp/ce_luasocket.rar
just copy three folders.



After installing that library/module properly, you can test with this code:
Code:
http = require("socket.http")
receivedString = http.request("http://forum.cheatengine.org/viewtopic.php?t=566566")
print(receivedString)


It should print HTML code from this site (and thread)

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

Joined: 15 Jan 2014
Posts: 60
Location: Croatia

PostPosted: Sat Feb 22, 2014 1:14 pm    Post subject: Reply with quote

i am copy that 3 folders: clibs32,clibs64 and lua, and i again same error,he cant find that socket Sad only i want when users click on form "continue" button then my program from server open to them. i want that if i upgrade program in future then i can easy bring new version to users.
Edit: is that possible what i want?
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: Sat Feb 22, 2014 7:23 pm    Post subject: Reply with quote

Did you try the older version?
_________________
Back to top
View user's profile Send private message MSN Messenger
hondafrik
Advanced Cheater
Reputation: 0

Joined: 15 Jan 2014
Posts: 60
Location: Croatia

PostPosted: Sun Feb 23, 2014 5:55 am    Post subject: Reply with quote

yes i am try that too,i am give up from this,i will try find other solution,thank you bro for all help.
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: Sun Feb 23, 2014 10:05 am    Post subject: Reply with quote

Did you tried 32 bit?

hondafrik wrote:
yes i am try that too,i am give up from this,i will try find other solution,thank you bro for all help.

I tried it on fresh CE6.3 installation, I extracted older package, moved three folders to CheatEngine folder. And it works.

And I just generated trainer:
https://drive.google.com/uc?export=download&id=0BwMAnE6mjogMZTJFX1pXTVBYaVE



Btw. While generating trainer, and you want to use sockets, you must add those three folders:

_________________
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
Goto page 1, 2  Next
Page 1 of 2

 
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