Instaling Civilization IV: Beyond the Sword

Questions about Wine on Linux
Locked
vdeane
Level 2
Level 2
Posts: 23
Joined: Mon May 13, 2013 8:35 pm

Instaling Civilization IV: Beyond the Sword

Post by vdeane »

I'm trying to install the Beyond the Sword expansion pack for Civilization IV. Vanilla and Warlords installed just fine, but BtS is nothing but problems. If I can get the installer to run (it sometimes errors out, claiming a previous setup didn't finish properly, seemingly at random; clearing out the InstallShield files sometimes works, sometimes doesn't), it will eventually prompt for disk 2. I'm able to use wine eject here as I did for vanilla, but at the end, it will ask for disk 1 again. Here, wine eject fails - the command does nothing at all (no output, no errors, disk keeps spinning as if nothing happened), and I'm forced to cancel setup.

Before upgrading Linux Mint, I was able to get it to install by copying all files to a folder on the desktop and running setup from there. However, using that method, none of the .desktop files are created for menu entries, and creating one manually results in it having no icon - and since the icon is in the .exe file for the game, I cannot set one manually. I was willing to accept this workaround when just testing things out on an installation that would soon be blown away, but for a production system, I find it unacceptable. If someone could tell me how to get this to do a FULL install, including the .desktop menu entries, that would be a lifesaver!

One weird thing I noticed: when installing vanilla, the disk prompt used the Linux volume label and mount point in the dialog box, but for BtS, it only uses the drive letter (D:\).

I'm running Linux Mint 20 Cinnamon with Wine 5.0 stable (installed with their wine-installer package... I'd rather not have to switch to a different install).
vdeane
Level 2
Level 2
Posts: 23
Joined: Mon May 13, 2013 8:35 pm

Re: Instaling Civilization IV: Beyond the Sword

Post by vdeane »

So eventually I found where the icons are stored and with that decided to just do the "copy files to folder" workaround. That icon wasn't the best, but it turned out that the installer for Fall From Heaven 2 clued Wine in to the icon problem, because the real one appeared in ~/.local/share/icons/hicolor/32x32/apps like it's supposed to after that. All this said, I do still wonder why "wine eject" failed. This isn't even the only program it fails on - I also tested out SimCity 4 before upgrading Linux Mint, and it fails there too! I couldn't even get SC4 to install because I couldn't figure out a workaround.

There are a couple remaining glitches with civ4, though, so if anyone is familiar enough to figure out how to fix them, it would be appreciated. Sometimes I get a crash when the map generator/scenario loader is on "finishing". It's seemingly random, but often enough to be extremely annoying. The map, units, etc. all go black if I discover Calendar (which centers the world map), requiring a save and a reload. Finally, once in a while, the game will completely freeze when clicking end turn, requiring a force quit.

I tried downloading a native msxml3 and dropping it in the system32 folder and setting an override, but that just causes an xml parse error that prevents the game from loading (I also tried adding in msxml4 and msxml3r too, same result).
vdeane
Level 2
Level 2
Posts: 23
Joined: Mon May 13, 2013 8:35 pm

Re: Instaling Civilization IV: Beyond the Sword

Post by vdeane »

Specifically, this is what happens when I get a crash when setting up the map. Does anyone know how to fix it?

Code: Select all

Unhandled exception: page fault on read access to 0x00000004 in 32-bit code (0x00429ef6).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:006b GS:0063
 EIP:00429ef6 ESP:0032f944 EBP:365fdb50 EFLAGS:00010202(  R- --  I   - - - )
 EAX:00000000 EBX:351dca50 ECX:35234d00 EDX:35234d00
 ESI:0032fa1c EDI:00c950b0
Stack dump:
0x0032f944:  365fdb50 3541aed0 0032fa1c 0edfdb88
0x0032f954:  00000000 0032f968 7bc5737d 015a0064
0x0032f964:  ffffffff 0032f998 7bc57f60 015a0064
0x0032f974:  34560000 35234d00 000000b8 00be2790
0x0032f984:  003f8000 00000010 0000a277 0032f9b0
0x0032f994:  0032fa00 0032f9e8 7bc73b31 37aa6fd8
Backtrace:
=>0 0x00429ef6 EntryPoint+0xffffffff() in civ4beyondsword (0x365fdb50)
  1 0x00000000 (0x00ae4c14)
  2 0x004298d0 EntryPoint+0xffffffff() in civ4beyondsword (0x004299f0)
  3 0x00000018 (0xe8f18b56)
