Installer toca-2-touring-car-challenge-pc

files:
- silent_patch: https://github.com/CookiePLMonster/SilentPatchTOCA2/releases/latest/download/SilentPatchTOCA2.zip
game:
  arch: win32
  exe: $GAMEDIR/drive_c/Codemasters/Toca2/Game/toca2.exe
  prefix: $GAMEDIR
  working_dir: $GAMEDIR
installer:
- input_menu:
    description: 'This ancient install wizard will not work with a read-only mount
      (i.e. a mounted .iso image)

      The installation media needs to be extracted onto the filesystem, and this prompt
      pointed at the folder containing SETUP.EXE"

      '
    options:
    - next: Click Continue below
    preselect: next
- insert-disc:
    requires: SETUP.EXE
- task:
    description: '"The game will be installed via it''s original and now quite retro/WordArt
      bedecked installer. Instructions are as follows:

      1). Welcome: click Next"

      2). SLA: click Yes

      3). Choose Destination Location: Click Next (accept the default, please)

      4). Setup Type: Full (Tiff won''t work if anything else is selected)

      5). DirectX 6: click No

      6). DXMedia: click No

      7). A very short wait

      8). Shortcut Destination: click Next (irrelevent)

      9). Desktop Icon: User preference

      10). The game''s README will open, close it

      11). Setup Complete: No, do not restart (not required)"

      '
    executable: $DISC/SETUP.EXE
    name: wineexec
    prefix: $GAMEDIR
- task:
    description: Change the Registry in the Wine Prefix so the game works beyond the
      launcher
    key: CardHintIndex
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\Software\Codemasters\Toca2
    type: REG_DWORD
    value: '1'
- input_menu:
    description: '"The Silent Patch will be installed automatically; without it, the
      game will crash upon leaving a session.

      See $GAMEDIR/drive_c/Codemasters/Toca2/ReadMe.txt for more info on the other
      useful things it does."

      '
    options:
    - next: Click Continue below
    preselect: next
- extract:
    dst: $GAMEDIR/drive_c/Codemasters/Toca2/
    file: silent_patch
wine:
  Desktop: true
  dgvoodoo2: true
  overrides:
    winmm: n,b
description: ''
game_slug: toca-2-touring-car-challenge--1
gogslug: ''
humblestoreid: ''
installer_slug: toca-2-touring-car-challenge-pc
name: 'TOCA 2: Touring Car Challenge'
notes: "A disc image for the game is required for this installer, and must be provided\
  \ separately. \r\n\r\nThe two published versions of this game are identical apart\
  \ from menu artwork, so both should function. However, this installer has only been\
  \ directly tested with the EU disc image. \r\n\r\nThe game's original InstallShield\
  \ wizard is used. Please read the provided instructions in the Lutris Installation,\
  \ or things like commentary may not work. \r\n\r\nThis installer will automatically\
  \ enable the correct running options and apply the Silent Patch by CookiePLMonster,\
  \ so it will be widescreen capable out of the box. The game defaults to XGA resolution;\
  \ the user needs to turn the resolution up via the in-game Graphics Settings. \r\
  \n\r\nWindowed Virtual Desktop mode is enabled automatically. If the main menu is\
  \ still not sized correctly, change Virtual Desktop Resolution to the desired size\
  \ (ideally native) in Runner Options. The resolution still needs to be set correctly\
  \ via the in-game Graphic Settings. \r\n\r\ndgVoodoo2 and DXVK are enabled automatically.\
  \ There are no anti-aliasing options via the in-game Graphic Settings. dgVoodoo2\
  \ can provide when the configuration file at $GAMEDIR/users/username/AppData/Roaming/dgVoodoo.conf\
  \ is edited; line 144 in the Glide section. \r\n\r\nBecause of the way Lutris sets\
  \ up the Wine Prefix, this config file is a symlink to the system-level config file.\
  \ The symlink must be deleted and the file copied to the above path if enabling\
  \ anti-aliasing for all games using dgVoodoo2 is not desirable.\r\n\r\nThe game\
  \ defaults to the digital rev counter. In my testing,  changing to the analog rev\
  \ counter caused the game to crash during loading."
runner: wine
script:
  files:
  - silent_patch: https://github.com/CookiePLMonster/SilentPatchTOCA2/releases/latest/download/SilentPatchTOCA2.zip
  game:
    arch: win32
    exe: $GAMEDIR/drive_c/Codemasters/Toca2/Game/toca2.exe
    prefix: $GAMEDIR
    working_dir: $GAMEDIR
  installer:
  - input_menu:
      description: 'This ancient install wizard will not work with a read-only mount
        (i.e. a mounted .iso image)

        The installation media needs to be extracted onto the filesystem, and this
        prompt pointed at the folder containing SETUP.EXE"

        '
      options:
      - next: Click Continue below
      preselect: next
  - insert-disc:
      requires: SETUP.EXE
  - task:
      description: '"The game will be installed via it''s original and now quite retro/WordArt
        bedecked installer. Instructions are as follows:

        1). Welcome: click Next"

        2). SLA: click Yes

        3). Choose Destination Location: Click Next (accept the default, please)

        4). Setup Type: Full (Tiff won''t work if anything else is selected)

        5). DirectX 6: click No

        6). DXMedia: click No

        7). A very short wait

        8). Shortcut Destination: click Next (irrelevent)

        9). Desktop Icon: User preference

        10). The game''s README will open, close it

        11). Setup Complete: No, do not restart (not required)"

        '
      executable: $DISC/SETUP.EXE
      name: wineexec
      prefix: $GAMEDIR
  - task:
      description: Change the Registry in the Wine Prefix so the game works beyond
        the launcher
      key: CardHintIndex
      name: set_regedit
      path: HKEY_LOCAL_MACHINE\Software\Codemasters\Toca2
      type: REG_DWORD
      value: '1'
  - input_menu:
      description: '"The Silent Patch will be installed automatically; without it,
        the game will crash upon leaving a session.

        See $GAMEDIR/drive_c/Codemasters/Toca2/ReadMe.txt for more info on the other
        useful things it does."

        '
      options:
      - next: Click Continue below
      preselect: next
  - extract:
      dst: $GAMEDIR/drive_c/Codemasters/Toca2/
      file: silent_patch
  wine:
    Desktop: true
    dgvoodoo2: true
    overrides:
      winmm: n,b
