dsmes
February 24th, 2008, 04:50 PM
In G4 I used to prefix scripts with:
http = require("socket.http")and use this when calling a web page:
Page = socket.http.request(url)In G5 when I do this I get the following error in the Lua interactive console:
...ram Files\Promixis\Girder5\\luascript\compat-5.1.lua:169: module `socket.http' not found
stack traceback:
[C]: in function `error'
...ram Files\Promixis\Girder5\\luascript\compat-5.1.lua:169: in function <...ram Files\Promixis\Girder5\\luascript\compat-5.1.lua:160>
...ram Files\Promixis\Girder5\\luascript\compat-5.1.lua:191: in function `require'
[string "Doug2.gml:\Init Stuff\Startup Stuff Script"]:4: in main chunk
I've tried various other ways resolve this but can't help but think I'm doing something fundamentally wrong... but I don't know what. Any ideas???
http = require("socket.http")and use this when calling a web page:
Page = socket.http.request(url)In G5 when I do this I get the following error in the Lua interactive console:
...ram Files\Promixis\Girder5\\luascript\compat-5.1.lua:169: module `socket.http' not found
stack traceback:
[C]: in function `error'
...ram Files\Promixis\Girder5\\luascript\compat-5.1.lua:169: in function <...ram Files\Promixis\Girder5\\luascript\compat-5.1.lua:160>
...ram Files\Promixis\Girder5\\luascript\compat-5.1.lua:191: in function `require'
[string "Doug2.gml:\Init Stuff\Startup Stuff Script"]:4: in main chunk
I've tried various other ways resolve this but can't help but think I'm doing something fundamentally wrong... but I don't know what. Any ideas???