Civ4 won't start after an easy install

After trying to install Ubuntu 24.04.1, and failing again and again, yet my laptop suddenly had certain functions back which didn’t work anymore under Windows 10, I must admit that I might be unwelcome here now: I tried another distro (elementary) which apparently is based on Ubuntu, so see me as a cousin.

I am very happy with Linux in stead of MS, I even found ways to install ancient games. Now anxiously waiting for it to be installed it was quite the anti-climax when it didn’t start!
I’ve been messing with computers since the 90’s, but I am relatively new to the Linux world.

So let me explain: I came across Lutris, which uses Wine to install my game for me ( Civilization 4 Complete GOG), it went surprisingly simple. The first time I launched I saw the normal loading screen and all seemed to go well. Then it flickered and I was back in the OS homescreen. Since then nothing happens when I press launch. Problem is also there isn’t any error, so apart from trying some other options in the configure menu to no avail, I have no clue what could cause this… Anyone here is savvy in this and a civ player like me, that can relate?

Well, I’ve found very old sites discussing this but the solutions I read about couldn’t be the problem since e.g. the dlls missing, I already found in my directory. Please if anyone knows what can cause this, with ideas I might find solutions…
Sorry, if this is too offtopic, but I didn’t know where to ask

Hi,

CivIV working fine on Mint22 here, and helped another user on huge thread about 9 days ago :slight_smile: sounds driver-y, like your CivIV is trying to use OpenGL instead of vulkan.

Please help us out and tick off the basics for us (see posted Sticky at the top of the forum)

  • Lutris debug log (including the version of lutris)
  • Game launch log

I’ve not used ElementaryOS so I can’t advise specifics for that distro. However, please check graphics drivers, and WINE etc. against Lutris pre-reqs.

1 Like

Thanks I have the feeling it should be something relatively simple, since it was so easy to install
sudo add-apt-repository ppa:graphics-drivers/ppa && sudo dpkg --add-architecture i386 && sudo apt update && sudo apt install -y nvidia-driver-535 libvulkan1 libvulkan1:i386
That would install drivers?
You sure it won’t do harm?
I’ve got a six year old medium laptop with a ‘virtual’ graphics card. Radeon R5, I figured since elementary OS recognised it immediately and I installed the OS with the option of installing third party drivers that would be handled already.
To be honest, I know a lot of stuff but am so new with linux based that I don’t really know where to get those logs…

Sorry - was testing another system.

For more info on logs, read the sticky thread at the top of the support forum. Short version: Close lutris if it is running, then run “lutris -d” from a command line for debug mode. For a game log, right click on your game, select “show logs” (then run it if you didn’t already).

Don’t install those Nvidia drivers, they won’t do anything for you :slight_smile:

You seem in need of more Linux guidance than Lutris guidance. Like I said - ElementaryOS isn’t something I’ve used and will have its own quirks.

The R5 Radeon is a pretty old integrated graphics chip made by AMD. Normally AMD chips use a driver called “amdgpu”, but you might be stuck with the older “radeon” driver (with limited vulkan support).

Last thing of note - Integrated graphics of that era shares RAM with the system, so if you’re trying to run a modern game on 4GB RAM or less, you are always going to hit problems.

1 Like

yeah, I understand all that thanks. I’ll do it :slight_smile: the thing is just that I am rusty, I actually was a fan of the old ways back when screens had two colours only, I loved dos, I had an MSX back in the days and an Amiga500… but after years of windows I haven’t used many things.
I just need nudges though :slight_smile:

Thanks for any tips!

lutris -d just tells me no such command … when I start it normally I simply click a pictogram, not sure where it would be on the drive, didn’t find a directory with the name.

The game log is following though:
Started initial process 76 from gamemoderun /home/tgp1/.var/app/net.lutris.Lutris/data/lutris/runners/wine/wine-ge-8-26-x86_64/bin/wine start /unix /home/tgp1/Games/civ4/drive_c/GOG Games/Civilization IV Complete/Launch Civilization IV.lnk
Start monitoring process.
gamemodeauto:
gamemodeauto:
gamemodeauto:
fsync: up and running.
wine: RLIMIT_NICE is <= 20, unable to use setpriority safely
wine: WINEARCH set to win64 but ‘/home/tgp1/Games/civ4’ is a 32-bit installation.
gamemodeauto:
Monitored process exited.
Initial process has exited (return code: 256)
Exit with return code 256

