Installer rise-of-nations-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.

files:
- dgvoodoo: http://dege.freeweb.hu/dgVoodoo2/dgVoodoo2_61.zip
- setup: N/A:Select the game's setup file (RONSETUP.EXE)
game:
  exe: $GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Rise of Nations/nations.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    description: Creating 64bit Wine prefix.
    name: create_prefix
    prefix: $GAMEDIR
- task:
    app: mfc42 msxml4 directplay directmusic
    name: winetricks
    prefix: $GAMEDIR
- task:
    arch: win64
    executable: setup
    name: wineexec
    prefix: $GAMEDIR
- extract:
    dst: /tmp/dgvoodoo2/
    file: dgvoodoo
- move:
    dst: $GAMEDIR/drive_c/windows/syswow64/d3d9.dll.old
    src: $GAMEDIR/drive_c/windows/syswow64/d3d9.dll
- move:
    dst: $GAMEDIR/drive_c/windows/syswow64/d3d8.dll.old
    src: $GAMEDIR/drive_c/windows/syswow64/d3d8.dll
- move:
    dst: $GAMEDIR/drive_c/windows/syswow64/ddraw.dll.old
    src: $GAMEDIR/drive_c/windows/syswow64/ddraw.dll
- merge:
    dst: $GAMEDIR/drive_c/windows/syswow64
    src: /tmp/dgvoodoo2/MS/x86
- write_config:
    data:
      RISE OF NATIONS:
        AllowAllResolutions: 1
        BackVidAsSlideShow: 1
        CPU_grade_override(A-F or AUTO): AUTO
        CTWMapScroll: 35
        CTWScrollInc: 7
        ClickDragHighSensitive: 64
        ClickDragLowSensitive: 20
        ClickDragRightSensitive: 6
        ClickDragTiming: 5
        ConfigDatabase: BHGVidCardConfig.txt
        Console Coord Mode: 0
        Console Name Mode: 2
        DefaultScenarioDirectory: .\scenario\Custom\
        DefaultScriptDirectory: .\scenario\Scripts\
        Don't Allow Texture Compression: 0
        ESCKeyGoesToMenu: 1
        EnableGraphicsToggles: 0
        Force Profile Menu: 0
        ForceAGPVBs: 1
        ForceBWCursor: 0
        ForceGDICursor: 0
        ForceHardwareCursor: 1
        ForceLowCPUBackgroundVid: 1
        ForceStaticCursor: 0
        FullScreen: 1
        GPU_grade_override(A-F or AUTO): AUTO
        GameFrameTestDelayMax: 0
        GameFrameTestDelayMin: 0
        IgnoreMinimizeOnTabOut: 0
        MEM_grade_override(A-F or AUTO): AUTO
        RebuildBalance: 0
        RenderMinimap: 1
        SYS_grade_override(A-F or AUTO): AUTO
        ScenarioDirectory: \Scenarios
        SkipIntroMovies: 1
        Sound Enabled: 1
        StandaloneScriptsDirectory: Stand-alone Scripts
        StartConsole: 0
        StartPaused: 0
        StartReveal: 0
        TEXTURE_grade_override(FULL, HALF, QUARTER, AUTO): AUTO
        TPModsDirectory: .\Mods
        TestDelayRenderAMax: 0
        TestDelayRenderAMin: 0
        TestDelayRenderBMax: 0
        TestDelayRenderBMin: 0
        UseAltColors: 0
        UseNetworkSimulator: 0
        UseVTUNEDLL: 0
        VSync: 0
        Windowed Height: $RESOLUTION_HEIGHT
        Windowed Width: $RESOLUTION_WIDTH
    file: $GAMEDIR/drive_c/users/$USER/Application Data/Microsoft Games/Rise of Nations/rise2.ini
system:
  env:
    PULSE_LATENCY_MSEC: '30'
wine:
  dxvk: true
  esync: false
  overrides:
    d3d8.dll: n
    d3d9.dll: n
    d3dimm.dll: n
    ddraw.dll: n
  version: lutris-4.13-x86_64
{
  "wine": {
    "esync": false,
    "dxvk": true,
    "overrides": {
      "ddraw.dll": "n",
      "d3d8.dll": "n",
      "d3dimm.dll": "n",
      "d3d9.dll": "n"
    },
    "version": "lutris-4.13-x86_64"
  },
  "system": {
    "env": {
      "PULSE_LATENCY_MSEC": "30"
    }
  },
  "files": [
    {
      "dgvoodoo": "http://dege.freeweb.hu/dgVoodoo2/dgVoodoo2_61.zip"
    },
    {
      "setup": "N/A:Select the game's setup file (RONSETUP.EXE)"
    }
  ],
  "installer": [
    {
      "task": {
        "description": "Creating 64bit Wine prefix.",
        "prefix": "$GAMEDIR",
        "arch": "win64",
        "name": "create_prefix"
      }
    },
    {
      "task": {
        "prefix": "$GAMEDIR",
        "name": "winetricks",
        "app": "mfc42 msxml4 directplay directmusic"
      }
    },
    {
      "task": {
        "prefix": "$GAMEDIR",
        "arch": "win64",
        "executable": "setup",
        "name": "wineexec"
      }
    },
    {
      "extract": {
        "dst": "/tmp/dgvoodoo2/",
        "file": "dgvoodoo"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR/drive_c/windows/syswow64/d3d9.dll.old",
        "src": "$GAMEDIR/drive_c/windows/syswow64/d3d9.dll"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR/drive_c/windows/syswow64/d3d8.dll.old",
        "src": "$GAMEDIR/drive_c/windows/syswow64/d3d8.dll"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR/drive_c/windows/syswow64/ddraw.dll.old",
        "src": "$GAMEDIR/drive_c/windows/syswow64/ddraw.dll"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/windows/syswow64",
        "src": "/tmp/dgvoodoo2/MS/x86"
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/users/$USER/Application Data/Microsoft Games/Rise of Nations/rise2.ini",
        "data": {
          "RISE OF NATIONS": {
            "ForceLowCPUBackgroundVid": 1,
            "ForceAGPVBs": 1,
            "CPU_grade_override(A-F or AUTO)": "AUTO",
            "StartReveal": 0,
            "TestDelayRenderBMax": 0,
            "GameFrameTestDelayMin": 0,
            "ScenarioDirectory": "\\Scenarios",
            "ConfigDatabase": "BHGVidCardConfig.txt",
            "EnableGraphicsToggles": 0,
            "ForceStaticCursor": 0,
            "TestDelayRenderAMin": 0,
            "ClickDragTiming": 5,
            "Console Coord Mode": 0,
            "AllowAllResolutions": 1,
            "ForceGDICursor": 0,
            "SkipIntroMovies": 1,
            "ESCKeyGoesToMenu": 1,
            "DefaultScriptDirectory": ".\\scenario\\Scripts\\",
            "StandaloneScriptsDirectory": "Stand-alone Scripts",
            "StartConsole": 0,
            "ClickDragLowSensitive": 20,
            "GameFrameTestDelayMax": 0,
            "Windowed Height": "$RESOLUTION_HEIGHT",
            "CTWMapScroll": 35,
            "RenderMinimap": 1,
            "FullScreen": 1,
            "CTWScrollInc": 7,
            "TPModsDirectory": ".\\Mods",
            "ClickDragRightSensitive": 6,
            "MEM_grade_override(A-F or AUTO)": "AUTO",
            "ClickDragHighSensitive": 64,
            "Sound Enabled": 1,
            "ForceHardwareCursor": 1,
            "ForceBWCursor": 0,
            "TestDelayRenderBMin": 0,
            "DefaultScenarioDirectory": ".\\scenario\\Custom\\",
            "GPU_grade_override(A-F or AUTO)": "AUTO",
            "TEXTURE_grade_override(FULL, HALF, QUARTER, AUTO)": "AUTO",
            "SYS_grade_override(A-F or AUTO)": "AUTO",
            "IgnoreMinimizeOnTabOut": 0,
            "UseNetworkSimulator": 0,
            "Windowed Width": "$RESOLUTION_WIDTH",
            "RebuildBalance": 0,
            "BackVidAsSlideShow": 1,
            "UseAltColors": 0,
            "StartPaused": 0,
            "Console Name Mode": 2,
            "TestDelayRenderAMax": 0,
            "VSync": 0,
            "UseVTUNEDLL": 0,
            "Force Profile Menu": 0,
            "Don't Allow Texture Compression": 0
          }
        }
      }
    }
  ],
  "game": {
    "prefix": "$GAMEDIR",
    "exe": "$GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Rise of Nations/nations.exe"
  }
}
Back to game