Advertisement
DOGGYWOOF

BSOD

Aug 21st, 2024 (edited)
9
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. -- Function to clear the screen and pause
  2. local function clearScreen()
  3. term.clear()
  4. term.setCursorPos(1, 1)
  5. term.setBackgroundColor(colors.black)
  6. term.setTextColor(colors.white)
  7. end
  8.  
  9. -- Function to print the sad face with a delay
  10. local function printSadFace()
  11. term.setBackgroundColor(colors.blue)
  12. term.setTextColor(colors.white)
  13. term.clear()
  14.  
  15. -- Sad face with delay
  16. print(" ___")
  17. sleep(0.2)
  18. print("__ / _/")
  19. sleep(0.2)
  20. print("\\/ |/ ")
  21. sleep(0.2)
  22. print("__ |\\_ ")
  23. sleep(0.2)
  24. print("\\/ \\__\\")
  25. sleep(0.5)
  26. end
  27.  
  28. -- Function to display the full BSOD message
  29. local function printBSODMessage()
  30. term.clear()
  31. term.setCursorPos(1, 1)
  32. term.setBackgroundColor(colors.blue)
  33. term.setTextColor(colors.white)
  34. term.clear()
  35.  
  36. -- Display the sad face again (after initial delay)
  37. print(" ___")
  38. print("__ / _/")
  39. print("\\/ |/ ")
  40. print("__ |\\_ ")
  41. print("\\/ \\__\\")
  42.  
  43. -- Display the error message
  44. print("")
  45. print("Your PC ran into a problem and needs to restart.")
  46. print("We're just collecting some error info, and then we'll restart for you.")
  47. print("")
  48. print("99% complete")
  49.  
  50. -- Additional information
  51. print("")
  52. print("For more information about this issue and possible fixes, visit:")
  53. print("https://www.windows.com/stopcode")
  54. print("")
  55. print("If you call a support person, give them this info:")
  56. print("Stop code: CRITICAL_PROCESS_DIED")
  57.  
  58. -- Delay before reboot
  59. sleep(7)
  60.  
  61. -- Reboot the ComputerCraft computer
  62. os.reboot()
  63. end
  64.  
  65. -- Simulate the fade-in effect
  66. clearScreen()
  67. sleep(1) -- Black screen delay
  68. term.setBackgroundColor(colors.blue)
  69. term.clear()
  70. sleep(1) -- Transition to blue screen delay
  71.  
  72. printSadFace()
  73. printBSODMessage()
  74.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement