Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Function to clear the screen and pause
- local function clearScreen()
- term.clear()
- term.setCursorPos(1, 1)
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.white)
- end
- -- Function to print the sad face with a delay
- local function printSadFace()
- term.setBackgroundColor(colors.blue)
- term.setTextColor(colors.white)
- term.clear()
- -- Sad face with delay
- print(" ___")
- sleep(0.2)
- print("__ / _/")
- sleep(0.2)
- print("\\/ |/ ")
- sleep(0.2)
- print("__ |\\_ ")
- sleep(0.2)
- print("\\/ \\__\\")
- sleep(0.5)
- end
- -- Function to display the full BSOD message
- local function printBSODMessage()
- term.clear()
- term.setCursorPos(1, 1)
- term.setBackgroundColor(colors.blue)
- term.setTextColor(colors.white)
- term.clear()
- -- Display the sad face again (after initial delay)
- print(" ___")
- print("__ / _/")
- print("\\/ |/ ")
- print("__ |\\_ ")
- print("\\/ \\__\\")
- -- Display the error message
- print("")
- print("Your PC ran into a problem and needs to restart.")
- print("We're just collecting some error info, and then we'll restart for you.")
- print("")
- print("99% complete")
- -- Additional information
- print("")
- print("For more information about this issue and possible fixes, visit:")
- print("https://www.windows.com/stopcode")
- print("")
- print("If you call a support person, give them this info:")
- print("Stop code: CRITICAL_PROCESS_DIED")
- -- Delay before reboot
- sleep(7)
- -- Reboot the ComputerCraft computer
- os.reboot()
- end
- -- Simulate the fade-in effect
- clearScreen()
- sleep(1) -- Black screen delay
- term.setBackgroundColor(colors.blue)
- term.clear()
- sleep(1) -- Transition to blue screen delay
- printSadFace()
- printBSODMessage()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement