Compare commits

...

10 Commits

Author SHA1 Message Date
the-sane
0d2845b614 Move wiki formatting 2023-07-28 22:59:44 -04:00
the Sane
45029a7797
Merge pull request #61 from LovingMelody/master
Fix: Fix screen clear when flags are used
2023-07-28 22:02:27 -04:00
Melody Renata
32d57e9c2b
Fix: Fix screen clear when flags are used 2023-07-28 22:00:46 -04:00
the Sane
cc9b516646
Merge pull request #59 from LovingMelody/master
Add: Add NixOS Check
2023-07-28 21:30:59 -04:00
Melody Renata
3b5b1a4356
Add: Add NixOS Check 2023-07-28 21:29:04 -04:00
the Sane
cf9826bb0d
Merge pull request #58 from LovingMelody/master
Chore: Remove trailing whitespace
2023-07-28 20:44:31 -04:00
Melody Renata
3875a9a674
Chore: Remove trailing whitespace 2023-07-28 20:42:02 -04:00
the-sane
74b5c09b89 Add wiki link to terminal menu 2023-07-28 20:40:54 -04:00
Termuellinator
a807b31216
Merge pull request #57 from LovingMelody/master
Update lutris-sc-install.json: Bump RSI Launcher to 1.6.7
2023-07-22 13:35:31 +02:00
Melody Renata
ab6eeab932
Update lutris-sc-install.json: Bump RSI Launcher to 1.6.7 2023-07-22 07:32:36 -04:00
3 changed files with 51 additions and 36 deletions

View File

@ -82,4 +82,5 @@ _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,6 +46,7 @@
# 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
#
@ -86,6 +87,12 @@ 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 ############################################################
@ -222,6 +229,10 @@ 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"
############################################################################
############################################################################
############################################################################
@ -358,14 +369,12 @@ 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..."
;;
@ -378,7 +387,6 @@ 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
@ -528,8 +536,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
@ -2165,7 +2173,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\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_height="140"
menu_type="radiolist"
@ -2374,6 +2382,7 @@ 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
@ -2497,6 +2506,11 @@ 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-03T01:53:34.512132Z",
"updated_at": "2023-07-22T11:30:46.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.6.exe"
"client": "https://install.robertsspaceindustries.com/star-citizen/RSI-Setup-1.6.7.exe"
}
],
"game": {