Installer command-conquer-the-first-dec-unofficial-patch-cnc

files:
- install_exe: 'N/A:Select setup.exe for C&C: First Decade'
- unofficial_patch: http://files.cncnz.com/the_first_decade/tfd-103-rev4.exe
- cnc_draw: https://github.com/legluondunet/mlls-tools/raw/master/cnc-draw/cnc-ddraw.zip
- optionsini: https://lutris.net/files/games/command-conquer-generals/options.ini
game:
  arch: win32
  exe: $GAMEDIR/drive_c/Program Files/EA Games/Command & Conquer The First Decade/Launcher/TFDLauncher.exe
  prefix: $GAMEDIR
installer:
- task:
    executable: install_exe
    name: wineexec
    prefix: $GAMEDIR
- task:
    executable: unofficial_patch
    name: wineexec
    prefix: $GAMEDIR
- merge:
    dst: $GAMEDIR/drive_c/users/$USER/Documents/Command and Conquer Generals Zero
      Hour Data/
    src: optionsini
- merge:
    dst: $GAMEDIR/drive_c/users/$USER/Documents/Command and Conquer Generals Data/
    src: optionsini
- extract:
    dst: $GAMEDIR/drive_c/Program Files/EA Games/Command & Conquer The First Decade/Command
      & Conquer Red Alert(tm)/
    src: cnc_draw
- extract:
    dst: $GAMEDIR/drive_c/Program Files/EA Games/Command & Conquer The First Decade/Command
      & Conquer Red Alert(tm) II/RA2/
    src: cnc_draw
- extract:
    dst: $GAMEDIR/drive_c/Program Files/EA Games/Command & Conquer The First Decade/Command
      & Conquer(tm)/
    src: cnc_draw
- extract:
    dst: $GAMEDIR/drive_c/Program Files/EA Games/Command & Conquer The First Decade/Command
      & Conquer(tm) Tiberian Sun(tm)/SUN/
    src: cnc_draw
wine:
  overrides:
    d3d8: n,b
    ddraw: n,b
description: Unofficial Patch + cnc-ddraw
game_slug: command-and-conquer-the-first-decade
gogslug: ''
humblestoreid: ''
installer_slug: command-conquer-the-first-dec-unofficial-patch-cnc
name: 'Command & Conquer: The First Decade'
notes: "I'd like to add in the future a - execute: command: sed -i 'foo' for the RA2\
  \ ini file to remove the forced first boot intro video. But havne't got enough time\
  \ to figure it out and test. \r\nFor some reason C&C and RA1 are greyed out... they\
  \ get installed and you have to manually launch them. I think this is the best installer\
  \ because it applies the cnc-ddraw software to make it actually render properly."
runner: wine
script:
  files:
  - install_exe: 'N/A:Select setup.exe for C&C: First Decade'
  - unofficial_patch: http://files.cncnz.com/the_first_decade/tfd-103-rev4.exe
  - cnc_draw: https://github.com/legluondunet/mlls-tools/raw/master/cnc-draw/cnc-ddraw.zip
  - optionsini: https://lutris.net/files/games/command-conquer-generals/options.ini
  game:
    arch: win32
    exe: $GAMEDIR/drive_c/Program Files/EA Games/Command & Conquer The First Decade/Launcher/TFDLauncher.exe
    prefix: $GAMEDIR
  installer:
  - task:
      executable: install_exe
      name: wineexec
      prefix: $GAMEDIR
  - task:
      executable: unofficial_patch
      name: wineexec
      prefix: $GAMEDIR
  - merge:
      dst: $GAMEDIR/drive_c/users/$USER/Documents/Command and Conquer Generals Zero
        Hour Data/
      src: optionsini
  - merge:
      dst: $GAMEDIR/drive_c/users/$USER/Documents/Command and Conquer Generals Data/
      src: optionsini
  - extract:
      dst: $GAMEDIR/drive_c/Program Files/EA Games/Command & Conquer The First Decade/Command
        & Conquer Red Alert(tm)/
      src: cnc_draw
  - extract:
      dst: $GAMEDIR/drive_c/Program Files/EA Games/Command & Conquer The First Decade/Command
        & Conquer Red Alert(tm) II/RA2/
      src: cnc_draw
  - extract:
      dst: $GAMEDIR/drive_c/Program Files/EA Games/Command & Conquer The First Decade/Command
        & Conquer(tm)/
      src: cnc_draw
  - extract:
      dst: $GAMEDIR/drive_c/Program Files/EA Games/Command & Conquer The First Decade/Command
        & Conquer(tm) Tiberian Sun(tm)/SUN/
      src: cnc_draw
  wine:
    overrides:
      d3d8: n,b
      ddraw: n,b
slug: command-conquer-the-first-dec-unofficial-patch-cnc
steamid: null
version: Unofficial Patch + cnc-ddraw
year: 2006
{
  "game_slug": "command-and-conquer-the-first-decade",
  "version": "Unofficial Patch + cnc-ddraw",
  "description": "Unofficial Patch + cnc-ddraw",
  "notes": "I'd like to add in the future a - execute: command: sed -i 'foo' for the RA2 ini file to remove the forced first boot intro video. But havne't got enough time to figure it out and test. \r\nFor some reason C&C and RA1 are greyed out... they get installed and you have to manually launch them. I think this is the best installer because it applies the cnc-ddraw software to make it actually render properly.",
  "name": "Command & Conquer: The First Decade",
  "year": 2006,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "command-conquer-the-first-dec-unofficial-patch-cnc",
  "installer_slug": "command-conquer-the-first-dec-unofficial-patch-cnc",
  "script": {
    "files": [
      {
        "install_exe": "N/A:Select setup.exe for C&C: First Decade"
      },
      {
        "unofficial_patch": "http://files.cncnz.com/the_first_decade/tfd-103-rev4.exe"
      },
      {
        "cnc_draw": "https://github.com/legluondunet/mlls-tools/raw/master/cnc-draw/cnc-ddraw.zip"
      },
      {
        "optionsini": "https://lutris.net/files/games/command-conquer-generals/options.ini"
      }
    ],
    "game": {
      "arch": "win32",
      "exe": "$GAMEDIR/drive_c/Program Files/EA Games/Command & Conquer The First Decade/Launcher/TFDLauncher.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "executable": "install_exe",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "executable": "unofficial_patch",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/users/$USER/Documents/Command and Conquer Generals Zero Hour Data/",
          "src": "optionsini"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/users/$USER/Documents/Command and Conquer Generals Data/",
          "src": "optionsini"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/Program Files/EA Games/Command & Conquer The First Decade/Command & Conquer Red Alert(tm)/",
          "src": "cnc_draw"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/Program Files/EA Games/Command & Conquer The First Decade/Command & Conquer Red Alert(tm) II/RA2/",
          "src": "cnc_draw"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/Program Files/EA Games/Command & Conquer The First Decade/Command & Conquer(tm)/",
          "src": "cnc_draw"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/Program Files/EA Games/Command & Conquer The First Decade/Command & Conquer(tm) Tiberian Sun(tm)/SUN/",
          "src": "cnc_draw"
        }
      }
    ],
    "wine": {
      "overrides": {
        "d3d8": "n,b",
        "ddraw": "n,b"
      }
    }
  }
}
Back to game