Installer hard-truck-2-king-of-the-road-cd

This script is for reference only and can't be directly used to install the game in the Lutris client. To install the game, download the full script.

game:
  exe: drive_c/King/King.exe
  prefix: $GAMEDIR
installer:
- insert-disc:
    requires: truck.ini
- task:
    app: winxp
    name: winetricks
- copy:
    description: Copying gamefiles from disc...
    dst: $GAMEDIR/drive_c/King/
    src: $DISC/
- execute:
    args: -c "cd drive_c/; chmod -R +w King/"
    file: sh
- execute:
    args: -i '1{/\[*\]/!d}' drive_c/King/truck.ini
    file: sed
- write_config:
    file: $GAMEDIR/drive_c/King/truck.ini
    key: home
    section: INSTALL
    value: C:\King
- write_config:
    file: $GAMEDIR/drive_c/King/truck.ini
    key: base
    section: INSTALL
    value: C:\King
- write_config:
    file: $GAMEDIR/drive_c/King/truck.ini
    key: movie
    section: INSTALL
    value: C:\King
- write_config:
    file: $GAMEDIR/drive_c/King/truck.ini
    key: source
    section: INSTALL
    value: C:\King
- write_config:
    file: $GAMEDIR/drive_c/King/truck.ini
    key: music
    section: INSTALL
    value: C:\King\MUSIC
- write_config:
    file: $GAMEDIR/drive_c/King/truck.ini
    key: setup
    section: INSTALL
    value: 'on'
- execute:
    args: -c "cd drive_c/King; mv Htruck2.exe King.exe; mv RigNRoll.exe King.exe"
    file: sh
require-binaries: sh, sed
wine:
  version: lutris-6.14-3-x86_64
{
  "game": {
    "exe": "drive_c/King/King.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "insert-disc": {
        "requires": "truck.ini"
      }
    },
    {
      "task": {
        "app": "winxp",
        "name": "winetricks"
      }
    },
    {
      "copy": {
        "description": "Copying gamefiles from disc...",
        "dst": "$GAMEDIR/drive_c/King/",
        "src": "$DISC/"
      }
    },
    {
      "execute": {
        "args": "-c \"cd drive_c/; chmod -R +w King/\"",
        "file": "sh"
      }
    },
    {
      "execute": {
        "args": "-i '1{/\\[*\\]/!d}' drive_c/King/truck.ini",
        "file": "sed"
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/King/truck.ini",
        "key": "home",
        "section": "INSTALL",
        "value": "C:\\King"
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/King/truck.ini",
        "key": "base",
        "section": "INSTALL",
        "value": "C:\\King"
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/King/truck.ini",
        "key": "movie",
        "section": "INSTALL",
        "value": "C:\\King"
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/King/truck.ini",
        "key": "source",
        "section": "INSTALL",
        "value": "C:\\King"
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/King/truck.ini",
        "key": "music",
        "section": "INSTALL",
        "value": "C:\\King\\MUSIC"
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/King/truck.ini",
        "key": "setup",
        "section": "INSTALL",
        "value": "on"
      }
    },
    {
      "execute": {
        "args": "-c \"cd drive_c/King; mv Htruck2.exe King.exe; mv RigNRoll.exe King.exe\"",
        "file": "sh"
      }
    }
  ],
  "require-binaries": "sh, sed",
  "wine": {
    "version": "lutris-6.14-3-x86_64"
  }
}
Back to game