Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ Big Reactor Monitor Program Written By: 0_Mr_Redstone_0 AKA MoJoCreatior
- This code is considered free for use both commercial and private and can be redistributed so long as it meats following criteria:
- 1: 0_Mr_Redstone_0 and MoJoCreatior are credited as the original authors
- 2: You do not try to take full ownership of the code/written program
- 3: If you modify the code for re-upload you must provide it under the same conditions. as in- Open Source, and credit me as original author]]
- program = "Big Reactor Monitor Setup V:1.3"
- --functions
- function intro()
- term.setBackgroundColour(colors.white)
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColour(colors.green)
- print(program.." -Written By: 0_Mr_Redstone_0 AKA MoJoCreatior")
- print(" ")
- end
- function setup(question,file,binary,subText)
- term.setBackgroundColour(colors.white)
- term.clear()
- intro()
- term.setTextColour(colors.gray)
- print(question)
- if binary == 1 then
- term.setTextColour(colors.lightGray)
- print(subText)
- end
- term.setTextColour(colors.cyan)
- fs.delete("config/"..file)
- cfg = fs.open("config/"..file,"w")
- answer = io.read()
- cfg.write(answer)
- cfg.close()
- end
- function update()
- fs.delete("program")
- shell.run("pastebin get rFmYL6uc program")
- fs.delete("startup")
- boot = 'shell.run("program")'
- startup = fs.open("startup","w")
- startup.write(boot)
- startup.close()
- end
- --Setup
- intro()
- print(program.." Configuration and Installation Walkthrough")
- term.setTextColour(colors.red)
- print("Please Label this computer to prevent data loss.")
- sleep(2)
- setup("What do you want the Title to be?","title",1,"Titles will appear off screen if made too long")
- setup("Should the Monitor Refresh be fast or slow?","rate",1," [f/s]\n fast is every 1 second\n slow is every 5 seconds")
- setup("Would you like Dynamic Text Scaling to be turned on?","dynamic",1,"[y/n]\n Makes monitors update as you build them.\n restart computer to update Text scaling.")
- if not fs.exists("program") then update() else
- setup("Do you want to Update?","update",1," [y/n]")
- end
- if answer == "y" then update() end
- intro()
- print("Auto Restart in 3 seconds!") sleep(1)
- print("Auto Restart in 2 seconds!") sleep(1)
- print("Auto Restart in 1 seconds!") sleep(1)
- print("Restarting...")
- os.reboot()--[[ Big Reactor Monitor Program Written By: 0_Mr_Redstone_0 AKA MoJoCreatior
- This code is considered free for use both commercial and private and can be redistributed so long as it meats following criteria:
- 1: 0_Mr_Redstone_0 and MoJoCreatior are credited as the original authors
- 2: You do not try to take full ownership of the code/written program
- 3: If you modify the code for re-upload you must provide it under the same conditions. as in- Open Source, and credit me as original author]]
- program = "Big Reactor Monitor Setup V:1.3"
- --functions
- function intro()
- term.setBackgroundColour(colors.white)
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColour(colors.green)
- print(program.." -Written By: 0_Mr_Redstone_0 AKA MoJoCreatior")
- print(" ")
- end
- function setup(question,file,binary,subText)
- term.setBackgroundColour(colors.white)
- term.clear()
- intro()
- term.setTextColour(colors.gray)
- print(question)
- if binary == 1 then
- term.setTextColour(colors.lightGray)
- print(subText)
- end
- term.setTextColour(colors.cyan)
- fs.delete("config/"..file)
- cfg = fs.open("config/"..file,"w")
- cfg.write(io.read())
- cfg.close()
- end
- function update()
- fs.delete("program")
- shell.run("pastebin get rFmYL6uc program")
- fs.delete("startup")
- boot = 'shell.run("program")'
- startup = fs.open("startup","w")
- startup.write(boot)
- startup.close()
- end
- --Setup
- intro()
- print(program.." Configuration and Installation Walkthrough")
- term.setTextColour(colors.red)
- print("Please Label this computer to prevent data loss.")
- sleep(2)
- setup("What do you want the Title to be?","title",1,"Titles will appear off screen if made too long")
- setup("Should the Monitor Refresh be fast or slow?","rate",1," [f/s]\n fast is every 1 second\n slow is every 5 seconds")
- if not fs.exists("program") then update() else
- setup("Do you want to Update?","update",1," [y/n]\n note: if this is first install then you need to update")
- end
- if answer == y then update() end
- setup("Would you like Dynamic Text Scaling to be turned on?","dynamic",1,"[y/n]\n Makes monitors update as you build them.\n restart computer to update Text scaling.")
- intro()
- print("Auto Restart in 3 seconds!") sleep(1)
- print("Auto Restart in 2 seconds!") sleep(1)
- print("Auto Restart in 1 seconds!") sleep(1)
- print("Restarting...")
- os.reboot()
Add Comment
Please, Sign In to add comment