Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default port option for Factorio game server #356

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

karlh5926
Copy link

  • Add a default Factorio port option that can be specified via command line flag --game-port
    Or, via the the config json file with key "factorio_port".

  • Add a conf.json option "factorio_port_lock". When set to true, force
    the game to run on the default "factorio_port" (--game-port on command
    line flag).

The default port will show up on the control page as the default
value for game server.

In cases where where we need a factorio server port different
from the default.

E.g. in my case, my admins can only use 34000 port since this is
the only port that's forwarded. This feature eliminates the
tedium & potential human error involved in having to maually
edit the game port number everytime.

The default port can be specified via command line flag --game-port
Or, via the the config json file with key "factorio_port".

The default port will show up on the control page as the default
value for game server.

In cases where where we need a factorio server port different
from the default.

E.g. in my case, my admins can only use 34000 port since this is
the only port that's forwarded. This feature eliminates the
tedium & potential human error involved in having to maually
edit the game port number everytime.
Add a conf.json option "factorio_port_lock". When set to true, force
the game to run on the default "factorio_port" (--game-port on command
line flag). This prevents confused admins when they run the game on
a different port and can't get a connection. It also grays out the
port field so it is not editable on the FSM Controls tab.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant