5bitesofcookies

game-engine beta installer

Feb 16th, 2015
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.80 KB | None | 0 0
  1. --THIS IS A TEMPORARY INSTALLER
  2. --shell.run"delete testgame"
  3. print"bear with the craploads of crap being outputted to the screen"
  4. automated = true
  5. fs.makeDir"Game-Engine"
  6. shell.run"rom/programs/http/pastebin run 6aMMzdwd AI221 Game-Engine master Game-Engine"
  7. fs.move("Game-Engine/testgame","testgame")
  8. --fs.move("Game-Engine/secondTown","secondTown")
  9. --instal redirect
  10. shell.run"rom/programs/http/pastebin get fU9Kj9zr Game-Engine/redirect"
  11. --load game-engine
  12. os.loadAPI"Game-Engine/redirect"
  13. os.loadAPI"Game-Engine/game"
  14. --load the map
  15. local f=fs.open("Game-Engine/stOld","r")
  16. local a=f.readAll()
  17. f.close()
  18. if a then print"good" end
  19. a = textutils.unserialize(a)
  20. --print(textutils.serialize(a))
  21. --save it
  22. game.save("secondTown",a)
  23. --delete the stOld
  24. fs.delete("Game-Engine/stOld")
  25. fs.delete("json")
Advertisement
Add Comment
Please, Sign In to add comment