mirror of
https://github.com/aclist/dztui.git
synced 2025-05-14 14:43:00 +02:00
fix: map count fixes
This commit is contained in:
parent
82c6dbdfef
commit
f1c1d65c28
2 changed files with 10 additions and 6 deletions
|
@ -6,6 +6,12 @@
|
||||||
- Custom query API
|
- Custom query API
|
||||||
- Store favorites by IP
|
- Store favorites by IP
|
||||||
|
|
||||||
|
## [3.2.3] 2023-02-17
|
||||||
|
### Fixed
|
||||||
|
- sysctl map count value not being loaded immediately after setting
|
||||||
|
- Application terminating when user declines to update map count value
|
||||||
|
- Erroneous stderror output when flatpak is not installed
|
||||||
|
|
||||||
## [3.2.0] 2023-01-19
|
## [3.2.0] 2023-01-19
|
||||||
### Added
|
### Added
|
||||||
- Support Flatpak version of Steam
|
- Support Flatpak version of Steam
|
||||||
|
|
10
dzgui.sh
10
dzgui.sh
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
version=3.2.2
|
version=3.2.3
|
||||||
|
|
||||||
aid=221100
|
aid=221100
|
||||||
game="dayz"
|
game="dayz"
|
||||||
|
@ -1719,13 +1719,11 @@ check_map_count(){
|
||||||
count=1048576
|
count=1048576
|
||||||
echo "[DZGUI] Checking system map count"
|
echo "[DZGUI] Checking system map count"
|
||||||
if [[ $(sysctl -q vm.max_map_count | awk -F"= " '{print $2}') -lt $count ]]; then
|
if [[ $(sysctl -q vm.max_map_count | awk -F"= " '{print $2}') -lt $count ]]; then
|
||||||
echo "100"
|
$steamsafe_zenity --question --width 500 --title="DZGUI" --text "System map count must be $count or higher to run DayZ with Wine.\nIncrease map count and make this change permanent? (will prompt for sudo password)" 2>/dev/null
|
||||||
map_warning=$($steamsafe_zenity --question --width 500 --title="DZGUI" --text "System map count must be $count or higher to run DayZ with Wine. Increase map count and make this change permanent? (will prompt for sudo password)" 2>/dev/null)
|
|
||||||
if [[ $? -eq 0 ]]; then
|
if [[ $? -eq 0 ]]; then
|
||||||
pass=$($steamsafe_zenity --password)
|
pass=$($steamsafe_zenity --password)
|
||||||
sudo -S <<< "$pass" sh -c "echo 'vm.max_map_count=1048576' > /etc/sysctl.d/dayz.conf"
|
sudo -S <<< "$pass" sh -c "echo 'vm.max_map_count=1048576' > /etc/sysctl.d/dayz.conf"
|
||||||
echo ""
|
sudo sysctl -p /etc/sysctl.d/dayz.conf
|
||||||
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -1784,7 +1782,7 @@ update_steam_cmd(){
|
||||||
}
|
}
|
||||||
steam_deps(){
|
steam_deps(){
|
||||||
local flatpak steam
|
local flatpak steam
|
||||||
flatpak=$(flatpak list | grep valvesoftware.Steam)
|
[[ $(command -v flatpak) ]] && flatpak=$(flatpak list | grep valvesoftware.Steam)
|
||||||
steam=$(command -v steam)
|
steam=$(command -v steam)
|
||||||
if [[ -z "$steam" ]] && [[ -z "$flatpak" ]]; then
|
if [[ -z "$steam" ]] && [[ -z "$flatpak" ]]; then
|
||||||
warn "Requires Steam or Flatpak Steam"
|
warn "Requires Steam or Flatpak Steam"
|
||||||
|
|
Loading…
Reference in a new issue