Git Product home page Git Product logo

dayz-linux-cli-launcher's Introduction

DayZ Linux CLI Launcher

About

This is an experimental launcher script for DayZ standalone on Linux when running the game via Proton.

Proton is currently unable to start the game's own regular launcher application which sets up mods and launch parameters for the game client. The game however does work fine when launching the client directly, so mods can be set up and configured manually, which is what this script does, similar to what the launcher would do.

Automatic Steam workshop mod downloads are currently unsupported due to a limitation of Steam's CLI. Workshop mods will therefore need to be subscribed manually via the web browser. A URL for each missing mod will be printed to the output.

Please see the "Install DayZ" section down below on how to get the game running on Linux.

Usage

Usage: dayz-launcher.sh [OPTION]... [MODID]... [-- [GAME-PARAM]...]

Automatically set up mods for DayZ, launch the game and connect to a server,
or print the game's -mod command line argument for custom configuration.

Command line options:

  -h
  --help
    Print this help text.

  -d
  --debug
    Print debug messages to output.

  --steam <"" | flatpak | /path/to/steam/executable>
    If set to flatpak, use the flatpak version of Steam (com.valvesoftware.Steam).
    Steam needs to already be running in the flatpak container.
    Default is: "" (automatic detection - prefers flatpak if available)

  -l
  --launch
    Launch DayZ after resolving and setting up mods instead of
    printing the game's -mod command line argument.
    Any custom game parameters that come after the first double-dash (--) will
    be appended to the overall launch command line. This implies --launch.

  -n <name>
  --name <name>
    Set the profile name when launching the game via --launch.
    Some community servers require a profile name when trying to connect.

  -s <address[:port]>
  --server <address[:port]>
    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>
    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 flatpak package is being used, then the default is:
    ~/.var/app/com.valvesoftware.Steam/data/Steam

    If the game is stored in a different Steam library directory, then this
    environment variable needs to be set/changed.

    For example, if the game has been installed in the game library located in
      /media/games/SteamLibrary/steamapps/common/DayZ
    then the STEAM_ROOT env var needs to be set like this:
      STEAM_ROOT=/media/games/SteamLibrary

Examples

# configure mods by ID
./dayz-launcher.sh -d 123 456 789

# retrieve mods list from server, configure mods and launch the game
./dayz-launcher.sh -d -l -s address:gameport -p queryport -n nickname

# configure mods by ID and connect
./dayz-launcher.sh -d 123 456 789 -- -connect=address -name=nickname

# run game from a different Steam games library path
STEAM_ROOT=/media/games/SteamLibrary ./dayz-launcher.sh -l -s address

Known issues

Third party server query API

Server data is queried via the third-party dayzsalauncher.com JSON API when using the --server parameter. Previously, this was done via the daemonforge.dev JSON API, which unfortunately wasn't perfectly reliable. Please try running the launcher again if the query times out, and if the data returned by the server query API doesn't reflect the server's actual mod IDs, then custom mod IDs will need to be set as launch arguments.

Steam doesn't launch the game

Sometimes the game doesn't launch despite the launcher correctly passing the right parameters to Steam. This is usually caused by a broken singleton process detection of Steam, where it passes the game's launch parameters to the original Steam process and then terminates. Restarting Steam and re-running the launcher fixes the issue.

One of the main reasons why this can happen is an unresolved bug in the Steam client which causes Steam to become unresponsive when launching it via -applaunch and passing arguments that reach a certain threshold in length. This problem occurs when trying to join servers which require loading lots of mods and which therefore increase the length of the launch parameters. In order to overcome this limitation, mod directories have been shrinked as much as possible in the 0.5.0 release, so that the launch parameters can be kept as short as possible. This comes at the cost of not being able to tell mod directories apart in the DayZ game directory, at least as a human, but this should solve the issue for the vast majority of servers. Please report any further issues on the issue tracker. Thank you.

Case sensitivity of mod-internal file paths

Due to mods being developed on Windows and Windows not differentiating between file paths with different cases, mod developers sometimes don't care about case sensitivity of file names and directories. This can lead to loading issues on Linux when a file system without case insensitivity support is being used.

In case of ext4, which is the default file system on most distros, case insensitivity has only been implemented in kernel 5.2, which was released in July 2019 (later improved for encrypted file systems in kernel 5.13, released in June 2021). The requirements for enabling case insensitivity are an ext4 filesystem created with at least kernel version 5.2 while the casefold option was set, as well as the +F flag being set on one of the parent directories.

Please refer to your distro's documentation or search engine of choice for how to properly enable case folding/insensitivity on your file system and whether it's supported.

Future ideas

  • Rewrite in Python
  • Don't use a third party server query API and query the server directly
  • Install mods automatically
    Unfortunately, Steam doesn't support downloading workshop mods via the CLI and only the steamcmd CLI utility seems to be able to do this from a command line shell context, but this requires a Steam login via CLI parameters, which is a bit unpractical.
  • If possible, resolve mod dependencies

Install

To install the launcher script, simply clone the git repository:

git clone https://github.com/bastimeyer/dayz-linux-cli-launcher.git
cd dayz-linux-cli-launcher
./dayz-launcher.sh ...

or download the raw script file from GitHub and make it executable (check the script file contents first before running it):

curl -SL -o dayz-launcher.sh 'https://github.com/bastimeyer/dayz-linux-cli-launcher/raw/master/dayz-launcher.sh'
chmod +x dayz-launcher.sh
./dayz-launcher.sh ...

Install DayZ

Support for BattlEye anti-cheat for Proton on Linux has been officially announced by Valve on 2021-12-03.

