Commit Graph

10 Commits

Author SHA1 Message Date
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
6ef8f280a8 Added README 2026-05-04 10:02:18 -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
aecc2162e7 Added download and extract mod from modlist 2026-04-30 21:36:36 -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
e7f967c6bd Reverted changes that used bubbletea lib
Fixed some minor issues with backup func
added stdout to backup functions
added stdout to launchserver functions
changed tar execs to add verbos for stdout
2026-01-14 15:13:59 -07: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
Raum0x2A
3406ab4743 Initial commit
Simple Factorio Server manager
2025-12-13 03:17:50 -07:00