Compare commits

..

No commits in common. "0d2845b61473131f838e811c3cdb4eb783b5d432" and "1e70ad8d644c1ad14e6b786d4ef85239ff12fd8b" have entirely different histories.

3 changed files with 36 additions and 51 deletions

View File

@ -82,5 +82,4 @@ _Optional Dependencies: **zenity** (for GUI)_
- https://github.com/victort
- https://github.com/Wrzlprnft
- https://github.com/ananace
- https://github.com/LovingMelody
- Runner Downloader inspired by https://github.com/richardtatum/sc-runner-updater

View File

@ -46,7 +46,6 @@
# Contributor: https://github.com/gort818
# Contributor: https://github.com/victort
# Contributor: https://github.com/Wrzlprnft
# Contributor: https://github.com/LovingMelody
# Runner Downloader inspired by:
# https://github.com/richardtatum/sc-runner-updater
#
@ -87,12 +86,6 @@ if [ ! -x "$(command -v xargs)" ]; then
exit 1
fi
# Checks for NixOS for NixOS specific options
if (grep '^NAME=NixOS' /etc/os-release -q 2> /dev/null ); then
is_nixos=1
else
is_nixos=0
fi
######## Config ############################################################
@ -229,10 +222,6 @@ repo="starcitizen-lug/lug-helper"
releases_url="https://github.com/$repo/releases"
current_version="v2.8"
# FIXME: Link
# NixOS section in Wiki
lug_wiki_nixos="https://github.com/starcitizen-lug/knowledge-base/wiki/Tips-and-Tricks"
############################################################################
############################################################################
############################################################################
@ -369,12 +358,14 @@ message() {
"info")
# info message
# call format: message info "text to display"
clear
printf "\n$2\n\n"
read -n 1 -s -p "Press any key..."
;;
"warning")
# warning message
# call format: message warning "text to display"
clear
printf "\n$2\n\n"
read -n 1 -s -p "Press any key..."
;;
@ -387,6 +378,7 @@ message() {
"question")
# question
# call format: if message question "question to ask?"; then...
clear
printf "$2\n"
while read -p "[y/n]: " yn; do
case "$yn" in
@ -536,8 +528,8 @@ menu() {
matched="false"
for (( i=0; i<"${#menu_options[@]}"; i++ )); do
if [ "$choice" = "${menu_options[i]}" ]; then
clear
# Execute the corresponding action
printf "\n\n"
${menu_actions[i]}
matched="true"
break
@ -2173,7 +2165,7 @@ maintenance_menu() {
while [ "$looping_menu" = "true" ]; do
# Configure the menu
menu_text_zenity="<b><big>Game Maintenance and Troubleshooting</big>\n\nLUG Wiki: $lug_wiki</b>\n\nYou may choose from the following options:"
menu_text_terminal="Game Maintenance and Troubleshooting\n\nLUG Wiki: $lug_wiki\n\nYou may choose from the following options:"
menu_text_terminal="Game Maintenance and Troubleshooting\n\nYou may choose from the following options:"
menu_text_height="140"
menu_type="radiolist"
@ -2382,7 +2374,6 @@ live_or_ptu="$live_dir"
if [ "$use_zenity" -eq 1 ]; then
releases_url="<a href='$releases_url'>$releases_url</a>"
lug_wiki="<a href='$lug_wiki'>$lug_wiki</a>"
lug_wiki_nixos="<a href='$lug_wiki_nixos'>$lug_wiki_nixos</a>"
fi
# Check if a newer verison of the script is available
@ -2506,11 +2497,6 @@ Usage: lug-helper <options>
fi
fi
# Detect if NixOS is being used and direct user to wiki
if [ "$is_nixos" -eq 1 ]; then
message info "It looks like you're using NixOS\nPlease see our wiki for NixOS-specific configuration requirements:\n\n$lug_wiki_nixos"
fi
# Loop the main menu until the user selects quit
while true; do
# Configure the menu

View File

@ -17,7 +17,7 @@
"notes": "Performance may be choppy for the first couple minutes after visiting a new place or performing a new activity while shaders compile. Subsequent arrival should not be choppy.\r\n\r\nIf you receive a Runtime Error you can continue using Star Citizen by dragging the dialog box to the side, but in-game VoIP and FoIP will cease to function until Star Citizen is restarted. Drop in to the LUG group's chat and forums; we have custom runners to work around this problem.\r\n\r\nPlease make sure you have all Wine dependencies properly installed or your game may crash during start-up. See our wiki linked above for more information and instructions.\r\n\r\nTo prevent crashes in areas with lots of geometry, the game needs a Linux resource limit named \"vm.max_map_count\" increased. If you are following our Quick Start Guide and using our LUG Helper, the Preflight Check will do this for you. To set it manually, execute:\r\n\r\nsudo sysctl -w vm.max_map_count=16777216\r\n\r\nConsult your distro's documentation on how to set this permanently or ask a LUG member.\r\n\r\nSee you in the 'verse!",
"credits": "",
"created_at": "2023-03-24T06:40:19.908354Z",
"updated_at": "2023-07-22T11:30:46.512132Z",
"updated_at": "2023-07-03T01:53:34.512132Z",
"draft": false,
"published": true,
"published_by": null,
@ -32,7 +32,7 @@
"script": {
"files": [
{
"client": "https://install.robertsspaceindustries.com/star-citizen/RSI-Setup-1.6.7.exe"
"client": "https://install.robertsspaceindustries.com/star-citizen/RSI-Setup-1.6.6.exe"
}
],
"game": {