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

Commits on Jun 25, 2023

  1. Add default port option for Factorio game server.

    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.
    karlh5926 committed Jun 25, 2023
    Configuration menu
    Copy the full SHA
    5ba7f0d View commit details
    Browse the repository at this point in the history
  2. Add the option to lock factorio server port to the defualt game 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). 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.
    karlh5926 committed Jun 25, 2023
    Configuration menu
    Copy the full SHA
    3ee96d3 View commit details
    Browse the repository at this point in the history