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.
@JoJohn86
Copy link

I can\t get it to run. why can't steam just update Proton

@tpurde
Copy link
Author

tpurde commented Jun 26, 2020

I can\t get it to run. why can't steam just update Proton

Black Ops 1, 2, Mafia II and a bunch of other games use Valve's CEG DRM. This won't work with Proton, as it isn't shipped with the Steam for Linux client.
I have no idea why they don't ship it, though, as it works perfectly with Wine.

@JoJohn86
Copy link

i can't get it to work on wine either lol awh God

@tpurde
Copy link
Author

tpurde commented Jun 26, 2020

i can't get it to work on wine either lol awh God

That's a bummer. You might want to ask about it in the Lutris forums, r/lutris or the Lutris discord server.

@JoJohn86
Copy link

yea i have been, I've only had Ubuntu for 3 days and ive been cramming information about it into my head. my windows 10 was glitchy and i saw Linus talking about Linux like it was the next best thing. stupid me i saved over my windows 10 USB boot and replaced it with Ubuntu. so i can't even go back unless i figure out how to make a windows boot drive from ubuntu. on the plus side tho i got Diablo 2 LOD to work lol that was 6 hours of craziness

@tpurde
Copy link
Author

tpurde commented Jun 26, 2020

yea i have been, I've only had Ubuntu for 3 days and ive been cramming information about it into my head. my windows 10 was glitchy and i saw Linus talking about Linux like it was the next best thing. stupid me i saved over my windows 10 USB boot and replaced it with Ubuntu. so i can't even go back unless i figure out how to make a windows boot drive from ubuntu. on the plus side tho i got Diablo 2 LOD to work lol that was 6 hours of craziness

Welcome. Don't worry about it, someone in the Lutris Discord will probably help you.

@JoJohn86
Copy link

JoJohn86 commented Jul 2, 2020

I got It to Work, I just had to go through the steps carefully. thanks for posting man

@itslieksolegitt
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?

@JacoMalan1
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?

Same issue here, but for black ops 1, going to try direct input

Copy link

ghost commented Sep 17, 2020

ran properly the first time around but for some reason i started getting an issue where the fps fluctuates from 300 to 90 every second and as a result the mouse jumps around alot but the game runs. ive seen this issue on windows before so ill do more testing

@Circuitkun
Copy link

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?

@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