mirror of
https://github.com/JonasunderscoreJones/dayz-linux-gui-launcher.git
synced 2025-10-23 06:59:20 +02:00
fix: set 2303 as default game port
This commit is contained in:
parent
329b224b76
commit
9884a16b99
2 changed files with 8 additions and 2 deletions
|
@ -51,6 +51,7 @@ Command line options:
|
||||||
Retrieve a server's mod list and add it to the remaining input.
|
Retrieve a server's mod list and add it to the remaining input.
|
||||||
Uses the dayzsalauncher.com JSON API.
|
Uses the dayzsalauncher.com JSON API.
|
||||||
If --launch is set, it will automatically connect to the server.
|
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>
|
-p <port>
|
||||||
--port <port>
|
--port <port>
|
||||||
|
|
|
@ -5,6 +5,9 @@ SELF=$(basename "$(readlink -f "${0}")")
|
||||||
|
|
||||||
DAYZ_ID=221100
|
DAYZ_ID=221100
|
||||||
|
|
||||||
|
DEFAULT_GAMEPORT=2302
|
||||||
|
DEFAULT_QUERYPORT=27016
|
||||||
|
|
||||||
FLATPAK_STEAM="com.valvesoftware.Steam"
|
FLATPAK_STEAM="com.valvesoftware.Steam"
|
||||||
FLATPAK_PARAMS=(
|
FLATPAK_PARAMS=(
|
||||||
--branch=stable
|
--branch=stable
|
||||||
|
@ -26,7 +29,7 @@ DEBUG=0
|
||||||
LAUNCH=0
|
LAUNCH=0
|
||||||
STEAM=""
|
STEAM=""
|
||||||
SERVER=""
|
SERVER=""
|
||||||
PORT="27016"
|
PORT="${DEFAULT_QUERYPORT}"
|
||||||
NAME=""
|
NAME=""
|
||||||
INPUT=()
|
INPUT=()
|
||||||
MODS=()
|
MODS=()
|
||||||
|
@ -78,11 +81,12 @@ Command line options:
|
||||||
Retrieve a server's mod list and add it to the remaining input.
|
Retrieve a server's mod list and add it to the remaining input.
|
||||||
Uses the dayzsalauncher.com DayZ server JSON API.
|
Uses the dayzsalauncher.com DayZ server JSON API.
|
||||||
If --launch is set, it will automatically connect to the server.
|
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>
|
-p <port>
|
||||||
--port <port>
|
--port <port>
|
||||||
The server's query port, not to be confused with the server's game 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:
|
Environment variables:
|
||||||
|
|
||||||
|
@ -123,6 +127,7 @@ while (( "$#" )); do
|
||||||
;;
|
;;
|
||||||
-s|--server)
|
-s|--server)
|
||||||
SERVER="${2}"
|
SERVER="${2}"
|
||||||
|
[[ "${SERVER}" = *:* ]] || SERVER="${SERVER}:${DEFAULT_GAMEPORT}"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-p|--port)
|
-p|--port)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue