fix: set 2303 as default game port

This commit is contained in:
bastimeyer 2022-05-26 15:05:18 +02:00
parent 329b224b76
commit 9884a16b99
2 changed files with 8 additions and 2 deletions

View file

@ -51,6 +51,7 @@ Command line options:
Retrieve a server's mod list and add it to the remaining input.
Uses the dayzsalauncher.com JSON API.
If --launch is set, it will automatically connect to the server.
The optional port is the server's game port. Default is: 2302
-p <port>
--port <port>

View file

@ -5,6 +5,9 @@ SELF=$(basename "$(readlink -f "${0}")")
DAYZ_ID=221100
DEFAULT_GAMEPORT=2302
DEFAULT_QUERYPORT=27016
FLATPAK_STEAM="com.valvesoftware.Steam"
FLATPAK_PARAMS=(
--branch=stable
@ -26,7 +29,7 @@ DEBUG=0
LAUNCH=0
STEAM=""
SERVER=""
PORT="27016"
PORT="${DEFAULT_QUERYPORT}"
NAME=""
INPUT=()
MODS=()
@ -78,11 +81,12 @@ Command line options:
Retrieve a server's mod list and add it to the remaining input.
Uses the dayzsalauncher.com DayZ server JSON API.
If --launch is set, it will automatically connect to the server.
The optional port is the server's game port. Default is: ${DEFAULT_GAMEPORT}
-p <port>
--port <port>
The server's query port, not to be confused with the server's game port.
Default is: 27016
Default is: ${DEFAULT_QUERYPORT}
Environment variables:
@ -123,6 +127,7 @@ while (( "$#" )); do
;;
-s|--server)
SERVER="${2}"
[[ "${SERVER}" = *:* ]] || SERVER="${SERVER}:${DEFAULT_GAMEPORT}"
shift
;;
-p|--port)