Wine + DoW: Redux

Valshak's picture

My posts on getting Dawn of War and it's subsequent expansions working under Wine have been... outdated? Perhaps superseded by a thinner, space-saving version (quite literally this HOW TO can shave at least 10 gigs off of your Dawn of War install folder and thus off your hard drive all together.) This is accomplished by JUST installing the newest edition of Dawn of War, Soulstorm. The game 'requires' that you have the previous games installed, but that didn't make much sense to me. I knew that each game is 4-5 gigabytes worth of data and, well, a DoW EXPANSION doesn't seem like it should be the same size or slightly larger than the original install of Dawn of War. This led me to deduce that the game simply looks for the CDKEYs in the registry and checks the registry for the install location and then for a EXE file. Well, let's get on with it.

//THINGS TO KNOW
$DoW = ~/.wine/drive_c/Program\ Files/THQ/
$dowKey = Your Dawn of War CDKEY
$waKey = Your Winter Assault CDKEY
$dcKey = Your Dark Crusade CDKEY
$ssKey = Your Soulstorm CDKEY

IF( $free_disk_space >= '6 Gigs' && ^soulstorm_installed == 'yes' ) {

  1. Open Regedit -
    $regedit
    - Go to HKEY_LOCAL_MACHINE -> Software -> THQ
    - Enter your CDKEYs and 'InstallLocation's in the following manner:
    |-> ...
    |-> THQ
    ---|-> Dawn of War
    ------|-> InstallLocation = $DoW\Dawn of War\
    ------|-> CDKEY = $dowKey
    ------|-> CDKEY_WXP = $waKey
    ---|-> Dawn of War - Dark Crusade
    ------|-> InstallLocation = $DoW\Dawn of War - Dark Crusade\
    ------|-> CDKEY = $dcKey
    ------|-> W40KCDKEY = $dowKey
    ------|-> WXPCDKEY = $waKey
    ---|-> Dawn of War - Soulstorm
    ------|-> InstallLocation = $DoW\Dawn of War - Soulstorm
    ------|-> CDKEY = $ssKey
    ------|-> W40KCDKEY = $dowKey
    ------|-> WXPCDKEY = $waKey
    ------|-> DXP2CDKEY = $dcKey

  2. Create install folders of other games -
    $mkdir $DoW/Dawn\ of\ War
    $mkdir $DoW/Dawn\ of\ War\ -\ Dark\ Crusade
  3. Place fixed .exe files into their respective directories
  4. Configure executable for Wine -
    $winecfg
    - Click 'Add application' and then find the Soulstorm EXE. (ie. $DoW/Soulstorm/)
    - Select it from the list and set it's 'Windows Version' to Windows 98
    - Make sure Alsa is selected under the 'Audio' tab
  5. Run the game -
    NOTE: Dawn of War does not like to start unless you are IN it's install directory. So be sure to go there before running the following command.
    $wine ./Soulstorm.exe
  6. /* Once the game starts it will ask you for your Dawn of War, Winter Assault, and Dark Crusade CDKEYS and because of this tutorial you should be able to enter them as normal and be greeted with a 'Awesome, you get to play all the races from that expansion now.' message, then be prompted for the next one.
    Also, when the game first starts it will "test" your graphics hardware but no matter WHAT your machine is comprised of you're still going to get a rating of low and 1024x768 resolution. Don't worry about it. Let the program set what it wants and then, once the game starts, you are able to change the resolution of your game, as well as texture resolution, model detail, terrain detail, etc. */

} ELSE {
/* You are down here because you need to install Dawn of War - Soulstorm. If that is true, please continue, if not then please begin the section above */

  1. Place disc in CDROM drive. If it does not auto-mount to your desktop, then consider installing HAL and it's dependencies on your system.
  2. Otherwise, check dmesg for evidence of the drive -
    $dmesg | grep CD-ROM
    - The return should produce something like this:
    sr 0:0:0:0: Attached scsi CD-ROM sr0
    That would mean that my drive is at /dev/sr0. Remember that as ^cdrom.
  3. Manually mount drive -
    #mount /dev/^cdrom /mnt/cdrom <- Make /mnt/cdrom if you need to.
  4. Start the install -
    $wine /mnt/cdrom/setup.exe

}