Added path checks and updated config

- Cleaned up func main()
- Separated config into two sections server and factoryman
- Updated backup.go to reflect changes to config file
- Updated config.go to reflect changes to config.yml as well as added a check to paths in config.yml
- Updated launch.go to reflect changes to config
move cli handler from main to cli.go
This commit is contained in:
2026-04-29 11:39:55 -06:00
parent bdf636b0d3
commit aef97fe613
7 changed files with 103 additions and 53 deletions

View File

@@ -1,9 +1,12 @@
server:
serverFolder: "factorio-headless_linux_2.0.72/factorio"
serverFolder: "factorio"
worldFile: "factorio/data/saves/newworld.zip"
serverSettings: "factorio/data/server-settings.json"
serverExec: "factorio/bin/x64/factorio"
factoryman:
port: 34197
worldFile: "factorio-headless_linux_2.0.72/factorio/Newworlds.zip"
serverSettings: "factorio-headless_linux_2.0.72/factorio/data/server-settings.json"
backupDir: "factorio-headless_linux_2.0.72/backups"
serverExec: "factorio-headless_linux_2.0.72/factorio/bin/x64/factorio"
screen: True
screenName: "Factorio"
backupDir: "factorio/backups"