• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

io.open error

4220niller

XHTML / CSS Coder
Joined
Jul 4, 2007
Messages
127
Reaction score
1
Location
Denmark, Korsør
hey guys, im getting this error when im using Forgotten Server: data/npc/scripts/myscript.lua:59: attempt to index global 'io' (a nil value)

i cant show you the script since its top secret :D

place where i get the error:
Code:
if io.open("data/SOMEDIR/"..SOMEVAR..".txt", "r") ~= nil then

its like there is no I/O Library in Forgotten, if this is the case can someone then compile it with I/O LUA Library? cuz i really need these functions.

@Forgotten Developers
Can you add it to the next realease of Forgotten Server?
 
Last time I tried to add the LUA I/O Libs it ended up like this:
Code:
talaturen@c-f3f472d5:~/forgottenserver/binary$ ./TheForgottenServer
The Forgotten Server - Version 0.2.3.
A server made by Talaturen, Kiper, Kornholijo, Ruly and KingKomic.

>> Loading config
>> Loading RSA key
>> Loading bans
>> Loading vocations
>> Loading commands
>> Loading items
>> Loading script systems
PANIC: unprotected error in call to Lua API (no calling environment)
Segmentation fault

If you would like to try to add it to see if it works for you then add:
luaopen_io(m_luaState);
below:
luaopen_math(m_luaState);
 
well i cant compile cuz im using windows vista, but ill try to get someone to help me :) but can you try to find a way to compile it, maybe look at Evolutions? cuz i really need this, and i love TFS because of the onLogin and onLogout wich is a part of one of my other scripts.

thanks
 

Similar threads

Back
Top