mirror of
https://github.com/JonasunderscoreJones/dayz-linux-gui-launcher.git
synced 2025-10-23 03:29:21 +02:00
feat: add --help parameter
This commit is contained in:
parent
d27d255e26
commit
44e783d316
2 changed files with 51 additions and 1 deletions
|
@ -15,7 +15,6 @@ Proton is currently unable to start the game's own regular launcher application
|
||||||
|
|
||||||
## TODO
|
## TODO
|
||||||
|
|
||||||
- Add `--help` message
|
|
||||||
- Don't use a custom server query API and query the server directly
|
- Don't use a custom server query API and query the server directly
|
||||||
- Install mods automatically (only the `steamcmd` CLI utility seems to be able to do this from a command line shell context)
|
- Install mods automatically (only the `steamcmd` CLI utility seems to be able to do this from a command line shell context)
|
||||||
- If possible, resolve mod dependencies
|
- If possible, resolve mod dependencies
|
||||||
|
|
51
dayz-mods.sh
51
dayz-mods.sh
|
@ -33,8 +33,59 @@ declare -A DEPS=(
|
||||||
[steam]=steam
|
[steam]=steam
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
print_help() {
|
||||||
|
cat <<EOF
|
||||||
|
Usage: ${SELF} [OPTION]... [MODID]...
|
||||||
|
|
||||||
|
Automatically set up mods for the DayZ client
|
||||||
|
and print the game's -mod command line argument.
|
||||||
|
|
||||||
|
Command line options:
|
||||||
|
|
||||||
|
-h
|
||||||
|
--help
|
||||||
|
Print this help text.
|
||||||
|
|
||||||
|
-d
|
||||||
|
--debug
|
||||||
|
Print debug messages to output.
|
||||||
|
|
||||||
|
-l
|
||||||
|
--launch
|
||||||
|
Launch DayZ after resolving and setting up mods
|
||||||
|
instead of printing the game's -mod command line argument.
|
||||||
|
|
||||||
|
-s <address[:port]>
|
||||||
|
--server <address[:port]>
|
||||||
|
Retrieve a server's mod list and add it to the remaining input.
|
||||||
|
Uses the daemonforge.dev DayZ server JSON API.
|
||||||
|
If --launch is set, it will automatically connect to the server.
|
||||||
|
|
||||||
|
-p <port>
|
||||||
|
--port <port>
|
||||||
|
The server's query port (not to be confused with the server's game port).
|
||||||
|
Default is: 27016
|
||||||
|
|
||||||
|
Environment variables:
|
||||||
|
|
||||||
|
STEAM_ROOT
|
||||||
|
Set a custom path to Steam's root directory. Default is:
|
||||||
|
\${XDG_DATA_HOME:-\${HOME}/.local/share}/Steam
|
||||||
|
which defaults to ~/.local/share/Steam
|
||||||
|
|
||||||
|
If the game is stored in a different Steam library directory, then this
|
||||||
|
environment variable needs to be set/changed.
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
while (( "$#" )); do
|
while (( "$#" )); do
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
|
-h|--help)
|
||||||
|
print_help
|
||||||
|
exit
|
||||||
|
;;
|
||||||
-d|--debug)
|
-d|--debug)
|
||||||
DEBUG=1
|
DEBUG=1
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue