OpenFactorioServerManager / factorio-server-manager

A tool to help manage Factorio multiplayer servers including mods and save games.
MIT License
541 stars 130 forks source link

-dir not working? #304

Closed DocterDum closed 2 years ago

DocterDum commented 2 years ago

I have an existing server installed to /opt/factorio

I downloaded/unzipped fsm into /opt/fsm, and am running the executable with: [/opt/fsm]$ ./factorio-server-manager -dir /opt/factorio

This returns errors: /opt/fsm/mod_packs 2022/01/27 14:09:14 no mods dir found ... creating one ... 2022/01/27 14:09:14 no ModPackDir found ... creating one ... 2022/01/27 14:09:14 Server settings at config/server-settings.json not found, copying example server settings. 2022/01/27 14:09:14 failed to open example server settings: open data/server-settings.example.json: no such file or directory 2022/01/27 14:09:14 Error occurred during Server initialization: open data/server-settings.example.json: no such file or directory

All of these files DO exist under /opt/factorio - So it seems as though the -dir option is entirely non-functional?

I also tried:

Overall it seems that running fsm from a separate folder is entirely impossible atm...

knoxfighter commented 2 years ago

you need 2 -! So your command results in ./factorio-server-manager --dir /opt/factorio.

DocterDum commented 2 years ago

Aah, the installation page lists all arguments as a single - though the example there does seem to be correct, will test now

DocterDum commented 2 years ago

-- has done it, thanks for the help!