mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-01-15 15:20:36 +00:00
Compare commits
13 Commits
7b7347dd64
...
3d6e4cc367
Author | SHA1 | Date | |
---|---|---|---|
|
3d6e4cc367 | ||
|
3932fd2754 | ||
|
314a1ff5ea | ||
|
26f1377506 | ||
|
b71f601547 | ||
|
717a83a512 | ||
|
ae25785a41 | ||
|
2f45058e58 | ||
|
33b8643d47 | ||
|
faa047546b | ||
|
5ef3a95a2a | ||
|
37e487d296 | ||
|
ab9155b9b8 |
10
README.md
10
README.md
@ -23,10 +23,13 @@ Keybinds are backed up to *$XDG_CONFIG_HOME/starcitizen-lug/keybinds/*
|
|||||||
`Install Star Citizen`
|
`Install Star Citizen`
|
||||||
- Launches Lutris and uses the bundled json to install Star Citizen
|
- Launches Lutris and uses the bundled json to install Star Citizen
|
||||||
|
|
||||||
|
`Deploy Easy Anti-Cheat Workaround`
|
||||||
|
- Applies the workaround to /etc/hosts and deletes the necessary EAC files
|
||||||
|
|
||||||
`Manage Lutris Runners`
|
`Manage Lutris Runners`
|
||||||
- Quickly install and delete Lutris wine runners
|
- Quickly install and delete Lutris wine runners
|
||||||
|
|
||||||
`Manage DXVK Versions`
|
`Manage Lutris DXVK Versions`
|
||||||
- Quickly install and delete DXVK versions for Lutris
|
- Quickly install and delete DXVK versions for Lutris
|
||||||
|
|
||||||
`Maintenance and Troubleshooting`
|
`Maintenance and Troubleshooting`
|
||||||
@ -60,8 +63,9 @@ Keybinds are backed up to *$XDG_CONFIG_HOME/starcitizen-lug/keybinds/*
|
|||||||
## Installation:
|
## Installation:
|
||||||
|
|
||||||
From Source:
|
From Source:
|
||||||
1. Download it!
|
1. Download it! https://github.com/starcitizen-lug/lug-helper/releases
|
||||||
2. Run it!
|
2. Extract it!
|
||||||
|
3. Run it!
|
||||||
|
|
||||||
Arch Linux: https://aur.archlinux.org/packages/lug-helper/
|
Arch Linux: https://aur.archlinux.org/packages/lug-helper/
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ data_dir="${XDG_DATA_HOME:-$HOME/.local/share}"
|
|||||||
conf_subdir="starcitizen-lug"
|
conf_subdir="starcitizen-lug"
|
||||||
|
|
||||||
# Helper directory
|
# Helper directory
|
||||||
helper_dir="$(realpath "$0" | xargs dirname)"
|
helper_dir="$(realpath "$0" | xargs -0 dirname)"
|
||||||
|
|
||||||
# Temporary directory
|
# Temporary directory
|
||||||
tmp_dir="$(mktemp -d --suffix=".lughelper")"
|
tmp_dir="$(mktemp -d --suffix=".lughelper")"
|
||||||
@ -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.17"
|
||||||
|
|
||||||
############################################################################
|
############################################################################
|
||||||
############################################################################
|
############################################################################
|
||||||
@ -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"
|
||||||
|
|
||||||
@ -1391,9 +1391,9 @@ eac_workaround() {
|
|||||||
eac_dir="$wine_prefix/drive_c/users/$USER/AppData/Roaming/EasyAntiCheat"
|
eac_dir="$wine_prefix/drive_c/users/$USER/AppData/Roaming/EasyAntiCheat"
|
||||||
eac_hosts="127.0.0.1 modules-cdn.eac-prod.on.epicgames.com"
|
eac_hosts="127.0.0.1 modules-cdn.eac-prod.on.epicgames.com"
|
||||||
|
|
||||||
# Check if EAC is installed
|
# Check if EAC workaround is already applied
|
||||||
if [ ! -d "$eac_dir" ]; then
|
if grep "$eac_hosts" /etc/hosts; then
|
||||||
message info "Easy Anti-Cheat does not appear to be installed yet.\nThere is nothing to do!"
|
message info "The Easy Anti-Cheat workaround has already been applied.\nYou're all set!"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -1417,8 +1417,11 @@ eac_workaround() {
|
|||||||
sudo sh -c "echo $eac_hosts '#Star Citizen EAC workaround' >> /etc/hosts"
|
sudo sh -c "echo $eac_hosts '#Star Citizen EAC workaround' >> /etc/hosts"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
debug_print continue "Deleting $eac_dir..."
|
# Delete the EAC directory if it exists
|
||||||
rm -r "$eac_dir"
|
if [ -d "$eac_dir" ]; then
|
||||||
|
debug_print continue "Deleting $eac_dir..."
|
||||||
|
rm -r "$eac_dir"
|
||||||
|
fi
|
||||||
|
|
||||||
message info "Easy Anti-Cheat workaround has been deployed!"
|
message info "Easy Anti-Cheat workaround has been deployed!"
|
||||||
fi
|
fi
|
||||||
@ -1724,7 +1727,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"
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
"script": {
|
"script": {
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"client": "https://install.robertsspaceindustries.com/star-citizen/RSI-Setup-1.5.4.exe"
|
"client": "https://install.robertsspaceindustries.com/star-citizen/RSI-Setup-1.5.5.exe"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"game": {
|
"game": {
|
||||||
@ -81,11 +81,11 @@
|
|||||||
"esync": true,
|
"esync": true,
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"nvapi,nvapi64": "disabled",
|
"nvapi,nvapi64": "disabled",
|
||||||
"libglesv2": "disabled"
|
"libglesv2": "builtin"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"content": "files:\n- client: https://install.robertsspaceindustries.com/star-citizen/RSI-Setup-1.5.4.exe\ngame:\n arch: win64\n args: null\n exe: drive_c/Program Files/Roberts Space Industries/RSI Launcher/RSI Launcher.exe\n prefix: $GAMEDIR\ninstaller:\n- task:\n arch: win64\n description: Creating Wine prefix\n name: create_prefix\n prefix: $GAMEDIR\n- task:\n app: --force arial vcrun2019 win10\n arch: win64\n description: Installing dlls\n name: winetricks\n prefix: $GAMEDIR\n- task:\n arch: win64\n args: /S\n description: Installing client\n executable: client\n name: wineexec\n prefix: $GAMEDIR\nsystem:\n env:\n DXVK_HUD: '0'\n __GL_SHADER_DISK_CACHE: 1\n __GL_SHADER_DISK_CACHE_SIZE: '1073741824'\n __GL_THREADED_OPTIMIZATIONS: '1'\nwine:\n dxvk: true\n esync: true\n overrides:\n nvapi,nvapi64: disabled\n libglesv2: disabled\n"
|
"content": "files:\n- client: https://install.robertsspaceindustries.com/star-citizen/RSI-Setup-1.5.5.exe\ngame:\n arch: win64\n args: null\n exe: drive_c/Program Files/Roberts Space Industries/RSI Launcher/RSI Launcher.exe\n prefix: $GAMEDIR\ninstaller:\n- task:\n arch: win64\n description: Creating Wine prefix\n name: create_prefix\n prefix: $GAMEDIR\n- task:\n app: --force arial vcrun2019 win10\n arch: win64\n description: Installing dlls\n name: winetricks\n prefix: $GAMEDIR\n- task:\n arch: win64\n args: /S\n description: Installing client\n executable: client\n name: wineexec\n prefix: $GAMEDIR\nsystem:\n env:\n DXVK_HUD: '0'\n __GL_SHADER_DISK_CACHE: 1\n __GL_SHADER_DISK_CACHE_SIZE: '1073741824'\n __GL_THREADED_OPTIMIZATIONS: '1'\nwine:\n dxvk: true\n esync: true\n overrides:\n nvapi,nvapi64: disabled\n libglesv2: builtin\n"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user