Skip to content

Instantly share code, notes, and snippets.

@majabojarska
Created February 21, 2023 22:27
Show Gist options
  • Save majabojarska/654a91b8c212480d3080a161a3bd89cd to your computer and use it in GitHub Desktop.
Save majabojarska/654a91b8c212480d3080a161a3bd89cd to your computer and use it in GitHub Desktop.
Lutris configuration for StarCraft 2
{"count":1,"next":null,"previous":null,"results":[{"id":8515,"game_id":3367,"game_slug":"starcraft-ii","name":"StarCraft II","year":2010,"user":"Dox","runner":"wine","slug":"starcraft-ii-battlenet","version":"Battle.net","description":null,"notes":"","credits":"","created_at":"2018-06-02T20:54:49.660000Z","updated_at":"2022-06-09T00:55:29.722145Z","draft":false,"published":true,"published_by":1,"rating":"","is_playable":true,"steamid":null,"gogid":null,"gogslug":"","humbleid":"","humblestoreid":"","humblestoreid_real":"","script":{"files":[{"setup":{"filename":"Battle.net-Setup.exe","url":"https://www.battle.net/download/getInstallerForGame?os=win&version=LIVE&gameProgram=BATTLENET_APP"}},{"d3dcompiler47":"https://lutris.net/files/tools/dll/d3dcompiler_47.dll"}],"game":{"arch":"win64","exe":"drive_c/Program Files (x86)/Battle.net/Battle.net Launcher.exe","prefix":"$GAMEDIR"},"installer":[{"task":{"arch":"win64","description":"Creating 64bit Wine prefix.","name":"create_prefix","prefix":"$GAMEDIR"}},{"task":{"app":"arial","arch":"win64","description":"Installing Arial font","name":"winetricks","prefix":"$GAMEDIR"}},{"task":{"app":"d3dcompiler_43","arch":"win64","description":"Install d3dcompiler_43 with winetricks","name":"winetricks","prefix":"$GAMEDIR"}},{"move":{"dst":"$GAMEDIR/drive_c/windows/system32/d3dcompiler_47.dll.ORIG","src":"$GAMEDIR/drive_c/windows/system32/d3dcompiler_47.dll"}},{"merge":{"dst":"$GAMEDIR/drive_c/windows/system32","src":"d3dcompiler47"}},{"task":{"arch":"win64","description":"Setting Windows 10 mode for Wine","key":"Version","name":"set_regedit","path":"HKEY_CURRENT_USER\\Software\\Wine","prefix":"$GAMEDIR","value":"win10"}},{"write_json":{"data":{"Client":{"GameLaunchWindowBehavior":"2","HardwareAcceleration":"false","Sound":{"Enabled":"false"},"Streaming":{"StreamingEnabled":"false"}},"Games":{"s2":{"AdditionalLaunchArguments":"-Displaymode 1"}}},"description":"Disabling Sound/Hardware Acceleration/Streaming in Blizzard App","file":"$GAMEDIR/drive_c/users/$USER/Application Data/Battle.net/Battle.net.config"}},{"task":{"arch":"win64","description":"Installing Blizzard App\n------------------------------\nDo not try to log into Battle.net. Lutris will automatically close the login window. After Lutris installer is finished, you can start Blizzard App with \"Launch the game\", and install / locate your Blizzard game.","exclude_processes":"Battle.net.exe Agent.exe \"Battle.net Helper.exe\"","executable":"setup","name":"wineexec"}},{"task":{"name":"winekill","prefix":"$GAMEDIR"}},{"task":{"arch":"win64","description":"Wine Staging: Enabling DXVA2","key":"backend","name":"set_regedit","path":"HKEY_CURRENT_USER\\Software\\Wine\\DXVA2","prefix":"$GAMEDIR","value":"va"}}],"system":{"env":{"__GL_SHADER_DISK_CACHE":1,"__GL_SHADER_DISK_CACHE_PATH":"$GAMEDIR"},"exclude_processes":"Agent.exe \"Battle.net Helper.exe\""},"wine":{"esync":true}},"content":"files:\n- setup:\n filename: Battle.net-Setup.exe\n url: https://www.battle.net/download/getInstallerForGame?os=win&version=LIVE&gameProgram=BATTLENET_APP\n- d3dcompiler47: https://lutris.net/files/tools/dll/d3dcompiler_47.dll\ngame:\n arch: win64\n exe: drive_c/Program Files (x86)/Battle.net/Battle.net Launcher.exe\n prefix: $GAMEDIR\ninstaller:\n- task:\n arch: win64\n description: Creating 64bit Wine prefix.\n name: create_prefix\n prefix: $GAMEDIR\n- task:\n app: arial\n arch: win64\n description: Installing Arial font\n name: winetricks\n prefix: $GAMEDIR\n- task:\n app: d3dcompiler_43\n arch: win64\n description: Install d3dcompiler_43 with winetricks\n name: winetricks\n prefix: $GAMEDIR\n- move:\n dst: $GAMEDIR/drive_c/windows/system32/d3dcompiler_47.dll.ORIG\n src: $GAMEDIR/drive_c/windows/system32/d3dcompiler_47.dll\n- merge:\n dst: $GAMEDIR/drive_c/windows/system32\n src: d3dcompiler47\n- task:\n arch: win64\n description: Setting Windows 10 mode for Wine\n key: Version\n name: set_regedit\n path: HKEY_CURRENT_USER\\Software\\Wine\n prefix: $GAMEDIR\n value: win10\n- write_json:\n data:\n Client:\n GameLaunchWindowBehavior: '2'\n HardwareAcceleration: 'false'\n Sound:\n Enabled: 'false'\n Streaming:\n StreamingEnabled: 'false'\n Games:\n s2:\n AdditionalLaunchArguments: -Displaymode 1\n description: Disabling Sound/Hardware Acceleration/Streaming in Blizzard App\n file: $GAMEDIR/drive_c/users/$USER/Application Data/Battle.net/Battle.net.config\n- task:\n arch: win64\n description: 'Installing Blizzard App\n\n ------------------------------\n\n Do not try to log into Battle.net. Lutris will automatically close the login\n window. After Lutris installer is finished, you can start Blizzard App with\n \"Launch the game\", and install / locate your Blizzard game.'\n exclude_processes: Battle.net.exe Agent.exe \"Battle.net Helper.exe\"\n executable: setup\n name: wineexec\n- task:\n name: winekill\n prefix: $GAMEDIR\n- task:\n arch: win64\n description: 'Wine Staging: Enabling DXVA2'\n key: backend\n name: set_regedit\n path: HKEY_CURRENT_USER\\Software\\Wine\\DXVA2\n prefix: $GAMEDIR\n value: va\nsystem:\n env:\n __GL_SHADER_DISK_CACHE: 1\n __GL_SHADER_DISK_CACHE_PATH: $GAMEDIR\n exclude_processes: Agent.exe \"Battle.net Helper.exe\"\nwine:\n esync: true\n","discord_id":"358425800766128128"}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment