This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
daman4567's profile picture

loadAPI function always returns error message file not found

Started by daman4567, 23 August 2013 - 11:49 PM
daman4567 #1
Posted 24 August 2013 - 01:49 AM
I have been trying to write my own apis and when I put it into the apis folder it returns an error (I made sure to fully exit and restart minecraft to give it a chance to load it up), so i decided to load it manually. I have tried various locations on my computer with no success, each time i use loadapi it gives me file not found. just as i wrote this i thought it might be that lua deals with cross-platform file paths differently than java (eg. lua using the specific path syntax of the system instead of java's general syntax). Is this the problem, or is it something else?
Lyqyd #2
Posted 24 August 2013 - 12:48 PM
Split into new topic.

Where exactly have you tried putting the file?
daman4567 #3
Posted 16 September 2013 - 03:10 PM
I have tried putting it into the apis folder in the computer craft folder and starting minecraft new. I also tried placing it arbitrarily in my computer and using the full path to reference it.
DarkEspeon #4
Posted 16 September 2013 - 04:44 PM
You can't use a full path, the file has to be in the %APPDATA%/.minecraft/saves/<WorldNameHere>/computer/<computerid>, or wherever the map saves to. You can't just have it in a random place on your computer.