|
| 1 | +Guide: Setting Up Tomb Raider 2 on Wine with TR2Main & OGG Audio Support |
| 2 | +1. Install TR2Main (Enhanced Engine for Tomb Raider 2) |
| 3 | + |
| 4 | + Open a terminal and navigate to the game directory: |
| 5 | + |
| 6 | +cd /path/to/your/tomb-raider-2/ |
| 7 | + |
| 8 | +Extract the TR2Main files into the game directory: |
| 9 | + |
| 10 | + unzip /path/to/TR2Main_v0.9.0.zip |
| 11 | + |
| 12 | + This will replace the original Tomb2.exe with the improved TR2Main version. |
| 13 | + |
| 14 | +2. Replace winmm.dll for OGG Audio Support |
| 15 | + |
| 16 | +Tomb Raider 2 originally used CD audio for music. To enable OGG playback in Wine, you need to replace winmm.dll with ogg-winmm: |
| 17 | + |
| 18 | + Download ogg-winmm from GitHub: |
| 19 | + https://github.com/ayuanx/ogg-winmm |
| 20 | + Extract the winmm.dll from the archive. |
| 21 | + Copy winmm.dll into the game directory, replacing the existing one: |
| 22 | + |
| 23 | + cp /path/to/ogg-winmm/winmm.dll /path/to/your/tomb-raider-2/ |
| 24 | + |
| 25 | +3. Convert or Extract Audio Files |
| 26 | + |
| 27 | +You need to ensure that the game has OGG format music in the music/ directory. |
| 28 | +Option 1: Convert Existing MP3s |
| 29 | + |
| 30 | +If you already have the MP3 soundtrack, convert them: |
| 31 | + |
| 32 | + Navigate to the music/ folder: |
| 33 | + |
| 34 | +cd /path/to/your/tomb-raider-2/music/ |
| 35 | + |
| 36 | +Run the conversion script: |
| 37 | + |
| 38 | + ./convert.sh |
| 39 | + |
| 40 | +Option 2: Extract Audio from the Game Files |
| 41 | + |
| 42 | +If you don't have the MP3 soundtrack, extract it from the game’s original audio/ files: |
| 43 | + |
| 44 | + Navigate to the audio/ directory: |
| 45 | + |
| 46 | +cd /path/to/your/tomb-raider-2/audio/ |
| 47 | + |
| 48 | +Run the extraction script: |
| 49 | + |
| 50 | +./extract_audio.sh |
| 51 | + |
| 52 | +Ensure that the music/ folder now contains the OGG files. |
| 53 | +Remove or move the audio/ directory: |
| 54 | + |
| 55 | + rm -r /path/to/your/tomb-raider-2/audio/ |
| 56 | + |
| 57 | +4. Fixing Video Playback Issues |
| 58 | + |
| 59 | +If cutscenes don't play, you may need to use DXVK (DirectX to Vulkan translation layer). |
| 60 | + |
| 61 | + Install DXVK: |
| 62 | + |
| 63 | + WINEPREFIX=/path/to/your/wineprefix winetricks dxvk |
| 64 | + |
| 65 | + Ensure Wine is using DXVK by setting d3d9.dll to native in winecfg: |
| 66 | + Run winecfg |
| 67 | + Go to the Libraries tab |
| 68 | + Add d3d9 and set it to "Native" |
| 69 | + |
| 70 | +5. Run the Game |
| 71 | + |
| 72 | +Once everything is set up, start the game: |
| 73 | + |
| 74 | +WINEPREFIX=/path/to/your/wineprefix WINEDLLOVERRIDES="winmm=n,b" wine tomb2.exe -setup |
| 75 | +Then run: |
| 76 | +WINEPREFIX=/path/to/your/wineprefix WINEDLLOVERRIDES="winmm=n,b" wine tomb2.exe |
0 commit comments