Started by TheTinyDeskEngineer, May 16, 2021, 01:32 pm
local file = fs.open("/goggle/goggleHost.lua", "r")local text = file.readAll()if string.find(text, "local file =") ~= nil then print("success")else print("nil")endfile.close()
Quote from: TheTinyDeskEngineer on May 16, 2021, 11:04 pmI ran the API to make sure I'm not looking in the wrong file, it didn't give an error.
Quote from: TheTinyDeskEngineer on May 16, 2021, 11:04 pmI also have some lines of code in the API's startup function that make sure that the different important files exist, and if not, to create those files.
Quote from: TheTinyDeskEngineer on May 16, 2021, 11:07 pmI renamed the API to "hostAPI.lua" but the error hasn't changed, so it's absolutely the main program and not the API giving the error.
Quote from: TheTinyDeskEngineer on May 17, 2021, 02:26 amI'm trying to print out the variables "mainpath" and "filefile" for debugging purposes, but neither doing it as part of the startup function or as part of the goggleHost program after the startup function is showing anything.
Quote from: TheTinyDeskEngineer on May 17, 2021, 02:33 am...and now I add the printing to the end of the API code, and now running it causes the error despite the error refrencing a line which is in a function which isn't called.