Jump to content

Welcome to Gaming On Steroids Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account
Photo

IO library doesn't even exist


  • Please log in to reply
11 replies to this topic

#1
Deftsu

Deftsu

    donthackourgames

  • Ex-Core Dev
  • PipPipPip
  • 4,812 posts
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)
  • 0

#2
Lelouch

Lelouch

    ?

  • Members
  • 464 posts
Will try that when I'm home. Really wanted to test if you can export spell delay/names for lib with that API. :/
  • 0

#3
ButterSmooth

ButterSmooth

    Advanced Member

  • Members
  • 710 posts

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 :/


  • 0

#4
ilovesona

ilovesona

    Sona's wife

  • Contributor
  • 1,096 posts

Will try that when I'm home. Really wanted to test if you can export spell delay/names for lib with that API. :/

WTF? :huh:


  • 0

#5
Deftsu

Deftsu

    donthackourgames

  • Ex-Core Dev
  • PipPipPip
  • 4,812 posts

WTF? :huh:


dk what he mean lol, using OnProcessSpell to write everytime they use spells ?? lolol
  • 0

#6
Feretorix

Feretorix

    Administrator

  • Administrators
  • 3,030 posts

I have forgotten something important, except the IO lib issue you're having ATM.

 

Will update a bit later on.


  • 0

#7
Deftsu

Deftsu

    donthackourgames

  • Ex-Core Dev
  • PipPipPip
  • 4,812 posts

I have forgotten something important, except the IO lib issue you're having ATM.
 
Will update a bit later on.


what's going on ? :D
  • 0

#8
TheFoxy

TheFoxy

    Advanced Member

  • Donator
  • 116 posts
  • LocationRight Here :P

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 :fappa:

 

EDIT: Here
http://www.tutorials...lua_file_io.htm

 

geez.....


  • 0

#9
Deftsu

Deftsu

    donthackourgames

  • Ex-Core Dev
  • PipPipPip
  • 4,812 posts

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 :fappa:
 
EDIT: Here
http://www.tutorials...lua_file_io.htm
 
geez.....


dude its not included.. now it is after GoS latest update.
  • 0

#10
TheFoxy

TheFoxy

    Advanced Member

  • Donator
  • 116 posts
  • LocationRight Here :P

dude its not included.. now it is after GoS latest update.

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?
  • 0

#11
Deftsu

Deftsu

    donthackourgames

  • Ex-Core Dev
  • PipPipPip
  • 4,812 posts

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.
  • 0

#12
Maxxxel

Maxxxel

    The One

  • Scripts Developer
  • 1,196 posts
  • LocationGuess the right City to win 10$

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users