|
|
@ -169,7 +169,7 @@ lug_wiki="https://github.com/starcitizen-lug/information-howtos/wiki"
|
|
|
|
# Github repo and script version info
|
|
|
|
# Github repo and script version info
|
|
|
|
repo="starcitizen-lug/lug-helper"
|
|
|
|
repo="starcitizen-lug/lug-helper"
|
|
|
|
releases_url="https://github.com/$repo/releases"
|
|
|
|
releases_url="https://github.com/$repo/releases"
|
|
|
|
current_version="v1.15"
|
|
|
|
current_version="v1.16"
|
|
|
|
|
|
|
|
|
|
|
|
############################################################################
|
|
|
|
############################################################################
|
|
|
|
############################################################################
|
|
|
|
############################################################################
|
|
|
@ -460,7 +460,7 @@ getdirs() {
|
|
|
|
message warning "An unexpected error has occurred. The Helper is unable to proceed."
|
|
|
|
message warning "An unexpected error has occurred. The Helper is unable to proceed."
|
|
|
|
return 1
|
|
|
|
return 1
|
|
|
|
elif [ "$(basename "$game_path")" != "$sc_base_dir" ]; then
|
|
|
|
elif [ "$(basename "$game_path")" != "$sc_base_dir" ]; then
|
|
|
|
message warning "You must select the Star Citizen base game directory.\n\nFor Example: prefix/drive_c/Program Files/Roberts Space Industries/StarCitizen"
|
|
|
|
message warning "You must select the base game directory named '$sc_base_dir'\n\nie. [prefix]/drive_c/Program Files/Roberts Space Industries/StarCitizen"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
# All good or cancel
|
|
|
|
# All good or cancel
|
|
|
|
break
|
|
|
|
break
|
|
|
@ -641,8 +641,8 @@ mapcount_once() {
|
|
|
|
mapcount_set() {
|
|
|
|
mapcount_set() {
|
|
|
|
if [ -d "/etc/sysctl.d" ]; then
|
|
|
|
if [ -d "/etc/sysctl.d" ]; then
|
|
|
|
# Newer versions of sysctl
|
|
|
|
# Newer versions of sysctl
|
|
|
|
preflight_actions+=('printf "\n# Added by LUG-Helper:\nvm.max_map_count = 16777216\n" >> /etc/sysctl.d/20-max_map_count.conf && sysctl --system')
|
|
|
|
preflight_actions+=('printf "\n# Added by LUG-Helper:\nvm.max_map_count = 16777216\n" > /etc/sysctl.d/20-starcitizen-max_map_count.conf && sysctl --system')
|
|
|
|
preflight_results+=("The vm.max_map_count configuration has been appended to:\n/etc/sysctl.d/20-max_map_count.conf")
|
|
|
|
preflight_results+=("The vm.max_map_count configuration has been appended to:\n/etc/sysctl.d/20-starcitizen-max_map_count.conf")
|
|
|
|
else
|
|
|
|
else
|
|
|
|
# Older versions of sysctl
|
|
|
|
# Older versions of sysctl
|
|
|
|
preflight_actions+=('printf "\n# Added by LUG-Helper:\nvm.max_map_count = 16777216" >> /etc/sysctl.conf && sysctl -p')
|
|
|
|
preflight_actions+=('printf "\n# Added by LUG-Helper:\nvm.max_map_count = 16777216" >> /etc/sysctl.conf && sysctl -p')
|
|
|
@ -677,7 +677,7 @@ mapcount_check() {
|
|
|
|
# Add info for manually changing the setting
|
|
|
|
# Add info for manually changing the setting
|
|
|
|
if [ -d "/etc/sysctl.d" ]; then
|
|
|
|
if [ -d "/etc/sysctl.d" ]; then
|
|
|
|
# Newer versions of sysctl
|
|
|
|
# Newer versions of sysctl
|
|
|
|
preflight_manual+=("To change vm.max_map_count permanently, add the following line to\n'/etc/sysctl.d/20-max_map_count.conf' and reload with 'sudo sysctl --system':\n vm.max_map_count = 16777216\n\nOr, to change vm.max_map_count temporarily until next boot, run:\n sudo sysctl -w vm.max_map_count=16777216")
|
|
|
|
preflight_manual+=("To change vm.max_map_count permanently, add the following line to\n'/etc/sysctl.d/20-starcitizen-max_map_count.conf' and reload with 'sudo sysctl --system'\n vm.max_map_count = 16777216\n\nOr, to change vm.max_map_count temporarily until next boot, run:\n sudo sysctl -w vm.max_map_count=16777216")
|
|
|
|
else
|
|
|
|
else
|
|
|
|
# Older versions of sysctl
|
|
|
|
# Older versions of sysctl
|
|
|
|
preflight_manual+=("To change vm.max_map_count permanently, add the following line to\n'/etc/sysctl.conf' and reload with 'sudo sysctl -p':\n vm.max_map_count = 16777216\n\nOr, to change vm.max_map_count temporarily until next boot, run:\n sudo sysctl -w vm.max_map_count=16777216")
|
|
|
|
preflight_manual+=("To change vm.max_map_count permanently, add the following line to\n'/etc/sysctl.conf' and reload with 'sudo sysctl -p':\n vm.max_map_count = 16777216\n\nOr, to change vm.max_map_count temporarily until next boot, run:\n sudo sysctl -w vm.max_map_count=16777216")
|
|
|
@ -701,8 +701,8 @@ filelimit_set() {
|
|
|
|
if [ -f "/etc/systemd/system.conf" ]; then
|
|
|
|
if [ -f "/etc/systemd/system.conf" ]; then
|
|
|
|
# Using systemd
|
|
|
|
# Using systemd
|
|
|
|
# Append to the file
|
|
|
|
# Append to the file
|
|
|
|
preflight_actions+=('printf "\n# Added by LUG-Helper:\nDefaultLimitNOFILE=524288\n" >> /etc/systemd/system.conf && systemctl daemon-reexec')
|
|
|
|
preflight_actions+=('mkdir -p /etc/systemd/system.conf.d && printf "[Manager]\n# Added by LUG-Helper:\nDefaultLimitNOFILE=524288\n" > /etc/systemd/system.conf.d/20-starcitizen-filelimit.conf && systemctl daemon-reexec')
|
|
|
|
preflight_results+=("The open files limit configuration has been appended to:\n/etc/systemd/system.conf")
|
|
|
|
preflight_results+=("The open files limit configuration has been added to:\n/etc/systemd/system.conf.d/20-starcitizen-filelimit.conf")
|
|
|
|
elif [ -f "/etc/security/limits.conf" ]; then
|
|
|
|
elif [ -f "/etc/security/limits.conf" ]; then
|
|
|
|
# Using limits.conf
|
|
|
|
# Using limits.conf
|
|
|
|
# Insert before the last line in the file
|
|
|
|
# Insert before the last line in the file
|
|
|
@ -734,7 +734,7 @@ filelimit_check() {
|
|
|
|
# Add info for manually changing the settings
|
|
|
|
# Add info for manually changing the settings
|
|
|
|
if [ -f "/etc/systemd/system.conf" ]; then
|
|
|
|
if [ -f "/etc/systemd/system.conf" ]; then
|
|
|
|
# Using systemd
|
|
|
|
# Using systemd
|
|
|
|
preflight_manual+=("To change your open file descriptors limit, add the following line to\n'/etc/systemd/system.conf':\n DefaultLimitNOFILE=524288")
|
|
|
|
preflight_manual+=("To change your open file descriptors limit, add the following to\n'/etc/systemd/system.conf.d/20-starcitizen-filelimit.conf':\n\n[Manager]\nDefaultLimitNOFILE=524288")
|
|
|
|
elif [ -f "/etc/security/limits.conf" ]; then
|
|
|
|
elif [ -f "/etc/security/limits.conf" ]; then
|
|
|
|
# Using limits.conf
|
|
|
|
# Using limits.conf
|
|
|
|
preflight_manual+=("To change your open file descriptors limit, add the following line to\n'/etc/security/limits.conf':\n * hard nofile 524288")
|
|
|
|
preflight_manual+=("To change your open file descriptors limit, add the following line to\n'/etc/security/limits.conf':\n * hard nofile 524288")
|
|
|
@ -1356,7 +1356,7 @@ dxvk_manage() {
|
|
|
|
download_dir="$dxvk_dir"
|
|
|
|
download_dir="$dxvk_dir"
|
|
|
|
|
|
|
|
|
|
|
|
# Configure the text displayed in the menus
|
|
|
|
# Configure the text displayed in the menus
|
|
|
|
download_menu_heading="DXVK Versions"
|
|
|
|
download_menu_heading="Lutris DXVK Versions"
|
|
|
|
download_menu_description="The DXVK versions below may help improve game performance"
|
|
|
|
download_menu_description="The DXVK versions below may help improve game performance"
|
|
|
|
download_menu_height="140"
|
|
|
|
download_menu_height="140"
|
|
|
|
|
|
|
|
|
|
|
@ -1724,7 +1724,7 @@ while true; do
|
|
|
|
install_msg="Install Star Citizen"
|
|
|
|
install_msg="Install Star Citizen"
|
|
|
|
eac_msg="Deploy Easy Anti-Cheat Workaround"
|
|
|
|
eac_msg="Deploy Easy Anti-Cheat Workaround"
|
|
|
|
runners_msg="Manage Lutris Runners"
|
|
|
|
runners_msg="Manage Lutris Runners"
|
|
|
|
dxvk_msg="Manage DXVK Versions"
|
|
|
|
dxvk_msg="Manage Lutris DXVK Versions"
|
|
|
|
maintenance_msg="Maintenance and Troubleshooting"
|
|
|
|
maintenance_msg="Maintenance and Troubleshooting"
|
|
|
|
randomizer_msg="Get a random Penguin's Star Citizen referral code"
|
|
|
|
randomizer_msg="Get a random Penguin's Star Citizen referral code"
|
|
|
|
quit_msg="Quit"
|
|
|
|
quit_msg="Quit"
|
|
|
|