Installer grand-theft-auto-san-andreas-10-steam

files:
- gtasadowngraderarchive: https://services.rockstarnexus.com/sadowngrade/SADowngrade_1-3-1_Full.exe
- asi_loader: https://github.com/ThirteenAG/Ultimate-ASI-Loader/releases/download/Win32-latest/vorbisFile-Win32.zip
- modloader: https://github.com/thelink2012/modloader/releases/download/v0.3.7/modloader.zip
- silentpatchsa: https://github.com/CookiePLMonster/SilentPatch/releases/latest/download/SilentPatchSA.zip
- widescreen_fix: https://github.com/ThirteenAG/WidescreenFixesPack/releases/download/gtasa-wshps/GTASA.WidescreenFix.Archived.zip
- wsfix_HOR+: https://github.com/ThirteenAG/WidescreenFixesPack/releases/download/gtasa-wshps/wshps.asi
- project2dfx: https://github.com/ThirteenAG/III.VC.SA.IV.Project2DFX/releases/download/gtasa/SA.Project2DFX.zip
- ginput: http://silent.rockstarvision.com/uploads/GInputSA.zip
- frameratevigilante: https://fileservice.gtainside.com/downloads/ftpl/1702416328_GTA%20San%20Andreas%20Framerate%20Vigilante.zip
- samp: https://gta-multiplayer.cz/downloads/sa-mp-0.3.7-R5-2-MP-install.exe
- openmp: https://github.com/openmultiplayer/launcher/releases/latest/download/omp-launcher-setup.exe
- ompclientdll: https://assets.open.mp/omp-client.dll
- webview2:
    filename: MicrosoftEdgeWebview2Setup.exe
    url: https://go.microsoft.com/fwlink/p/?LinkId=2124703
game:
  arch: win64
  args: -h samp.example.com -p 7777 -n Player123 -g 'C:/Program Files (x86)/Rockstar
    Games/GTA San Andreas'
  exe: $GAMEDIR/drive_c/Program Files (x86)/Open Multiplayer Launcher/omp-launcher.exe
  prefix: $GAMEDIR
installer:
- task:
    description: Creating Wine prefix...
    name: create_prefix
    prefix: $GAMEDIR
- task:
    app: win7
    description: Set Windows version to Windows 7...
    name: winetricks
    prefix: $GAMEDIR
- task:
    app: allfonts
    description: Installing allfonts, will take 10-20 minutes...
    name: winetricks
    prefix: $GAMEDIR
- task:
    app: dotnet48
    description: Installing .NET 4.8, will take 10-20 minutes...
    name: winetricks
    prefix: $GAMEDIR
- task:
    description: Installing WebView2... Press 'Close' when installer is finished...
    executable: $webview2
    name: wineexec
    prefix: $GAMEDIR
- execute:
    command: mkdir -p "$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/"
    description: Creating folder...
- execute:
    command: "if [ -d \"$HOME/.var/app/com.valvesoftware.Steam/data/Steam/steamapps/common/Grand\
      \ Theft Auto San Andreas\" ]; then\n  echo \".var/app/com.valvesoftware.Steam/data/Steam/steamapps/common/Grand\
      \ Theft Auto San Andreas\" > \"$CACHE/gtasa_path\"\nelif [ -d \"$HOME/.steam/steam/steamapps/common/Grand\
      \ Theft Auto San Andreas\" ]; then\n  echo \".steam/steam/steamapps/common/Grand\
      \ Theft Auto San Andreas\" > \"$CACHE/gtasa_path\"\nelse\n  echo \"ERROR: GTA\
      \ San Andreas not found! Make sure you have installed it using Steam!\"\n  exit\
      \ 1\nfi\n"
    description: Detecting Steam GTA San Andreas install directory...
- execute:
    command: 'STEAMGTASADIR=$(cat "$CACHE/gtasa_path")

      cp -R "$HOME/$STEAMGTASADIR/." "$GAMEDIR/drive_c/Program Files (x86)/Rockstar
      Games/GTA San Andreas"

      '
    description: Copying Steam version to $GAMEDIR...
- extract:
    description: Extracting downgrader...
    dst: $CACHE/GTASADOWNGRADER
    file: gtasadowngraderarchive
    format: exe
- execute:
    command: 'env -u LD_LIBRARY_PATH zenity --width=600 --info --title="DON''T SKIP
      THIS!" --text="The downgrader will prompt you multiple times, do the following:\n1)
      Press ''Yes'' to agree to license terms\n2) Press ''No'' to not check for updates\n3)
      Press ''OK'' when warned about not updating\n4) Press ''OK'' when prompted about
      fatal error when trying to reach RockstarNexus\n5) Wait until it says ''Scan
      complete''\n6) Press ''Downgrade''\n7) Press ''No'' when prompted to create
      a copy\n8) Press ''Yes'' when prompted to create a registry entry\n9) Wait for
      downgrade to complete and press ''OK''\n10) Press ''Exit''"

      '
    description: Prompting the user so they know how to use the downgrader...
- task:
    description: 'Downgrading... Remember: Yes, No, OK, OK, wait, Downgrade, No, Yes,
      OK, Exit!'
    executable: $CACHE/GTASADOWNGRADER/sadowngrade1-3-1.exe
    name: wineexec
    prefix: $GAMEDIR
- extract:
    description: Installing Ultimate ASI Loader...
    dst: $GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/
    file: asi_loader
