Installer doom-3-gog-dhewm3

files:
- engine: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Doom%203/dhewm-master-x86_64.tar.xz
- gogsetup: N/A:Select the Windows installer downloaded from GOG
game:
  args: +set fs_configpath .
  exe: $GAMEDIR/dhewm3
  work_dir: $GAMEDIR
installer:
- extract:
    dst: $GAMEDIR
    file: gogsetup
    format: gog
- extract:
    dst: $GAMEDIR
    file: engine
- chmodx: $GAMEDIR/dhewm3
- input_menu:
    description: 'Please choose your resolution ratio:'
    id: RATIO
    options:
    - 1: 16/9
    - 2: 16/10
    - 0: 4/3
    preselect: 1
- input_menu:
    description: 'Please choose your preferred game''s language:'
    id: LANG
    options:
    - english: English
    - french: French
    - spanish: Spanish
    - italian: Italian
    preselect: english
- write_file:
    content: 'seta r_customHeight "$RESOLUTION_HEIGHT"

      seta r_customWidth "$RESOLUTION_WIDTH"

      seta r_fullscreen "1"

      seta r_mode "-1"

      seta sys_lang "$INPUT_LANG"

      seta r_aspectRatio "$INPUT_RATIO"

      seta r_fullscreenDesktop "1"

      '
    file: $GAMEDIR/base/dhewm.cfg
- execute:
    command: cd "$GAMEDIR/base"; rm -f -r zpak*; wget --no-check-certificate https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Doom%203/lang/doom3_$INPUT_LANG.7z.001
      https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Doom%203/lang/doom3_$INPUT_LANG.7z.002;
      7z e doom3_$INPUT_LANG.7z.001; rm -f -r doom3_$INPUT_LANG.7z.001 doom3_$INPUT_LANG.7z.002;
require-binaries: 7z
description: Play "Doom 3" provided by GOG on Linux!
game_slug: doom-3
gogslug: doom_3
humblestoreid: ''
installer_slug: doom-3-gog-dhewm3
name: Doom 3
notes: "- Using dhewm3 open source project  (compiled 15 may 2025 from Github - commit\
  \ 6daf1e9 - 64 bits)\r\n- During install you could choose:\r\n  + language: english\
  \ (default), french, spanish and italian\r\n  + ratio: 16/9, 16/10 and 4/3"
runner: linux
script:
  files:
  - engine: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Doom%203/dhewm-master-x86_64.tar.xz
  - gogsetup: N/A:Select the Windows installer downloaded from GOG
  game:
    args: +set fs_configpath .
    exe: $GAMEDIR/dhewm3
    work_dir: $GAMEDIR
  installer:
  - extract:
      dst: $GAMEDIR
      file: gogsetup
      format: gog
  - extract:
      dst: $GAMEDIR
      file: engine
  - chmodx: $GAMEDIR/dhewm3
  - input_menu:
      description: 'Please choose your resolution ratio:'
      id: RATIO
      options:
      - 1: 16/9
      - 2: 16/10
      - 0: 4/3
      preselect: 1
  - input_menu:
      description: 'Please choose your preferred game''s language:'
      id: LANG
      options:
      - english: English
      - french: French
      - spanish: Spanish
      - italian: Italian
      preselect: english
  - write_file:
      content: 'seta r_customHeight "$RESOLUTION_HEIGHT"

        seta r_customWidth "$RESOLUTION_WIDTH"

        seta r_fullscreen "1"

        seta r_mode "-1"

        seta sys_lang "$INPUT_LANG"

        seta r_aspectRatio "$INPUT_RATIO"

        seta r_fullscreenDesktop "1"

        '
      file: $GAMEDIR/base/dhewm.cfg
  - execute:
      command: cd "$GAMEDIR/base"; rm -f -r zpak*; wget --no-check-certificate https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Doom%203/lang/doom3_$INPUT_LANG.7z.001
        https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Doom%203/lang/doom3_$INPUT_LANG.7z.002;
        7z e doom3_$INPUT_LANG.7z.001; rm -f -r doom3_$INPUT_LANG.7z.001 doom3_$INPUT_LANG.7z.002;
  require-binaries: 7z
slug: doom-3-gog-dhewm3
steamid: 9050
version: GOG + dhewm3
year: 2004
{
  "game_slug": "doom-3",
  "version": "GOG + dhewm3",
  "description": "Play \"Doom 3\" provided by GOG on Linux!",
  "notes": "- Using dhewm3 open source project  (compiled 15 may 2025 from Github - commit 6daf1e9 - 64 bits)\r\n- During install you could choose:\r\n  + language: english (default), french, spanish and italian\r\n  + ratio: 16/9, 16/10 and 4/3",
  "name": "Doom 3",
  "year": 2004,
  "steamid": 9050,
  "gogslug": "doom_3",
  "humblestoreid": "",
  "runner": "linux",
  "slug": "doom-3-gog-dhewm3",
  "installer_slug": "doom-3-gog-dhewm3",
  "script": {
    "files": [
      {
        "engine": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Doom%203/dhewm-master-x86_64.tar.xz"
      },
      {
        "gogsetup": "N/A:Select the Windows installer downloaded from GOG"
      }
    ],
    "game": {
      "args": "+set fs_configpath .",
      "exe": "$GAMEDIR/dhewm3",
      "work_dir": "$GAMEDIR"
    },
    "installer": [
      {
        "extract": {
          "dst": "$GAMEDIR",
          "file": "gogsetup",
          "format": "gog"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR",
          "file": "engine"
        }
      },
      {
        "chmodx": "$GAMEDIR/dhewm3"
      },
      {
        "input_menu": {
          "description": "Please choose your resolution ratio:",
          "id": "RATIO",
          "options": [
            {
              "1": "16/9"
            },
            {
              "2": "16/10"
            },
            {
              "0": "4/3"
            }
          ],
          "preselect": 1
        }
      },
      {
        "input_menu": {
          "description": "Please choose your preferred game's language:",
          "id": "LANG",
          "options": [
            {
              "english": "English"
            },
            {
              "french": "French"
            },
            {
              "spanish": "Spanish"
            },
            {
              "italian": "Italian"
            }
          ],
          "preselect": "english"
        }
      },
      {
        "write_file": {
          "content": "seta r_customHeight \"$RESOLUTION_HEIGHT\"\nseta r_customWidth \"$RESOLUTION_WIDTH\"\nseta r_fullscreen \"1\"\nseta r_mode \"-1\"\nseta sys_lang \"$INPUT_LANG\"\nseta r_aspectRatio \"$INPUT_RATIO\"\nseta r_fullscreenDesktop \"1\"\n",
          "file": "$GAMEDIR/base/dhewm.cfg"
        }
      },
      {
        "execute": {
          "command": "cd \"$GAMEDIR/base\"; rm -f -r zpak*; wget --no-check-certificate https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Doom%203/lang/doom3_$INPUT_LANG.7z.001 https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Doom%203/lang/doom3_$INPUT_LANG.7z.002; 7z e doom3_$INPUT_LANG.7z.001; rm -f -r doom3_$INPUT_LANG.7z.001 doom3_$INPUT_LANG.7z.002;"
        }
      }
    ],
    "require-binaries": "7z"
  }
}
Back to game