Trouble Installing Age of Empires 2 (CD version)

So I’ve been trying to install AOE2 Age of Kings and can’t get it to work.

When using Lutris the installer will fail with a 256 exit when trying to install from the setup.exe

The script fails in a similar way.

I was able to finish the install by running the exe in a different prefix, the program will fail to launch.

I attempted to use wine outside of lutris, after finishing the install I attempt to run it but it fails with an error code which I will paste below, any help would be appreciated.

Unhandled exception: page fault on read access to 0xffff0004 in wow64 32-bit code (0x0042d38c).
Register dump:
CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:002b
EIP:0042d38c ESP:0012dad4 EBP:0012db20 EFLAGS:00010246( R- – I Z- -P- )
EAX:ffff0000 EBX:00000001 ECX:0012db48 EDX:0012dc18
ESI:7bb629c0 EDI:00400000
Stack dump:
0x0012dad4: 00400000 7bb629c0 0012db20 0012daf4
0x0012dae4: 00000001 0012dc18 0012db48 00001010
0x0012daf4: 00400000 7bb629c0 00000001 00001010
0x0012db04: 00000023 00000000 00000000 0002ffff
0x0012db14: 00000000 00025c83 00000000 0012dbe4
0x0012db24: 0042d58f 00001010 0012db48 00400000
Backtrace:
=>0 0x0042d38c in empires2 (+0x2d38c) (0x0012db20)
1 0x0042d58f in empires2 (+0x2d58f) (0x0012dbe4)
2 0x00428274 in empires2 (+0x28274) (0x0012dc94)
3 0x00426b9a in empires2 (+0x26b9a) (0x0012dcb4)
4 0x004257ee in empires2 (+0x257ee) (0x0012dcf8)
5 0x00425052 in empires2 (+0x25052) (0x0012fd54)
6 0x00424bc6 in empires2 (+0x24bc6) (0x0012fdac)
7 0x0042761a in empires2 (+0x2761a) (0x0012fde4)
8 0x00410a99 in empires2 (+0x10a99) (0x0012fec4)
9 0x0041ace2 in empires2 (+0x1ace2) (0x0012ff50)
10 0x7bb69070 in kernel32 (+0x29070) (0x0012ff68)
11 0x7bd46893 in ntdll (+0x56893) (0x0012ff80)
12 0x7bd472c5 in ntdll (+0x572c5) (0x0012ffec)
0x0042d38c empires2+0x2d38c: mov 0x04(%eax), %esi
Modules:
Module Address Debug info Name (16 modules)
PE 400000- 44b000 --none-- empires2
PE-Wine 7a2d0000-7a378000 Deferred uxtheme
PE-Wine 7a390000-7a3da000 Deferred winex11
PE-Wine 7a3f0000-7a455000 Deferred imm32
PE-Wine 7a470000-7a660000 Deferred krnl386.exe16
PE-Wine 7a670000-7a68b000 Deferred version
PE-Wine 7a6a0000-7a6da000 Deferred win32u
PE-Wine 7a6f0000-7a935000 Deferred gdi32
PE-Wine 7a950000-7ac6f000 Deferred ucrtbase
PE-Wine 7ac80000-7acef000 Deferred sechost
PE-Wine 7ad00000-7afb0000 Deferred msvcrt
PE-Wine 7afc0000-7b0ad000 Deferred advapi32
PE-Wine 7b0c0000-7b5d0000 Deferred user32
PE-Wine 7b5e0000-7bb21000 Deferred kernelbase
PE-Wine 7bb40000-7bcae000 Dwarf-4-5 kernel32
PE-Wine 7bcf0000-7bfe5000 Dwarf-4-5 ntdll
Threads:
process tid prio name (all IDs are in hex)
00000020 (D) C:\Program Files (x86)\Microsoft Games\Age of Empires II\empires2.exe
[“C:\Program Files (x86)\Microsoft Games\Age of Empires II\empires2.exe”]
00000024 0 <==
00000124 0
00000038 services.exe
0000003c 0
00000040 0 wine_rpcrt4_server
0000004c 0 wine_rpcrt4_io
0000007c 0 wine_rpcrt4_io
000000ac 0 wine_rpcrt4_io
000000c4 0 wine_rpcrt4_io
000000d8 0
000000e8 0 wine_rpcrt4_io
000000f4 0 wine_rpcrt4_io
00000044 winedevice.exe
00000048 0
00000054 0
00000058 0 wine_sechost_service
0000005c 0
00000068 0
0000006c 0
00000070 0
000000d0 0
000000d4 0
00000060 explorer.exe
00000064 0
000000dc 0
000000e0 0 wine_explorer_display_settings_restorer
000000e4 0 wine_rpcrt4_server
00000074 winedevice.exe
00000078 0
00000080 0
00000084 0 wine_sechost_service
00000088 0
0000008c 0
00000090 0
00000094 0
00000098 0
0000009c 0
000000a4 plugplay.exe
000000a8 0
000000b0 0
000000b4 0 wine_sechost_service
000000b8 0 wine_rpcrt4_server
000000bc svchost.exe
000000c0 0
000000c8 0
000000cc 0 wine_sechost_service
000000ec rpcss.exe
000000f0 0
000000fc 0
00000100 0 wine_sechost_service
00000104 0 wine_rpcrt4_server
00000108 0 wine_rpcrt4_server
0000010c 0 wine_rpcrt4_io
00000110 0 wine_threadpool_worker
0000013c 0 wine_rpcrt4_io
0000011c conhost.exe
00000120 0
00000128 explorer.exe
0000012c 0
00000130 0
00000134 0 wine_explorer_display_settings_restorer
00000138 0 wine_rpcrt4_server
System information:
Wine build: wine-9.17 (Staging)
Platform: x86_64 (guest: i386)
Version: Windows 98
Host system: Linux
Host version: 6.10.7-200.fc40.x86_64

Hello, what is the media? an original CD ? other?
Did you use a Lutris script installer? If so, which one?

I’m using the original cd, I attempted both scripts the wine CD version and the 2.0a no-cd version

The wine CD version finishes the install program but fails with a 256 error when it exits.

Log is
lutris-wrapper: /home/name/.local/share/lutris/runners/wine/lutris-6.0-x86_64/bin/wine
Started initial process 20070 from /home/name/.local/share/lutris/runners/wine/lutris-6.0-x86_64/bin/wine /run/media/name/AOE2/aoesetup.exe
Start monitoring process.
esync: up and running.
Initial process has exited (return code: 256)
Monitored process exited.
Exit with return code 256

the no-cd version says I have no CD despite having one and will not continue.

So I figured out a solution,

I installed the game into a prior 32bit prefix (wine runner set up for windows xp 32bit), for this I used AOE1. I then ran the aoesetup executable within that prefix which allowed the install to finish without crashing.

The next step was simply to use a nocd patch for the game and then add the executable as a local install.

Hello, I just updated the Lutris script installer for CD, could you test it and tell me if it works for you?

Tested, works perfectly. The cnc ddraw dll you included also fixes a text issue that was present where you couldn’t see what you were typing thanks

1 Like