- extract:
    description: Installing Mod Loader...
    dst: $GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/
    file: modloader
- extract:
    description: Installing SilentPatchSA...
    dst: $GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/SilentPatchSA/
    file: silentpatchsa
- extract:
    description: Extracting Widescreen Fix...
    dst: $CACHE/widescreen_fix/
    file: widescreen_fix
- copy:
    description: Installing Widescreen Fix...
    dst: $GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/WidescreenFix/
    src: $CACHE/widescreen_fix/scripts/GTASA.WidescreenFix.asi
- copy:
    description: Installing Widescreen Fix...
    dst: $GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/WidescreenFix/
    src: $CACHE/widescreen_fix/scripts/GTASA.WidescreenFix.ini
- copy:
    description: Installing Widescreen Fix HOR+...
    dst: $GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/WidescreenFix/
    src: wsfix_HOR+
- extract:
    description: Extracting Ginput...
    dst: $CACHE/ginput/
    file: ginput
- copy:
    description: Installing Ginput...
    dst: $GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/ginput
    src: $CACHE/ginput/
- extract:
    description: Extracting Project2DFX...
    dst: $CACHE/project2dfx/
    file: project2dfx
- copy:
    description: Installing Project2DFX...
    dst: $GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX
    src: $CACHE/project2dfx/
- extract:
    description: Extracting FramerateVigilante...
    dst: $CACHE/frameratevigilante/
    file: frameratevigilante
- copy:
    description: Installing Framerate Vigilante...
    dst: $GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/FramerateVigilante/
    src: $CACHE/frameratevigilante/FramerateVigilante
- task:
    description: Adding GTA SA registry keys...
    key: ExePath
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Rockstar Games\GTA San Andreas\Installation
    type: REG_SZ
    value: C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gta_sa.exe
- task:
    description: Adding GTA SA registry keys...
    key: Installed
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Rockstar Games\GTA San Andreas\Installation
    type: REG_SZ
    value: '1'
- task:
    description: Adding GTA SA registry keys...
    key: UninstallPath
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Rockstar Games\GTA San Andreas\Installation
    type: REG_SZ
    value: RunDll32 C:\PROGRA~1\COMMON~1\INSTAL~1\PROFES~1\RunTime\10\50\Intel32\Ctor.dll,LaunchSetup
      "C:\Program Files\InstallShield Installation Information\{D417C96A-FCC7-4590-A1BB-FAF73F5BC98E}\setup.exe"
      -l0x9
- task:
    description: Adding GTA SA registry keys...
    key: empty
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Rockstar Games\GTA San Andreas\1.00.00001
    type: REG_SZ
    value: empty
- task:
    description: Installing SA:MP... Press 'I agree', 'Install', 'Finish'
    executable: $samp
    name: wineexec
    prefix: $GAMEDIR
- execute:
    command: 'env -u LD_LIBRARY_PATH zenity --width=600 --info --title="DON''T SKIP
      THIS!" --text="The Open:MP launcher GUI will not work on Linux.\nMake sure you
      uncheck the ''Run Open Multiplayer launcher''!\nYou can later use command line
      arguments to join specific servers."

      '
    description: Prompting the user so they know how to use the downgrader...
- task:
    description: Installing Open:MP.. Press 'Next', 'Next', 'Install', 'Next', uncheck
      all, 'Finish'
    executable: $openmp
    name: wineexec
    prefix: $GAMEDIR
- copy:
    description: Installing OpenMP Client DLL...
    dst: $GAMEDIR/drive_c/users/$USER/AppData/Local/mp.open.launcher/omp/
    src: ompclientdll
- execute:
    command: 'sed -i ''s/^CarSpeedDependantFOV = [^ ]*/CarSpeedDependantFOV = 0.0/''
      "$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/WidescreenFix/GTASA.WidescreenFix.ini"

      '
    description: Removing dynamic FOV in WidescreenFix...
- execute:
    command: 'sed -i ''s/^FrameLimit = [^ ]*/FrameLimit = 60/'' "$GAMEDIR/drive_c/Program
      Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/III.VC.SA.LimitAdjuster.ini"

      '
    description: Changing FPS limit to 60fps in OpenLimitAdjuster...
- execute:
    command: 'sed -i ''s/^MemoryAvailable = [^ ]*/MemoryAvailable = 1024/'' "$GAMEDIR/drive_c/Program
      Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/III.VC.SA.LimitAdjuster.ini"

      '
    description: Changing memory limit to 1024MB in OpenLimitAdjuster...
- execute:
    command: 'sed -i ''s/^Vehicles = [^ ]*/Vehicles = 200/'' "$GAMEDIR/drive_c/Program
      Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/III.VC.SA.LimitAdjuster.ini"

      '
    description: Changing vehicle limit to 200 in OpenLimitAdjuster (fixes crowded
      SAMP servers)...
- execute:
    command: 'sed -i ''s/^CoronaRadiusMultiplier = [^ ]*/CoronaRadiusMultiplier =
      0.3/'' "$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/SALodLights.ini"

      '
    description: Changing CoronaRadiusMultiplier to 0.3 in SA LOD lights...
- execute:
    command: 'sed -i ''s/^MinDrawDistanceOnTheGround = [^ ]*/MinDrawDistanceOnTheGround
      = 500/'' "$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/SALodLights.ini"

      '
    description: Changing MinDrawDistanceOnTheGround to 500 in SA LOD lights (preserve
      original game feel)...
