Divinity 2 on Linux: Notes & Tips

From Retro Media HUB
Divinity2dc-cover.png
Game Information
Title Divinity II: Developer's Cut
Year 2012
Developer Larian Studios NV
Graphics API Direct3D 9.0c
Audio API DirectSound



Runtime Environment

  • Wine Prefix: wine-proton-9.0-1-amd64
  • DXVK Version: 2.7.1 (used to translate DirectX 9 to Vulkan)

Required Winetricks

To play the game and ensure movies work correctly, install the following via Winetricks:

  • physx
  • wmp9
  • quartz
  • openal
  • corefonts
  • tahoma

Additionally, install the following system component:

Audio Configuration

  • DSOAL was installed in the syswow64 directory because dsound.dll is not loaded if placed in the game’s bin folder.
  • Debugging audio issues: WINEDEBUG=+quartz,+dsound wine Divinity2.exe &> wine-audio.log

Video Playback Fix

  • If movies have crackling audio, reencoding the videos can fix the problem.
  • Cut-scene playback had issues due to 48kHz sample rate. Converting videos to 44.1kHz resolves this.
  • Some videos with 5.1 surround sound were converted to 2-channel 44.1kHz for consistency.

Reencode the videos

To reencode videos using the provided script, navigate to the script's base path and specify the folder containing the videos. If no folder is specified, the script defaults to the base path. The script processes each .WMV file, skipping those already backed up or processed. It uses ffmpeg to copy the video stream and reencode the audio to 192k bitrate, 44.1kHz, and 2 channels. The original files are backed up with an "ori_" prefix.

Performance Tweaks

  • Installed community patch: Div2Patch_v0.97_NoSetup to resolve slowdown and improve performance.
  • Disabled FPS cap in game settings and maxed out all graphical options.

Launcher Behavior

Lutris Launcher

  • Cut-scenes play correctly using default GStreamer (likely version 1.22.12).
  • Only physx from Winetricks appears necessary.

Heroic Launcher

  • Game fails to play cut-scenes with system GStreamer (likely version 1.24).
  • Works when passing these environment variables:
LD_LIBRARY_PATH=/home/deck/.local/share/gstreamer-1.0
GST_PLUGIN_SYSTEM_PATH_1_0=/home/deck/.local/share/gstreamer-1.0

Environment Notes

  • Copied GStreamer libraries into /home/deck/.local/share for reuse with other games.
  • Default LD_LIBRARY_PATH is not set correctly in Lutris.
  • wine-ge-8-26 fails to use GStreamer unless manually set in prefix settings:
LD_LIBRARY_PATH=/home/deck/.var/app/net.lutris.Lutris/data/lutris/runners/wine/wine-ge-8-26-x86_64/lib

Downloads


Screenshots

Comments

Loading comments...