Advertisement
rawfox

sc-starter.sh

May 23rd, 2023 (edited)
1,152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.95 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. # StarCitizen startscript example
  4. # ===============================
  5. # Here is some example conditions to select and tryout.
  6. # You need to edit the path`s to your needs and make sure, this scriptfile is executable.
  7. # Lines beginning with a "#" are comments and not respected by the execution of this startscript.
  8. # ===============================
  9.  
  10. # minimize the bash window when its started from Lutris, you need xdotool for this
  11. # --------------------------------------------------------------------------------
  12. #myRESULT="lutris"
  13. #if pgrep -x "$myRESULT" >/dev/null
  14. #then
  15. #WID=$(xdotool getactivewindow)
  16. #xdotool windowminimize $WID
  17. #fi
  18.  
  19. # exporting some variables to define places and conditions for wine
  20. # -----------------------------------------------------------------
  21.  
  22. # For Nvidia, you may want to export these variables:
  23. # --------------------------------------------------
  24. # export __GL_SHADER_DISK_CACHE=true
  25. # export __GL_SHADER_DISK_CACHE_PATH="/home/rawfox/M2/glcache/SClocal"
  26. # export __GL_SHADER_DISK_CACHE_SKIP_CLEANUP=true
  27.  
  28. # for AMD grafix, you may set this:
  29. # ---------------------------------
  30. export RADV_PERFTEST=gpl
  31.  
  32. # the rudimentary stuff, you need to edit these path`s for your needs:
  33. # --------------------------------------------------------------------
  34. # export STAGING_SHARED_MEMORY=1
  35. # export STAGING_WRITECOPY=1
  36. # export WINEESYNC=1
  37. # export WINEFSYNC=1
  38. # export WINEFSYNC_FUTEX2=1
  39. # export WINEFSYNC_SPINCOUNT=100
  40. # export MANGOHUD=1
  41. # export MANGOHUD_CONFIGFILE="/home/rawfox/.config/MangoHud/MangoHud-SC.conf"
  42. # export DXVK_ASYNC=1
  43. # export ENABLE_VKBASALT=1
  44.  
  45. export WINEPREFIX="/home/rawfox/M2/StarCitizen"
  46. export WINEDEBUG=-all #+pid,+timestamp,+seh,+loaddll,+virtual,+dialog,+msgbox
  47.  
  48. cd "/home/rawfox/M2/StarCitizen/drive_c/Program Files/Roberts Space Industries/RSI Launcher"
  49. wine "RSI Launcher.exe" #"--use-gl=osmesa" # & #"--disable-gpu-compositing"
  50.  
  51. unset WINEPREFIX
  52. unset WINEDEBUG
  53.  
  54.  
Tags: starcitizen
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement