Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- AE2 Stockpile Manager - Auto-Start Script
- -- v1
- -- This script runs automatically when the computer boots up
- -- Configuration
- local MAIN_PROGRAM = "ae2_main.lua"
- local AUTO_START = true -- Set to false to disable auto-start
- local STARTUP_DELAY = 3 -- seconds to wait before starting
- -- Clear screen and show startup info
- term.clear()
- term.setCursorPos(1, 1)
- print("=== AE2 Stockpile Auto-Start ===")
- print()
- if not AUTO_START then
- print("Auto-start is disabled.")
- print("Run '" .. MAIN_PROGRAM .. "' manually to start.")
- return
- end
- -- Check if main program exists
- if not fs.exists(MAIN_PROGRAM) then
- print("ERROR: Main program '" .. MAIN_PROGRAM .. "' not found!")
- print("Make sure all AE2 stockpile files are in the same directory.")
- print()
- print("Required files:")
- print("- " .. MAIN_PROGRAM)
- print("- ae2_config.lua")
- print("- ae2_display.lua")
- print("- ae2_interface.lua")
- print("- ae2_menu.lua")
- return
- end
- -- Startup countdown
- print("Starting AE2 Stockpile Manager in monitoring mode...")
- print("Press Ctrl+T within " .. STARTUP_DELAY .. " seconds to cancel.")
- print()
- for i = STARTUP_DELAY, 1, -1 do
- write("Starting in " .. i .. " seconds...")
- os.sleep(1)
- print(" ")
- end
- print("Starting AE2 Stockpile Manager...")
- print()
- -- Start the main program in auto mode
- shell.run(MAIN_PROGRAM, "auto")
Advertisement
Add Comment
Please, Sign In to add comment