bastimeyer / dayz-linux-cli-launcher

DayZ Linux CLI Launcher
MIT License
86 stars 11 forks source link

Connecting Failed 0x00010001 - Command Needs Game Port #15

Closed fonikz closed 2 years ago

fonikz commented 2 years ago

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

bastimeyer commented 2 years ago

The server's game port is 2302 and its query port is 2303: https://www.battlemetrics.com/servers/dayz/13261603

2303 is the default game port of DayZ servers: https://community.bistudio.com/wiki/DayZ:Server_Configuration#Launch_Parameters

Looks like it currently doesn't set the default game port when it's missing from the input.

Fixed via 9884a16b9944f49b2011b572a65d0461e5c47c71 https://github.com/bastimeyer/dayz-linux-cli-launcher/blob/0.5.2/CHANGELOG.md#052---2022-05-26

Just noticed that I included the wrong port number in the commit message... Whatever...

$ STEAM_ROOT=/media/storage/SteamLibrary/ runassteam ~/repos/dayz-linux-cli-launcher/dayz-launcher.sh -d -s 8.39.234.132 -p 2303 -l
[dayz-launcher.sh][info] Resolving steam
[dayz-launcher.sh][info] Using non-flatpak mode: steam
[dayz-launcher.sh][debug] Checking directory: /media/storage/SteamLibrary//steamapps/common/DayZ
[dayz-launcher.sh][debug] Checking directory: /media/storage/SteamLibrary//steamapps/workshop/content/221100
[dayz-launcher.sh][info] Querying API for server: 8.39.234.132:2303
[dayz-launcher.sh][debug] Querying https://dayzsalauncher.com/api/v1/query/8.39.234.132/2303
[dayz-launcher.sh][debug] Parsing API response
[dayz-launcher.sh][debug] Mod 2621103156 found: GasMasksOnly
[dayz-launcher.sh][debug] Mod 2668520000 found: Raft
[dayz-launcher.sh][debug] Mod 2681401910 found: DeerIsle Road Signs
[dayz-launcher.sh][debug] Mod 1559212036 found: CF
[dayz-launcher.sh][debug] Mod 2715277743 found: Level 10 Deer Isle
[dayz-launcher.sh][debug] Mod 1999076953 found: Notes
[dayz-launcher.sh][debug] Mod 1797720064 found: WindstridesClothingPack
[dayz-launcher.sh][debug] Mod 1828439124 found: VPPAdminTools
[dayz-launcher.sh][debug] Mod 1826378669 found: TACSAT Radio
[dayz-launcher.sh][debug] Mod 2098390861 found: No Force Weapon Raise
[dayz-launcher.sh][debug] Mod 2449234595 found: Mag Obfuscation
[dayz-launcher.sh][debug] Mod 1577784539 found: Increased Lumens
[dayz-launcher.sh][debug] Mod 1932611410 found: CannabisPlus
[dayz-launcher.sh][debug] Mod 1602372402 found: DeerIsle
[dayz-launcher.sh][debug] Mod 2545327648 found: Dabs Framework
[dayz-launcher.sh][debug] Mod 1564026768 found: Community-Online-Tools
[dayz-launcher.sh][info] Launching DayZ
+ 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
steam.sh[66068]: Running Steam on arch rolling 64-bit
steam.sh[66068]: STEAM_RUNTIME is enabled automatically
setup.sh[66142]: Steam runtime environment up-to-date!
steam.sh[66068]: Steam client's requirements are satisfied