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

m
no edit summary
mNo edit summary
Line 73: Line 73:
After saving, you will have created the game profile. To generate the actual Wine prefix, trigger the Wine executable by clicking the arrow icon at the bottom of the application and selecting '''Wine configuration'''. After a few seconds, the Wine configuration window will open. You don’t need to change anything here, just close it. The Wine prefix folder will now be created, containing all necessary files. Think of it as a portable Windows installation where you can install the game.
After saving, you will have created the game profile. To generate the actual Wine prefix, trigger the Wine executable by clicking the arrow icon at the bottom of the application and selecting '''Wine configuration'''. After a few seconds, the Wine configuration window will open. You don’t need to change anything here, just close it. The Wine prefix folder will now be created, containing all necessary files. Think of it as a portable Windows installation where you can install the game.
===Install Battlefield 2 ===
===Install Battlefield 2 ===
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.
The recommended version is the Complete Collection with all expansions. The game requires a valid CD key; utilities such as '''BF2KeyMan''' can generate keys and apply them to the Windows registry.
 


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'''.[[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.
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.
Line 85: Line 85:
===Restore EAX with OpenAL Soft===
===Restore EAX with OpenAL Soft===


Everything needs to be perfect, including audio. The game supports EAX, and to enable the audio hardware capabilities we can use the '''OpenAL Soft''' library. The setup is straightforward and works well with many games, not only ''Battlefield 2''. The first step is to determine whether the game uses the '''dsound''' or '''openal''' audio library. In the game folder, you will find a library called '''BF2OpenAL.dll'''. From the name alone, you can tell that the game supports OpenAL, so we will use OpenAL Soft to replace it and enable EAX support.
The game supports EAX. To enable audio hardware capabilities, '''OpenAL Soft''' can be used to replace the existing library. The setup is straightforward and works well with many games, not only ''Battlefield 2''. The first step is to determine whether the game uses the '''dsound''' or '''openal''' audio library. In the game folder, you will find a library called '''BF2OpenAL.dll'''. From the name alone, you can tell that the game supports OpenAL, so we will use OpenAL Soft to replace it and enable EAX support.


Download [https://github.com/kcat/openal-soft/releases/tag/1.23.1 OpenAL Soft] from the GitHub release page. The version I currently use for this game is '''1.23.1''', which I recommend for this tutorial. After extracting the archive, you will need two files:
Download [https://github.com/kcat/openal-soft/releases/tag/1.23.1 OpenAL Soft] from the GitHub release page. The version I currently use for this game is '''1.23.1''', which I recommend for this tutorial. After extracting the archive, you will need two files:
Line 97: Line 97:


===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.
PunkBuster is required for multiplayer on certain servers. The appropriate version must match the server configuration. [https://web.archive.org/web/20200219052143/http://fizweb.elte.hu/battlefield/Battlefield-2/BF2-PunkBuster/ Archived instructions] are available on the official site.
 
[https://web.archive.org/web/20200219052143/http://fizweb.elte.hu/battlefield/Battlefield-2/BF2-PunkBuster/ Instructions to update Punkbuster for Battlefield 2 but also valid for other games of the series]


==Tips==
==Tips==
Line 129: Line 127:


==Troubleshooting==
==Troubleshooting==
*'''Game won’t launch:''' Try switching Proton versions.
*'''If the game does not launch''', switching Proton versions may resolve the issue.
*'''Graphics issues:''' Check DXVK logs.
*'''Graphics issues''' can be diagnosed using DXVK logs.
*'''Multiplayer problems:''' Verify PunkBuster setup.
*'''Multiplayer problems''' may require verifying PunkBuster setup.


==Downloads==
==Downloads==