SHOW:
|
|
- or go back to the newest paste.
| 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"library" | |
| 6 | shell.run"rom/programs/http/pastebin run 6aMMzdwd AI221 -os- maste" | |
| 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") |