Problem running Civ4 on virtual machine

pepebuho

Chieftain
Joined
Sep 28, 2008
Messages
2
Hi. I upgraded my system and Civ4 no longer works well under Wine (Linux Fedora 40).
Whenever I start Civ4, it sends an error like this.

Aug 11 06:00:15 pepewin kernel: umip: Civilization4.e[375569] ip:f649b7 sp:2109bd4: SIDT instruction cannot be used by applications.
Aug 11 06:00:15 pepewin kernel: umip: Civilization4.e[375569] ip:f649b7 sp:2109bd4: For now, expensive software emulation returns the result.
Aug 11 06:00:15 pepewin kernel: umip: Civilization4.e[375569] ip:f649bd sp:2109bd4: SLDT instruction cannot be used by applications.
Aug 11 06:00:15 pepewin kernel: umip: Civilization4.e[375569] ip:f649bd sp:2109bd4: For now, expensive software emulation returns the result.
Aug 11 06:00:15 pepewin kernel: umip: Civilization4.e[375569] ip:f649c3 sp:2109bd4: SGDT instruction cannot be used by applications.

I understand it is a chiplevel change and there is nothing I can do about it until wine fully addresses it.
Fine, I decided to virtualize everything and let it assume that it is an older CPU without that feature.
I took my old Win2k install disk and reinstalled it on a virtual machine taking it all the way to SP4.
I installed Civ4 and it starts to run but then it complains about graphics. It starts loading and then it stops complaining like the attached Screenshot.
Initialize Renderer failed. Check DirectX Installation, Latest Graphics Drivers
Parameters:
-width = 1027
-height=768
-flags=0xc
-hwnd=0x40074
-adaptrid=0
-deviceid=3
Error:Creation failed:Invalid 3D device type

I already tried two video options: Cirrus and QXL with the Universal VBE video display adapter and still keep getting this error.
Does anyone has a Virtual Machine configuration that works with Civ4?

Thanks
 

Attachments

  • Screenshot_2024-08-11_06-05-57.png
    Screenshot_2024-08-11_06-05-57.png
    16 KB · Views: 10
  • DxDiag.txt
    30.6 KB · Views: 3
Probably a silly idea, but worth mentioning anyway: have you tried using the configuration of the game itself from here?


I realize the problem is on a different level, not game-related, but maybe there's something useful there.

There is also a thread where a similar problem was solved. It's not about Wine and VM, but it can tell you what versions of DX and other drivers to install: https://forums.civfanatics.com/threads/invalid-3d-device-type.173648/
 
Hi. I solved the problem by using Bottles instead of VirtualBox or QEMU/KVM. Just installed it under Bottles and it has been working very well.
 
Top Bottom