diff --git a/common/etc/apps.db b/common/etc/apps.db index d05c486..4b6bc43 100644 --- a/common/etc/apps.db +++ b/common/etc/apps.db @@ -108,6 +108,7 @@ Needs work [ "swarm" ] = { title = "Swarm", category = "Turtle", + requires = "neuralInterface", icon = " \0315\\\030 \031 \ \0304\031f _ \030 \031c/\0315\\\ \0304 ", diff --git a/milo/etc/apps.db b/milo/etc/apps.db index ca4d244..4e2a853 100644 --- a/milo/etc/apps.db +++ b/milo/etc/apps.db @@ -3,6 +3,7 @@ title = "Remote", category = "Apps", run = "MiloRemote", + requires = "neuralInterface", iconExt = "\0304\031f\135\129\0314\128\128\031f\130\030f\128\ \031f\128\031c\159\149\0300\0317\143\0304\031c\149\030f\0314\133\ \031f\128\030c\0310\142\030f\031c\149\030c\0310\139\030f\031c\149\031f\128", diff --git a/neural/elytraFly.lua b/neural/elytraFly.lua index 0510acf..f718247 100644 --- a/neural/elytraFly.lua +++ b/neural/elytraFly.lua @@ -1,12 +1,15 @@ --- credit: osmarks https://pastebin.com/ZP9Q1HCT +-- original concept: osmarks https://pastebin.com/ZP9Q1HCT local Sound = require('sound') local Util = require('util') +local fs = _G.fs local modules = _G.peripheral.wrap('back') local os = _G.os local parallel = _G.parallel +local STARTUP_FILE = 'usr/autorun/fly.lua' + if not modules.launch or not modules.getMetaOwner then error([[Required: * Kinetic augment @@ -14,6 +17,12 @@ if not modules.launch or not modules.getMetaOwner then * Introspection module]]) end +if not fs.exists(STARTUP_FILE) then + Util.writeFile(STARTUP_FILE, [[os.sleep(1) +shell.openHiddenTab('elytraFly.lua')]]) + print('Autorun program created: ' .. STARTUP_FILE) +end + local canvas = modules.canvas and modules.canvas() local function display(meta) diff --git a/neural/etc/apps.db b/neural/etc/apps.db index 13ee356..7652465 100644 --- a/neural/etc/apps.db +++ b/neural/etc/apps.db @@ -3,6 +3,7 @@ title = "ElytraFly", category = "Neural", run = "elytraFly.lua", + requires = "neuralInterface", }, [ "9101fc1744ab274aaa0b54ee22b14ca53ee6e236" ] = { title = "Sensor", @@ -24,5 +25,6 @@ title = "Ores", category = "Neural", run = "ores.lua", + requires = "neuralInterface", }, }