…and I notice it is a probelem that it’s 32 bit. In the meantime I will try to find out how to change this.
Thanks for any other advice in advance

…found a way to change to 32bit and it showed the loadscreen again, but didn’t start: log:
Started initial process 87 from gamemoderun /home/tgp1/.var/app/net.lutris.Lutris/data/lutris/runners/wine/wine-ge-8-26-x86_64/bin/wine start /unix /home/tgp1/Games/civ4/drive_c/GOG Games/Civilization IV Complete/Launch Civilization IV.lnk
Start monitoring process.
gamemodeauto:
gamemodeauto:
gamemodeauto:
fsync: up and running.
wine: RLIMIT_NICE is <= 20, unable to use setpriority safely
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
Initial process has exited (return code: 0)
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
info: Game: Civilization4.exe
info: DXVK: v2.4.1
info: Vulkan: Found vkGetInstanceProcAddr in winevulkan.dll @ 0x6fa838c0
info: Built-in extension providers:
info: Platform WSI
info: OpenVR
info: OpenXR
info: OpenVR: could not open registry key, status 2
info: OpenVR: Failed to locate module
info: Enabled instance extensions:
info: VK_EXT_surface_maintenance1
info: VK_KHR_get_surface_capabilities2
info: VK_KHR_surface
info: VK_KHR_win32_surface
info: D3D9: VK_FORMAT_D16_UNORM_S8_UINT → VK_FORMAT_D24_UNORM_S8_UINT
info: llvmpipe (LLVM 17.0.6, 256 bits):
info: Driver : llvmpipe 0.0.1
info: Memory Heap[0]:
info: Size: 3072 MiB
info: Flags: 0x1
info: Memory Type[0]: Property Flags = 0xf
info: Process set as DPI aware
info: Game: Civilization4.exe
info: DXVK: v2.4.1
info: Vulkan: Found vkGetInstanceProcAddr in winevulkan.dll @ 0x6fa838c0
info: Built-in extension providers:
info: Platform WSI
info: OpenVR
info: OpenXR
info: OpenVR: could not open registry key, status 2
info: OpenVR: Failed to locate module
info: Enabled instance extensions:
info: VK_EXT_surface_maintenance1
info: VK_KHR_get_surface_capabilities2
info: VK_KHR_surface
info: VK_KHR_win32_surface
info: D3D9: VK_FORMAT_D16_UNORM_S8_UINT → VK_FORMAT_D24_UNORM_S8_UINT
info: llvmpipe (LLVM 17.0.6, 256 bits):
info: Driver : llvmpipe 0.0.1
info: Memory Heap[0]:
info: Size: 3072 MiB
info: Flags: 0x1
info: Memory Type[0]: Property Flags = 0xf
info: Process set as DPI aware
info: Game: Civilization4.exe
info: DXVK: v2.4.1
info: Vulkan: Found vkGetInstanceProcAddr in winevulkan.dll @ 0x6fa838c0
info: Built-in extension providers:
info: Platform WSI
info: OpenVR
info: OpenXR
info: OpenVR: could not open registry key, status 2
info: OpenVR: Failed to locate module
info: Enabled instance extensions:
info: VK_EXT_surface_maintenance1
info: VK_KHR_get_surface_capabilities2
info: VK_KHR_surface
info: VK_KHR_win32_surface
info: D3D9: VK_FORMAT_D16_UNORM_S8_UINT → VK_FORMAT_D24_UNORM_S8_UINT
info: llvmpipe (LLVM 17.0.6, 256 bits):
info: Driver : llvmpipe 0.0.1
info: Memory Heap[0]:
info: Size: 3072 MiB
info: Flags: 0x1
info: Memory Type[0]: Property Flags = 0xf
info: Process set as DPI aware
info: Device properties:
info: Device : llvmpipe (LLVM 17.0.6, 256 bits)
info: Driver : llvmpipe 0.0.1
info: Enabled device extensions:
info: VK_EXT_attachment_feedback_loop_layout
info: VK_EXT_custom_border_color
info: VK_EXT_depth_clip_enable
info: VK_EXT_extended_dynamic_state3
info: VK_EXT_graphics_pipeline_library
info: VK_EXT_line_rasterization
info: VK_EXT_memory_priority
info: VK_EXT_non_seamless_cube_map
info: VK_EXT_robustness2
info: VK_EXT_shader_stencil_export
info: VK_EXT_swapchain_maintenance1
info: VK_EXT_transform_feedback
info: VK_EXT_vertex_attribute_divisor
info: VK_KHR_external_memory_win32
info: VK_KHR_maintenance5
info: VK_KHR_pipeline_library
info: VK_KHR_swapchain
info: Device features:
info: robustBufferAccess : 1
info: fullDrawIndexUint32 : 1
info: imageCubeArray : 1
info: independentBlend : 1
info: geometryShader : 1
info: tessellationShader : 0
info: sampleRateShading : 1
info: dualSrcBlend : 0
info: logicOp : 0
info: multiDrawIndirect : 0
info: drawIndirectFirstInstance : 0
info: depthClamp : 1
info: depthBiasClamp : 1
info: fillModeNonSolid : 1
info: depthBounds : 0
info: wideLines : 1
info: multiViewport : 1
info: samplerAnisotropy : 1
info: textureCompressionBC : 1
info: occlusionQueryPrecise : 1
info: pipelineStatisticsQuery : 1
info: vertexPipelineStoresAndAtomics : 1
info: fragmentStoresAndAtomics : 0
info: shaderImageGatherExtended : 0
info: shaderClipDistance : 1
info: shaderCullDistance : 1
info: shaderFloat64 : 0
info: shaderInt64 : 0
info: variableMultisampleRate : 0
info: shaderResourceResidency : 0
info: shaderResourceMinLod : 0
info: sparseBinding : 0
info: sparseResidencyBuffer : 0
info: sparseResidencyImage2D : 0
info: sparseResidencyImage3D : 0
info: sparseResidency2Samples : 0
info: sparseResidency4Samples : 0
info: sparseResidency8Samples : 0
info: sparseResidency16Samples : 0
info: sparseResidencyAliased : 0
info: Vulkan 1.1
info: shaderDrawParameters : 0
info: Vulkan 1.2
info: samplerMirrorClampToEdge : 1
info: drawIndirectCount : 1
info: samplerFilterMinmax : 0
info: hostQueryReset : 1
info: timelineSemaphore : 1
info: bufferDeviceAddress : 0
info: shaderOutputViewportIndex : 1
info: shaderOutputLayer : 1
info: vulkanMemoryModel : 1
info: Vulkan 1.3
info: robustImageAccess : 0
info: pipelineCreationCacheControl : 1
info: shaderDemoteToHelperInvocation : 1
info: shaderZeroInitializeWorkgroupMemory : 0
info: synchronization2 : 1
info: dynamicRendering : 1
info: VK_AMD_shader_fragment_mask
info: extension supported : 0
info: VK_EXT_attachment_feedback_loop_layout
info: attachmentFeedbackLoopLayout : 1
info: VK_EXT_conservative_rasterization
info: extension supported : 0
info: VK_EXT_custom_border_color
info: customBorderColors : 1
info: customBorderColorWithoutFormat : 1
info: VK_EXT_depth_clip_enable
info: depthClipEnable : 1
info: VK_EXT_depth_bias_control
info: depthBiasControl : 0
info: leastRepresentableValueForceUnormRepresentation : 0
info: floatRepresentation : 0
info: depthBiasExact : 0
info: VK_EXT_extended_dynamic_state3
info: extDynamicState3AlphaToCoverageEnable : 1
info: extDynamicState3DepthClipEnable : 1
info: extDynamicState3RasterizationSamples : 1
info: extDynamicState3SampleMask : 1
info: extDynamicState3LineRasterizationMode : 1
info: VK_EXT_fragment_shader_interlock
info: fragmentShaderSampleInterlock : 0
info: fragmentShaderPixelInterlock : 0
info: VK_EXT_full_screen_exclusive
info: extension supported : 0
info: VK_EXT_graphics_pipeline_library
info: graphicsPipelineLibrary : 1
info: VK_EXT_line_rasterization
info: rectangularLines : 1
info: smoothLines : 1
info: VK_EXT_memory_budget
info: extension supported : 1
info: VK_EXT_memory_priority
info: memoryPriority : 1
info: VK_EXT_non_seamless_cube_map
info: nonSeamlessCubeMap : 1
info: VK_EXT_robustness2
info: robustBufferAccess2 : 1
info: robustImageAccess2 : 1
info: nullDescriptor : 1
info: VK_EXT_shader_module_identifier
info: shaderModuleIdentifier : 0
info: VK_EXT_shader_stencil_export
info: extension supported : 1
info: VK_EXT_swapchain_colorspace
info: extension supported : 0
info: VK_EXT_swapchain_maintenance1
info: swapchainMaintenance1 : 1
info: VK_EXT_hdr_metadata
info: extension supported : 0
info: VK_EXT_transform_feedback
info: transformFeedback : 0
info: geometryStreams : 0
info: VK_EXT_vertex_attribute_divisor
info: vertexAttributeInstanceRateDivisor : 1
info: vertexAttributeInstanceRateZeroDivisor : 1
info: VK_KHR_external_memory_win32
info: extension supported : 1
info: VK_KHR_external_semaphore_win32
info: extension supported : 0
info: VK_KHR_maintenance5
info: maintenance5 : 1
info: VK_KHR_present_id
info: presentId : 0
info: VK_KHR_present_wait
info: presentWait : 0
info: VK_NV_descriptor_pool_overallocation
info: descriptorPoolOverallocation : 0
info: VK_NV_raw_access_chains
info: shaderRawAccessChains : 0
info: VK_NVX_binary_import
info: extension supported : 0
info: VK_NVX_image_view_handle
info: extension supported : 0
info: VK_KHR_win32_keyed_mutex
info: extension supported : 0
info: Queue families:
info: Graphics : 0
info: Transfer : 0
info: Sparse : 0
warn: DXVK: No state cache file found
info: DXVK: Graphics pipeline libraries supported
info: D3D9DeviceEx::ResetSwapChain:
info: Requested Presentation Parameters
info: - Width: 1024
info: - Height: 768
info: - Format: D3D9Format::X8R8G8B8
info: - Auto Depth Stencil: true
info: ^ Format: D3D9Format::D24S8
info: - Windowed: false
info: - Swap effect: 1
info: Presenter: Actual swap chain properties:
info: Format: VK_FORMAT_B8G8R8A8_UNORM
info: Color space: VK_COLOR_SPACE_SRGB_NONLINEAR_KHR
info: Present mode: VK_PRESENT_MODE_IMMEDIATE_KHR (dynamic: yes)
info: Buffer size: 1030x793
info: Image count: 4
info: Exclusive FS: 0
info: Setting display mode: 1024x768@0
info: Setting display mode: 1024x768@0
debug: Compiling shader VS_5fd7793a7b5fd7aaa8c225df808e1213a59870f6
info: DXVK: Using 4 compiler threads
debug: Compiling shader FS_716986017d636df5b26c6b4ca4467a5fe51b4b74
debug: Compiling shader VS_d4b8908140e622a2b66d698b439fa95d6d5e12e2
debug: Compiling shader FS_6d9a031806c6e77a331bacc1d7a982e324931858
debug: Compiling shader VS_ddcc64f477bc74a67f8b10f57c46f3b89707e5b8
debug: Compiling shader FS_d4049fcca456b1d2b07ec2cace2c19b493cf71fa
debug: Compiling shader FS_e8c0f78abc89611373f5622ec036b1c7275dcc5e
debug: Compiling shader FS_990cbd268de62f8d57a7aa2accd30c6af642f020
debug: Compiling shader FS_a01ee595d12b4233084c26968410f66fcc4e6e95
debug: Compiling shader FS_1dc73f46a0fcb9cdff8dfba8fee170fffe9b2927
debug: Compiling shader VS_63313d2682978c27133ed5e66cb5bf006d7632a7
debug: Compiling shader FS_ded86b8c96aa67a66c800e61cae43b8a92176f04
debug: Compiling shader VS_8619e2ba57ce84d5f10406b0ea1f7d41b83b8a9e
debug: Compiling shader FS_bfbc807c78aa56651b1ae61ea139adc344e48567
debug: Compiling shader VS_cb8d487922b21361aebdaa839b31e0037981f1c7
debug: Compiling shader FS_f05169f4264c0e6d8d806e0dc43023d9d843bfd4
debug: Compiling shader VS_cea008c9bb58ad85ad1eb9a1e0b89b704c14621e
debug: Compiling shader FS_443b4d8b865f046257d5e1a5421e530c21a2581c
debug: Compiling shader VS_e8f0eb8c48b1b272d80ffacc557fe050e10ba46a
debug: Compiling shader VS_cb061986bb112f8a6f250b5d42bfb6dfcfa67d24
debug: Compiling shader VS_744ad772d1ad0553f119e04182f056991c37d689
debug: Compiling shader VS_b1a749eefee4fd3e5aea65c678d7d6165cf9bed2
debug: Compiling shader VS_56f0e006a21e5fd6c28420a1e191082c902312b7
debug: Compiling shader VS_2ec13ab3874c85499b10792eebb5943efc2482b6
debug: Compiling shader FS_a8f8d5bfc98e9a45490f0146ebacf540c2616a8d
debug: Compiling shader VS_8e37e6817caa9959704b81976805acc2455d4c9f
debug: Compiling shader VS_32069b269e9a7445cd137739303d8ed6907a3362
debug: Compiling shader FS_ff42ea8a688fbf37efd8da426ecf892af16a9948
debug: Compiling shader VS_dda0cf0748123beb4577cea5619a2801307e3d78
debug: Compiling shader FS_ccc175dd3ef13adfb5d4a8cd4a2a9e4c68f25c46
debug: Compiling shader VS_a3ce0e84346b56d03d0b5f810577f6289d9af55e
debug: Compiling shader FS_c819b060578515be0ae4755b54c4a66ec8f85842
debug: Compiling shader VS_9092f433dff45fe1d065bd1a23d8ced7a718e237
debug: Compiling shader FS_f228deef16eae46e3d7db3dbf2c8eb9e8fea5ece
debug: Compiling shader VS_273ac9a8d38058dd6b48429e53e487250598d1d4
debug: Compiling shader FS_b600bd8231fe1de0e5e83ebaa4a115cdd4950d90
debug: Compiling shader VS_994b2f6bee3510f57993e62822041cdd82b42589
debug: Compiling shader FS_187f630497dc203af95ff6147af31122d085cc3f
debug: Compiling shader VS_a6b3416ed27397c9fc169679fa106d61240cc6dd
debug: Compiling shader FS_7142d594b7b6599b9549e009fc9fd2d5850028b8
debug: Compiling shader VS_71b356c8d73e2eca6e6516e5a8490d7e3050fa48
debug: Compiling shader FS_43a7cb26f5d3915c24dfb1563d300c8bc247c6a7
debug: Compiling shader VS_2da60efcb6d421a34c528915e23d85a32ea8bab7
debug: Compiling shader FS_a5e95b69400319723d354c00a1b5e9cdae4ad5a1
debug: Compiling shader VS_58e232db478838fcfd814e01f843a56074cb7202
debug: Compiling shader FS_dd8ae2b258a27f7e43ceda496f95eeaf78006621
debug: Compiling shader VS_629b27620523c3589715f7a71fd8996aeda00886
debug: Compiling shader FS_574ccf1bab242608fc0b54a84176ebe2683925d7
debug: Compiling shader VS_fba1ba11d9dce613e82a2bdaadbb13492bd9bd7a
debug: Compiling shader FS_f2649231feb20ec3d831157092ea195f6e997753
debug: Compiling shader VS_d49e0ba35501b3ba93784c795e2d78f0763669ba
debug: Compiling shader FS_a2c3a608527ff8efe29596609085bcc18287790b
debug: Compiling shader VS_f93abd0deee8f47ee59857523bf6747480dfea20
debug: Compiling shader FS_3fa8b9fffb02c92260fef4d6410186c0c13e48b8
debug: Compiling shader FS_a5e03e7e85109c63d59ad8a0fd6a2b2e9a6bda00
debug: Compiling shader FS_5c7b89169706f363c0ed07b9f3ab278e31a5a00b
debug: Compiling shader VS_2dc3c9d71393b9cfbc359a0708a4f3da8e257c63
warn: D3D9DeviceEx::SetRenderState: Unhandled render state 16
info: Presenter: Actual swap chain properties:
info: Format: VK_FORMAT_B8G8R8A8_UNORM
info: Color space: VK_COLOR_SPACE_SRGB_NONLINEAR_KHR
info: Present mode: VK_PRESENT_MODE_FIFO_KHR (dynamic: yes)
info: Buffer size: 1024x768
info: Image count: 4
info: Exclusive FS: 0
err: DxvkMemoryAllocator: Memory allocation failed
err: Size: 4194304
err: Alignment: 64
err: Mem types: 0
err: Heap Size (MiB) Allocated Used Reserved Budget
err: 0: 3072 60 22 17592186043746 3072
gamemodeauto:
gamemodeauto:
Monitored process exited.
Exit with return code 0
wine client error:40: write: Bad file descriptor
wine client error:68: write: Bad file descriptor

… after trying to install vulkan
…warn: D3D9DeviceEx::SetRenderState: Unhandled render state 16
info: Presenter: Actual swap chain properties:
info: Format: VK_FORMAT_B8G8R8A8_UNORM
info: Color space: VK_COLOR_SPACE_SRGB_NONLINEAR_KHR
info: Present mode: VK_PRESENT_MODE_FIFO_KHR (dynamic: yes)
info: Buffer size: 1024x768
info: Image count: 4
info: Exclusive FS: 0
err: DxvkMemoryAllocator: Memory allocation failed
err: Size: 4194304
err: Alignment: 64
err: Mem types: 0
err: Heap Size (MiB) Allocated Used Reserved Budget
err: 0: 3072 60 22 17592186041949 3072
gamemodeauto:
wine client error:114: write: Bad file descriptor
gamemodeauto:
Monitored process exited.
Exit with return code 0

Sorry for the long post, but I am not sure what might be important info

This should not be a problem with this game: Civilization IV runs nicely with wined3d for Direct3D rendering, it does not require DXVK.

I actually got it running!!
But terribly slow, which doesn’t make sense to me since this laptop is much faster than anything needed for this game. With an AMD8 quad core and 8gb ram, it shouldn’t be a problem that the radeon isn’t a ‘real’ video card.

I changed the wine settings to fix 9.0 and changed the dxvk2.4.1 to 1.9.2… and it suddenly started

Any ideas why it’s way too slow to play, also a setting?

Just woke up :stuck_out_tongue:

Your error “WINEARCH set to win64 but ‘/home/tgp1/Games/civ4’ is a 32-bit installation,” is weird as the installer creates a 64 bit prefix. So you fixed that…not sure why that even happened.

Like I said about the old R5 driver - the vulkan support is limited, so latest isn’t for your laptop.

Congrats anyway :slight_smile:

I think the prefix is somehow broken, so install another copy and just change vulkan version as a starting point.

As for lutris not being in your path…what version did you install?

Lutris from the app center, otherwise i wouldnt even have known about it…
0.5.18 it says in about

Probably a sandbox version, hopefully flatpak - they will create launch icons. In the case of flatpak, you have to launch the flatpak manually to add debug.

flatpak run net.lutris.Lutris -d

You might have to tweak the graphics options for it to run a little better - tends to default to high detail.

After that you’re down to finding a more optimal combination of WINE runner and drivers.

As otherwise suggested, you can disable DXVK etc in the game options and see if it runs any better with default directx->openGL renderer

1 Like