Posted 10 March 2013 - 10:25 AM
Hello, as in the title, this new OS is not finished, the main reason I even released it was to basically get dibs on the name, feel free to try out the beta, but still its not finished…
More info will be added in the future. Sorry guys.
Spoiler
Sadly, I suck at giving tutorials, so if you want to know how to use this code… then please look up a youtube video on how to.
function start()
term.clear()
term.setCursorPos(1,1)
term.setTextColor(colors.yellow)
print("DyntionOS")
term.setTextColor(colors.lightBlue)
textutils.slowPrint("DyntionOS, making things easy.")
term.setTextColor(colors.white)
setup()
end
function login()
term.setTextColor(colors.magenta)
term.write("Password to account: ")
term.setTextColor(colors.white)
local pass = read("*")
if pass == ("0000") then
UserSpongy()
elseif pass == ("000") then
UserBob()
else
term.setTextColor(colors.red)
print("Password failed")
sleep(2)
os.reboot()
end
end
function setup()
term.setTextColor(colors.lime)
print("Welcome to DynationOS setup program, today you will be setting up your SimpleOS!")
print("First, what is your name?: ")
term.setTextColor(colors.white)
local name = read()
file = fs.open("Account","w")
file.writeLine("local name = ("..name..")")
term.setTextColor(colors.lime)
print("Alright ",name,", what would you like your password to be?: ")
term.setTextColor(colors.white)
local pass = read()
file.writeLine("local pass = ("..pass..")")
term.setTextColor(colors.lime)
print("Alright ",name,", would you like to use rednet (yes or no): ")
term.setTextColor(colors.white)
local ans = read()
if ans == ("yes") then
term.setTextColor(colors.lime)
print("Alright where is your wireless modem located?: ")
term.setTextColor(colors.white)
local side = read()
rednet.open(side)
file.writeLine("local rednet = true")
term.setTextColor(colors.lime)
print("Well this is the end of the setup, goodbye!")
file.save()
file.close()
elseif ans == ("no") then
term.setTextColor(colors.lime)
print("Alright",name,", I will turn off rednet mode, NOTE: Call me Simple")
file.writeLine("local rednet = false")
print("Well this is the end of the setup, goodbye!")
sleep(1)
file.close()
start()
end
end
function UserSpongy()
term.setTextColor(colors.brown)
print("Please enter: help : if you need help")
while true do
term.setTextColor(colors.lime)
write("Command: ")
term.setTextColor(colors.white)
local cmd = read()
if cmd == ("help") then
term.setTextColor(colors.brown)
print("Commands are: ")
write("help :")
term.setTextColor(colors.lightBlue)
print("This is the help command")
term.setTextColor(colors.brown)
print("No more commands ATM")
end
if cmd == ("Music.add") then
term.setTextColor(colors.lightBlue)
write("What side is the new music disk on?: ")
term.setTextColor(colors.white)
local sidesong = read()
term.setTextColor(colors.blue)
textutils.slowPrint("..............................",0.8)
sleep(0.5)
textutils.slowPrint("Testing new song")
shell.run("dj","play ",side)
sleep(3)
shell.run("dj","stop")
print("Test Complete, if no sound then please retry")
print("If you heard sound then please enter the name (can be anything)")
write("Name: ")
term.setTextColor(colors.white)
local name = read()
file = fs.open("songs","w")
file.writeLine("local song = (",name,")")
file.close()
end
if cmd == ("exit") then
os.exit()
end
end
end
function UserBob()
print("MORE TO ADD LATER, Bob")
end
start()
sleep(0.5)
login()