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 Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Sun Feb 23, 2014 11:16 am    Post subject: Reply with quote

Read the topic where I posted the socket package

http://forum.cheatengine.org/viewtopic.php?p=5512293#5512293

http://cheatengine.org/temp/celuasocket.zip

you most likely forgot to execute
Code:

if cheatEngineIs64Bit() then
  package.cpath=package.cpath..[[;.\clibs64\?.dll]]
else   
  package.cpath=package.cpath..[[;.\clibs32\?.dll]]
end

_________________
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
hondafrik
Advanced Cheater
Reputation: 0

Joined: 15 Jan 2014
Posts: 60
Location: Croatia

PostPosted: Sun Feb 23, 2014 12:31 pm    Post subject: Reply with quote

I dont know what to do,here is my test code and on my page is simple form and i cant turn on that form from website. and btw cheat engine is enabled in my firewall,i have windows 7 64 bit. if somebody can open that form from my site please tell me how,thank you
Code:
if cheatEngineIs64Bit() then
  package.cpath=package.cpath..[[;.\clibs64\?.dll]]
else
  package.cpath=package.cpath..[[;.\clibs32\?.dll]]
end
CEToLua = createForm()
   CEToLua.height = 100
   CEToLua.width = 240
   CEToLua.caption = "Test"
   CEToLua.centerScreen()
   CEToLuaButton = createButton(CEToLua)
   CEToLuaButton.caption = "Continue"
   CEToLuaButton.height = 20
   CEToLuaButton.width = 60
   CEToLuaButton.top = 31
   CEToLuaButton.left = 100
   CEToLuaButton.onClick = function ()
                        http = require("socket.http")
file = http.request("http://datastore.site50.net/test.CETRAINER")
loadstring(file)()
end
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 12:55 pm    Post subject: This post has 1 review(s) Reply with quote

You are doing it wrong.

this is exactly what you are doing:
Code:
something=[[
<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="16">
  <CheatEntries/>
  <UserdefinedSymbols/>
  <LuaScript>CEToLua = createForm()
   CEToLua.height = 100
   CEToLua.width = 240
   CEToLua.caption = "Test"
   CEToLua.centerScreen()
   CEToLuaLabel = createLabel(CEToLua)
   CEToLuaLabel.width = 174
   CEToLuaLabel.left = 50
   CEToLuaLabel.top = 40
   CEToLuaLabel.caption = "Hello"
</LuaScript>
</CheatTable>
]]

loadstring(something)()



The proper way will be:
Code:
something=[[
CEToLua = createForm()
   CEToLua.height = 100
   CEToLua.width = 240
   CEToLua.caption = "Test"
   CEToLua.centerScreen()
   CEToLuaLabel = createLabel(CEToLua)
   CEToLuaLabel.width = 174
   CEToLuaLabel.left = 50
   CEToLuaLabel.top = 40
   CEToLuaLabel.caption = "Hello"
]]

loadstring(something)()



The other way is:
1) save it to tmp folder
2) then use loadTable() function.


Edit:
try this

1) on your www server use file that contains only this:
Code:
CEToLua = createForm()
   CEToLua.height = 100
   CEToLua.width = 240
   CEToLua.caption = "Test"
   CEToLua.centerScreen()
   CEToLuaLabel = createLabel(CEToLua)
   CEToLuaLabel.width = 174
   CEToLuaLabel.left = 50
   CEToLuaLabel.top = 40
   CEToLuaLabel.caption = "Hello"




2) in cheatengine use only this script (old socket modules):
Code:
http = require("socket.http")
thing = http.request("http://datastore.site50.net/yournewfile")
loadstring(thing)()



or this (if you use new socket)
Code:
if cheatEngineIs64Bit() then
  package.cpath=package.cpath..[[;.\clibs64\?.dll]]
else
  package.cpath=package.cpath..[[;.\clibs32\?.dll]]
end
http = require("socket.http")
thing = http.request("http://datastore.site50.net/yournewfile")
loadstring(thing)()

_________________
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 2:09 pm    Post subject: Reply with quote

if i put this like cetrainer on page:
Code:
CEToLua = createForm()
   CEToLua.height = 100
   CEToLua.width = 240
   CEToLua.caption = "Test"
   CEToLua.centerScreen()
   CEToLuaLabel = createLabel(CEToLua)
   CEToLuaLabel.width = 174
   CEToLuaLabel.left = 50
   CEToLuaLabel.top = 40
   CEToLuaLabel.caption = "Hello"

and this in cheat engine
Code:
if cheatEngineIs64Bit() then
  package.cpath=package.cpath..[[;.\clibs64\?.dll]]
else
  package.cpath=package.cpath..[[;.\clibs32\?.dll]]
end
http = require("socket.http")
thing = http.request("http://datastore.site50.net/test")
loadstring(thing)()

and when i execute i got this error:



error.jpg
 Description:
 Filesize:  77.13 KB
 Viewed:  6838 Time(s)

error.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: Sun Feb 23, 2014 2:27 pm    Post subject: Reply with quote

http://datastore.site50.net/test

It's perfectly normal, because it doesn't exists.

paste this code:
Code:

url = 'https://dl.dropboxusercontent.com/sh/bva5eft6c1vwex6/W80We4jR0n/testfile'

http = require("socket.http")
thing = http.request(url)
loadstring(thing)()



also, look here:
https://dl.dropboxusercontent.com/sh/bva5eft6c1vwex6/W80We4jR0n/testfile


(I used my dropbox)

_________________
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 3:15 pm    Post subject: Reply with quote

Code:
http = require("socket.http")
thing = http.request('https://dl.dropboxusercontent.com/sh/bva5eft6c1vwex6/W80We4jR0n/testfile')
loadstring(thing)()

hm still not work and error message is "he cant find socket in cheat engine folder", this is strange,i am do what you tell me,now i think its problem in my cheat engine, but i am install new one today too and copy socket folders in CE installation folder like you told me.hmmm i must good think where i do mistake....
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 7:26 pm    Post subject: Reply with quote

Don't know why it doesn't work for you. I give up.

old socket works for me, Cheat Engine 6.3 (32-bit)

new socket works for me too, Cheat Engine 6.3 (32-bit) and (64-bit)
(of course with additional "package.cpath" lines)


You can also try unofficial CE build. Latest custom builds of CheatEngine:
https://drive.google.com/folderview?id=0BwMAnE6mjogMNXNjdHgxY1NqcEU&usp=sharing

But I do not recommend it. Because it is not even alpha or beta version. This is just not tested CE6.3+ with fixed bugs, new features, and many modifications, and of course new, not known, bugs.

_________________
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 Previous  1, 2
Page 2 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