0x00429ef6 EntryPoint+0xffffffff in civ4beyondsword: movl	0x4(%eax),%ecx
Modules:
Module	Address			Debug info	Name (58 modules)
PE	  330000-  343000	Deferred        zlib1
PE	  350000-  35e000	Deferred        hapdbg
PE	  400000- 100a000	Export          civ4beyondsword
PE	 1010000- 137f000	Deferred        d3dx9_33
PE	 1ec0000- 238d000	Deferred        cvgamecoredll
PE	 ff40000- ff4a000	Deferred        mssdolby.flt
PE	10000000-1002b000	Deferred        boost_python-vc71-mt-1_32
PE	18000000-18038000	Deferred        binkw32
PE	1cb00000-1cb2e000	Deferred        mssmp3.asi
PE	1cc40000-1cc7a000	Deferred        mssvoice.asi
PE	1cea0000-1ceac000	Deferred        mssds3d.flt
PE	1cfc0000-1cfde000	Deferred        mssdsp.flt
PE	1d0f0000-1d110000	Deferred        msseax.flt
PE	1d220000-1d22d000	Deferred        msssrs.flt
PE	1e000000-1e1ca000	Deferred        python24
PE	20190000-203f7000	Deferred        d3dx9_31
PE	21100000-2118c000	Deferred        mss32
PE	7a840000-7a844000	Deferred        opengl32
PE	7b020000-7b023000	Deferred        kernelbase
PE	7b420000-7b5db000	Deferred        kernel32
PE	7bc30000-7bc34000	Deferred        ntdll
PE	7e030000-7e034000	Deferred        imm32
PE	7e2a0000-7e2a4000	Deferred        ucrtbase
PE	7e390000-7e394000	Deferred        dsound
PE	7e410000-7e418000	Deferred        oleaut32
PE	7e520000-7e524000	Deferred        ws2_32
PE	7e560000-7e569000	Deferred        msacm32
PE	7e590000-7e60d000	Deferred        winmm
PE	7e6a0000-7e71b000	Deferred        msvcp71
PE	7e7d0000-7e826000	Deferred        msvcr71
PE	7e8a0000-7e8a4000	Deferred        rpcrt4
PE	7e950000-7e978000	Deferred        ole32
PE	7ea90000-7ea93000	Deferred        shcore
PE	7ead0000-7ead8000	Deferred        shlwapi
PE	7eb50000-7f426000	Deferred        shell32
PE	7f560000-7f564000	Deferred        msvcrt
PE	7f620000-7f624000	Deferred        advapi32
PE	7f6b0000-7f6b7000	Deferred        gdi32
PE	7f820000-7f908000	Deferred        user32
PE	7ffd0000-7ffd4000	Deferred        version
PE	e0950000-e0954000	Deferred        wined3d
PE	e37d0000-e37d4000	Deferred        d3d9
PE	e4720000-e4764000	Deferred        crypt32
PE	f4960000-f4964000	Deferred        bcrypt
PE	f4990000-f4994000	Deferred        rsaenh
PE	f4f00000-f4f03000	Deferred        winepulse
PE	f4f30000-f4f34000	Deferred        mmdevapi
PE	f5000000-f5004000	Deferred        uxtheme
PE	f5040000-f5043000	Deferred        usp10
PE	f50b0000-f512e000	Deferred        comctl32
PE	f5310000-f5313000	Deferred        wtsapi32
PE	f5350000-f535b000	Deferred        mpr
PE	f5390000-f53af000	Deferred        wininet
PE	f5430000-f5442000	Deferred        urlmon
PE	f75b0000-f75d3000	Deferred        msxml3
PE	f7690000-f7696000	Deferred        gameux
PE	f7870000-f787f000	Deferred        setupapi
PE	f7ae0000-f7ae4000	Deferred        winex11
Threads:
process  tid      prio (all id:s are in hex)
0000000e services.exe
	00000029    0
	00000022    0
	0000001f    0
	0000001a    0
	00000013    0
	00000010    0
	0000000f    0
00000011 plugplay.exe
	00000017    0
	00000016    0
	00000012    0
00000018 winedevice.exe
	0000001c    0
	0000001b    0
	00000019    0
0000001d winedevice.exe
	00000026    0
	00000023    0
	00000021    0
	00000020    0
	0000001e    0
00000024 explorer.exe
	0000002f    0
	0000002e    0
	0000002d    0
	00000025    0
00000027 winedevice.exe
	0000002c    0
	0000002b    0
	0000002a    0
	00000028    0
00000050 (D) C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Civ4BeyondSword.exe
	00000074    0
	00000071    0
	0000006e    0
	0000006d    0
	0000006c    0
	0000006b   15
	0000006a   15
	00000068   15
	00000067    0
	00000066    0
	00000051    0 <==
System information:
    Wine build: wine-5.0 (Ubuntu 5.0-3ubuntu1)
    Platform: i386 (WOW64)
    Version: Windows 7
    Host system: Linux
    Host version: 5.4.0-40-generic
Locked