[Wine] Civ4 in Wine 1.1.25 on Ubuntu 9.04

Ahhh Epiphany, right click on the cd copies on desktop, under properties, 2nd or 3rd tab, change to installable or writeable, you'll understand when see. Away at my Mothers place, so can't just click and see. This may be problem, it thinks the CD copy isn't an executable program, so just gives up errors

Don't think this is the issue. Using these folders to install gives the impression that a complete installation was successful; it even creates desktop shortcut icons. Installing from the HD APPEARS to work fine until I try to start civ IV, where it crashes with the "serious problem" flag I highlighted in my first post in this thread.

If I instead try to install using CDs, I can't get wine to recognize the 2nd cd come hell or high water. Not by normal inserting it, not by mounting both the 1st one and second one to the same place and using the exact names the installer wants, nothing. I ALWAYS (10ish tries with different approaches) wind up having to cancel any actual-CD based installation attempt for the sole purpose of wine not recognizing the 2nd cd needed to install the game because it always always always says it can't find the file/drive/cd/whatever.

Edit:

I ran it through terminal again after an install, and looked for EXACTLY when the program actually crashed. It's this:

Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0x01c2235d).

Followed by a large dump as per my 1st post in this thread. Looks like I've some forum diving as per IPEX to find a workaround for the 64 vs 32 bit issue, at least to my untrained eyes.
 
UPDATE

Progress. I did not realize my "system" WINE could and would affect PoL wine settings packages. I went into my package manager looking for 1.3 versions in 32 bit, and instead noticed my desktop had no 1.3 wine packages installed (despite PoL telling me I was running 1.3.23 64 bit WINE for civ IV).

I swapped out wine 1.2 for 1.3, and this instantly caused the game to bypass the previous error and start (fortunately, it did not affect other installs and I can now run every game I own with the possible exception of steam, which I haven't tried since the wine version switch). I now run into another problem that has been encountered on wineHQ, a known bug that is RATHER annoying:

I crash when starting a game at "setup map". Reading through previous error reports it's almost guaranteed this is tied to msxml3.dll. The annoying part is as follows. I can set msxml3.dll to one of two options, with the following results:

1. Built in: BTS will load without issue, but will crash on "setup map" as per above
2. Native (supposed solution in wineHQ): BTS will not load, instead giving me an XML parser issue on startup and forcing me to close it.

This bug has been noted over 6 months ago with no change or update to it since. Obviously, some of you have bypassed this issue, my guess is by somehow bypassing the xml parser issue related to running the game with the native version of the dll. How did you do it?

EDIT:

Going off all that "stub" and "semi-stub" crap in the terminal and on the basis of narrowing the issue to the specific dll file, I downloaded a clean version of the dll and compared it to the dll in the sys32 file. Indeed, the latter was smaller. Replaced, and native msxml3.dll now does NOT give the parser issue, and the game runs. Well, so far.

Thanks for the help here everyone. Once I've confirmed the game is fully functional, I'll probably compile the important points of my experience over on wineHQ, but this forum can add a +1 to the number of linux players :devil:.
 
Thanks for the help here everyone. Once I've confirmed the game is fully functional, I'll probably compile the important points of my experience over on wineHQ, but this forum can add a +1 to the number of linux players :devil:.

I'm very pleased to see that you have apparently gotten Civ4 finally working on Linux!

Some day I'll do the same. I wish I could have helped.

MapFinder: As I understand it, the appropriate versions of .net can also be installed, so the MapFinder application should work on Wine/Linux too. At least I've heard another Civ4 player claim it works.

Sun Tzu Wu
 
1st on Wine, version 1.2.3 won't load Civ 4 properly, I've posted as much at winehq, just use Beta, posted that here as well. I tried 1.2.3 didn't work, just went straight to latest beta, didn't even bother to look back.

64 Bit v's 32 Bit, shouldn't matter, the games only 32 bit, wouldn't matter if you ran 128 bit software, from 10 yr's hence, can only emulate 32 bit. Don't know why or how, just know, it is what it is.

Play on Linux, I don't know anything there. I use wine direct with Ubuntu Linux installation. 11.04 Natty Narwhal.

Finally, glad to here you've gotten it running finally, I know how stressing it can be. I don't play straight civ 4, I'm hooked on the Rise of Mankind, A New Dawn mod at moment. So purist v's Modders Meh, I like to play, beta test 1.76 and :cry: about errors.. Nah joking I'm grateful someone takes the time out to improve a mod, I'm happy to do what I can.

welcome to the Linux fold. Not an easy move, but Window's 7, seems to cause as much problems.

Just make sure you LATEST DRIVERS for Video cards, ATI or Nvidia or what ever. It goes a long way to solving issues.
 
Just make sure you LATEST DRIVERS for Video cards, ATI or Nvidia or what ever. It goes a long way to solving issues.

Mint is pretty good about graphics things. It found proprietary drivers and installed them as part of its auto update detection feature. I figured it almost certainly was NOT the issue because I was running sc2 well already and that is a LOT more *graphically* taxing (civ IV beats down your processing cycles).

My biggest mistake here, was that PoL showed it was using 1.3.23 in the prefix config but my system was actually on 1.2...it was only be mistake that I noticed that, but it was indeed the important point.

IMO PoL is very functional and useful. Its installation for the other games I tried was effective too, and its very handy to have a graphical interface to quickly change wine configs for specific games and not mess up others. It also copies a lot of necessary settings from popular titles already known to wineHQ. I'd recommend it to anybody as even for terminal editing pros the GUI on PoL is probably faster once you know how to use it.

But yeah, wine 1.3 all the way. I completed a game w/ no hiccups, and it's worth noting I had none of the little graphical glitches or sound problems that others have reported on wineHQ. The game literally runs perfectly so far, though I've yet to test MP I see no reason that would struggle.
 
I need some help getting K-Mod to word under wine.

The game under BTS runs perfectly, but when i load the K-Mod, and then click on "single player" on the main menu, the game freezes, and the only way of getting back into desktop is killing the process.

I followed the installation instruction, given in this site:
http://forums.civfanatics.com/downloads.php?do=file&id=16331

I have latest patches applied, 3.19.
Latest wine version too.

Thanks!

Here is an extract of the command line:

Code:
fixme:win:EnumDisplayDevicesW ((null),0,0x33eeec,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x33f424,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x33f430,0x00000000), stub!
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:win:EnumDisplayDevicesW ((null),0,0x33ef78,0x00000000), stub!
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:wined3d_buffer_preload Too many declaration changes or converting dynamic buffer, stopping converting
fixme:d3d:state_lastpixel Last Pixel Drawing Disabled, not handled yet
wine: Unhandled page fault on read access to 0x241ce000 at address 0x7c3428fa (thread 0027), starting debugger...
couldn't load main module (2)
Process of pid=000c has terminated
No process loaded, cannot execute 'echo Modules:'
Cannot get info on module while no process is loaded
No process loaded, cannot execute 'echo Threads:'
process  tid      prio (all id:s are in hex)
0000000e services.exe
        00000025    0
        00000024    0
        0000001e    0
        00000015    0
        00000010    0
        0000000f    0
00000012 winedevice.exe
        0000001c    0
        00000019    0
        00000014    0
        00000013    0
0000001a plugplay.exe
        00000020    0
        0000001d    0
        0000001b    0
00000021 winedevice.exe
        00000026    0
        00000023    0
        00000022    0
00000030 explorer.exe
        0000002f    0
You must be attached to a process to run this command.
No process loaded, cannot execute 'detach'
 
Only suggestion I could make is to use the CvAltRoot.py file and change your pathway to emulate what your using under linux now.

Don't have the file, I'll attach a copy. (won't accept Python files, I'll copy and past, Name it CvAltRoot.py

## CvAltRoot
##
## Tells Rise of Mankind where to locate its files when it cannot find them normally.
## This is common when using the /AltRoot Civ4 feature or sometimes on
## non-English operating systems and Windows Vista.
##
## HOW TO USE
##
## 1. Change the text in the quotes below to match the full path to the
## "Beyond the Sword" folder that contains the CivilizationIV.ini file.
## Make sure to use forward slashes (/), even for Windows paths.
##
## Windows XP: "C:/users/brian/My Documents/My Games/Beyond the Sword"
##
## Windows Vista: "C:/Users/[UserName]/Documents/My Games/Beyond the Sword"
##
## MacOS: "/home/[UserName]/Documents/Beyond the Sword"
##
##
## 2. Copy this file to the "Python" folder.
## When Rise of Mankind is installed as a mod, the folder is "Assets/Python".
##
##
## Note!
##
## if above method doesn't help, locate the "Beyond the Sword" installation folder.
## This location is not in the documents folders, instead it's usually in
## "Program Files" ie. "C:/Program Files/Firaxis/Sid Meier's Civilization 4/Beyond the Sword"
## The folder usually contains "_Civ4config" shortcut (on Windows systems). Once you have
## located this folder, follow the step 2 again. Usually when [username] in above examples
## contains non-english letters you will have to use the installation folder location.
##
##
## Copyright (c) 2008 The BUG Mod.
##
## Author: EmperorFool
##
## Modified for Rise of Mankind: Zappara
##

rootDir = "C:/users/brian/My Documents/My Games/Beyond the Sword"


Edit using your favorite text editor, only need to change the last line rootDir=... The rest is just for example.

Just rename it to .py extension only CvAltRt.py.txt
 
Tried both methods and still same result. Its really weird, since the "Better BUG AI" mod works perfectly. Only when loading "K-mod" and clicking singleplayer, wine crashes.

Thanks!!!!!


Code:
gabriel@linux-a7dy:~/.wine/drive_c/Archivos de programa/Firaxis Games/Sid Meier's Civilization 4/Beyond the Sword> wine "Civ4BeyondSword.exe" -mod= K-Mod
fixme:system:SystemParametersInfoW Unimplemented action: 55 (SPI_SETMOUSEKEYS)
fixme:system:SystemParametersInfoW Unimplemented action: 59 (SPI_SETSTICKYKEYS)
fixme:gameux:GameExplorerImpl_VerifyAccess (0x130ae0, L"C:\\Archivos de programa\\Firaxis Games\\Sid Meier's Civilization 4\\Beyond the Sword\\Civ4BeyondSword.exe", 0x32fb18)
fixme:ntdll:find_reg_tz_info Can't find matching timezone information in the registry for bias 240, std (d/m/y): 11/03/2012, dlt (d/m/y): 14/10/2012
err:menubuilder:Process_Link unable to load L"C:\\Archivos de programa\\Firaxis Games\\Sid Meier's Civilization 4\\Beyond the Sword\\Logs.lnk"
err:menubuilder:wWinMain failed to build menu item for L"C:\\Archivos de programa\\Firaxis Games\\Sid Meier's Civilization 4\\Beyond the Sword\\Logs.lnk"
err:menubuilder:Process_Link unable to load L"C:\\Archivos de programa\\Firaxis Games\\Sid Meier's Civilization 4\\Beyond the Sword\\Saves.lnk"
err:menubuilder:wWinMain failed to build menu item for L"C:\\Archivos de programa\\Firaxis Games\\Sid Meier's Civilization 4\\Beyond the Sword\\Saves.lnk"
err:menubuilder:Process_Link unable to load L"C:\\Archivos de programa\\Firaxis Games\\Sid Meier's Civilization 4\\Beyond the Sword\\CivilizationIV.ini.lnk"
err:menubuilder:wWinMain failed to build menu item for L"C:\\Archivos de programa\\Firaxis Games\\Sid Meier's Civilization 4\\Beyond the Sword\\CivilizationIV.ini.lnk"
fixme:wtsapi:WTSRegisterSessionNotification Stub 0x30112 0x00000000
'import site' failed; use -v for traceback
fixme:win:EnumDisplayDevicesW ((null),0,0x32eeec,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x32f424,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x32f430,0x00000000), stub!
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:win:EnumDisplayDevicesW ((null),0,0x32ef78,0x00000000), stub!
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:wined3d_buffer_preload Too many declaration changes or converting dynamic buffer, stopping converting
fixme:d3d:state_lastpixel Last Pixel Drawing Disabled, not handled yet
wine: Unhandled page fault on read access to 0x241ee000 at address 0x7c3428fa (thread 0009), starting debugger...
Unhandled exception: page fault on read access to 0x241ee000 in 32-bit code (0x7c3428fa).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:7c3428fa ESP:0032f630 EBP:24131188 EFLAGS:00010202(  R- --  I   - - - )
 EAX:241cef61 EBX:00000010 ECX:00c92980 EDX:00006f4d
 ESI:241ee000 EDI:241cef94
Stack dump:
0x0032f630:  00000000 00000010 241cef90 00527741
0x0032f640:  241cef94 00c92980 0032f970 24131188
0x0032f650:  00000348 0032f8b8 24130e34 00000004
0x0032f660:  00000000 00000000 00000000 4d430003
0x0032f670:  00000000 00000000 00000000 00000000
0x0032f680:  00000000 00000000 00000000 7efe3ff4
000c: sel=0067 base=00000000 limit=00000000 32-bit r--
Backtrace:
=>0 0x7c3428fa in msvcr71 (+0x28fa) (0x24131188)
0x7c3428fa: movb        0x0(%esi),%al
Modules:
Module  Address                 Debug info      Name (114 modules)
PE        330000-  3ab000       Deferred        msvcp71
PE        3b0000-  3c3000       Deferred        zlib1
PE        3d0000-  3de000       Deferred        hapdbg
PE        400000- 100a000       Deferred        civ4beyondsword
PE       1010000- 137f000       Deferred        d3dx9_33
PE       1d60000- 225f000       Deferred        cvgamecoredll
PE       fda0000- fdad000       Deferred        msssrs.flt
PE      10000000-1002b000       Deferred        boost_python-vc71-mt-1_32
PE      17fa0000-17fc0000       Deferred        msseax.flt
PE      18000000-18038000       Deferred        binkw32
PE      1e000000-1e1ca000       Deferred        python24
PE      1f950000-1fbb7000       Deferred        d3dx9_31
PE      21100000-2118c000       Deferred        mss32
PE      22300000-2230c000       Deferred        mssds3d.flt
PE      23000000-2300a000       Deferred        mssdolby.flt
PE      24100000-2411e000       Deferred        mssdsp.flt
PE      26400000-2643a000       Deferred        mssvoice.asi
PE      26f00000-26f2e000       Deferred        mssmp3.asi
PE      74980000-74ab0000       Deferred        msxml3
PE      78000000-78044000       Deferred        msvcrt
ELF     7bf00000-7bf04000       Deferred        <wine-loader>
PE      7c340000-7c396000       Export          msvcr71
ELF     7dc05000-7dc3b000       Deferred        uxtheme<elf>
  \-PE  7dc10000-7dc3b000       \               uxtheme
ELF     7dc3b000-7dc47000       Deferred        libxcursor.so.1
ELF     7dd53000-7dd7d000       Deferred        libexpat.so.1
ELF     7dd7d000-7ddb2000       Deferred        libfontconfig.so.1
ELF     7ddb2000-7ddc2000       Deferred        libxi.so.6
ELF     7ddc2000-7ddc6000       Deferred        libxcomposite.so.1
ELF     7ddc6000-7ddcf000       Deferred        libxrandr.so.2
ELF     7ddcf000-7ddda000       Deferred        libxrender.so.1
ELF     7ddda000-7dde0000       Deferred        libxxf86vm.so.1
ELF     7dde0000-7dde4000       Deferred        libxinerama.so.1
ELF     7dde4000-7de08000       Deferred        imm32<elf>
  \-PE  7ddf0000-7de08000       \               imm32
ELF     7de08000-7de28000       Deferred        libxcb.so.1
ELF     7de28000-7de2e000       Deferred        libuuid.so.1
ELF     7de2e000-7de49000       Deferred        libice.so.6
ELF     7de49000-7df87000       Deferred        libx11.so.6
ELF     7df87000-7df99000       Deferred        libxext.so.6
ELF     7df99000-7e036000       Deferred        winex11<elf>
  \-PE  7dfa0000-7e036000       \               winex11
ELF     7e036000-7e04e000       Deferred        libz.so.1
ELF     7e04e000-7e0d7000       Deferred        libfreetype.so.6
ELF     7e0d7000-7e121000       Deferred        libncurses.so.5
ELF     7e13f000-7e146000       Deferred        libxfixes.so.3
ELF     7e14c000-7e194000       Deferred        dsound<elf>
  \-PE  7e150000-7e194000       \               dsound
ELF     7e194000-7e2a2000       Deferred        oleaut32<elf>
  \-PE  7e1b0000-7e2a2000       \               oleaut32
ELF     7e2a2000-7e2d6000       Deferred        ws2_32<elf>
  \-PE  7e2b0000-7e2d6000       \               ws2_32
ELF     7e2d6000-7e300000       Deferred        msacm32<elf>
  \-PE  7e2e0000-7e300000       \               msacm32
ELF     7e300000-7e37f000       Deferred        rpcrt4<elf>
  \-PE  7e310000-7e37f000       \               rpcrt4
ELF     7e37f000-7e4a8000       Deferred        ole32<elf>
  \-PE  7e3a0000-7e4a8000       \               ole32
ELF     7e4a8000-7e554000       Deferred        winmm<elf>
  \-PE  7e4b0000-7e554000       \               winmm
ELF     7e554000-7e657000       Deferred        comctl32<elf>
  \-PE  7e560000-7e657000       \               comctl32
ELF     7e657000-7e6ca000       Deferred        shlwapi<elf>
  \-PE  7e670000-7e6ca000       \               shlwapi
ELF     7e6ca000-7e8ee000       Deferred        shell32<elf>
  \-PE  7e6e0000-7e8ee000       \               shell32
ELF     7e8ee000-7e908000       Deferred        version<elf>
  \-PE  7e8f0000-7e908000       \               version
ELF     7e908000-7e971000       Deferred        advapi32<elf>
  \-PE  7e910000-7e971000       \               advapi32
ELF     7e971000-7ea3d000       Deferred        gdi32<elf>
  \-PE  7e980000-7ea3d000       \               gdi32
ELF     7ea3d000-7eb8f000       Deferred        user32<elf>
  \-PE  7ea50000-7eb8f000       \               user32
ELF     7ecfe000-7eed7000       Deferred        kernel32<elf>
  \-PE  7ed10000-7eed7000       \               kernel32
ELF     7eed7000-7ef02000       Deferred        libm.so.6
ELF     7ef02000-7ef06000       Deferred        libxau.so.6
ELF     7ef06000-7ef0f000       Deferred        libsm.so.6
ELF     7ef2d000-7f000000       Deferred        ntdll<elf>
  \-PE  7ef40000-7f000000       \               ntdll
ELF     f4b10000-f4b5d000       Deferred        libatiadlxx.so
ELF     f4b88000-f4b90000       Deferred        libatiuki.so.1
ELF     f4b90000-f6dcf000       Deferred        fglrx_dri.so
ELF     f6dcf000-f6ded000       Deferred        libgcc_s.so.1
ELF     f6ded000-f6ed9000       Deferred        libgl.so.1
ELF     f6f04000-f7048000       Deferred        wined3d<elf>
  \-PE  f6f10000-f7048000       \               wined3d
ELF     f7048000-f7085000       Deferred        d3d9<elf>
  \-PE  f7050000-f7085000       \               d3d9
ELF     f7085000-f7140000       Deferred        crypt32<elf>
  \-PE  f7090000-f7140000       \               crypt32
ELF     f7140000-f7182000       Deferred        rsaenh<elf>
  \-PE  f7150000-f7182000       \               rsaenh
ELF     f71c2000-f72a7000       Deferred        libasound.so.2
PE      f72ac000-f72b2000       Deferred        libasound_module_rate_speexrate.
ELF     f7313000-f731c000       Deferred        librt.so.1
ELF     f731c000-f7349000       Deferred        winealsa<elf>
  \-PE  f7320000-f7349000       \               winealsa
ELF     f7349000-f736d000       Deferred        mmdevapi<elf>
  \-PE  f7350000-f736d000       \               mmdevapi
ELF     f73b1000-f73ec000       Deferred        winhttp<elf>
  \-PE  f73c0000-f73ec000       \               winhttp
ELF     f73ec000-f7410000       Deferred        gameux<elf>
  \-PE  f73f0000-f7410000       \               gameux
ELF     f7410000-f7414000       Deferred        iso8859-1.so
ELF     f741c000-f7421000       Deferred        libdl.so.2
ELF     f7421000-f758d000       Deferred        libc.so.6
ELF     f758d000-f75a8000       Deferred        libpthread.so.0
ELF     f75b8000-f75d0000       Deferred        wtsapi32<elf>
  \-PE  f75c0000-f75d0000       \               wtsapi32
ELF     f75d3000-f7717000       Dwarf           libwine.so.1
ELF     f7718000-f7739000       Deferred        ld-linux.so.2
ELF     ffffe000-fffff000       Deferred        [vdso].so
Threads:
process  tid      prio (all id:s are in hex)
00000008 (D) C:\Archivos de programa\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Civ4BeyondSword.exe
        00000042    0
        00000041    0
        00000040   15
        0000003f   15
        0000003e    0
        0000003d    0
        00000009    0 <==
0000000e services.exe
        00000025    0
        00000024    0
        0000001e    0
        00000018    0
        00000017    0
        00000015    0
        00000010    0
        0000000f    0
00000012 winedevice.exe
        0000001c    0
        00000019    0
        00000014    0
        00000013    0
0000001a plugplay.exe
        00000020    0
        0000001d    0
        0000001b    0
00000021 winedevice.exe
        00000026    0
        00000023    0
        00000022    0
00000027 explorer.exe
        00000028    0
 
Anyone tried running Rhye's and Fall of Civilizations BTS? For me that's a sure CTD.

Code:
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
wine: Unhandled page fault on read access to 0x00000004 at address 0x429ef6 (thread 0025), starting debugger...
Can't attach process 0043: error 5
err:mmtime:TIME_MMTimeStop Timer still active?!

Any ideas? The fixme:d3d: lines represent several hundred of their brethren... Flooded my terminal. No idea, if there's anything else above those. I followed the install instructions on the first page of this thread, distribution is Mint 13 Mate, running with compiz and emerald, if that's of any importance. Unmodded game runs fine.
 
I took the backdoor approach to getting Civ running on Linux. Ubuntu 12.04 LTS, and wine 1.4.

I originally tried installing it from CD, but the installer crashed almost immediately. There was nothing terribly useful over on AppDB for the vanilla install, but I also took a look at the BTS section, and that's what gave me what I needed.

I ran winetricks and installed the recommended DLLs and fonts. I did not disable / remove pulseaudio.

At this point, I opened the Civ4 BTS install on the Windows partition of my computer and was able to run it successfully. I did have the BTS CD in the drive at the time.

Started new game.
Saved game.
Loaded saved game.
No problems.

Did not try multiplayer, and have not tried any mods. Tonight I will try a couple of simple mods.

The long-term goal is to migrate completely to Linux, and getting Civ (and other games) working there is key.

EDIT: Tried loading the Caveman2Cosmos mod and got "Error loading shader libraries", which appears to be related to directx. Not sure how to fix it.
 
Ha Ha, on my never ending search, which has just ended, on using wine to play Civ 4 on linux.

Ubuntu 12.04 is my system, but 'should' work for most linux systems.

Specifically its a 64 bit system using wine, and playing the Rise of Mankind, A New Dawn mod.

You MUST alter the CvAltRoot.py file that's included with the mod, only alter the bottom line to read :-

rootDir = "C:/users/(user name)/My Documents/My Games/Beyond the Sword"

(user name)= your system name, or the name where your home folder is contained.

for 32 Bits its :-


rootDir = "C:/My doucuments/My Games/Beyond the Sword"

It will "work" without these amendments to the CivAltRt.py file, but eventually it will crash on you, and keep crashing after reloading.

I have tested both, with 32 bit, with weeks of actual game play and I mean 168 hr's of play x (X) weeks I've played in total.

The 64 Bit, I've only played for 40 minutes, but I didn't have one crash, where previously I was having 1 every 2 turns at LEAST. Plus I don't have the CivAltRt.py file doesn't point to the CivilazationIV.ini file coming up as an error any more. (A sign Its working correct).

*Edit 2 :- Sorry, I went spoke too quick. 64 bit programs use wine, differently. the My Documents covering short cut is read by CvAltRt.py at C:/users/[user name]/My Documents.

*Edit 3 :- Bah humbug

Not as I thought, that the My Documents in wine, should have shown up as an over ride in the Bug tab on System. Again sorry.

Alter the CivAltRt.py File to the Bottom line only to :

Both 32 bit

C:/My documents/My Games/Beyond the Sword

64 Bit use the same CivAltRt.py alteration to the Bottom line only to :

C:/Users/(user name)/My Documents/My Games/ Beyond the Sword. Copy this file and paste in in the folder .../Assets/Python of the mod being played.
 
I'm currently using Ubuntu 12.04.1 LTS edition, with wine 1.4.1 stable version.

I had experienced drop outs of sound, which I have now been able to resolve.

Solution:

1. Run a Grep command to display the sound cards used on your system, it displayed 3 for me, 2x a generic one (0) and one by NVIDIA (1)

aplay -l | grep card | cut -d: -f1

*It would seem, that wine was getting confused between the 2 sound cards as default.

2. Configure wine, change the sound settings tab. You need to change from default, to use the HDA NVIDIA ***** version on the output fields.

How does it work:

I assume, that it just sets the sound card to the NVIDIA version of it, and not to default, which wine seems to keep switching or confusing itself with. This has enabled sound clearly for me for hr's of game play, where previously, it would drop out within 5 minutes.

Try the default settings first, in both the game and sound under wine. Always use default sound settings in the game, unless you have a specific hardware that's listed.

Please note, this solution, should work for other games experiencing the same sound problems.
 
I haven't had any of these issues IPEX. I was running Mint 11 Katya, but a couple days ago I upgraded to Mint 14 (the mate desktop 32 bit). My WINE is 1.4 for civ IV (I'm using PoL front-end so for example my steam wine is 1.5 something).

Aside from the necessity to copy my CDs onto the HD to install from the civ gold edition (PoL doesn't like CD swap still apparently), things went quite smoothly with the usual winetricks for msxml3 and the d3dx9 type stuff that the WINEHQ suggests.

Sound worked out of the gate for me, possibly you had it detecting the wrong stuff? That's what it seems like...but if you only have 1 sound card it I'm not sure why the system is putting default + nvidia ones.

I just use pulse for everything and other than a 1-2 minute period of awful sound just after comp boots, it's never been a problem...maybe I'm fortunate in sound card detection. Pulse is the simplest way to set up the ability to record game and mic-in at the same time so I'm quite partial to it.

Now, if I could just find a good video/audio recording program in Linux! GTK-recordmydesktop encodes into ogg, which would be fine if it didn't take 4x as long to encode as it did to record :(. I still wouldn't mind actually, except it INSISTS on immediately doing the encoding so no batch-overnight stuff. However, the only other apparent viable alternative is ffmpeg which loves to de-sync audio even if you record it lossless grrr.
 
Has anyone had issues with specific buildings triggering game freezes? The game runs fine for me right up until I try to build, e.g., a lighthouse or city walls, at which point the game freezes the turn it would've been completed.

Further experimentation in WorldBuilder showed that merely placing the walls or lighthouse in a city causes freezeup.

Any idea whether this could be a Wine-related issue?

Edit: Wine-related or not, the problem somehow is fixed by turning on logging as described in http://www.civiv.com/support_logging.htm

I guess that it's a very self-conscious bug and that's why it refuses to show itself when logging is on...
 
Insta-crash that is reproducable at specific game actions tends to suggest a bad reference of some kind, but could be anything from missing DLL to something wrong with sound.

WINE itself has come a long way even over the 2 years I've been on Linux; i've not encountered much resistance in 1.5 versions of WINE when it comes to civ IV.
 
I am on Arch linux 64bit, using latest Wine and ATI Catalyst drivers.

I installed Civ4+Warlords+BTs and patched them.

I set my wine according to this:
http://appdb.winehq.org/objectManage...sion&iId=10158
(the first green section)

The game starts fine (except the graphics behind the progress bar that supposed to be there are not there). I can hear Intro movie and then Menu music. However, the screen remains completely white. I suppose I could click on Quit button if I could guess where it was, but Alt+F4 works faster.

Has anyone had such problem?
 
I can't help you, I just have another problem:

I've had the interesting problem that some leaderheads don't work instead (using newest Lubuntu 32 Bit, did a clean install, Wine 1.74; my laptop was pretty good 6 years ago and only ever struggled with Civ 4 when playing Modern era Huge Marathon maps back on Windows Vista - but Vista was just too painful in so many other aspects, it had to go). Alex or Kublai are just big black squares instead of background+leader, Willem makes my entire virtual desktop's colors go funny, just seeing him makes the game unplayable. It's running really slowly, too. So far, the only thing I've tried in Wine that actually changed something (and I've tried not all but most of the things written in winehq) was native msxml3 which is necessary to even start the game.
 
Top Bottom