Login to Account Create an Account
IO library doesn't even exist
#1
Posted 15 October 2015 - 06:01
well i tried today and i can confirm that io.read and all the other functions doesn't work (attempt to call global io a nil value)
#2
Posted 15 October 2015 - 06:20
#3
Posted 15 October 2015 - 06:54
Will try that when I'm home. Really wanted to test if you can export spell delay/names for lib with that API. :/
And with that there is no more need to :/
#4
Posted 15 October 2015 - 08:10
Will try that when I'm home. Really wanted to test if you can export spell delay/names for lib with that API. :/
WTF?
#5
Posted 15 October 2015 - 08:25
WTF?
dk what he mean lol, using OnProcessSpell to write everytime they use spells ?? lolol
#6
Posted 15 October 2015 - 10:21
I have forgotten something important, except the IO lib issue you're having ATM.
Will update a bit later on.
#7
Posted 15 October 2015 - 10:22
I have forgotten something important, except the IO lib issue you're having ATM.
Will update a bit later on.
what's going on ?
#8
Posted 15 October 2015 - 10:42
so in the developper group, yesterday yinferno tried everything to see if IO library exist in the API, bh require.. changing name.. and such,
well i tried today and i can confirm that io.read and all the other functions doesn't work (attempt to call global io a nil value)
IO libary is stantard libary in Lua
It's eather preincluded so you just call it or you can find it on Lua's offical website
EDIT: Here
http://www.tutorials...lua_file_io.htm
geez.....
#9
Posted 15 October 2015 - 11:12
IO libary is stantard libary in Lua
It's eather preincluded so you just call it or you can find it on Lua's offical website
EDIT: Here
http://www.tutorials...lua_file_io.htm
geez.....
dude its not included.. now it is after GoS latest update.
#10
Posted 15 October 2015 - 02:02
So this code woudn't work in GoS?dude its not included.. now it is after GoS latest update.
print("Hello World!") file = io.open("test.txt","r"); io.output(file); io.write("This is test"); io.close();This won't work only if GoS uses some kind of sandbox or smtg?
#11
Posted 15 October 2015 - 02:08
So this code woudn't work in GoS?
print("Hello World!") file = io.open("test.txt","r"); io.output(file); io.write("This is test"); io.close();This won't work only if GoS uses some kind of sandbox or smtg?
GoS lua engine have only some functions, not all lua functions that's why.. but low after the latest update that code will work.
#12
Posted 15 October 2015 - 03:41
check for file working now
function fileExists(name) local f = io.open(name, "r") if f ~= nil then io.close(f) return true else return false end end
Now u dont need to download bushes and walls hash files by mappos, new files will be generated
ALSO you can make files per Script to save the settings.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users