Installer touhou-8-imperishable-night-original-thcrap

files:
- thcrap:
    filename: thcrap.zip
    url: https://github.com/thpatch/thcrap/releases/download/2021-08-10/thcrap.zip
- 100a:
    filename: eiya_update100a.lzh
    url: http://www16.big.or.jp/~zun/data/soft/eiya_update100a.lzh
- 100d:
    filename: eiya_update100a_100d.lzh
    url: https://www16.big.or.jp/~zun/data/soft/eiya_update100a_100d.lzh
game:
  arch: win32
  exe: $GAMEDIR/pfx/drive_c/users/$USER/Desktop/th08.lnk
  prefix: $GAMEDIR/pfx
installer:
- insert-disc:
    requires: eiya
- task:
    arch: win32
    install_gecko: false
    install_mono: false
    name: create_prefix
- task:
    app: dotnet461
    name: winetricks
- task:
    key: LogPixels
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Hardware Profiles\Current\Software\Fonts
    type: REG_DWORD
    value: 00000079
- copy:
    dst: $GAMEDIR/pfx/drive_c/Program Files/touhou8/
    src: $DISC/eiya
- extract:
    dst: $GAMEDIR/pfx/drive_c/Program Files/touhou8/
    src: 100a
- extract:
    dst: $GAMEDIR/pfx/drive_c/Program Files/touhou8/
    src: 100d
- input_menu:
    description: 'In the next step the game updater will be launched

      Don''t worry about Japanese text

      Just press (Y) button in the popup window and then fill in the following path:
      "C:\Program Files\touhou8"

      If done correctly, the progress bar will start to fill up and all left to do
      is press the only button

      The same window may appear multiple times, just repeat the process

      '
    id: OK
    options:
    - ok: OK
    preselect: ok
- task:
    env:
      LC_ALL: ja_JP.utf8
    executable: $GAMEDIR/pfx/drive_c/Program Files/touhou8/eiya_update100a.exe
    name: wineexec
- task:
    env:
      LC_ALL: ja_JP.utf8
    executable: $GAMEDIR/pfx/drive_c/Program Files/touhou8/eiya_update100a_100d.exe
    name: wineexec
- extract:
    dst: $GAMEDIR/thcrap
    file: thcrap
- write_json:
    data:
      th08: C:/Program Files/touhou8/th08.exe
      th08_custom: C:/Program Files/touhou8/custom.exe
    file: $GAMEDIR/thcrap/config/games.js
