OpenFactorioServerManager / factorio-server-manager

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

Handle absolute paths in settings/binary, configurable BaseMod dir #223

Closed FoxAmes closed 3 years ago

FoxAmes commented 3 years ago

Hey all!

Love this project, I've only used it for a short time but already can't imagine not having it. This PR is centered around some non-intuitive install configurations I've run in to using the AUR package for factorio on Arch Linux. In short, the baseMod lives in /usr/share, the executable in /usr/bin, and the server settings in /etc/factorio, with most everything else falling into /var/lib/factorio/.factorio. I've been able to get it working by symlinking everything to a single directory, but that felt messy and hacky so I modified the config logic to handle absolute paths and allow explicit base mod directory to be specified. I have not, however, extended this behavior to other settings/paths- so I'm not sure this is the best way forward.

Ultimately, I'd just be happy enabling FSM to operate alongside this edge case install, only needing to change the config and flags.

FoxAmes commented 3 years ago

Rebased on develop because I apparently can't read contribution guidelines

mroote commented 3 years ago

Nice thanks for the PR!