Commit Graph

9 Commits

Author SHA1 Message Date
283ffb66eb rebuilt command flag system 2026-05-07 17:38:28 -06:00
3d24198ad3 Hotfix
my method of extracting archives does not preserve permission
this has be fixed with a workaround by using chmod to make factorio
executable
2026-05-04 13:11:29 -06:00
9e7bd21602 Added default config if config.yml is missing
Default config:
server:
  serverFolder: "factorio"
  worldFile: "factorio/saves/newworld.zip"
  serverSettings: "factorio/data/server-settings.json"
  serverExec: "factorio/bin/x64/factorio"
  port: 34197

factoryman:
  screen: True
  screenName: "Factorio"
  backupDir: "factorio/backups"
  username: ""
  apitoken: ""
2026-05-04 12:41:18 -06:00
e051d2d6f6 Changed GoConfig to UsrConfig
Changed GoConfig struct to UsrConfig
2026-05-04 11:50:08 -06:00
8fb2c2aeb2 Download mods and headless server
till working on improvements to code this more like
a savepoint.
2026-05-03 14:00:16 -06:00
2548261d66 Started work on adding mod downloader
Read from mod-list.json in mod dir and download each mod in list.
This requires reading from factorio mod portal api, and extracting download url and calling it with username and api token.

new field in config.yml username and apitoken, is needed to download mod files from mod.factorio.com
2026-04-30 12:06:49 -06:00
b2f485269b Fix issues with config handling 2026-04-29 11:47:29 -06:00
aef97fe613 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
2026-04-29 11:39:55 -06:00
b2c534f29b Fixes Changes and new additions
Fixed an issue where launching server w/o screen failed
New: added an output showing screen sessions after launching
New: added stdout and stdin to screenless launch allowing interacting with server cli
Change: Broke up source code to make it easier to read and make changes
Change: Updated .gitignore
2026-01-13 10:51:18 -07:00