From 7d7965b87464dc5c08d58e989307bbe8c33b96b6 Mon Sep 17 00:00:00 2001
From: aclist <92275929+aclist@users.noreply.github.com>
Date: Mon, 18 Jul 2022 01:28:46 +0900
Subject: [PATCH 01/63] Add line break
---
README.md | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index bcca7da..06c5eb7 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,4 @@
-A GUI version of [DZTUI](https://github.com/aclist/dztui) for Linux. Used to list community server details and quick connect to preferred servers by staging mods and concatenating launch options automatically. [Documentation](https://aclist.github.io/dzgui/dzgui.html)
+A GUI version of [DZTUI](https://github.com/aclist/dztui) for Linux. Used to list community server details and quick connect to preferred servers by staging mods and concatenating launch options automatically.
+[Documentation](https://aclist.github.io/dzgui/dzgui.html)
![Alt text](example.png)
From 5947e04b32f684e693128c2f32e31a1de599bc0c Mon Sep 17 00:00:00 2001
From: aclist <92275929+aclist@users.noreply.github.com>
Date: Mon, 18 Jul 2022 04:27:42 +0900
Subject: [PATCH 02/63] Add hotfix
---
changelog.md | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/changelog.md b/changelog.md
index f23c1ea..c1ebbab 100644
--- a/changelog.md
+++ b/changelog.md
@@ -5,6 +5,13 @@
- Port DZTUI symlink logic to DZGUI
- Add method of handling legacy symlinks
+## [2.2.1] 2022-07-17
+### Fixed
+- Hotfix for upstream API returning malformed modlists
+- Handle servers with no mods
+- Fix dialog window depending on browser exit
+- Remove stray newlines in config file
+
## [2.2.0] 2022-06-22
### Added
- Toggle debug mode in-app
From e5e90a1b80adca45a202e243db3ea45377e1d6bb Mon Sep 17 00:00:00 2001
From: aclist <92275929+aclist@users.noreply.github.com>
Date: Mon, 18 Jul 2022 04:27:50 +0900
Subject: [PATCH 03/63] Hotfix for broken API
---
dzgui.sh | 62 +++++++++++++++++++++++++++++++++++++++-----------------
1 file changed, 43 insertions(+), 19 deletions(-)
diff --git a/dzgui.sh b/dzgui.sh
index 14101b7..4b61e70 100644
--- a/dzgui.sh
+++ b/dzgui.sh
@@ -1,10 +1,10 @@
#!/bin/bash
set -o pipefail
-version=2.2.0
+version=2.2.1
aid=221100
game="dayz"
-workshop="https://steamcommunity.com/sharedfiles/filedetails/?id="
+workshop="steam://url/CommunityFilePage/"
api="https://api.battlemetrics.com/servers"
sd_res="--width=1280 --height=800"
config_path="$HOME/.config/dztui/"
@@ -17,6 +17,12 @@ help_url="https://aclist.github.io/dzgui/dzgui"
upstream=$(curl -Ls "$version_url" | awk -F= '/^version=/ {print $2}')
check_config_msg="Check config values and restart."
+#TODO: prevent connecting to offline servers
+#TODO: concat large mod links
+#TODO: check map count and warn
+ #sysctl -q vm.max_map_count
+ #prompt password
+#TODO: abstract zenity title params
declare -A deps
deps=([awk]="5.1.1" [curl]="7.80.0" [jq]="1.6" [tr]="9.0" [zenity]="3.42.1")
@@ -34,6 +40,7 @@ depcheck(){
done
}
init_items(){
+ #array order determines menu selector; this is destructive
items=(
"Launch server list"
"Quick connect to favorite server"
@@ -46,10 +53,11 @@ items=(
"View changelog"
)
}
-#exit_and_cleanup(){
-#rm $tmp
-#rm $link_file
-#}
+exit_and_cleanup(){
+ #TODO: this is currently unused
+ rm $tmp
+ rm $link_file
+}
warn_and_exit(){
zenity --info --title="DZGUI" --text="$1" --icon-name="dialog-warning" 2>/dev/null
printf "[DZGUI] %s\n" "$check_config_msg"
@@ -91,7 +99,6 @@ query_api(){
}
write_config(){
cat <<-END
-
#Path to DayZ installation
steam_path="$steam_path"
@@ -109,7 +116,6 @@ name="$name"
#Set to 1 to perform dry-run and print launch options
debug="0"
-
END
}
guess_path(){
@@ -200,7 +206,7 @@ open_mod_links(){
echo "${workshop}$i
"
done >> $link_file
echo "