This is a card in Dave's Virtual Box of Cards.

Playing Command & Conquer Red Alert 3 on a network with Steam and Proton

Page created: 2026-11-28
Banner image for Command and Conquer Red Alert 3

I’ve tested both of these fixes on Fedora 7.2 in the year 2026.

Issue 1: CD Key already in use

When attempting to join a network game (in my case, on the local LAN) with two separate Steam copies of the game, you’re likely to get a "CD key already in use" message.

This plagues everyone who tries to do network multiplayer:

LAN Same CD Key Error (steamcommunity.com)

The solution is to update the CD Key as a Windows registry entry. This is true when running the game under Proton (Steam’s customized WINE).

The hard part is that Steam updates the key entry when it launches the game, and you need to edit the entry before the game itself reads it. There’s a short window of time.

There’s a fan-made executable application for Windows that monitors the registry key and changes it back as needed. But since I’m on Linux, things are easier. For one thing, the registry is stored as a text file, so it’s easy to modify with familiar Unix tools. And for another thing, familiar Unix tools.

Here’s a script I made that runs until it sees the registry entry change, changes it back, and then exits.

It looks like this when it’s running:

$ redalert3_cdkey.sh
Waiting for CDKEY to update...
Editing CDKEY to 1795885393...
Done.

I run the script just once before launching the game from Steam. ("Waiting for CDKEY to update…​") And as soon as Steam launches it, the script sees it, makes the edit, and exits.

Here’s the script:

#!/bin/bash

cd '/files/SteamLibrary/steamapps/compatdata/17480/pfx'

echo "Waiting for CDKEY to update..."
while ! grep -q CDKEY system.reg
do
        sleep 0.5
done

NEWKEY=$(date +%s)
echo "Editing CDKEY to $NEWKEY..."
sed -i "s/%CDKEY%/$NEWKEY/" system.reg
echo "Done."

As you saw in the example above, I named it redalert3_cdkey.sh, but you can call it whatever you want.

Note that the first thing the script does is cd ("change directory") to the location where Steam keeps the environment files for Red Alert 3.

How do you find this path? First, find your SteamLibrary directory. I’ve told Steam to store mine on a large HDD mounted at /files/, which is almost certainly not where yours is stored.

To find the library path In the current version of Steam, you can click on the Steam menu, then Settings, then Storage.

On the Storage settings screen, there’s a drop-down at the top which will have a drive listed with a golden star icon. When you select that (if it isn’t already), you’ll see the library path listed below the dropdown.

Then you can use a file manager to go to that directory and ensure it contains <your library dir>/steamapps/compatdata/. That directory will contain a listing with a bunch of numbered directories. One of those should be Red Alert 3.

NOTE: I’m pretty sure Red Alert 3 is always App ID 17480, but to find the App ID for a game, I right-clicked on the title in my Steam Library interface then Manage, then Updates. The App ID value is a string of digits.

You can either make the above script executable with chmod +x redalert3_cdkey.sh and put it somewhere in your $PATH. Or you can simply run it with bash redalert3_cdkey.sh.

NOTE: The script assumes some GNU tools such as Bash, GNU sed, and GNU sleep. These are commonly available, but the concept should be simple to adapt to other shells and versions of these tools.

NOTE: If you need to do this fix on Windows and, like me, don’t want to run a compiled .exe someone else created (or go to the hassle of compiling it yourself), I also considered writing a PowerShell script to do what my Bash script does. The loop to watch for the change and the line to make the change at these two links seem like a place to start:

Issue 2: Network out of sync error while playing

After sorting out the CD Key issue, we were able to play, but the local network game would exit between 5-30 minutes with a screen showing that the game had gone out of sync.

Thankfully, players SentientSheep and KWAGGA have done the painful work of figuring out a fix for this:

Out of Synch at local network (steamcommunity.com)

I’ll paraphrase SentientSheep’s final set of instructions here for posterity but you can get the full details at the link above. (In short, you’re installing the 2006 Visual C runtime DLL to the game’s environment. The application that makes this easy is called "protontricks", which is a Proton-specific version of winetricks.)

I’m basically following SentientSheep’s instructions verbatim with the exception that, like Steam itself, I was able to install protontricks with the dnf package manager (see link at the bottom of this page for my write-up). Success with your available packages and package management system may vary:

  1. sudo dnf install protontricks (Fedora, see above paragraph).

  2. Run protontricks, which pops up a UI. Ignore warnings.

  3. Pick your game, Red Alert 3.

  4. Choose "Select the default wineprefix".

  5. Choose "Install a Windows DLL or component".

  6. Pick vcrun2005 from the huge list.

  7. Click "OK", etc. to complete the installation of vcrun2005.dll.

  8. Now you can exit from protontricks. You can hit Esc to back out of any menu in protontricks.

After the above, start up Red Alert 3 and you should be able to enjoy network games with your friends and family without constant sync troubles.

Hopefully this page gives someone else a leg up. I am grateful for the players who came before me to do the really hard detective work on this.