loadlib is nil! Why?

Posted by Madjack on Mon 18 Apr 2005 03:34 AM — 4 posts, 26,672 views.

Ukraine #0
I'am using latest MUSHClient version ( 3.65 ) under wine on FreeBSD 5.3. When i execute command: "/Note( loadlib )", nil printing! But when with this libraries of lua.dll and lualib.dll executing script with command line "wine lua.exe lua-loadlibtest.lua", lua interpreter prints this line: "function: 00137280". In file lua-loadlibtest.lua i typed this: "print( loadlib )".

Any suggestions???
Russia #1
That's because of the Sandbox. Go to File->Global Preferences->Lua tab. There's the code for the Sandbox, you need to find the line that sets loadlib to nil and either comment it out or delete it. Then restart Mushclient.
USA #2
You need to give loadlib something to load (do a search on loadlib and check out the post "Extending Lua... oh nevermind, here:
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=4915

That goes over using loadlib a few times (and tells you what different values mean).
Ukraine #3
Thanks!!!!