Skip to content

Instantly share code, notes, and snippets.

@tpurde
Last active January 18, 2024 13:32
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tpurde/f6e9d3f9d96da33e2151d1678b768f57 to your computer and use it in GitHub Desktop.
Save tpurde/f6e9d3f9d96da33e2151d1678b768f57 to your computer and use it in GitHub Desktop.
GloriousEgroll actually added a fix for the Kernel issue for this game but CEG still makes it impossible to launch through Proton.
Guide to playing Black Ops II on Linux:
Make sure you have Vulkan libraries, your graphics driver and Lutris installed. GloriousEgroll's "Get out of Wine dependency hell" could help.
Install the runner "Steam Wine" through Lutris. Set the Wine version to newest you can find on Lutris, anything before 5.6 won't work.
Set these as Environment variables under System Options of Wine Steam.
DXVK_STATE_CACHE = 1
DXVK_STATE_CACHE_PATH = /home/(your username)/.local/share/lutris/runners/winesteam/prefix64/
STAGING_SHARED_MEMORY = 0
WINEESYNC = 1
__GL_SHADER_DISK_CACHE = 1
__GL_SHADER_DISK_CACHE_PATH = /home/(your username)/.local/share/lutris/runners/winesteam/prefix64/
__GL_SHADER_DISK_CACHE_SKIP_CLEANUP = True
__GL_THREADED_OPTIMIZATIONS = 1
These were mostly taken from u/Grixin on his comment about Battlefield V through Wine on Reddit, but should work here too.
If you think any of these arguments are unnecessary, please write them to the comments section of this gist.
Find the Black Ops II, Multiplayer and Zombies installers and install them.
Go to the Winecfg of Black Ops 2 through Lutris. Make sure CSMT is enabled and the Windows version is set to Windows 7.
Open Winetricks for BO2 again in Lutris.
Press "Select the default wineprefix" > "Install a Windows DLL or component." and install all of these:
"d3dcompiler_43, d3dx11_42, d3dx11_43, dotnet40, gfw, msasn1, physx, vcrun2008, vcrun2012, xact_x64, xact, xinput."
Again, you think any of these are unnecessary, please write them to the comments section of this gist.
You don't have to do these again for Multiplayer and Zombies installations.
Launch the game, set the resolution to your preferred resolution and exit the game. Launch again, set your graphics and you should be ready to play. The game will lag for the first 5 or so minutes because of "shader caching", this won't be a problem later on. (This will have to be done for Multiplayer and Zombies too.)
Thank you, Anthony Jagers from WineHQ. I took a lot of help from his comment in Wine Bugzilla.
@tpurde
Copy link
Author

tpurde commented Oct 14, 2020

so i did everything listed and my only problem now is that the game doesn't have menu UI, everything is invisible with the brackets highlighting them. did i do something wrong or?

Not sure, corefonts could help though.

@Circuitkun
Copy link

did corefonts as well with no success at all. Should also mention it's missing Map thumbnails too when you're in lobby

@999gary
Copy link

999gary commented Nov 17, 2020

gfw and physx aren't required to run it, at least on my machine

@tpurde
Copy link
Author

tpurde commented Nov 17, 2020

gfw and physx aren't required to run it, at least on my machine

Coming back to this, this really isn't a good guide at all. I should experiment a bit this week and update it.

@EmperorPenguin18
Copy link

I was able to play a few campaign missions, a online multiplayer game and a few rounds of zombies without gfw or msasn1. Maybe they would give better performance or something I'm not sure, but I can confirm you don't need them to play the game.

@999gary
Copy link

999gary commented Feb 16, 2021

My lutris script for this game got published (didn't check until now), the script should work on all systems, I would appreciate tests.

@ReazerDev
Copy link

i got the game to run but whenever i aim down sights the camera jumps around randomly. do you know how i can fix this please?
Did you manage to fix it? I'm having the same problem

@27justin
Copy link

27justin commented Apr 11, 2021

i got the game to run but whenever i aim down sights the camera jumps around randomly. do you know how i can fix this please?
Did you manage to fix it? I'm having the same problem

The issue stems from having multiple screens connected.
You have to either physically disconnect every monitor except your main one, or turn them off via xrandr
xrandr --output HDMI-0 --off
Also make sure the game is in fullscreen mode, not windowed or windowed fullscreen.
Afterwards the game will work just fine.

Note: If you're using Lutris you can also just configure the game and enable "Turn off monitors except" in system options of the game.

@MonkeySon
Copy link

I tried to install Black Ops 2 following this guide, but failed.

Either, after starting the game, the Steam Popup "Finishing Installation ... %" is followed by the Error "The Steam servers are too busy to handle your request for Call of Duty: Black Ops II. Error Code (41), or there happens an unnamed, unhandled exception.

I also tried with minor differences for the DLLs, according to this guide.

Also: there was no "Steam" version Lutris install script for the base Black Ops 2, so I create the basic one that just installs the game for Wine Steam.

System: Clean Ubuntu 20.04
Wine: Staging-6.4, Stable-6.0, Lutris-6.1, Lutris-6.4

@progerWolf
Copy link

After this many years i tried follow this instruction and i have instaled Call of Duty black ops successfully)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment