Civilization IV (Direct2Drive)

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
zangderak
Level 1
Level 1
Posts: 7
Joined: Mon Oct 11, 2010 11:12 pm

Civilization IV (Direct2Drive)

Post by zangderak »

I've searched all over the internet on how to do this, but only found that people have been succesful in running the Steam version of Civilization IV on Wine, not the Direct2Drive.

So I did everything on this page:

http://itezer.com/blog/ubuntu-linux/140 ... -1-16.html

Additionally, the Wine website ( http://appdb.winehq.org/objectManager.p ... &iId=10262 ) says to do this for the Direct2Drive version to work:
to get the d2d version to work you need to install
the game on a windows machine first then copy these folders

c:\Documents and Settings\All Users\Application Data\Trymedia
c:\Documents and Settings\All Users\drm

to your wine folder at

~/.wine/drive_c/windows/profiles/All Users/Application Data
~/.wine/drive_c/windows/profiles/All Users/

respectively
So I installed the game on Windows XP and was able to find the Trymedia folder, but not the drm folder. Has anyone successfully run the Direct2Drive version of Civilization IV on Wine?
zangderak
Level 1
Level 1
Posts: 7
Joined: Mon Oct 11, 2010 11:12 pm

Post by zangderak »

I tried running the game through command line and got these errors:
err:module:import_dll Library MSVCP71.dll (which is needed by L"C:\\Program Files\\Firaxis Games\\Sid Meier's Civilization 4\\BOOST_PYTHON-VC71-MT-1_32.DLL") not found
err:module:import_dll Library BOOST_PYTHON-VC71-MT-1_32.DLL (which is needed by L"C:\\Program Files\\Firaxis Games\\Sid Meier's Civilization 4\\Civilization4.exe") not found
err:module:import_dll Library MSVCP71.dll (which is needed by L"C:\\Program Files\\Firaxis Games\\Sid Meier's Civilization 4\\HAPDBG.DLL") not found
err:module:import_dll Library HAPDBG.DLL (which is needed by L"C:\\Program Files\\Firaxis Games\\Sid Meier's Civilization 4\\Civilization4.exe") not found
err:module:import_dll Library MSVCP71.DLL (which is needed by L"C:\\Program Files\\Firaxis Games\\Sid Meier's Civilization 4\\Civilization4.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"C:\\Program Files\\Firaxis Games\\Sid Meier's Civilization 4\\Civilization4.exe" failed, status c0000135
Looks like I'm missing dll's. Strange, I thought I'd only need msxml3.dll, msxml3r.dll, and d3dx9_36.dll. Help would be greatly appreciated!
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

zangderak wrote:err:module:import_dll Library MSVCP71.dll (which is needed by L"C:\\Program Files\\Firaxis Games\\Sid Meier's Civilization 4\\BOOST_PYTHON-VC71-MT-1_32.DLL") not found
Install missing dlls with 'winetricks vcrun2003'.
zangderak
Level 1
Level 1
Posts: 7
Joined: Mon Oct 11, 2010 11:12 pm

Post by zangderak »

K. I installed the vcrun2003 package with winetricks. I now get this:
err:menubuilder:write_freedesktop_mime_type_entry error writing file /home/kris/.local/share/mime/packages/x-wine-extension-/bzw.xml
err:menubuilder:write_freedesktop_association_entry error writing association file "/home/kris/.local/share/applications/wine-extension-/bzw.desktop"
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:wininet:INET_QueryOption INTERNET_OPTION_CONNECTED_STATE: semi-stub
fixme:wininet:InternetSetOptionW Option 37 STUB
fixme:wininet:InternetSetOptionW Option 39 STUB
fixme:wininet:InternetSetOptionW Option 37 STUB
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECTED_STATE: STUB
zangderak
Level 1
Level 1
Posts: 7
Joined: Mon Oct 11, 2010 11:12 pm

Post by zangderak »

/home/kris/.local/share/mime/packages/x-wine-extension-

I looked inside the directory ~/.local/share/mime/packages/ and the 'x-wine-extension-' folder was not there. So I created it. And I get this now when I run:

Code: Select all

fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
Error in file "/home/kris/.local/share/applications/wine-extension-/bzw.desktop": "application/x-wine-extension-/bzw" is an invalid MIME type ("application/x-wine-extension-/bzw" contains an invalid character in the subtype)
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:wininet:INET_QueryOption INTERNET_OPTION_CONNECTED_STATE: semi-stub
fixme:wininet:InternetSetOptionW Option 37 STUB
fixme:wininet:InternetSetOptionW Option 39 STUB
fixme:wininet:InternetSetOptionW Option 37 STUB
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECTED_STATE: STUB
I'm not too familiar with this MIME business. Help would be appreciated!
Syrion
Newbie
Newbie
Posts: 1
Joined: Sun Oct 17, 2010 10:11 am

Post by Syrion »

I have the same strange DLL "not found" of "not in ELF format" problem.
winetricks vcrun2003 didn't help.
zangderak
Level 1
Level 1
Posts: 7
Joined: Mon Oct 11, 2010 11:12 pm

Post by zangderak »

Alright I'm still trying to get this to work. I originally did this with Wine 1.3.5. When trying to run Civilization IV with Wine 1.2.1, a window with html code pops up:

Code: Select all

<html>
<head>
<title>Activating product...</title>
<meta name="am-version" content="5.42">
<script language="JavaScript" src="am_include.js" type="text/javascript"></script>
<script language="JavaScript" src="author.js" type="text/javascript"></script>

</head>
<body topmargin="0" marginheight="0" leftmargin="0" marginwidth="0" bgcolor="#FFFFFF" >
    <form action="#" method="post" name="buyform">
        <script language="JavaScript" type="text/javascript">
            AM_Init_Purchase(document.buyform, "connect.html", "connecting.html");
        </script>
    </form>
    <script language="JavaScript">document.buyform.submit();</script>
</body>
</html>
Getting somewhere? Maybe?
zangderak
Level 1
Level 1
Posts: 7
Joined: Mon Oct 11, 2010 11:12 pm

Post by zangderak »

So I installed some more things with winetricks and I actually got it to run! Problem is though, the in-game graphics look weird.

Image

Any suggestions? I've tried setting the graphics options to the lowest settings, but still nothing.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

zangderak wrote:So I installed some more things with winetricks and I actually got it to run! Problem is though, the in-game graphics look weird.
What graphics card and driver?
zangderak
Level 1
Level 1
Posts: 7
Joined: Mon Oct 11, 2010 11:12 pm

Post by zangderak »

dimesio wrote:
zangderak wrote:So I installed some more things with winetricks and I actually got it to run! Problem is though, the in-game graphics look weird.
What graphics card and driver?
from lspci:

Code: Select all

01:05.0 VGA compatible controller: ATI Technologies Inc M880G [Mobility Radeon HD 4200]
	Subsystem: Acer Incorporated [ALI] Device 0292
	Flags: bus master, fast devsel, latency 0, IRQ 18
	Memory at d0000000 (32-bit, prefetchable) [size=256M]
	I/O ports at 9000 [size=256]
	Memory at cfdf0000 (32-bit, non-prefetchable) [size=64K]
	Memory at cfe00000 (32-bit, non-prefetchable) [size=1M]
	Capabilities: <access denied>
	Kernel driver in use: radeon
	Kernel modules: radeon
Playar
Newbie
Newbie
Posts: 1
Joined: Thu Jan 06, 2011 5:22 pm

Post by Playar »

I had the same error.

Try to deactivate the pixel shader in winecfg or try to install the newest ATI Catalyst™ Proprietary Linux Display Driver.

After installing the ATI Catalyst and DirectX9 (via winetricks), the game graphic has no more errors.
kudsy
Newbie
Newbie
Posts: 4
Joined: Wed Jan 12, 2011 5:42 pm

Post by kudsy »

zangderak wrote:Alright I'm still trying to get this to work. I originally did this with Wine 1.3.5. When trying to run Civilization IV with Wine 1.2.1, a window with html code pops up:

Code: Select all

<html>
<head>
<title>Activating product...</title>
<meta name="am-version" content="5.42">
<script language="JavaScript" src="am_include.js" type="text/javascript"></script>
<script language="JavaScript" src="author.js" type="text/javascript"></script>

</head>
<body topmargin="0" marginheight="0" leftmargin="0" marginwidth="0" bgcolor="#FFFFFF" >
    <form action="#" method="post" name="buyform">
        <script language="JavaScript" type="text/javascript">
            AM_Init_Purchase(document.buyform, "connect.html", "connecting.html");
        </script>
    </form>
    <script language="JavaScript">document.buyform.submit();</script>
</body>
</html>
Getting somewhere? Maybe?
hi,
I have the same problem
What did you do after this? Could you put more details.
Thanks
MisterWheeler
Newbie
Newbie
Posts: 3
Joined: Fri Mar 02, 2012 7:02 am

Post by MisterWheeler »

I could install Civ4 D2D, but I also can't find a way to get past the pop-up window of html/javascript code. I installed all the libraries that I thought might help. I tried copying the Trymedia folder, though there didn't seem to be any directory in my wineprefix that corresponded directly to Documents and Settings/All Users. I tried making it, I tried the Public user directory that I found, I tried making it in the user directory, copying the Trymedia as instructed above in each case, but to no avail. Zangderak, or anyone else, please let us know how did you do it?

Many thanks in advance for your help.
MisterWheeler
Newbie
Newbie
Posts: 3
Joined: Fri Mar 02, 2012 7:02 am

Post by MisterWheeler »

Sorry, I forgot to mention, I am running wine 1.4rc5 on the current Linux Mint (64bit), version 12, all updates installed, on a correctly configured NVidia video card with the 3d proprietary driver. I have PlayonLinux and Winetricks, current versions.
fcmartins
Level 4
Level 4
Posts: 114
Joined: Sat Nov 01, 2008 5:48 pm

Post by fcmartins »

strangely, the d2d entry in appdb mentioned in the first post has disappeared.

this civ4 problem seems similar to the one reported here:

http://bugs.winehq.org/show_bug.cgi?id=12535

See if the howto here helps:

http://appdb.winehq.org/objectManager.p ... &iId=12326
MisterWheeler
Newbie
Newbie
Posts: 3
Joined: Fri Mar 02, 2012 7:02 am

Post by MisterWheeler »

Thanks, FCMartins, but the issue is rather different. I read in the HOWTO that Oberon has a launcher program distinct from the game program executable, and the serial key is kept in the registry. With D2D Civ4, the D2D registration program is part of the game program executable itself, so that any attempt to run the game halts with attempted launch of the registration program; all that happens is that that window displaying html and javascript code pops up, but nothing is clickable in it. The javascripts themselves seem to be incorporated into the executable as well, because I cannot find the files anywhere in the installation directories. Another difference is that with Oberon, the serial keys go into the registry, but with D2D Civ4, the serial key is translated into a number of files stored in Documents and Settings\All Users\Application Data\Trymedia.

I looked at the directory structure of the wineprefix, and I can't tell for sure what directory is the equivilent of Documents and Settings\All Users\Application Data. As mentioned, I made a number of guesses, and copied the Trymedia folder over from my old Windows installation, but no go.

Someone reported making this work in wine, so hopefully there is a solution out there somewhere. I'm trying to switch my family computer over to Linux, and getting this game to work here will greatly lessen the resistance. :)

Have a great day.
Locked