Battlefield 2 on Linux: Notes & Tips: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 1: Line 1:
 
[[File:Battlefield-2-box-cover.png|none|thumb]]
{{GameInfo|title=Battlefield 2|platform=Windows|year=2005|developer=DICE}}
{{GameInfo|title=Battlefield 2|platform=Windows|year=2005|developer=DICE}}


Line 29: Line 29:
**Provides better audio compatibility for older games.  
**Provides better audio compatibility for older games.  
**Often required to fix missing or distorted sound.
**Often required to fix missing or distorted sound.


You need a copy of the game of course, the game is abandonware so you can find it easily on Internet
You need a copy of the game of course, the game is abandonware so you can find it easily on Internet


==Installation Steps==
==Installation Steps==
Line 45: Line 41:


If you experience problems, try newer versions of Wine/Proton or DXVK, but remember: stability is more important than always having the latest release.
If you experience problems, try newer versions of Wine/Proton or DXVK, but remember: stability is more important than always having the latest release.


To not clutter this tutorial I will move tips and extra setup for Lutris on a different page
To not clutter this tutorial I will move tips and extra setup for Lutris on a different page
Line 68: Line 63:


In Game Info is important to specify '''Wine''' as the '''Runner''', filling remaining fields are not required except for the Name.
In Game Info is important to specify '''Wine''' as the '''Runner''', filling remaining fields are not required except for the Name.
[[File:Lutris-add-new-game-info-screen1.png|border|none|thumb|Select the Runner as Wine]]
[[File:Lutris-add-new-game-info-screen1.png|border|none|thumb|Select the Runner as Wine]]In Game options Wine prefix need to point to the location where Wine will create the environment (or prefix) specific for the game, is really important that you select a different folder for every game or software you use.
[[File:Lutris-add-new-game-options-screen1.png|thumb]]
 
In Game options Wine prefix need to point to the location where Wine will create the environment (or prefix) specific for the game, is really important that you select a different folder for every game or software you use.


The '''Executable''' and '''Arguments''' are used after you installed the game and you have the game folder ready, then you can set the bf2.exe executable to run the game, for now you can leave it empty. '''Prefix architecture''' you can keep it to Auto for this game (a 64bit prefix will be created).
The '''Executable''' and '''Arguments''' are used after you installed the game and you have the game folder ready, then you can set the bf2.exe executable to run the game, for now you can leave it empty. '''Prefix architecture''' you can keep it to Auto for this game (a 64bit prefix will be created).
 
[[File:Lutris-add-new-game-options-screen1.png|thumb|none]]




Line 94: Line 86:


===Install Battlefield 2===
===Install Battlefield 2===
[[File:Lutris-run-exe-inside-win-screen1.png|thumb]]
My instructions here a limited to the vanilla experience, if you want to install mods, you should be able to do it following the same steps you did to install the game.
My instructions here a limited to the vanilla experience, if you want to install mods, you should be able to do it following the same steps you did to install the game.


Find a copy of the game, the '''Complete Collection''' with all the expansions is the recommended version to use.
Find a copy of the game, the '''Complete Collection''' with all the expansions is the recommended version to use.


After mounting the disk of the game (search '''mount''' on Internet), you can run the setup by clicking '''Run EXE inside Wine prefix'''.
After mounting the disk of the game (search '''mount''' on Internet), you can run the setup by clicking '''Run EXE inside Wine prefix'''.[[File:Lutris-run-exe-inside-win-screen1.png|thumb|none]]The setup should complete with no issues, next step is to update the game with the few patches released. You need two patches, '''BF2_Patch_1.41'''.exe and '''BF2_Patch_1.50'''.exe. Install them following the same process you did with the game setup.
 
The setup should complete with no issues, next step is to update the game with the few patches released. You need two patches, '''BF2_Patch_1.41'''.exe and '''BF2_Patch_1.50'''.exe. Install them following the same process you did with the game setup.


If you don't have your own copy of the game you can use random CD keys to install the game and expansion, by using a neat application '''BF2KeyMan'''.exe you can generate keys for the game and apply them to the Windows registry with a few clicks.
If you don't have your own copy of the game you can use random CD keys to install the game and expansion, by using a neat application '''BF2KeyMan'''.exe you can generate keys for the game and apply them to the Windows registry with a few clicks.
Line 118: Line 107:
*From the `bin/Win32` folder, copy `soft_oal.dll` into the game folder.
*From the `bin/Win32` folder, copy `soft_oal.dll` into the game folder.


Download the [https://github.com/main-exe/UT2004-OpenAL OpenAL configuration for UT2004] from this GitHub page, we are going to use part of the content. What we need from this archive is the file '''OpenAL-44100Hz.zip''', inside you find alsoft.ini and a folder containing the HRTF profiles for the 3D spatial sound. Extract the archive and place the '''alsoft.ini''' and the '''OpenAL''' folder into the '''AppData/Roaming''' of your prefix. The default configuration should work just fine but if you want to change the profile you can edit the alsoft.ini file and change the '''default-hrtf''' property.


You can try different profiles and see what it works for you by using the [https://github.com/main-exe/UT2004-OpenAL/releases/download/2023-11-08/RightMark3DSound.zip RightMark3DSound] software, after placing the profiles in the Roaming folder you just need to change the alsoft.ini and start the software to test how it sounds in your ears.
===Setup Punkbuster===
===Setup Punkbuster===
You need Punkbuster the anti-cheat software used back in the days to play on specific servers, you need to have the same version used on the server. You can follow the instructions on the website I link below, this is an archived version on archive.org so hopefully will not disappear.
You need Punkbuster the anti-cheat software used back in the days to play on specific servers, you need to have the same version used on the server. You can follow the instructions on the website I link below, this is an archived version on archive.org so hopefully will not disappear.