remie92

Computer Racer Installer

Jul 22nd, 2025 (edited)
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.84 KB | None | 0 0
  1. commands = {
  2. "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/blankplane models/blankplane",
  3. "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/car models/car",
  4. "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/car2 models/car2",
  5. "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/car3 models/car3",
  6. "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/car4 models/car4",
  7. "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/car5 models/car5",
  8. "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/car6 models/car6",
  9. "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/checkpoint models/checkpoint",
  10. "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/checkpointPath models/checkpointPath",
  11. "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/numbers models/numbers",
  12. "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/path2 models/path2",
  13. "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/path3 models/path3",
  14. "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/path4 models/path4",
  15. "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/path5 models/path5",
  16. "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/plane models/plane",
  17. "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/shadow models/shadow",
  18. "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/smoke models/smoke",
  19. "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/Mountains.lua Mountains.lua",
  20. "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/Pine3D.lua Pine3D.lua",
  21. "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/betterblittle.lua betterblittle.lua",
  22. "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/bitmap.lua bitmap.lua",
  23. "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/bmpConverter.lua bmpConverter.lua",
  24. "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/objLoader.lua objLoader.lua",
  25. "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/startup.lua startup.lua",
  26. }
  27.  
  28.  
  29. currCommand=""
  30. currIndex=1
  31. function downloadFile()
  32. print("Downloading "..currIndex.."/"..#commands..": "..currCommand)
  33. local ok = shell.run(currCommand)
  34. return ok
  35. end
  36.  
  37.  
  38. for i, v in ipairs(commands) do
  39. currIndex = i
  40. currCommand = v
  41. local success = false
  42.  
  43. while not success do
  44. success = downloadFile()
  45. if not success then
  46. print("Failed to download. Retrying in 1 second...")
  47. sleep(1)
  48. end
  49. end
  50.  
  51. sleep(0.25)
  52. end
  53.  
  54.  
  55. print("Everything is downloaded! Please reboot or run startup.lua!")
Advertisement
Add Comment
Please, Sign In to add comment