- execute:
    command: cp -v $GAMEDIR/thcrap/bin/*.dll $GAMEDIR/thcrap/
- input_menu:
    description: 'Now the ''thcrap'' game patcher will be launched for localization
      support.

      When the window pops up, choose ''Advanced mode'' option and pick patches you
      prefer.

      I recommend choosing ''lang_en'', ''Braviretex''(What I spend most of my time
      on right now tbh) and ''alphes''(DTM''s Patch Repository) for the best experience.

      Leave other options untouched!

      '
    id: OK
    options:
    - ok: OK
    preselect: ok
- task:
    executable: $GAMEDIR/thcrap/thcrap.exe
    name: wineexec
- execute:
    command: cp -v $GAMEDIR/pfx/drive_c/users/$USER/Desktop/th08\ *.lnk $GAMEDIR/pfx/drive_c/users/$USER/Desktop/th08.lnk
- execute:
    command: cp -v $GAMEDIR/pfx/drive_c/users/$USER/Desktop/th08_*.lnk $GAMEDIR/pfx/drive_c/users/$USER/Desktop/th08_custom.lnk
wine:
  dxvk: false
description: ''
game_slug: touhou-8-imperishable-night
gogslug: ''
humblestoreid: ''
installer_slug: touhou-8-imperishable-night-original-thcrap
name: 'Touhou 8: Eiyashou - Imperishable Night'
notes: "Tested on moriyashrine's iso.\r\nRequires original Touhou installer! Patched\
  \ one won't work!\r\nEnable 'ja_JP.UTF-8' and 'en_US.UTF-8' locales on your system\
  \ (https://wiki.archlinux.org/title/locale#Generating_locales)!"
runner: wine
script:
  files:
  - thcrap:
      filename: thcrap.zip
      url: https://github.com/thpatch/thcrap/releases/download/2021-08-10/thcrap.zip
  - 100a:
      filename: eiya_update100a.lzh
      url: http://www16.big.or.jp/~zun/data/soft/eiya_update100a.lzh
  - 100d:
      filename: eiya_update100a_100d.lzh
      url: https://www16.big.or.jp/~zun/data/soft/eiya_update100a_100d.lzh
  game:
    arch: win32
    exe: $GAMEDIR/pfx/drive_c/users/$USER/Desktop/th08.lnk
    prefix: $GAMEDIR/pfx
  installer:
  - insert-disc:
      requires: eiya
  - task:
      arch: win32
      install_gecko: false
      install_mono: false
      name: create_prefix
  - task:
      app: dotnet461
      name: winetricks
  - task:
      key: LogPixels
      name: set_regedit
      path: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Hardware Profiles\Current\Software\Fonts
      type: REG_DWORD
      value: 00000079
  - copy:
      dst: $GAMEDIR/pfx/drive_c/Program Files/touhou8/
      src: $DISC/eiya
  - extract:
      dst: $GAMEDIR/pfx/drive_c/Program Files/touhou8/
      src: 100a
  - extract:
      dst: $GAMEDIR/pfx/drive_c/Program Files/touhou8/
      src: 100d
  - input_menu:
      description: 'In the next step the game updater will be launched

        Don''t worry about Japanese text

        Just press (Y) button in the popup window and then fill in the following path:
        "C:\Program Files\touhou8"

        If done correctly, the progress bar will start to fill up and all left to
        do is press the only button

        The same window may appear multiple times, just repeat the process

        '
      id: OK
      options:
      - ok: OK
      preselect: ok
  - task:
      env:
        LC_ALL: ja_JP.utf8
      executable: $GAMEDIR/pfx/drive_c/Program Files/touhou8/eiya_update100a.exe
      name: wineexec
  - task:
      env:
        LC_ALL: ja_JP.utf8
      executable: $GAMEDIR/pfx/drive_c/Program Files/touhou8/eiya_update100a_100d.exe
      name: wineexec
  - extract:
      dst: $GAMEDIR/thcrap
      file: thcrap
  - write_json:
      data:
        th08: C:/Program Files/touhou8/th08.exe
        th08_custom: C:/Program Files/touhou8/custom.exe
      file: $GAMEDIR/thcrap/config/games.js
  - execute:
      command: cp -v $GAMEDIR/thcrap/bin/*.dll $GAMEDIR/thcrap/
  - input_menu:
      description: 'Now the ''thcrap'' game patcher will be launched for localization
        support.

        When the window pops up, choose ''Advanced mode'' option and pick patches
        you prefer.

        I recommend choosing ''lang_en'', ''Braviretex''(What I spend most of my time
        on right now tbh) and ''alphes''(DTM''s Patch Repository) for the best experience.

        Leave other options untouched!

        '
      id: OK
      options:
      - ok: OK
      preselect: ok
  - task:
      executable: $GAMEDIR/thcrap/thcrap.exe
      name: wineexec
  - execute:
      command: cp -v $GAMEDIR/pfx/drive_c/users/$USER/Desktop/th08\ *.lnk $GAMEDIR/pfx/drive_c/users/$USER/Desktop/th08.lnk
  - execute:
      command: cp -v $GAMEDIR/pfx/drive_c/users/$USER/Desktop/th08_*.lnk $GAMEDIR/pfx/drive_c/users/$USER/Desktop/th08_custom.lnk
  wine:
    dxvk: false
slug: touhou-8-imperishable-night-original-thcrap
steamid: null
version: original-thcrap
year: 2004
{
  "game_slug": "touhou-8-imperishable-night",
  "version": "original-thcrap",
  "description": "",
  "notes": "Tested on moriyashrine's iso.\r\nRequires original Touhou installer! Patched one won't work!\r\nEnable 'ja_JP.UTF-8' and 'en_US.UTF-8' locales on your system (https://wiki.archlinux.org/title/locale#Generating_locales)!",
  "name": "Touhou 8: Eiyashou - Imperishable Night",
  "year": 2004,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "touhou-8-imperishable-night-original-thcrap",
  "installer_slug": "touhou-8-imperishable-night-original-thcrap",
  "script": {
    "files": [
      {
        "thcrap": {
          "filename": "thcrap.zip",
          "url": "https://github.com/thpatch/thcrap/releases/download/2021-08-10/thcrap.zip"
        }
      },
      {
        "100a": {
          "filename": "eiya_update100a.lzh",
          "url": "http://www16.big.or.jp/~zun/data/soft/eiya_update100a.lzh"
        }
      },
      {
        "100d": {
          "filename": "eiya_update100a_100d.lzh",
          "url": "https://www16.big.or.jp/~zun/data/soft/eiya_update100a_100d.lzh"
        }
      }
    ],
    "game": {
      "arch": "win32",
      "exe": "$GAMEDIR/pfx/drive_c/users/$USER/Desktop/th08.lnk",
      "prefix": "$GAMEDIR/pfx"
    },
    "installer": [
      {
        "insert-disc": {
          "requires": "eiya"
        }
      },
      {
        "task": {
          "arch": "win32",
          "install_gecko": false,
          "install_mono": false,
          "name": "create_prefix"
        }
      },
      {
        "task": {
          "app": "dotnet461",
          "name": "winetricks"
        }
      },
      {
        "task": {
          "key": "LogPixels",
          "name": "set_regedit",
          "path": "HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Hardware Profiles\\Current\\Software\\Fonts",
          "type": "REG_DWORD",
          "value": "00000079"
        }
      },
      {
        "copy": {
          "dst": "$GAMEDIR/pfx/drive_c/Program Files/touhou8/",
          "src": "$DISC/eiya"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/pfx/drive_c/Program Files/touhou8/",
          "src": "100a"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/pfx/drive_c/Program Files/touhou8/",
          "src": "100d"
        }
      },
      {
        "input_menu": {
          "description": "In the next step the game updater will be launched\nDon't worry about Japanese text\nJust press (Y) button in the popup window and then fill in the following path: \"C:\\Program Files\\touhou8\"\nIf done correctly, the progress bar will start to fill up and all left to do is press the only button\nThe same window may appear multiple times, just repeat the process\n",
          "id": "OK",
          "options": [
            {
              "ok": "OK"
            }
          ],
          "preselect": "ok"
        }
      },
      {
        "task": {
          "env": {
            "LC_ALL": "ja_JP.utf8"
          },
          "executable": "$GAMEDIR/pfx/drive_c/Program Files/touhou8/eiya_update100a.exe",
          "name": "wineexec"
        }
      },
      {
        "task": {
          "env": {
            "LC_ALL": "ja_JP.utf8"
          },
          "executable": "$GAMEDIR/pfx/drive_c/Program Files/touhou8/eiya_update100a_100d.exe",
          "name": "wineexec"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/thcrap",
          "file": "thcrap"
        }
      },
      {
        "write_json": {
          "data": {
            "th08": "C:/Program Files/touhou8/th08.exe",
            "th08_custom": "C:/Program Files/touhou8/custom.exe"
          },
          "file": "$GAMEDIR/thcrap/config/games.js"
        }
      },
      {
        "execute": {
          "command": "cp -v $GAMEDIR/thcrap/bin/*.dll $GAMEDIR/thcrap/"
        }
      },
      {
        "input_menu": {
          "description": "Now the 'thcrap' game patcher will be launched for localization support.\nWhen the window pops up, choose 'Advanced mode' option and pick patches you prefer.\nI recommend choosing 'lang_en', 'Braviretex'(What I spend most of my time on right now tbh) and 'alphes'(DTM's Patch Repository) for the best experience.\nLeave other options untouched!\n",
          "id": "OK",
          "options": [
            {
              "ok": "OK"
            }
          ],
          "preselect": "ok"
        }
      },
      {
        "task": {
          "executable": "$GAMEDIR/thcrap/thcrap.exe",
          "name": "wineexec"
        }
      },
      {
        "execute": {
          "command": "cp -v $GAMEDIR/pfx/drive_c/users/$USER/Desktop/th08\\ *.lnk $GAMEDIR/pfx/drive_c/users/$USER/Desktop/th08.lnk"
        }
      },
      {
        "execute": {
          "command": "cp -v $GAMEDIR/pfx/drive_c/users/$USER/Desktop/th08_*.lnk $GAMEDIR/pfx/drive_c/users/$USER/Desktop/th08_custom.lnk"
        }
      }
    ],
    "wine": {
      "dxvk": false
    }
  }
}
Back to game