slug: toca-2-touring-car-challenge-pc
steamid: null
version: PC
year: 1998
{
  "game_slug": "toca-2-touring-car-challenge--1",
  "version": "PC",
  "description": "",
  "notes": "A disc image for the game is required for this installer, and must be provided separately. \r\n\r\nThe two published versions of this game are identical apart from menu artwork, so both should function. However, this installer has only been directly tested with the EU disc image. \r\n\r\nThe game's original InstallShield wizard is used. Please read the provided instructions in the Lutris Installation, or things like commentary may not work. \r\n\r\nThis installer will automatically enable the correct running options and apply the Silent Patch by CookiePLMonster, so it will be widescreen capable out of the box. The game defaults to XGA resolution; the user needs to turn the resolution up via the in-game Graphics Settings. \r\n\r\nWindowed Virtual Desktop mode is enabled automatically. If the main menu is still not sized correctly, change Virtual Desktop Resolution to the desired size (ideally native) in Runner Options. The resolution still needs to be set correctly via the in-game Graphic Settings. \r\n\r\ndgVoodoo2 and DXVK are enabled automatically. There are no anti-aliasing options via the in-game Graphic Settings. dgVoodoo2 can provide when the configuration file at $GAMEDIR/users/username/AppData/Roaming/dgVoodoo.conf is edited; line 144 in the Glide section. \r\n\r\nBecause of the way Lutris sets up the Wine Prefix, this config file is a symlink to the system-level config file. The symlink must be deleted and the file copied to the above path if enabling anti-aliasing for all games using dgVoodoo2 is not desirable.\r\n\r\nThe game defaults to the digital rev counter. In my testing,  changing to the analog rev counter caused the game to crash during loading.",
  "name": "TOCA 2: Touring Car Challenge",
  "year": 1998,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "toca-2-touring-car-challenge-pc",
  "installer_slug": "toca-2-touring-car-challenge-pc",
  "script": {
    "files": [
      {
        "silent_patch": "https://github.com/CookiePLMonster/SilentPatchTOCA2/releases/latest/download/SilentPatchTOCA2.zip"
      }
    ],
    "game": {
      "arch": "win32",
      "exe": "$GAMEDIR/drive_c/Codemasters/Toca2/Game/toca2.exe",
      "prefix": "$GAMEDIR",
      "working_dir": "$GAMEDIR"
    },
    "installer": [
      {
        "input_menu": {
          "description": "This ancient install wizard will not work with a read-only mount (i.e. a mounted .iso image)\nThe installation media needs to be extracted onto the filesystem, and this prompt pointed at the folder containing SETUP.EXE\"\n",
          "options": [
            {
              "next": "Click Continue below"
            }
          ],
          "preselect": "next"
        }
      },
      {
        "insert-disc": {
          "requires": "SETUP.EXE"
        }
      },
      {
        "task": {
          "description": "\"The game will be installed via it's original and now quite retro/WordArt bedecked installer. Instructions are as follows:\n1). Welcome: click Next\"\n2). SLA: click Yes\n3). Choose Destination Location: Click Next (accept the default, please)\n4). Setup Type: Full (Tiff won't work if anything else is selected)\n5). DirectX 6: click No\n6). DXMedia: click No\n7). A very short wait\n8). Shortcut Destination: click Next (irrelevent)\n9). Desktop Icon: User preference\n10). The game's README will open, close it\n11). Setup Complete: No, do not restart (not required)\"\n",
          "executable": "$DISC/SETUP.EXE",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "description": "Change the Registry in the Wine Prefix so the game works beyond the launcher",
          "key": "CardHintIndex",
          "name": "set_regedit",
          "path": "HKEY_LOCAL_MACHINE\\Software\\Codemasters\\Toca2",
          "type": "REG_DWORD",
          "value": "1"
        }
      },
      {
        "input_menu": {
          "description": "\"The Silent Patch will be installed automatically; without it, the game will crash upon leaving a session.\nSee $GAMEDIR/drive_c/Codemasters/Toca2/ReadMe.txt for more info on the other useful things it does.\"\n",
          "options": [
            {
              "next": "Click Continue below"
            }
          ],
          "preselect": "next"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/Codemasters/Toca2/",
          "file": "silent_patch"
        }
      }
    ],
    "wine": {
      "Desktop": true,
      "dgvoodoo2": true,
      "overrides": {
        "winmm": "n,b"
      }
    }
  }
}
Back to game