Posted 06 April 2015 - 10:19 AM
Hello, I am writing an API to make creating OS's easier, but I ran into some caveats.
CYOS API
TESTOS
Error:
bios:367: [string "cyos"]:7: unexpected symbol
testos:3: attempt to index ? (a nil value)
CYOS API
-- Create Your Own OS by nomimg1
-- CYOS 1.0
local osEnv = ""
local osMOTD = "BLANK OS"
osType = function(ostype)
if ostype === "cmd" then osEnv = ostype
else if ostype === "gui" then osEnv = ostype
else print("Unknown OS Enviroment Type")
end
osStart = function()
if ostype = "gui" then print("GUI Os's are coming soon.")
if ostype = "cmd" then cyosi.cmdStart()
cmdStart = function()
--Start
term.clear()
term.setCursorPos(1, 1)
--
end
end
osMotd = function(motd)
osMOTD = motd
end
TESTOS
os.loadAPI("cyos")
cyos.osType("cmd")
cyos.osMotd("Test OS")
cyos.osStart()
Error:
bios:367: [string "cyos"]:7: unexpected symbol
testos:3: attempt to index ? (a nil value)