In order to get the game running on Linux, you first have to install the Steam beta client (see Steam's settings menu). Then install Proton Experimental and the Proton BattlEye Runtime (filter by "tools" in your games library). After that, set the "Steam play compatibility tool" for DayZ to "Proton Experimental" (right-click the game and go to properties).

Important notes

In order for the game to actually run on Linux via Proton, the vm.max_map_count kernel parameter needs to be increased, because otherwise the game will freeze while loading the main menu or after playing for a couple of minutes. Some custom kernels like TK-Glitch for example already increase this value from its default value of 64*1024-6 to 512*1024, but even this won't work reliably. Increasing it to 1024*1024 seems to work.

​sudo sysctl -w vm.max_map_count=1048576

Or apply it permanently:

​echo 'vm.max_map_count=1048576' | sudo tee /etc/sysctl.d/vm.max_map_count.conf

dayz-linux-cli-launcher's People

Contributors

bastimeyer avatar harry0498 avatar maplepy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dayz-linux-cli-launcher's Issues

Error, Steam is missing

Even though I have steam installed and changed the root directory of steam in the script, it says that Steam is missing.

'jq' is missing

Hey, firstly thanks for making this as I'm dying to play DayZ but I'm getting an error and have no clue as to a resolution.

First I tried via the 'git clone https://github.com/bastimeyer/dayz-linux-cli-launcher.git' command and after Cloning into 'dayz-linux-cli-launcher'... 'cd' to the 'dayz-linux-cli-launcher' and running './dayz-launcher.sh ...' i get the following error:

  • [dayz-launcher.sh][error] 'jq' is missing (required for parsing the server API's JSON response). Aborting.

I get the same message when I use the 'curl' instructions.

I have installed Proton Experimental and Proton Battleeye Runtime, DayZ is set to Proton Experimental too, butt no matter what I get the same error.

Any help would be greatly appreciated, I'm lost or not very bright and am missing something simple

Thanks in advance

Can't find dayz

While using this the .sh file could not find my dayz install. My dayz is installed at /home/user/.steam/debian-installation/steamapps/common/DayZ and I believe it is installed here due to me getting it from the ubuntu repos. But when I try to change where the launcher looks for the game I can't redirect it to this file because it always adds a /Steam/steamapps/common/DayZ to the end of where I change it to. And I am going to be honest I have zero coding knowledge so I don't really know how to solve this problem. I understand that this is mostly due to my ignorance with coding but I think it would be nice if the launcher automatically checked for this path since a lot of people use the ubuntu repos to install steam and from my understanding this is the default path that creates. Just my two cents. Sorry if I have done something wrong and this is wholly my fault

Strange issue joining server - mod reference issue?

Running the latest version of this launcher - on PopOS 22.04.
I've used this launcher without issue on several servers for months now.
The issue is, I'm trying to join https://www.battlemetrics.com/servers/dayz/12607800 this server.

However, the game loads, and I see the dayz loading screen (no countdown though) then it crashes to the main dayz menu and I receive this error (see image):
image (note, I have edited the file path in your code to match my mod directory as shown in the screenshot).

It appears to be an issue with these two mods, both of which are required:
https://steamcommunity.com/sharedfiles/filedetails/?id=2017605880
https://steamcommunity.com/sharedfiles/filedetails/?id=2822756090

The mods on this server's discord are dumbfounded and insist their server's mod version is the latest. I have tried to uninstall and reinstall both mods, without success; I get the same error.

Mods will not automatically install

Hi, I am trying to use this script, and reading the help output it states

Automatically set up mods for DayZ, launch the game and connect to a server (...)

But my experience is not that:

❯ dayz-launcher --server 172.111.51.137:2902 --launch
[dayz-launcher][info] Resolving steam
[dayz-launcher][info] Using flatpak mode
[dayz-launcher][info] Querying API for server: 172.111.51.137:27016
[dayz-launcher][info] Missing mod directory for: 2848034301
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2848034301
[dayz-launcher][info] Missing mod directory for: 2934323775
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2934323775
[dayz-launcher][info] Missing mod directory for: 2623995836
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2623995836
[dayz-launcher][info] Missing mod directory for: 2762521201
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2762521201
[dayz-launcher][info] Missing mod directory for: 3025712002
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=3025712002
[dayz-launcher][info] Missing mod directory for: 3057750548
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=3057750548
[dayz-launcher][info] Missing mod directory for: 2572501944
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2572501944
[dayz-launcher][info] Missing mod directory for: 2957747852
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2957747852
[dayz-launcher][info] Missing mod directory for: 2978544685
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2978544685
[dayz-launcher][info] Missing mod directory for: 2918418331
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2918418331
[dayz-launcher][info] Missing mod directory for: 2428714933
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2428714933
[dayz-launcher][info] Missing mod directory for: 2921783686
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2921783686
[dayz-launcher][info] Missing mod directory for: 2874520944
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2874520944
[dayz-launcher][info] Missing mod directory for: 2878980498
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2878980498
[dayz-launcher][info] Missing mod directory for: 2979904319
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2979904319
[dayz-launcher][info] Missing mod directory for: 2957812943
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2957812943
[dayz-launcher][info] Missing mod directory for: 2757509117
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2757509117
[dayz-launcher][info] Missing mod directory for: 2906371600
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2906371600
[dayz-launcher][info] Missing mod directory for: 2177232791
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2177232791
[dayz-launcher][info] Missing mod directory for: 2522679774
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2522679774
[dayz-launcher][info] Missing mod directory for: 2809840562
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2809840562
[dayz-launcher][info] Missing mod directory for: 1991570984
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=1991570984
[dayz-launcher][info] Missing mod directory for: 1870481515
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=1870481515
[dayz-launcher][info] Missing mod directory for: 2040039995
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2040039995
[dayz-launcher][info] Missing mod directory for: 2802653896
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2802653896
[dayz-launcher][info] Missing mod directory for: 2663169692
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2663169692
[dayz-launcher][info] Missing mod directory for: 2808795115
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2808795115
[dayz-launcher][info] Missing mod directory for: 2345008197
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2345008197
[dayz-launcher][info] Missing mod directory for: 2647808231
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2647808231
[dayz-launcher][info] Missing mod directory for: 2503394943
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2503394943
[dayz-launcher][info] Missing mod directory for: 2484279619
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2484279619
[dayz-launcher][info] Missing mod directory for: 2692979668
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2692979668
[dayz-launcher][info] Missing mod directory for: 2714183642
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2714183642
[dayz-launcher][info] Missing mod directory for: 1819514788
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=1819514788
[dayz-launcher][info] Missing mod directory for: 2051775667
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2051775667
[dayz-launcher][info] Missing mod directory for: 2601606391
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2601606391
[dayz-launcher][info] Missing mod directory for: 2579252958
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2579252958
[dayz-launcher][info] Missing mod directory for: 2611036502
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2611036502
[dayz-launcher][info] Missing mod directory for: 1723938994
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=1723938994
[dayz-launcher][info] Missing mod directory for: 1964490092
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=1964490092
[dayz-launcher][info] Missing mod directory for: 2635717357
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2635717357
[dayz-launcher][info] Missing mod directory for: 2293814436
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2293814436
[dayz-launcher][info] Missing mod directory for: 1646187754
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=1646187754
[dayz-launcher][info] Missing mod directory for: 1984056101
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=1984056101
[dayz-launcher][info] Missing mod directory for: 1967655509
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=1967655509
[dayz-launcher][info] Missing mod directory for: 2794626429
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2794626429
[dayz-launcher][info] Missing mod directory for: 2170927235
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2170927235
[dayz-launcher][info] Missing mod directory for: 1932611410
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=1932611410
[dayz-launcher][info] Missing mod directory for: 2876583630
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2876583630
[dayz-launcher][info] Missing mod directory for: 2932515312
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2932515312
[dayz-launcher][info] Missing mod directory for: 1797720064
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=1797720064
[dayz-launcher][info] Missing mod directory for: 1710977250
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=1710977250
[dayz-launcher][info] Missing mod directory for: 2691041685
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2691041685
[dayz-launcher][info] Missing mod directory for: 1828439124
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=1828439124
[dayz-launcher][info] Missing mod directory for: 3030068062
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=3030068062
[dayz-launcher][info] Missing mod directory for: 3041809267
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=3041809267
[dayz-launcher][info] Missing mod directory for: 3020890580
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=3020890580
[dayz-launcher][info] Missing mod directory for: 2947862177
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2947862177
[dayz-launcher][info] Missing mod directory for: 3085734604
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=3085734604
[dayz-launcher][info] Missing mod directory for: 3111117039
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=3111117039
[dayz-launcher][info] Missing mod directory for: 3049009603
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=3049009603
[dayz-launcher][info] Missing mod directory for: 2999308362
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2999308362
[dayz-launcher][info] Missing mod directory for: 2900621498
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2900621498
[dayz-launcher][info] Missing mod directory for: 2834956846
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2834956846
[dayz-launcher][info] Missing mod directory for: 3026931739
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=3026931739
[dayz-launcher][info] Missing mod directory for: 2617798091
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2617798091
[dayz-launcher][info] Missing mod directory for: 3029854624
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=3029854624
[dayz-launcher][info] Missing mod directory for: 2715585406
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=2715585406
[dayz-launcher][info] Missing mod directory for: 1559212036
[dayz-launcher][info] Subscribe the mod here: https://steamcommunity.com/sharedfiles/filedetails/?id=1559212036

Do I really need to manually manage this list of mods?

Game not launching

Hello !

So, I've been able to play on some servers, DayOne and some with like 20mods works just fine, but there's this server I try to connect and the game just doesn't open.
I don't get any errors.
Here's the full log

Thanks for any help !

Edit : DayZ won't launch using the script anymore, no matter the server. I tried joining DayOne which I could load, now it just doesn't.

[dayz-launcher.sh][info] Resolving steam
[dayz-launcher.sh][info] Using non-flatpak mode: steam
[dayz-launcher.sh][debug] Checking directory: /home/sancora/.steam/debian-installation/steamapps/common/DayZ
[dayz-launcher.sh][debug] Checking directory: /home/sancora/.steam/debian-installation/steamapps/workshop/content/221100
[dayz-launcher.sh][info] Querying API for server: 82.65.45.60:27016
[dayz-launcher.sh][debug] Querying https://api.daemonforge.dev/server/82.65.45.60/27016/full
[dayz-launcher.sh][debug] Parsing API response
[dayz-launcher.sh][debug] Mod 2464526692 found: GameLabs
[dayz-launcher.sh][debug] Mod 2444301292 found: Care Packages
[dayz-launcher.sh][debug] Mod 1912237302 found: IRP-Land-Rover-Defender-110
[dayz-launcher.sh][debug] Mod 2147610525 found: Armored Vehicle Pack
[dayz-launcher.sh][debug] Mod 2510772574 found: Free Helicopters
[dayz-launcher.sh][debug] Mod 1869021368 found: [CrSk] BMW 525i E34
[dayz-launcher.sh][debug] Mod 2545327648 found: Dabs Framework
[dayz-launcher.sh][debug] Mod 2276010135 found: DayZ Editor Loader
[dayz-launcher.sh][debug] Mod 1725477270 found: GraveCross
[dayz-launcher.sh][debug] Mod 2667648488 found: DayzAnarchyModPack
[dayz-launcher.sh][debug] Mod 2662827589 found: Garage
[dayz-launcher.sh][debug] Mod 2598444373 found: DayZ_BeeHive
[dayz-launcher.sh][debug] Mod 2369063255 found: CabinZ
[dayz-launcher.sh][debug] Mod 1861070364 found: StreetLighting
[dayz-launcher.sh][debug] Mod 1854626456 found: BuildAnywhere_v3
[dayz-launcher.sh][debug] Mod 1850623448 found: Zeroy-FishingZ
[dayz-launcher.sh][debug] Mod 2221274779 found: Trolley Kart
[dayz-launcher.sh][debug] Mod 2109061314 found: PVEZMarkersOnVPPMap
[dayz-launcher.sh][debug] Mod 2371483403 found: No Build Zones
[dayz-launcher.sh][debug] Mod 1932611410 found: CannabisPlus
[dayz-launcher.sh][debug] Mod 2024889593 found: COCAs_NoVehicleDamageMOD
[dayz-launcher.sh][debug] Mod 1832448183 found: FlipTransport
[dayz-launcher.sh][debug] Mod 2155726353 found: Mortys Weapons
[dayz-launcher.sh][debug] Mod 2202288946 found: TeddysWeaponPack
[dayz-launcher.sh][debug] Mod 1991570984 found: MuchStuffPack
[dayz-launcher.sh][debug] Mod 1646187754 found: Code Lock
[dayz-launcher.sh][debug] Mod 2264162971 found: SimpleAutorun
[dayz-launcher.sh][debug] Mod 2049002856 found: MuchCarKey
[dayz-launcher.sh][debug] Mod 1819514788 found: Ear-Plugs
[dayz-launcher.sh][debug] Mod 1680019590 found: Server_Information_Panel
[dayz-launcher.sh][debug] Mod 1623711988 found: VanillaPlusPlusMap
[dayz-launcher.sh][debug] Mod 1559212036 found: CF
[dayz-launcher.sh][debug] Mod 1828439124 found: VPPAdminTools
[dayz-launcher.sh][debug] Mod 2407047547 found: AdvancedBanking
[dayz-launcher.sh][debug] Mod 1590841260 found: Trader
[dayz-launcher.sh][info] Launching DayZ
+ steam -applaunch 221100 '-mod=@2464526692-GameLabs;@2444301292-Care_Packages;@1912237302-IRP_Land_Rover_Defender_110;@2147610525-Armored_Vehicle_Pack;@2510772574-Free_Helicopters;@1869021368-CrSk_BMW_525i_E34;@2545327648-Dabs_Framework;@2276010135-DayZ_Editor_Loader;@1725477270-GraveCross;@2667648488-DayzAnarchyModPack;@2662827589-Garage;@2598444373-DayZ_BeeHive;@2369063255-CabinZ;@1861070364-StreetLighting;@1854626456-BuildAnywhere_v3;@1850623448-Zeroy_FishingZ;@2221274779-Trolley_Kart;@2109061314-PVEZMarkersOnVPPMap;@2371483403-No_Build_Zones;@1932611410-CannabisPlus;@2024889593-COCAs_NoVehicleDamageMOD;@1832448183-FlipTransport;@2155726353-Mortys_Weapons;@2202288946-TeddysWeaponPack;@1991570984-MuchStuffPack;@1646187754-Code_Lock;@2264162971-SimpleAutorun;@2049002856-MuchCarKey;@1819514788-Ear_Plugs;@1680019590-Server_Information_Panel;@1623711988-VanillaPlusPlusMap;@1559212036-CF;@1828439124-VPPAdminTools;@2407047547-AdvancedBanking;@1590841260-Trader' -connect=82.65.45.60:2302 -nolauncher -world=empty -name=Sancora
steam.sh[65747]: Running Steam on pop 21.04 64-bit
steam.sh[65747]: STEAM_RUNTIME is enabled automatically
setup.sh[65816]: Steam runtime environment up-to-date!
steam.sh[65747]: Steam client's requirements are satisfied

Issue loading mods - (server issue)

Trying to join this server:
45.35.100.35

And initially the terminal stated I was missing mods. So I clicked the links and subscribed/downloaded the missing mods. The game boots up and loads, then kicks me to the dayz main menu with this error see screenshot

I then went back to the steam page and unsubscribed and re-subbed to each mod. The issue regarding the missing "banovmap.pbo" file, I have it in that location. it did have a capitol "B" (Banov) but I tried making it lower case. All of this resulted in the same error.

I also reverified the files. This launcher works fine for other servers. Below is my copy of your tool's code. The only changes I made are the STEAM_ROOT variable to match my steam location.

dayz-launcher.sh

I confirmed on their discord that other players were indeed on the server so I doubt it's a server side issue. Not sure, any ideas?

'gawk' is missing

Hello today I wanted to install the dayz launcher. I followed the Install DayZ instructions and the Install instructions.
I wanted to try it out but then this happend:
user@pop-os:~$ ./dayz-launcher.sh --launch
[dayz-launcher.sh][error] 'gawk' is missing (required for parsing the mod metadata). Aborting.

is there any fix for this?

PC specs (neofetch output):
image

Shell Script does not launch

Simply this, trying to run the sh file as a program results in a terminal opening for a split second, but then closing, no error message, nothing.
Attempt over Terminal ended like this:
(base) snom@snom-All-Series:~/dayz-linux-cli-launcher$ bash dayz-launcher.sh
[dayz-launcher.sh][info] Resolving steam
[dayz-launcher.sh][info] Using non-flatpak mode: steam
[dayz-launcher.sh][error] Invalid/missing directory: /home/snom/.local/share/Steam/steamapps/common/DayZ

I have read in your other responses that you are supposed to use STEAM_ROOT, but frankly, I have no idea what it means since I am completely new to Linux and have no idea how anything works.

Update workshop content before launching

Hi. big props for making this. It is the only one that seems to properly work for me.

My question is about the workshop mods. I play on a server with about 13 mods. On windows in DZSALauncher you can press a button in the settings to verify all your workshop mods which prompts steam to check if they are updated. Is there a way to do this with your tool? Or even without your tool, I have done a fair bit of googling and cannot seem to find anything about it.

The mods on my server are updated every couple of days and it does not tell you that your mods are out of date until after the end of the server queue and since my server is quite popular there is usually a queue. I don't know if there is a command in steamcmd for it or something? Or does your script autocheck for updates?

Thanks

Taylor

Launcher unable to retrieve mod list

I'm trying to connect to Sunnyvale #1 |Livonia|OG|Loot+|BBP|Raiding|KOTH|Group|Trader but it seems to be unable to retrieve the modlist:

~/git/dayz-linux-cli-launcher $ ./dayz-launcher.sh --server 172.111.51.21:2302 -p 27016
[dayz-launcher.sh][info] Resolving steam
[dayz-launcher.sh][info] Using non-flatpak mode: steam
[dayz-launcher.sh][info] Querying API for server: 172.111.51.21:27016
[dayz-launcher.sh][info] Nothing to do...
[dayz-launcher.sh][info] No mod-ID list, --server address, or --launch parameter set.
[dayz-launcher.sh][info] See --help for all the available options

Looking at the server on battlemetrics it seems to have some junk in the first 2 mod entries which I'm assuming are causing the issue.

I can confirm this server works fine in Windows using the DayZ SA Launcher.

Connecting to servers without mods

Hi

Thanks for creating this project! I'm excited to finally get to (attempt to) play my favourite game on my favourite OS :)

Not entirely sure if this is an real issue or plain user error:
I'm trying to connect to a vanilla Cherno server that does not require any mods, which results in the following error:
[dayz-launcher.sh][error] Missing mods data from API response
Feels like the launcher can maybe not distinguish between an empty and a missing mods list?
Server data at https://dayzsalauncher.com/api/v1/query/145.239.204.140/27016

Regards,
mrebw

Invalid/Missing Directory with env variable set

Hey,

I've set the env variable for STEAM_ROOT with export STEAM_ROOT=/home/user/.steam/debian-installation

and then run ./dayz-launcher.sh -d -l -s IP -p 27016 -n userName

yielding the following output:

[dayz-launcher.sh][info] Resolving steam
[dayz-launcher.sh][info] Using non-flatpak mode: steam
[dayz-launcher.sh][debug] Checking directory: /home/user/.steam/debian-installation/steamapps/common/DayZ
[dayz-launcher.sh][error] Invalid/missing directory: /home/user/.steam/debian-installation/steamapps/common/DayZ

However that path exists and can be cd'd to from the same directory as the launcher is located

Any ideas?

Connecting Failed 0x00010001 - Command Needs Game Port

Trying to connect to a server (specifically 8.39.234.132) and I'm getting an error in the client, Connecting Failed (0x00010001)
steam -applaunch 221100 '-mod=@NNw6nA;@QGIOnw;@NvLSnw;@BLDvXA;@r9nXoQ;@WX4ndw;@AAgnaw;@VMT7bA;@rVPcbA;@TecSfQ;@o1r8kQ;@2xQLXg;@Uk8xcw;@MkOCXw;@IJ62lw;@kCc5XQ' -connect=8.39.234.132 -nolauncher -world=empty -name=name

Adding the Game Port (not the query port) to the command fixes this error.
steam -applaunch 221100 '-mod=@NNw6nA;@QGIOnw;@NvLSnw;@BLDvXA;@r9nXoQ;@WX4ndw;@AAgnaw;@VMT7bA;@rVPcbA;@TecSfQ;@o1r8kQ;@2xQLXg;@Uk8xcw;@MkOCXw;@IJ62lw;@kCc5XQ' -connect=8.39.234.132:2302 -nolauncher -world=empty -name=name

alternative solution

Hi

Thank you very much for this project, it helped me a lot when trying to play DayZ with friends.

But over time, I realized that I lacked the server browser, history, favorites and automatic installation of mods. And I tried to implement this in the project https://github.com/WoozyMasta/dayz-ctl

Perhaps it will be useful or interesting, so I decided to share it here

Script fails to launch DayZ

I'm having an issue where the script won't launch DayZ. Looking at threads on reddit , it sounds as though it's a problem with steam. But just so others have this visibility, this is my output:

/home/frank/gaming/dayz-linux-cli-launcher/dayz-launcher.sh   --server 51.161.118.201:2402   --port 27600   --launch   --name frank
[dayz-launcher.sh][info] Resolving steam
[dayz-launcher.sh][info] Using non-flatpak mode: steam
[dayz-launcher.sh][info] Querying API for server: 51.161.118.201:27600
[dayz-launcher.sh][info] Launching DayZ
+ steam -applaunch 221100 '-mod=@1912237302-IRP_Land_Rover_Defender_110;@2158553597-Breachingcharge_Expansion_Compatibility;@1827241477-Breachingcharge;@2485015982-Radioactive_Animals;@1836257061-Banking;@2149462115-ZT_Vending_Machine;@1590841260-Trader;@1565871491-BuilderItems;@2350401726-King_of_the_Hill;@2303554682-Dogtags;@1646187754-Code_Lock;@2024889593-COCAs_NoVehicleDamageMOD;@2444247391-Inventory_Move_Sounds;@2501812949-Flying_Birds;@2470924704-Gas_Pump_Refueling;@2155726353-Mortys_Weapons;@2293907947-TruckSpeedFix;@1868236039-No_Glove_Or_Shoe_Damage;@2216645010-PristineRepair;@1797720064-WindstridesClothingPack;@1832448183-FlipTransport;@2098390861-No_Force_Weapon_Raise;@1932611410-CannabisPlus;@1991570984-MuchStuffPack;@2276010135-DayZ_Editor_Loader;@2545327648-Dabs_Framework;@2572331007-DayZ_Expansion_Bundle;@1566911166-Mass_sManyItemOverhaul;@2443122116-SNAFU_Weapons;@2754119488-CPBWeapons_Legacy;@1793351435-Remastered_Arma_Weapon_Pack;@1665082937-Trump_s_Wall_Server_Mod;@2116157322-DayZ_Expansion_Licensed;@1828439124-VPPAdminTools;@1564026768-Community_Online_Tools;@1559212036-CF' -connect=51.161.118.201:2402 -nolauncher -world=empty -name=frank
steam.sh[21055]: Running Steam on pop 20.04 64-bit
steam.sh[21055]: STEAM_RUNTIME is enabled automatically
setup.sh[21125]: Steam runtime environment up-to-date!
steam.sh[21055]: Steam client's requirements are satisfied

Then nothing happens. I've tried restarting steam, and I've tried only running:

steam -applaunch 221100 '-mod=@1912237302-IRP_Land_Rover_Defender_110;@2158553597-Breachingcharge_Expansion_Compatibility;@1827241477-Breachingcharge;@2485015982-Radioactive_Animals;@1836257061-Banking;@2149462115-ZT_Vending_Machine;@1590841260-Trader;@1565871491-BuilderItems;@2350401726-King_of_the_Hill;@2303554682-Dogtags;@1646187754-Code_Lock;@2024889593-COCAs_NoVehicleDamageMOD;@2444247391-Inventory_Move_Sounds;@2501812949-Flying_Birds;@2470924704-Gas_Pump_Refueling;@2155726353-Mortys_Weapons;@2293907947-TruckSpeedFix;@1868236039-No_Glove_Or_Shoe_Damage;@2216645010-PristineRepair;@1797720064-WindstridesClothingPack;@1832448183-FlipTransport;@2098390861-No_Force_Weapon_Raise;@1932611410-CannabisPlus;@1991570984-MuchStuffPack;@2276010135-DayZ_Editor_Loader;@2545327648-Dabs_Framework;@2572331007-DayZ_Expansion_Bundle;@1566911166-Mass_sManyItemOverhaul;@2443122116-SNAFU_Weapons;@2754119488-CPBWeapons_Legacy;@1793351435-Remastered_Arma_Weapon_Pack;@1665082937-Trump_s_Wall_Server_Mod;@2116157322-DayZ_Expansion_Licensed;@1828439124-VPPAdminTools;@1564026768-Community_Online_Tools;@1559212036-CF' -connect=51.161.118.201:2402 -nolauncher -world=empty -name=frank

But none of that changed the outcome. I'll follow up with a separate comment, containing your response from reddit

Distro:
Pop!_OS 20.04 LTS
Kernel:
5.16.11-76051611-generic
RAM:
32 GB
GPU Driver:
4.6 Mesa 21.2.2
GPU:
AMD Radeon R9 390 (HAWAII, DRM 3.44.0, 5.16.11-76051611-generic, LLVM 12.0.0)
CPU:
AMD Ryzen 7 3700X 8-Core
Proton: 7.0_1

Fails to download mods required for server

Issue:
when using example provided in readme, to query the server and download necessary mods, then join; it is failing to download the mods. Please see output at bottom

this is the first time I've tried to use this feature. The server I've been playing on, I copied the downloaded files from my windows partition

Version: 0.5.0
Steam: non-flatpak
Distro: PopOS 22.04

./dayz-launcher.sh -d -l -s 51.81.48.48:2702 -p 27600 -n Frank

[dayz-launcher.sh][info] Resolving steam
[dayz-launcher.sh][info] Using non-flatpak mode: steam
[dayz-launcher.sh][debug] Checking directory: /home/bing/.steam/debian-installation/steamapps/common/DayZ
[dayz-launcher.sh][debug] Checking directory: /home/bing/.steam/debian-installation/steamapps/workshop/content/221100
[dayz-launcher.sh][info] Querying API for server: 51.81.48.48:27600
[dayz-launcher.sh][debug] Querying https://dayzsalauncher.com/api/v1/query/51.81.48.48/27600
[dayz-launcher.sh][debug] Parsing API response
[dayz-launcher.sh][error] Missing mods data from API response

unexpected EOF

i keep getting this, looks like line 324 is mods, do i need to set a mods route or just wipe them and try re-downloading them?
./dayz-launcher.sh: line 324: unexpected EOF while looking for matching

Special Characters

There are a few mods out there that use [ ] and the + sign. Is it possible to get these added as well? I am not sure if it's just as easy to go with the number of the mod instead and trying to use the name. We used ping perfect in the passed and they used numbers instead of the name, considering there is no naming standard.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.