SHOW:
|
|
- or go back to the newest paste.
| 1 | - | -- autonav.lua |
| 1 | + | -- startup |
| 2 | - | -- Place this as /startup (or make sure it's run on boot). |
| 2 | + | -- Bootloader for AutoNav |
| 3 | ||
| 4 | - | local ship = peripheral.find("warpdriveShipCore")
|
| 4 | + | -- Print a startup message |
| 5 | - | assert(ship, "No warpdriveShipCore found!") |
| 5 | + | print("Starting AutoNav...")
|
| 6 | ||
| 7 | - | local navfile = ".navdata" |
| 7 | + | -- Launch the auto-navigation script |
| 8 | - | local backupfile = ".navbackup" |
| 8 | + | shell.run("autonav.lua")
|
| 9 |