Sid Meier's Civilization V

Sid Meier's Civilization V

Not enough ratings
So You Want To Make a Mod As A Linux Player
By Ballaholic™
The game itself is ported to Linux (quite wonderfully), but the SDK is not. Here's how to conquer this obstacle.
   
Award
Favorite
Favorited
Unfavorite
Preparation
You will need:
  • A Windows VM with guest additions (sorry, it doesn't work in Wine. XP will work though)
  • Some sort of archive manager that supports 7z archives (either OS)
  • The ability to download about 1GB of stuff

Here's how my XP VM was configured:
  • 768MB RAM, 256MB VRAM (probably overkill)
  • One shared folder pointing to my Linux install of Civ (well, it's my home folder that actually got shared, but you could narrow it down to ~/.local/share/Steam/SteamApps if you wanted)

When creating your mod, you may get errors saying it can't find its files. This is a problem with the SDK itself, just copy the contents of "C:\path\to\SDK\ModBuddy\Build" to "C:\Program Files\MSBuild\Firaxis\ModBuddy".
Initial Configuration
First, install Steam and the SDK as normal, then launch it. The prerequisites will take a while, as it needs to download about 320MB here. The process is not stalling. When the SDK launcher appears, click ModBuddy. It will complain that a prerequisite is missing, namely the VS2010 Isolated Shell (which is probably why it doesn't have a native Linux port). If you don't want to deal with the nightmare that is IE6 on XP, here's the download link[www.microsoft.com] so you can download it some other way. This is another 100+ MB.

Once in ModBuddy, you will need to configure your Civ 5 paths. In the Tools menu, there is an "Options" button, and at the bottom of the left pane, there is a "Civilization 5" category, containing only General. Click that. Your configuration screen should now look like this:

Here, "Civilization 5 path" is the path to your installation of Civilization 5. ModBuddy seems to be perfectly content with the Linux version of the game, which is why I said to use a shared folder. "Civilization 5 user path" refers to the directory mods would be installed. You're restricted to a subfolder of My Documents, so just make a folder in there and call it "Civ5Mods" or something. Don't try any symlink nonsense within XP, Civ 5 won't pick up the mod right away.

From there, make your mod. Kael's guide[forums.civfanatics.com], despite being out of date, is still the go-to guide for introduction to modding.
Add Your Mod To Your Game
Once you get your mod built up, you're going to want to play test it. The problem is, simply dropping the mod into your game's MODS directory doesn't work. For that, you're going to need to make a .civ5mod file.

Now maybe there's a button for this in ModBuddy and I'm simply too dumb to find it. But since I can't find it, you're going to need to make the civ5mod file manually. Fortunately, this is a walk in the park: literally all you're doing is making a 7z archive and naming it with .civ5mod at the end. Using the Linux version of 7-Zip, I used the following command to make my mod file:

7z a -r "My Mod Name.civ5mod" "My Mod Directory (v 1)"

Then all I did was put that in my MODS directory, and Civ unpacked it and recognized it.
7 Comments
Ballaholic™  [author] 26 May, 2017 @ 8:35pm 
Fuck off back to the Kremlin with that spyware bullshit.
the grungler 26 May, 2017 @ 6:38pm 
I think the problem is that you are using Linux....
Ballaholic™  [author] 23 May, 2017 @ 8:09am 
Download link works fine here. Make sure you use a "real" web browser like Firefox or Chrom[e|ium]; Microsoft doesn't provide wget-friendly links for anything. And XP SP3 should be available for download somewhere on the MS website if you can't get it over Windows Update.

As mentioned in the guide, 256MB VRAM was probably overkill (and I had to do some tomfoolery to get it to accept that value anyway), so see if 128MB does the trick before Googling for "virtualbox 256mb vram" (I think higher than 128 might need guest additions anyway)
El Presidente 22 May, 2017 @ 11:39pm 
I only have Windows XP service pack 1. Since Windows update for Windows XP no longer works then I will have to try something else.
El Presidente 22 May, 2017 @ 11:25pm 
Your download link in Intial install dose not work.
El Presidente 22 May, 2017 @ 8:55pm 
Virtualbox won't let me share a hidden folder. I set to my home foulder, Virtualbox will only go up to 128 M of video RAM.
WaylanderGR 22 May, 2017 @ 1:53pm 
wait an actual serious guide on civ V? haven't seen that in ages