Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/woozymasta/dayz-ctl
Command Line Linux Launcher for DayZ Standalone with Fuzzy Finding
https://github.com/woozymasta/dayz-ctl
dayz dayz-launcher dayzstandalone fzf fzf-interface fzf-scripts gum jq launcher linux
Last synced: 4 days ago
JSON representation
Command Line Linux Launcher for DayZ Standalone with Fuzzy Finding
- Host: GitHub
- URL: https://github.com/woozymasta/dayz-ctl
- Owner: WoozyMasta
- License: apache-2.0
- Created: 2022-10-01T02:02:46.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-26T22:42:03.000Z (8 months ago)
- Last Synced: 2024-11-02T04:51:40.293Z (11 days ago)
- Topics: dayz, dayz-launcher, dayzstandalone, fzf, fzf-interface, fzf-scripts, gum, jq, launcher, linux
- Language: Shell
- Homepage: http://dayz-ctl.woozymasta.ru/
- Size: 5.39 MB
- Stars: 34
- Watchers: 4
- Forks: 5
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# DayZ Command Line Launcher
**dayz-ctl** β this is an experimental launcher (server explorer and launcher)
[DayZ][] on [Steam][221100] [Proton][] for Linux.> This document is available in languages: [eng π¬π§][], [rus π·πΊ][], [ua πΊπ¦][]
![logo][]
At the time of this project, [Bohemia Interactive][] was still unable to
make a working launcher for the game that could correctly install
modifications and connect to game servers. That is why this project was
born.Key Features:
* Server Explorer with information about each server
* Fuzzy search in Server Explorer based on [fzf][]
* Automatic installation of mods (as an option)
* A wide range of filters for searching servers (map, time of day,
modifications, number of players, first person, password, etc.)
* Additional information in the form of country of location (using geoip
base) and ping for each server
* Favorites list, last 10 games history and creation of quick launch
shortcuts to connect to servers
* Offline mode [DayZCommunityOfflineMode][] with automatic installation,
updates and the ability to select modifications
* Configuration menu with game launch options, launcher settings, mod
controls and statistics
* Provides a link with detailed server information to [battlemetrics][]Special thanks to [dayz-linux-cli-launcher][] for the idea and
[dayzsalauncher][] for the API.## Preview
> ![Launcher Demo](extra/dayz-ctl-demo.svg)
> **Launcher Demo**More screenshots π
Main menu
Server browser
Server filters
Filter by map
Applied selected filters
Favorites browser
History browser
Fuzzy search
Offline mode
Mods for offline
Server mods
Mods info
Config menu
Launch options
About menu
DayZ News
## Features of using SteamCMD
There are two modes of operation of the launcher with and without using
SteamCMD to manage mods in manual mode.You can combine both approaches, for example, subscribe to those
modifications that you will definitely need in the future by clicking on the
link, and check for updates or force update mods using the launcher. Also,
you can not subscribe to the "doubtful 50 mods" of the next server and
easily remove them with one action from the launcher, while maintaining all
the mods for which you have a subscription.### Using SteamCMD
* π’ Everything happens automatically
* π’ Automatically check for mod updates right now (forced)
* π‘ Mod subscriptions are not created, they are just downloaded
* π‘ Requires closing the Steam client to download mods
* π΄ Sometimes you need to re-login to Steam### Not using SteamCMD
* π’ Familiar behavior if you have already used other solutions, for example
[dayz-linux-cli-launcher][]
* π‘ The game itself will not start after downloading mods
* π‘ Steam sometimes delays checking for updates and downloads them only
after restarting or subscribing/unsubscribing from the mod
* π΄ You need to subscribe to mods with your own hands## Installation
### With installer
For ease of installation, there is a small script that will do everything
for you (at least try to do it)Execute this:
```bash
curl -sSfLA dayz-ctl bit.ly/3Vf2zz3 | bash
```### Manual installation
For the launcher to work, you need to make sure that you have all the
dependencies installed:* [jq][] - JSON processing utility
* [fzf][] - fuzzy search utility
* [gum][] - utility for creating dialogs and styling output
* `ping` (`iputils-ping`) - find out the ping to the server (where ICMP is
enabled)
* `geoiplookup` (`geoip-bin`) - find out the country where the server is
located
* `whois` - fallback for geoiplookup, less accurate and slower, but not all
entries are in the standard geoip database
* `curl` - utility for communicating with various APIs over HTTP/S
* `cut, tr, grep, pgrep, pkill, killal, timeout, sed, awk` (`gawk`) - where
without classic utilities in scripts
* [Steam][] - online service for digital distribution of computer games
* [SteamCMD][] - steamcmd Steam console client
* [DayZ][221100] - and of course the game itselfThen you can clone the repository:
```bash
git clone [email protected]:WoozyMasta/dayz-ctl.git
# or
git clone https://github.com/WoozyMasta/dayz-ctl.git
# and run
cd dayz-ctl
./dayz-ctl
```Or download the script file itself:
```bash
curl -sSfL -o ~/.local/bin/dayz-ctl \
https://raw.githubusercontent.com/WoozyMasta/dayz-ctl/master/dayz-ctl
chmod +x ~/.local/bin/dayz-ctl
# and run
dayz-ctl
```### Emoji
Emojis can be used to properly display elements, you may need to install them,
for example, you can use the [Noto][] font from Google.Below is a list with the package name for different distributions:
* `fonts-noto-color-emoji` - debian/ubuntu
* `google-noto-emoji-color-fonts` - centos
* `google-noto-emoji-fonts` - fedora
* `noto-fonts-emoji` - arch
* `font-noto-emoji` - alpine
* `noto-coloremoji-fonts` - suseOr if you don't like emoji or can't use them for some reason, you can apply
a patch to replace them with strings:```bash
sed -e 's/β«οΈ/β’/g' -e 's/π©/β/g' -e 's/β¬/ /g' -e 's/π/time/g' -e 's/β/?/g' \
-e 's/π’/ok/g' -e 's/π΄/no/g' -e 's/π/night/g' -e 's/βοΈ/day/g' \
-e 's/π/yes/g' -e 's/π/no/g' -e 's/β /ok/g' -e 's/β/no/g' \
-i "$(which dayz-ctl)"
```## Tested distros
* π’ Debian bookworm
* π’ Debian bullseye
* π’ Debian buster
* π’ Ubuntu 18.04
* π’ Ubuntu 20.04 π―
* π’ Ubuntu 22.04 π―
* π’ Fedora latest
* π‘ Centos 7 (small bugs)
* π‘ Centos stream9 (small bugs)
* π’ Alpine latest
* π’ Alpine edge
* π’ Archlinux
* π‘ Opensuse leap (small bugs)## Other
### Steam
It is better to remove all DayZ launch options in Steam and manage them from
the launcher or vice versa. Since the keys can be duplicated and this can
cause confusion, or in the worst case, cut off some of the keys, because the
argument string has a length limit, and on servers with a large number of
mods, a very long launch parameter is also used.Those. leave the launch options empty, or specify only the set of auxiliary
utilities and variables you need, for example:```bash
MANGOHUD=1 ENABLE_VKBASALT=1 gamemoderun %command%
```### Search syntax
You can enter multiple search terms separated by spaces. e.g. `^namalsk DE
!PVE !RP`| token | match type | description |
| --------- | -------------------------- | ------------------------------------ |
| `sbtrkt` | fuzzy match | Items that match `sbtrkt` |
| `wild` | exact-match (quoted) | Items that include `wild` |
| `^music` | prefix-exact-match | Items that start with `music` |
| `.mp3$` | suffix-exact-match | Items that end with `.mp3` |
| `!fire` | inverse-exact-match | Items that do not include `fire` |
| `!^music` | inverse-prefix-exact-match | Items that do not start with `music` |
| `!.mp3$` | inverse-suffix-exact-match | Items that do not end with `.mp3` |A term with a single bar character acts as an OR operator
```regexp
PVE | RP
```## Environment variables
You can fine-tune how the launcher works with the help of environment
variables that you can pass to the environment as usual or write to the
configuration file `$HOME/.local/share/dayz-ctl/dayz-ctl.conf` (by default)List of available variables:
* **`DAYZ_CTL_VERSION`** β application version
* **`DAYZ_CTL_NAME`**=`dayz-ctl` β application name
* **`DAYZ_GAME_ID`**=`221100` β Steam game ID
* **`APPLICATIONS_DIR`**=`$HOME/.local/share/applications` β directory for
storing application shortcuts
* **`DAYZ_CTL_DIR`**=`$HOME/.local/share/dayz-ctl` β launcher working
directory
* **`DAYZ_CTL_BIN_DIR`**=`$HOME/.local/share/dayz-ctl/bin` β directory for
storing additional executable files
* **`DAYZ_REQUEST_TIMEOUT`**=`10` β standard timeout for HTTP requests in
seconds
* **`DAYZ_CONFIG_FILE`**=`$DAYZ_CTL_DIR/$DAYZ_CTL_NAME.conf` β dayz-ctl
configuration file
* **`DAYZ_SERVER_DB`**=`$DAYZ_CTL_DIR/servers.json` β server database file
* **`DAYZ_SERVER_DB_TTL`**=`300` β TTL for server database in seconds
* **`DAYZ_SERVER_REQUEST_TIMEOUT`**=`30` β timeout for getting a list of
servers in seconds
* **`DAYZ_NEWS_DB`**=`$DAYZ_CTL_DIR/news.json` β news base file
* **`DAYZ_NEWS_DB_TTL`**=`3600` β TTL for the news database in seconds
* **`DAYZ_MODS_DB`**=`$DAYZ_CTL_DIR/mods.json` β modification database file
* **`DAYZ_PROFILE`**=`$DAYZ_CTL_DIR/profile.json` β user profile file
* **`DAYZ_HISTORY_SIZE`**=`10` - server explorer history size
* **`DAYZ_FZF_HISTORY`**=`$DAYZ_CTL_DIR/.$DAYZ_CTL_NAME-history` β history
file for fuzzy search
* **`DAYZ_USERAGENT`**=`"$DAYZ_CTL_NAME $DAYZ_CTL_VERSION"` β User-Agent
used for HTTP requests
* **`DAYZ_API`**=`https://dayzsalauncher.com/api/v1` β [API][dayzsalauncher]
address for getting a list of servers
* **`DAYZ_STEAMCMD_ENABLED`**=`true` - switch to enable or disable the use
of [SteamCMD][]
* **`DAYZ_FILTER_MOD_LIMIT`**=`10` - default mod limit filter value
* **`DAYZ_FILTER_PLAYERS_LIMIT`**=`50` - default player limit filter value
* **`DAYZ_FILTER_PLAYERS_SLOTS`**=`60` β default slot limit filter value for
players## Useful
* - can help with game
performance
* - displays information about
resource usage and allows you to limit the frame rate
* - image enhancement, adds
clarity to the picture
* - additional shaders, can be
used from vkBasalt
* - setting up
replay recording in OBS
* - utility for recording
replaysSteam launch options with MangoHud, vkBasalt and gamemode enabled:
```sh
MANGOHUD=1 ENABLE_VKBASALT=1 gamemoderun %command%
```Also, without resorting to third-party utilities, you can display an overlay
with information about resources and limit FPS using standard [DXVK][]
tools, for example:```sh
DXVK_HUD=fps DXVK_FRAME_RATE=60 gamemoderun %command%
```Meaning of `DXVK_HUD=fps` ... `DXVK_HUD=full`:
* `devinfo` - Displays the name of the GPU and the driver version.
* `fps` - Shows the current frame rate.
* `frametimes` - Shows a frame time graph.
* `submissions` - Shows the number of command buffers submitted per frame.
* `drawcalls` - Shows the number of draw calls and render passes per frame.
* `pipelines` - Shows the total number of graphics and compute pipelines.
* `descriptors` - Shows the number of descriptor pools and descriptor sets.
* `memory` - Shows the amount of device memory allocated and used.
* `gpuload` - Shows estimated GPU load. May be inaccurate.
* `version` - Shows DXVK version.
* `api` - Shows the D3D feature level used by the application.
* `cs` - Shows worker thread statistics.
* `compiler` β Shows shader compiler activity
* `samplers` - Shows the current number of sampler pairs used [D3D9 Only]
* `scale=x` β Scales the HUD by a factor of x (e.g. 1.5)Frame rate limit `DXVK_FRAME_RATE=0`
[eng π¬π§]: README.md
[ua πΊπ¦]: README.ua.md
[rus π·πΊ]: README.ru.md
[logo]: extra/dayz-ctl-logo.svg[DayZ]: https://dayz.com
[Bohemia Interactive]: https://www.bohemia.net/games/dayz
[221100]: https://store.steampowered.com/app/221100
[dayz-linux-cli-launcher]: https://github.com/bastimeyer/dayz-linux-cli-launcher
[dayzsalauncher]: https://dayzsalauncher.com
[battlemetrics]: https://www.battlemetrics.com
[SteamCMD]: https://developer.valvesoftware.com/wiki/SteamCMD
[fzf]: https://github.com/junegunn/fzf
[jq]: https://github.com/stedolan/jq
[gum]: https://github.com/charmbracelet/gum
[DayZCommunityOfflineMode]: https://github.com/Arkensor/DayZCommunityOfflineMode
[Steam]: https://store.steampowered.com/about/
[Proton]: https://github.com/ValveSoftware/Proton
[Noto]: https://fonts.google.com/noto
[DXVK]: https://github.com/doitsujin/dxvk