- execute:
    command: 'sed -i ''s/^Factor1 = [^ ]*/Factor1 = 5.0/'' "$GAMEDIR/drive_c/Program
      Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/SALodLights.ini"

      '
    description: Changing Factor1 to 5.0 in SA LOD lights (prevents seeing too much
      map from Chilliad)...
- execute:
    command: 'sed -i ''s/^TimedObjectsDrawDistance = [^ ]*/TimedObjectsDrawDistance
      = 6000.0/'' "$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/SALodLights.ini"

      '
    description: Changing TimedObjectsDrawDistance to 6000.0 in SA LOD lights (allows
      to see neons from far away)...
- execute:
    command: 'sed -i ''s/^LODObjectsDrawDistance = [^ ]*/LODObjectsDrawDistance =
      6000.0/'' "$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/SALodLights.ini"

      '
    description: Changing LODObjectsDrawDistance to 6000.0 in SA LOD lights (loads
      almost all LODs in memory to make streaming objects smoother)...
- execute:
    command: 'sed -i ''s/^GenericObjectsDrawDistance = [^ ]*/GenericObjectsDrawDistance
      = 500.0/'' "$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/SALodLights.ini"

      '
    description: Changing GenericObjectsDrawDistance to 500.0 in SA LOD lights (allows
      rocks to stream in smoothly)...
- execute:
    command: 'sed -i ''s/^AllNormalObjectsDrawDistance = [^ ]*/AllNormalObjectsDrawDistance
      = 200.0/'' "$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/SALodLights.ini"

      '
    description: Changing AllNormalObjectsDrawDistance to 200.0 in SA LOD lights (allows
      misc object to stream in smoothly)...
- execute:
    command: sed -i 's|^NeonsDrawDistance = [^ ]*|//NeonsDrawDistance = 0.0|' "$GAMEDIR/drive_c/Program
      Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/SALodLights.ini"
    description: Disable NeonsDrawDistance in SA LOD lights (GTA:SA does not use them)...
description: Uses Steam version of the game
game_slug: grand-theft-auto-san-andreas-open-multiplayer
gogslug: ''
humblestoreid: ''
installer_slug: grand-theft-auto-san-andreas-10-steam
name: "Grand Theft Auto: San Andreas \u2014 Open Multiplayer"
notes: "Tested and working with \"wine-ge-*\" runner.\r\n\r\nDuring the installation\
  \ you will be prompted by 'SA Downgrader', select the following options:\r\n- Select\
  \ 'yes' when prompted about 'Disclaimer'\r\n- Select 'no' when asked about updating\
  \ 'SA Downgrader'\\r\\n\r\n- Select 'ok' when warned about possible issues\r\n-\
  \ Ignore the error about reaching online services\r\n- Press 'Downgrade'\r\n- Press\
  \ 'No' when asked about creating a copy of GTA San Andreas to another location\r\
  \n- Press 'Yes' when asked about creating retail registry entries\r\n- Wait for\
  \ the downgrader to finish\r\n- Press 'Exit'\r\n\r\n> Do NOT run Open:MP after installing\
  \ it, use the Lutris launcher instead!\r\n\r\nThis installer tries to preserve the\
  \ original feel while fixing issues with the game on modern hardware.\r\nThe GUI\
  \ Open:MP launcher is not working, but the command line option is working properly,\
  \ you can create multiple duplicates of the Game and change the command line parameters\
  \ to join different servers.\r\nThis installer is designed for Steam Deck, but should\
  \ work for any popular Linux distros as well. If you need to get the Steam Deck's\
  \ joystick buttons to work, you will need to create a shortcut for Steam from Lutris\
  \ and launch the game from Steam instead of Lutris."
runner: wine
script:
  files:
  - gtasadowngraderarchive: https://services.rockstarnexus.com/sadowngrade/SADowngrade_1-3-1_Full.exe
  - asi_loader: https://github.com/ThirteenAG/Ultimate-ASI-Loader/releases/download/Win32-latest/vorbisFile-Win32.zip
  - modloader: https://github.com/thelink2012/modloader/releases/download/v0.3.7/modloader.zip
  - silentpatchsa: https://github.com/CookiePLMonster/SilentPatch/releases/latest/download/SilentPatchSA.zip
  - widescreen_fix: https://github.com/ThirteenAG/WidescreenFixesPack/releases/download/gtasa-wshps/GTASA.WidescreenFix.Archived.zip
  - wsfix_HOR+: https://github.com/ThirteenAG/WidescreenFixesPack/releases/download/gtasa-wshps/wshps.asi
  - project2dfx: https://github.com/ThirteenAG/III.VC.SA.IV.Project2DFX/releases/download/gtasa/SA.Project2DFX.zip
  - ginput: http://silent.rockstarvision.com/uploads/GInputSA.zip
  - frameratevigilante: https://fileservice.gtainside.com/downloads/ftpl/1702416328_GTA%20San%20Andreas%20Framerate%20Vigilante.zip
  - samp: https://gta-multiplayer.cz/downloads/sa-mp-0.3.7-R5-2-MP-install.exe
  - openmp: https://github.com/openmultiplayer/launcher/releases/latest/download/omp-launcher-setup.exe
  - ompclientdll: https://assets.open.mp/omp-client.dll
  - webview2:
      filename: MicrosoftEdgeWebview2Setup.exe
      url: https://go.microsoft.com/fwlink/p/?LinkId=2124703
  game:
    arch: win64
    args: -h samp.example.com -p 7777 -n Player123 -g 'C:/Program Files (x86)/Rockstar
      Games/GTA San Andreas'
    exe: $GAMEDIR/drive_c/Program Files (x86)/Open Multiplayer Launcher/omp-launcher.exe
    prefix: $GAMEDIR
  installer:
  - task:
      description: Creating Wine prefix...
      name: create_prefix
      prefix: $GAMEDIR
  - task:
      app: win7
      description: Set Windows version to Windows 7...
      name: winetricks
      prefix: $GAMEDIR
  - task:
      app: allfonts
      description: Installing allfonts, will take 10-20 minutes...
      name: winetricks
      prefix: $GAMEDIR
  - task:
      app: dotnet48
      description: Installing .NET 4.8, will take 10-20 minutes...
      name: winetricks
      prefix: $GAMEDIR
  - task:
      description: Installing WebView2... Press 'Close' when installer is finished...
      executable: $webview2
      name: wineexec
      prefix: $GAMEDIR
  - execute:
      command: mkdir -p "$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/"
      description: Creating folder...
  - execute:
      command: "if [ -d \"$HOME/.var/app/com.valvesoftware.Steam/data/Steam/steamapps/common/Grand\
        \ Theft Auto San Andreas\" ]; then\n  echo \".var/app/com.valvesoftware.Steam/data/Steam/steamapps/common/Grand\
        \ Theft Auto San Andreas\" > \"$CACHE/gtasa_path\"\nelif [ -d \"$HOME/.steam/steam/steamapps/common/Grand\
        \ Theft Auto San Andreas\" ]; then\n  echo \".steam/steam/steamapps/common/Grand\
        \ Theft Auto San Andreas\" > \"$CACHE/gtasa_path\"\nelse\n  echo \"ERROR:\
        \ GTA San Andreas not found! Make sure you have installed it using Steam!\"\
        \n  exit 1\nfi\n"
      description: Detecting Steam GTA San Andreas install directory...
  - execute:
      command: 'STEAMGTASADIR=$(cat "$CACHE/gtasa_path")

        cp -R "$HOME/$STEAMGTASADIR/." "$GAMEDIR/drive_c/Program Files (x86)/Rockstar
        Games/GTA San Andreas"

        '
      description: Copying Steam version to $GAMEDIR...
  - extract:
      description: Extracting downgrader...
      dst: $CACHE/GTASADOWNGRADER
      file: gtasadowngraderarchive
      format: exe
  - execute:
      command: 'env -u LD_LIBRARY_PATH zenity --width=600 --info --title="DON''T SKIP
        THIS!" --text="The downgrader will prompt you multiple times, do the following:\n1)
        Press ''Yes'' to agree to license terms\n2) Press ''No'' to not check for
        updates\n3) Press ''OK'' when warned about not updating\n4) Press ''OK'' when
        prompted about fatal error when trying to reach RockstarNexus\n5) Wait until
        it says ''Scan complete''\n6) Press ''Downgrade''\n7) Press ''No'' when prompted
        to create a copy\n8) Press ''Yes'' when prompted to create a registry entry\n9)
        Wait for downgrade to complete and press ''OK''\n10) Press ''Exit''"

        '
      description: Prompting the user so they know how to use the downgrader...
  - task:
      description: 'Downgrading... Remember: Yes, No, OK, OK, wait, Downgrade, No,
        Yes, OK, Exit!'
      executable: $CACHE/GTASADOWNGRADER/sadowngrade1-3-1.exe
      name: wineexec
      prefix: $GAMEDIR
  - extract:
      description: Installing Ultimate ASI Loader...
      dst: $GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/
      file: asi_loader
  - extract:
      description: Installing Mod Loader...
      dst: $GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/
      file: modloader
  - extract:
      description: Installing SilentPatchSA...
      dst: $GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/SilentPatchSA/
      file: silentpatchsa
  - extract:
      description: Extracting Widescreen Fix...
      dst: $CACHE/widescreen_fix/
      file: widescreen_fix
  - copy:
      description: Installing Widescreen Fix...
      dst: $GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/WidescreenFix/
      src: $CACHE/widescreen_fix/scripts/GTASA.WidescreenFix.asi
  - copy:
      description: Installing Widescreen Fix...
      dst: $GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/WidescreenFix/
      src: $CACHE/widescreen_fix/scripts/GTASA.WidescreenFix.ini
  - copy:
      description: Installing Widescreen Fix HOR+...
      dst: $GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/WidescreenFix/
      src: wsfix_HOR+
  - extract:
      description: Extracting Ginput...
      dst: $CACHE/ginput/
      file: ginput
  - copy:
      description: Installing Ginput...
      dst: $GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/ginput
      src: $CACHE/ginput/
  - extract:
      description: Extracting Project2DFX...
      dst: $CACHE/project2dfx/
      file: project2dfx
  - copy:
      description: Installing Project2DFX...
      dst: $GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX
      src: $CACHE/project2dfx/
  - extract:
      description: Extracting FramerateVigilante...
      dst: $CACHE/frameratevigilante/
      file: frameratevigilante
  - copy:
      description: Installing Framerate Vigilante...
      dst: $GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/FramerateVigilante/
      src: $CACHE/frameratevigilante/FramerateVigilante
  - task:
      description: Adding GTA SA registry keys...
      key: ExePath
      name: set_regedit
      path: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Rockstar Games\GTA San Andreas\Installation
      type: REG_SZ
      value: C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gta_sa.exe
  - task:
      description: Adding GTA SA registry keys...
      key: Installed
      name: set_regedit
      path: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Rockstar Games\GTA San Andreas\Installation
      type: REG_SZ
      value: '1'
  - task:
      description: Adding GTA SA registry keys...
      key: UninstallPath
      name: set_regedit
      path: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Rockstar Games\GTA San Andreas\Installation
      type: REG_SZ
      value: RunDll32 C:\PROGRA~1\COMMON~1\INSTAL~1\PROFES~1\RunTime\10\50\Intel32\Ctor.dll,LaunchSetup
        "C:\Program Files\InstallShield Installation Information\{D417C96A-FCC7-4590-A1BB-FAF73F5BC98E}\setup.exe"
        -l0x9
  - task:
      description: Adding GTA SA registry keys...
      key: empty
      name: set_regedit
      path: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Rockstar Games\GTA San Andreas\1.00.00001
      type: REG_SZ
      value: empty
  - task:
      description: Installing SA:MP... Press 'I agree', 'Install', 'Finish'
      executable: $samp
      name: wineexec
      prefix: $GAMEDIR
  - execute:
      command: 'env -u LD_LIBRARY_PATH zenity --width=600 --info --title="DON''T SKIP
        THIS!" --text="The Open:MP launcher GUI will not work on Linux.\nMake sure
        you uncheck the ''Run Open Multiplayer launcher''!\nYou can later use command
        line arguments to join specific servers."

        '
      description: Prompting the user so they know how to use the downgrader...
  - task:
      description: Installing Open:MP.. Press 'Next', 'Next', 'Install', 'Next', uncheck
        all, 'Finish'
      executable: $openmp
      name: wineexec
      prefix: $GAMEDIR
  - copy:
      description: Installing OpenMP Client DLL...
      dst: $GAMEDIR/drive_c/users/$USER/AppData/Local/mp.open.launcher/omp/
      src: ompclientdll
  - execute:
      command: 'sed -i ''s/^CarSpeedDependantFOV = [^ ]*/CarSpeedDependantFOV = 0.0/''
        "$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/WidescreenFix/GTASA.WidescreenFix.ini"

        '
      description: Removing dynamic FOV in WidescreenFix...
  - execute:
      command: 'sed -i ''s/^FrameLimit = [^ ]*/FrameLimit = 60/'' "$GAMEDIR/drive_c/Program
        Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/III.VC.SA.LimitAdjuster.ini"

        '
      description: Changing FPS limit to 60fps in OpenLimitAdjuster...
  - execute:
      command: 'sed -i ''s/^MemoryAvailable = [^ ]*/MemoryAvailable = 1024/'' "$GAMEDIR/drive_c/Program
        Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/III.VC.SA.LimitAdjuster.ini"

        '
      description: Changing memory limit to 1024MB in OpenLimitAdjuster...
  - execute:
      command: 'sed -i ''s/^Vehicles = [^ ]*/Vehicles = 200/'' "$GAMEDIR/drive_c/Program
        Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/III.VC.SA.LimitAdjuster.ini"

        '
      description: Changing vehicle limit to 200 in OpenLimitAdjuster (fixes crowded
        SAMP servers)...
  - execute:
      command: 'sed -i ''s/^CoronaRadiusMultiplier = [^ ]*/CoronaRadiusMultiplier
        = 0.3/'' "$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/SALodLights.ini"

        '
      description: Changing CoronaRadiusMultiplier to 0.3 in SA LOD lights...
  - execute:
      command: 'sed -i ''s/^MinDrawDistanceOnTheGround = [^ ]*/MinDrawDistanceOnTheGround
        = 500/'' "$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/SALodLights.ini"

        '
      description: Changing MinDrawDistanceOnTheGround to 500 in SA LOD lights (preserve
        original game feel)...
  - execute:
      command: 'sed -i ''s/^Factor1 = [^ ]*/Factor1 = 5.0/'' "$GAMEDIR/drive_c/Program
        Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/SALodLights.ini"

        '
      description: Changing Factor1 to 5.0 in SA LOD lights (prevents seeing too much
        map from Chilliad)...
  - execute:
      command: 'sed -i ''s/^TimedObjectsDrawDistance = [^ ]*/TimedObjectsDrawDistance
        = 6000.0/'' "$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/SALodLights.ini"

        '
      description: Changing TimedObjectsDrawDistance to 6000.0 in SA LOD lights (allows
        to see neons from far away)...
  - execute:
      command: 'sed -i ''s/^LODObjectsDrawDistance = [^ ]*/LODObjectsDrawDistance
        = 6000.0/'' "$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/SALodLights.ini"

        '
      description: Changing LODObjectsDrawDistance to 6000.0 in SA LOD lights (loads
        almost all LODs in memory to make streaming objects smoother)...
  - execute:
      command: 'sed -i ''s/^GenericObjectsDrawDistance = [^ ]*/GenericObjectsDrawDistance
        = 500.0/'' "$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/SALodLights.ini"

        '
      description: Changing GenericObjectsDrawDistance to 500.0 in SA LOD lights (allows
        rocks to stream in smoothly)...
  - execute:
      command: 'sed -i ''s/^AllNormalObjectsDrawDistance = [^ ]*/AllNormalObjectsDrawDistance
        = 200.0/'' "$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/SALodLights.ini"

        '
      description: Changing AllNormalObjectsDrawDistance to 200.0 in SA LOD lights
        (allows misc object to stream in smoothly)...
  - execute:
      command: sed -i 's|^NeonsDrawDistance = [^ ]*|//NeonsDrawDistance = 0.0|' "$GAMEDIR/drive_c/Program
        Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/SALodLights.ini"
      description: Disable NeonsDrawDistance in SA LOD lights (GTA:SA does not use
        them)...
