Advertisement
DOGGYWOOF

Untitled

Jun 27th, 2024 (edited)
9
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.93 KB | None | 0 0
  1. -- ComputerCraft BSOD Program
  2.  
  3. -- Function to simulate typing with a delay
  4. function typewrite(text, delay)
  5. for i = 1, #text do
  6. write(string.sub(text, i, i))
  7. sleep(delay)
  8. end
  9. end
  10.  
  11. -- Function to display the BSOD screen
  12. function showBSOD()
  13. -- Set background color to blue
  14. term.setBackgroundColor(colors.blue)
  15. term.clear()
  16. term.setCursorPos(1, 1)
  17. term.setTextColor(colors.white)
  18.  
  19. -- Title
  20. typewrite("A problem has been detected and Windows has been shut down\n", 0.01)
  21. typewrite("to prevent damage to your computer.", 0.01)
  22. sleep(0.5)
  23.  
  24. -- Error Message
  25. print("\n")
  26. typewrite("The problem seems to be caused by the following file: ", 0.01)
  27. typewrite("win32k.sys", 0.03)
  28. print("\n")
  29.  
  30. typewrite("PAGE_FAULT_IN_NONPAGED_AREA", 0.01)
  31. sleep(0.2)
  32. print("\n")
  33.  
  34. typewrite("If this is the first time you've seen this stop error screen,\n", 0.01)
  35. typewrite("restart your computer. If this screen appears again, follow\n", 0.01)
  36. typewrite("these steps:", 0.01)
  37. print("\n")
  38.  
  39. typewrite("Check to make sure any new hardware or software is properly installed.\n", 0.01)
  40. typewrite("If this is a new installation, ask your hardware or software\n", 0.01)
  41. typewrite("manufacturer for any Windows updates you might need.", 0.01)
  42. print("\n")
  43.  
  44. typewrite("If problems continue, disable or remove any newly installed hardware\n", 0.01)
  45. typewrite("or software. Disable BIOS memory options such as caching or shadowing.\n", 0.01)
  46. typewrite("If you need to use Safe Mode to remove or disable components, restart\n", 0.01)
  47. typewrite("your computer, press F8 to select Advanced Startup Options, and then\n", 0.01)
  48. typewrite("select Safe Mode.", 0.01)
  49. print("\n")
  50.  
  51. -- Technical Information
  52. typewrite("Technical information:\n", 0.01)
  53. typewrite("*** STOP: 0x00000050 (0xE27E5E98, 0x00000000, 0xF75F5F9A, 0x00000002)\n", 0.03)
  54. typewrite("*** win32k.sys - Address F75F5F9A base at F75F0000, DateStamp 3d6dd67c\n", 0.03)
  55.  
  56. print("\n")
  57. sleep(0.2)
  58.  
  59. -- Collecting Data
  60. typewrite("Collecting data for crash dump ...\n", 0.01)
  61. sleep(0.2)
  62. typewrite("Initializing disk for crash dump ...\n", 0.01)
  63. sleep(0.2)
  64. typewrite("Beginning dump of physical memory ...\n", 0.01)
  65. sleep(0.2)
  66. typewrite("Dumping physical memory to disk: 0", 0.01)
  67.  
  68. -- Simulate memory dump progress
  69. for i = 1, 100, 5 do
  70. write(string.format("%2d", i))
  71. sleep(0.05)
  72. write("%")
  73. if i ~= 100 then
  74. write("\b\b\b\b")
  75. end
  76. end
  77. print("%\n")
  78.  
  79. typewrite("Physical memory dump complete.\n", 0.01)
  80. sleep(0.2)
  81. typewrite("Contact your system administrator or technical support group for\n", 0.01)
  82. typewrite("further assistance.", 0.01)
  83. end
  84.  
  85. -- Start the BSOD program
  86. showBSOD()
  87.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement