455
edits
mNo edit summary |
mNo edit summary |
||
| Line 66: | Line 66: | ||
Top-left + icon, then Add locally installed game, not going to use any scripts, all manual. | Top-left + icon, then Add locally installed game, not going to use any scripts, all manual. | ||
[[File:Lutris-add-games-to-lutris-screen1.png|none|thumb|Manually configure a game since we need to install it the traditional way]] | [[File:Lutris-add-games-to-lutris-screen1.png|none|thumb|Manually configure a game since we need to install it the traditional way]] | ||
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]] | ||
[[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. | 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). | ||
| Line 82: | Line 81: | ||
One important graphics setting is the '''DXVK version''', which can significantly improve your experience with the game. I am currently using version '''2.6.2'''. Keep an eye on updates for this graphics wrapper, as newer releases often enhance performance and fix graphical issues. | One important graphics setting is the '''DXVK version''', which can significantly improve your experience with the game. I am currently using version '''2.6.2'''. Keep an eye on updates for this graphics wrapper, as newer releases often enhance performance and fix graphical issues. | ||
Below in the Runner options you find DLL overrides, for this game you can leave it empty, this is because we don't have any dll in the game folder that need to replace the counterpart in the Windows library folder. | |||
In the System options I add a few environment variables to help logging and performance. | |||
'''DXVK_FRAME_RATE''': limit the frame rate. | |||
'''DXVK_HUD:''' hud to check sys specs and fps counter. | |||
'''ALSOFT_LOGFILE''' and '''ALSOFT_LOGLEVEL''' are for logging the OpenAL Soft library. | |||
[[File:Lutris-sys-options-envvar-screen1.png|none|thumb]] | |||
After you finish just click Save and you creating the game profile, now to create the actual prefix you need to trigger the Wine executable to do the job, in order to do so you can click on the arrow icon at the bottom of the application and then click '''Wine configuration'''. After a few seconds the Wine configuration will open, no need to do anything here, just close it. The wine prefix folder has been created and you can check all the files inside. Is like having a portable Windows OS where you are going to install the game on it. | |||
===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'''. | |||
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. | |||
[[File:Bf2keyman1.png|none|thumb]] | |||
=== Restore EAX with OpenAL Soft === | |||
Everything need to be perfect, audio included, the game support EAX and to enable the audio hardware capabilities we can use OpenAL Soft library. The setup is really easy and play well with many games not only Battlefield 2, what you need to understand is whether the game use '''dsound''' or '''openal''' audio library. | |||
Inside the game folder there is a library BF2OpenAL.dll, from the name only you know that the game support OpenAL so we are going to use the OpenAL Soft to replace it and enable the EAX support. | |||
Download the OpenAL Soft from the [https://github.com/kcat/openal-soft/releases/tag/1.23.1 GitHub page]. The version I currently use for this game is the '''1.23.1''' and is the one I recommend for this tutorial. Extracting the content we need two files, the router library '''OpenAL32.dll''' inside the folder '''router/Win32''', we going to rename this file as '''BF2OpenlAL.dll''' and replace the one in the game folder with this new file. Then from the '''bin/Win32''' folder we copy the file '''soft_oal.dll''' and put it in the game folder as well. | |||