slug: grand-theft-auto-san-andreas-10-steam
steamid: null
version: 1.0 - Steam
year: 2020
{
  "game_slug": "grand-theft-auto-san-andreas-open-multiplayer",
  "version": "1.0 - Steam",
  "description": "Uses Steam version of the game",
  "notes": "Tested and working with \"wine-ge-*\" runner.\r\n\r\nDuring the installation you will be prompted by 'SA Downgrader', select the following options:\r\n- Select 'yes' when prompted about 'Disclaimer'\r\n- Select 'no' when asked about updating 'SA Downgrader'\\r\\n\r\n- Select 'ok' when warned about possible issues\r\n- Ignore the error about reaching online services\r\n- Press 'Downgrade'\r\n- Press 'No' when asked about creating a copy of GTA San Andreas to another location\r\n- Press 'Yes' when asked about creating retail registry entries\r\n- Wait for the downgrader to finish\r\n- Press 'Exit'\r\n\r\n> Do NOT run Open:MP after installing it, use the Lutris launcher instead!\r\n\r\nThis installer tries to preserve the original feel while fixing issues with the game on modern hardware.\r\nThe GUI Open:MP launcher is not working, but the command line option is working properly, you can create multiple duplicates of the Game and change the command line parameters to join different servers.\r\nThis installer is designed for Steam Deck, but should work for any popular Linux distros as well. If you need to get the Steam Deck's joystick buttons to work, you will need to create a shortcut for Steam from Lutris and launch the game from Steam instead of Lutris.",
  "name": "Grand Theft Auto: San Andreas \u2014 Open Multiplayer",
  "year": 2020,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "grand-theft-auto-san-andreas-10-steam",
  "installer_slug": "grand-theft-auto-san-andreas-10-steam",
  "script": {
    "files": [
      {
        "gtasadowngraderarchive": "https://services.rockstarnexus.com/sadowngrade/SADowngrade_1-3-1_Full.exe"
      },
      {
        "asi_loader": "https://github.com/ThirteenAG/Ultimate-ASI-Loader/releases/download/Win32-latest/vorbisFile-Win32.zip"
      },
      {
        "modloader": "https://github.com/thelink2012/modloader/releases/download/v0.3.7/modloader.zip"
      },
      {
        "silentpatchsa": "https://github.com/CookiePLMonster/SilentPatch/releases/latest/download/SilentPatchSA.zip"
      },
      {
        "widescreen_fix": "https://github.com/ThirteenAG/WidescreenFixesPack/releases/download/gtasa-wshps/GTASA.WidescreenFix.Archived.zip"
      },
      {
        "wsfix_HOR+": "https://github.com/ThirteenAG/WidescreenFixesPack/releases/download/gtasa-wshps/wshps.asi"
      },
      {
        "project2dfx": "https://github.com/ThirteenAG/III.VC.SA.IV.Project2DFX/releases/download/gtasa/SA.Project2DFX.zip"
      },
      {
        "ginput": "http://silent.rockstarvision.com/uploads/GInputSA.zip"
      },
      {
        "frameratevigilante": "https://fileservice.gtainside.com/downloads/ftpl/1702416328_GTA%20San%20Andreas%20Framerate%20Vigilante.zip"
      },
      {
        "samp": "https://gta-multiplayer.cz/downloads/sa-mp-0.3.7-R5-2-MP-install.exe"
      },
      {
        "openmp": "https://github.com/openmultiplayer/launcher/releases/latest/download/omp-launcher-setup.exe"
      },
      {
        "ompclientdll": "https://assets.open.mp/omp-client.dll"
      },
      {
        "webview2": {
          "filename": "MicrosoftEdgeWebview2Setup.exe",
          "url": "https://go.microsoft.com/fwlink/p/?LinkId=2124703"
        }
      }
    ],
    "game": {
      "arch": "win64",
      "args": "-h samp.example.com -p 7777 -n Player123 -g 'C:/Program Files (x86)/Rockstar Games/GTA San Andreas'",
      "exe": "$GAMEDIR/drive_c/Program Files (x86)/Open Multiplayer Launcher/omp-launcher.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "description": "Creating Wine prefix...",
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "app": "win7",
          "description": "Set Windows version to Windows 7...",
          "name": "winetricks",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "app": "allfonts",
          "description": "Installing allfonts, will take 10-20 minutes...",
          "name": "winetricks",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "app": "dotnet48",
          "description": "Installing .NET 4.8, will take 10-20 minutes...",
          "name": "winetricks",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "description": "Installing WebView2... Press 'Close' when installer is finished...",
          "executable": "$webview2",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "execute": {
          "command": "mkdir -p \"$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/\"",
          "description": "Creating folder..."
        }
      },
      {
        "execute": {
          "command": "if [ -d \"$HOME/.var/app/com.valvesoftware.Steam/data/Steam/steamapps/common/Grand Theft Auto San Andreas\" ]; then\n  echo \".var/app/com.valvesoftware.Steam/data/Steam/steamapps/common/Grand Theft Auto San Andreas\" > \"$CACHE/gtasa_path\"\nelif [ -d \"$HOME/.steam/steam/steamapps/common/Grand Theft Auto San Andreas\" ]; then\n  echo \".steam/steam/steamapps/common/Grand Theft Auto San Andreas\" > \"$CACHE/gtasa_path\"\nelse\n  echo \"ERROR: GTA San Andreas not found! Make sure you have installed it using Steam!\"\n  exit 1\nfi\n",
          "description": "Detecting Steam GTA San Andreas install directory..."
        }
      },
      {
        "execute": {
          "command": "STEAMGTASADIR=$(cat \"$CACHE/gtasa_path\")\ncp -R \"$HOME/$STEAMGTASADIR/.\" \"$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas\"\n",
          "description": "Copying Steam version to $GAMEDIR..."
        }
      },
      {
        "extract": {
          "description": "Extracting downgrader...",
          "dst": "$CACHE/GTASADOWNGRADER",
          "file": "gtasadowngraderarchive",
          "format": "exe"
        }
      },
      {
        "execute": {
          "command": "env -u LD_LIBRARY_PATH zenity --width=600 --info --title=\"DON'T SKIP THIS!\" --text=\"The downgrader will prompt you multiple times, do the following:\\n1) Press 'Yes' to agree to license terms\\n2) Press 'No' to not check for updates\\n3) Press 'OK' when warned about not updating\\n4) Press 'OK' when prompted about fatal error when trying to reach RockstarNexus\\n5) Wait until it says 'Scan complete'\\n6) Press 'Downgrade'\\n7) Press 'No' when prompted to create a copy\\n8) Press 'Yes' when prompted to create a registry entry\\n9) Wait for downgrade to complete and press 'OK'\\n10) Press 'Exit'\"\n",
          "description": "Prompting the user so they know how to use the downgrader..."
        }
      },
      {
        "task": {
          "description": "Downgrading... Remember: Yes, No, OK, OK, wait, Downgrade, No, Yes, OK, Exit!",
          "executable": "$CACHE/GTASADOWNGRADER/sadowngrade1-3-1.exe",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "extract": {
          "description": "Installing Ultimate ASI Loader...",
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/",
          "file": "asi_loader"
        }
      },
      {
        "extract": {
          "description": "Installing Mod Loader...",
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/",
          "file": "modloader"
        }
      },
      {
        "extract": {
          "description": "Installing SilentPatchSA...",
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/SilentPatchSA/",
          "file": "silentpatchsa"
        }
      },
      {
        "extract": {
          "description": "Extracting Widescreen Fix...",
          "dst": "$CACHE/widescreen_fix/",
          "file": "widescreen_fix"
        }
      },
      {
        "copy": {
          "description": "Installing Widescreen Fix...",
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/WidescreenFix/",
          "src": "$CACHE/widescreen_fix/scripts/GTASA.WidescreenFix.asi"
        }
      },
      {
        "copy": {
          "description": "Installing Widescreen Fix...",
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/WidescreenFix/",
          "src": "$CACHE/widescreen_fix/scripts/GTASA.WidescreenFix.ini"
        }
      },
      {
        "copy": {
          "description": "Installing Widescreen Fix HOR+...",
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/WidescreenFix/",
          "src": "wsfix_HOR+"
        }
      },
      {
        "extract": {
          "description": "Extracting Ginput...",
          "dst": "$CACHE/ginput/",
          "file": "ginput"
        }
      },
      {
        "copy": {
          "description": "Installing Ginput...",
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/ginput",
          "src": "$CACHE/ginput/"
        }
      },
      {
        "extract": {
          "description": "Extracting Project2DFX...",
          "dst": "$CACHE/project2dfx/",
          "file": "project2dfx"
        }
      },
      {
        "copy": {
          "description": "Installing Project2DFX...",
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX",
          "src": "$CACHE/project2dfx/"
        }
      },
      {
        "extract": {
          "description": "Extracting FramerateVigilante...",
          "dst": "$CACHE/frameratevigilante/",
          "file": "frameratevigilante"
        }
      },
      {
        "copy": {
          "description": "Installing Framerate Vigilante...",
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/FramerateVigilante/",
          "src": "$CACHE/frameratevigilante/FramerateVigilante"
        }
      },
      {
        "task": {
          "description": "Adding GTA SA registry keys...",
          "key": "ExePath",
          "name": "set_regedit",
          "path": "HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Rockstar Games\\GTA San Andreas\\Installation",
          "type": "REG_SZ",
          "value": "C:\\Program Files (x86)\\Rockstar Games\\GTA San Andreas\\gta_sa.exe"
        }
      },
      {
        "task": {
          "description": "Adding GTA SA registry keys...",
          "key": "Installed",
          "name": "set_regedit",
          "path": "HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Rockstar Games\\GTA San Andreas\\Installation",
          "type": "REG_SZ",
          "value": "1"
        }
      },
      {
        "task": {
          "description": "Adding GTA SA registry keys...",
          "key": "UninstallPath",
          "name": "set_regedit",
          "path": "HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Rockstar Games\\GTA San Andreas\\Installation",
          "type": "REG_SZ",
          "value": "RunDll32 C:\\PROGRA~1\\COMMON~1\\INSTAL~1\\PROFES~1\\RunTime\\10\\50\\Intel32\\Ctor.dll,LaunchSetup \"C:\\Program Files\\InstallShield Installation Information\\{D417C96A-FCC7-4590-A1BB-FAF73F5BC98E}\\setup.exe\" -l0x9"
        }
      },
      {
        "task": {
          "description": "Adding GTA SA registry keys...",
          "key": "empty",
          "name": "set_regedit",
          "path": "HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Rockstar Games\\GTA San Andreas\\1.00.00001",
          "type": "REG_SZ",
          "value": "empty"
        }
      },
      {
        "task": {
          "description": "Installing SA:MP... Press 'I agree', 'Install', 'Finish'",
          "executable": "$samp",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "execute": {
          "command": "env -u LD_LIBRARY_PATH zenity --width=600 --info --title=\"DON'T SKIP THIS!\" --text=\"The Open:MP launcher GUI will not work on Linux.\\nMake sure you uncheck the 'Run Open Multiplayer launcher'!\\nYou can later use command line arguments to join specific servers.\"\n",
          "description": "Prompting the user so they know how to use the downgrader..."
        }
      },
      {
        "task": {
          "description": "Installing Open:MP.. Press 'Next', 'Next', 'Install', 'Next', uncheck all, 'Finish'",
          "executable": "$openmp",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "copy": {
          "description": "Installing OpenMP Client DLL...",
          "dst": "$GAMEDIR/drive_c/users/$USER/AppData/Local/mp.open.launcher/omp/",
          "src": "ompclientdll"
        }
      },
      {
        "execute": {
          "command": "sed -i 's/^CarSpeedDependantFOV = [^ ]*/CarSpeedDependantFOV = 0.0/' \"$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/WidescreenFix/GTASA.WidescreenFix.ini\"\n",
          "description": "Removing dynamic FOV in WidescreenFix..."
        }
      },
      {
        "execute": {
          "command": "sed -i 's/^FrameLimit = [^ ]*/FrameLimit = 60/' \"$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/III.VC.SA.LimitAdjuster.ini\"\n",
          "description": "Changing FPS limit to 60fps in OpenLimitAdjuster..."
        }
      },
      {
        "execute": {
          "command": "sed -i 's/^MemoryAvailable = [^ ]*/MemoryAvailable = 1024/' \"$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/III.VC.SA.LimitAdjuster.ini\"\n",
          "description": "Changing memory limit to 1024MB in OpenLimitAdjuster..."
        }
      },
      {
        "execute": {
          "command": "sed -i 's/^Vehicles = [^ ]*/Vehicles = 200/' \"$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/III.VC.SA.LimitAdjuster.ini\"\n",
          "description": "Changing vehicle limit to 200 in OpenLimitAdjuster (fixes crowded SAMP servers)..."
        }
      },
      {
        "execute": {
          "command": "sed -i 's/^CoronaRadiusMultiplier = [^ ]*/CoronaRadiusMultiplier = 0.3/' \"$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/SALodLights.ini\"\n",
          "description": "Changing CoronaRadiusMultiplier to 0.3 in SA LOD lights..."
        }
      },
      {
        "execute": {
          "command": "sed -i 's/^MinDrawDistanceOnTheGround = [^ ]*/MinDrawDistanceOnTheGround = 500/' \"$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/SALodLights.ini\"\n",
          "description": "Changing MinDrawDistanceOnTheGround to 500 in SA LOD lights (preserve original game feel)..."
        }
      },
      {
        "execute": {
          "command": "sed -i 's/^Factor1 = [^ ]*/Factor1 = 5.0/' \"$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/SALodLights.ini\"\n",
          "description": "Changing Factor1 to 5.0 in SA LOD lights (prevents seeing too much map from Chilliad)..."
        }
      },
      {
        "execute": {
          "command": "sed -i 's/^TimedObjectsDrawDistance = [^ ]*/TimedObjectsDrawDistance = 6000.0/' \"$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/SALodLights.ini\"\n",
          "description": "Changing TimedObjectsDrawDistance to 6000.0 in SA LOD lights (allows to see neons from far away)..."
        }
      },
      {
        "execute": {
          "command": "sed -i 's/^LODObjectsDrawDistance = [^ ]*/LODObjectsDrawDistance = 6000.0/' \"$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/SALodLights.ini\"\n",
          "description": "Changing LODObjectsDrawDistance to 6000.0 in SA LOD lights (loads almost all LODs in memory to make streaming objects smoother)..."
        }
      },
      {
        "execute": {
          "command": "sed -i 's/^GenericObjectsDrawDistance = [^ ]*/GenericObjectsDrawDistance = 500.0/' \"$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/SALodLights.ini\"\n",
          "description": "Changing GenericObjectsDrawDistance to 500.0 in SA LOD lights (allows rocks to stream in smoothly)..."
        }
      },
      {
        "execute": {
          "command": "sed -i 's/^AllNormalObjectsDrawDistance = [^ ]*/AllNormalObjectsDrawDistance = 200.0/' \"$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/SALodLights.ini\"\n",
          "description": "Changing AllNormalObjectsDrawDistance to 200.0 in SA LOD lights (allows misc object to stream in smoothly)..."
        }
      },
      {
        "execute": {
          "command": "sed -i 's|^NeonsDrawDistance = [^ ]*|//NeonsDrawDistance = 0.0|' \"$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/modloader/SA.Project2DFX/SALodLights.ini\"",
          "description": "Disable NeonsDrawDistance in SA LOD lights (GTA:SA does not use them)..."
        }
      }
    ]
  }
}
Back to game