EDIT: I mean the location of it in the ComputerCraft mods folder, by the way :)/>
This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
[Question]Where is the fs api?
Started by digpoe, 15 December 2012 - 08:35 AMPosted 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 :)/>
EDIT: I mean the location of it in the ComputerCraft mods folder, by the way :)/>
Edited on 15 December 2012 - 08:44 AM
Posted 15 December 2012 - 09:42 AM
All the default APIs come preloaded and are unable to be unloaded.
Posted 15 December 2012 - 09:44 AM
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…All the default APIs come preloaded and are unable to be unloaded.
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/
lua apis are located in:
minecraft/mods/computercraft/lua/rom/apis/
Posted 15 December 2012 - 09:54 AM
I've looked there, but I can't seem to find a file named "fs" in there :(/>the fs api is hardcoded into computercraft
lua apis are located in:
minecraft/mods/computercraft/lua/rom/apis/
Posted 15 December 2012 - 09:58 AM
I've looked there, but I can't seem to find a file named "fs" in there :(/>
ie you cant edit it wthout decompiling computercraft >_>the fs api is hardcoded into computercraft
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.
You're only option is to overwrite it. Look down a couple post about read only files for an example.
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.
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.
Posted 15 December 2012 - 10:06 AM
and is it really that hard to read the manual?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.
also, you can add any changes to the fs api in bios.lua
just dont replace readLine because it already exists c_c