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

files:
- setup: N/A:Please select the setup.exe file for GTA San Andreas
- HOODLUM: N/A:Please select the gta_sa.exe file from HOODLUM folder
- 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: 'env -u LD_LIBRARY_PATH zenity --width=600 --info --title="DON''T SKIP
      THIS!" --text="During install you will be prompted for multiple options.\nSelect
      the following:\n- Select your language, press ''OK''\n- Press ''Next''\n- Press
      ''Next''\n- Select ''I accept the terms'' and press ''Next''\n- Press ''Yes''
      when asked for minimum requirements\n- Press ''Next'' when prompted for setup
      type\n- Don''t change the destination location and press ''Next''\n- Press ''No''
      when asked to register\n- Press ''Yes'' when asked if you want a shortcut\n-
      Press ''Next'' when asked to review settings\n- Press ''Finish''"

      '
    description: Prompting the user so they know how to use the downgrader...
- task:
    description: Installing GTA:SA from setup.exe ... Press 'OK', 'Next', 'Next',
      'I Accept', 'Next' , 'Yes', 'Next', 'Next', 'No', 'Yes', 'Next', 'Finish'
    executable: $setup
    name: wineexec
    prefix: $GAMEDIR
- execute:
    command: 'rm -rf "$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San
      Andreas/gta_sa.exe"

      '
    description: Deleting old gta_sa.exe...
- execute:
    command: 'cp "$HOODLUM" "$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA
      San Andreas/"

      '
    description: Copying gta_sa.exe 1.0 version to $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: 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 installer...
- 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: "Requires a repacked \u201Csetup.exe\u201D file."
game_slug: grand-theft-auto-san-andreas-open-multiplayer
gogslug: ''
humblestoreid: ''
installer_slug: grand-theft-auto-san-andreas-10-1-1
name: "Grand Theft Auto: San Andreas \u2014 Open Multiplayer"
notes: "Tested and working with \"wine-ge-*\" runner.\r\n\r\nUses your copy of GTA:SA.\r\
  \n\r\nDuring the installation you will be promted for GTA:SA setup, follow these\
  \ steps:\r\n1) Select 'No' when prompted about 'Registering your game'\r\n2) Simply\
  \ press \"Next\" on all other steps\r\nTIP: If some of the steps fail (especially\
  \ SA Downgrade), try running the script again!\r\n\r\nThis installer tries to preserve\
  \ the original feel while fixing issues with the game on modern hardware.\r\nThe\
  \ GUI OpenMP 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:
  - setup: N/A:Please select the setup.exe file for GTA San Andreas
  - HOODLUM: N/A:Please select the gta_sa.exe file from HOODLUM folder
  - 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: 'env -u LD_LIBRARY_PATH zenity --width=600 --info --title="DON''T SKIP
        THIS!" --text="During install you will be prompted for multiple options.\nSelect
        the following:\n- Select your language, press ''OK''\n- Press ''Next''\n-
        Press ''Next''\n- Select ''I accept the terms'' and press ''Next''\n- Press
        ''Yes'' when asked for minimum requirements\n- Press ''Next'' when prompted
        for setup type\n- Don''t change the destination location and press ''Next''\n-
        Press ''No'' when asked to register\n- Press ''Yes'' when asked if you want
        a shortcut\n- Press ''Next'' when asked to review settings\n- Press ''Finish''"

        '
      description: Prompting the user so they know how to use the downgrader...
  - task:
      description: Installing GTA:SA from setup.exe ... Press 'OK', 'Next', 'Next',
        'I Accept', 'Next' , 'Yes', 'Next', 'Next', 'No', 'Yes', 'Next', 'Finish'
      executable: $setup
      name: wineexec
      prefix: $GAMEDIR
  - execute:
      command: 'rm -rf "$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San
        Andreas/gta_sa.exe"

        '
      description: Deleting old gta_sa.exe...
  - execute:
      command: 'cp "$HOODLUM" "$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA
        San Andreas/"

        '
      description: Copying gta_sa.exe 1.0 version to $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: 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 installer...
  - 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-1-1
steamid: null
version: 1.0-1
year: 2020
{
  "game_slug": "grand-theft-auto-san-andreas-open-multiplayer",
  "version": "1.0-1",
  "description": "Requires a repacked \u201csetup.exe\u201d file.",
  "notes": "Tested and working with \"wine-ge-*\" runner.\r\n\r\nUses your copy of GTA:SA.\r\n\r\nDuring the installation you will be promted for GTA:SA setup, follow these steps:\r\n1) Select 'No' when prompted about 'Registering your game'\r\n2) Simply press \"Next\" on all other steps\r\nTIP: If some of the steps fail (especially SA Downgrade), try running the script again!\r\n\r\nThis installer tries to preserve the original feel while fixing issues with the game on modern hardware.\r\nThe GUI OpenMP 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-1-1",
  "installer_slug": "grand-theft-auto-san-andreas-10-1-1",
  "script": {
    "files": [
      {
        "setup": "N/A:Please select the setup.exe file for GTA San Andreas"
      },
      {
        "HOODLUM": "N/A:Please select the gta_sa.exe file from HOODLUM folder"
      },
      {
        "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": "env -u LD_LIBRARY_PATH zenity --width=600 --info --title=\"DON'T SKIP THIS!\" --text=\"During install you will be prompted for multiple options.\\nSelect the following:\\n- Select your language, press 'OK'\\n- Press 'Next'\\n- Press 'Next'\\n- Select 'I accept the terms' and press 'Next'\\n- Press 'Yes' when asked for minimum requirements\\n- Press 'Next' when prompted for setup type\\n- Don't change the destination location and press 'Next'\\n- Press 'No' when asked to register\\n- Press 'Yes' when asked if you want a shortcut\\n- Press 'Next' when asked to review settings\\n- Press 'Finish'\"\n",
          "description": "Prompting the user so they know how to use the downgrader..."
        }
      },
      {
        "task": {
          "description": "Installing GTA:SA from setup.exe ... Press 'OK', 'Next', 'Next', 'I Accept', 'Next' , 'Yes', 'Next', 'Next', 'No', 'Yes', 'Next', 'Finish'",
          "executable": "$setup",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "execute": {
          "command": "rm -rf \"$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/gta_sa.exe\"\n",
          "description": "Deleting old gta_sa.exe..."
        }
      },
      {
        "execute": {
          "command": "cp \"$HOODLUM\" \"$GAMEDIR/drive_c/Program Files (x86)/Rockstar Games/GTA San Andreas/\"\n",
          "description": "Copying gta_sa.exe 1.0 version to $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": "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 installer..."
        }
      },
      {
        "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