Jump to content




[Question]Where is the fs api?


  • You cannot reply to this topic
8 replies to this topic

#1 digpoe

  • Members
  • 92 posts

Posted 15 December 2012 - 09:35 AM

I would like to know where the fs api is, if it is accessible. If it's not, then it would be a bad thing for me :(
EDIT: I mean the location of it in the ComputerCraft mods folder, by the way :)

Edited by digpoe, 15 December 2012 - 09:44 AM.


#2 zekesonxx

  • Signature Abuser
  • 263 posts
  • LocationWhere you aren't

Posted 15 December 2012 - 09:42 AM

All the default APIs come preloaded and are unable to be unloaded.

#3 digpoe

  • Members
  • 92 posts

Posted 15 December 2012 - 09:44 AM

View Postzekesonxx, on 15 December 2012 - 09:42 AM, said:

All the default APIs come preloaded and are unable to be unloaded.
I didn't mean that, I meant where is the fs api in the ComputerCraft MODS folder. I should edit the main post, so people don't get that mixed up...

#4 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 15 December 2012 - 09:53 AM

the fs api is hardcoded into computercraft

lua apis are located in:
minecraft/mods/computercraft/lua/rom/apis/

#5 digpoe

  • Members
  • 92 posts

Posted 15 December 2012 - 09:54 AM

View PostPixelToast, on 15 December 2012 - 09:53 AM, said:

the fs api is hardcoded into computercraft

lua apis are located in:
minecraft/mods/computercraft/lua/rom/apis/
I've looked there, but I can't seem to find a file named "fs" in there :(

#6 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 15 December 2012 - 09:58 AM

View Postdigpoe, on 15 December 2012 - 09:54 AM, said:

I've looked there, but I can't seem to find a file named "fs" in there :(

View PostPixelToast, on 15 December 2012 - 09:53 AM, said:

the fs api is hardcoded into computercraft
ie you cant edit it wthout decompiling computercraft >_>

#7 Luanub

    Lua Nub

  • Members
  • 1,135 posts
  • LocationPortland OR

Posted 15 December 2012 - 09:58 AM

Thats because its hardcoded in Java as Pixel stated.

You're only option is to overwrite it. Look down a couple post about read only files for an example.

#8 digpoe

  • Members
  • 92 posts

Posted 15 December 2012 - 10:01 AM

Daaarn.


Well, I'm going to need to start coding a readLine(linenum) function.. Unless if any of you know of a function that does somthing like that? Cause' I was messing about looking in the programs in the rom/programs folder and I found somthing.. I think it was "fs.readLine()" or somthing similar.
I couldn't get the help about io, if it was actually io.readLine(), because the "help io" command just links me to lua.org, which I can't be bothered to read at the moment.

#9 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 15 December 2012 - 10:06 AM

View Postdigpoe, on 15 December 2012 - 10:01 AM, said:

Daaarn.


Well, I'm going to need to start coding a readLine(linenum) function.. Unless if any of you know of a function that does somthing like that? Cause' I was messing about looking in the programs in the rom/programs folder and I found somthing.. I think it was "fs.readLine()" or somthing similar.
I couldn't get the help about io, if it was actually io.readLine(), because the "help io" command just links me to lua.org, which I can't be bothered to read at the moment.
and is it really that hard to read the manual?
also, you can add any changes to the fs api in bios.lua
just dont replace readLine because it already exists c_c





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users