Civ 5 Mod Buddy Project Creation Error

IsaacIvan

Chieftain
Joined
Mar 23, 2012
Messages
7
Location
Minnesota, America
Hello. I was trying to start experimenting with mods, I did what I was supposed to. I installed the SDK, I installed the software it wanted me to, and everything went fine untill I actually tried to open it. When the updater opened, it immediately crashed. The ModBuddy then opened anyway, so I decided to try anyway. When I created a new mod, and entered all the info and stuff, it gave me this error:
The imported project "C:\Program Files\MSBuild\Firaxis\ModBuddy\Civ5Mod.targets" was not found.
Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. C:\Users\[my name]\AppData\Local\Temp\k10zobaf.dh4\Temp\Testmod.civ5proj
I checked the first directory, and there is no C:\Program Files\MSBuild\Firaxis , which I assume is the problem.
I also checked the second directory, and there is no C:\Users\[my name]\AppData , which is also probably an issue.
I'm running Windows Vista (shame on me, I know), SP1.

Any help would be much appreciated!

IsaacIvan
 
The AppData folder is there, just hidden. If you put C:\Users\[my name]\AppData in the address bar, it'll take you there. Or you can enable the option "Show hidden files, folders, and drives" in the View tab of the Folder Options.

It sounds like there's something wrong with the installation of the SDK. Someone else with your problem wrote about it on the 2K Forums here. See post 4. I think uninstalling and reinstalling the SDK may work, but he just copied some files manually after trying to uninstall and reinstall VS2010 Shell.
 
I tried what was on the page, but that didn't seem to help. I've reinstalled the SDK multiple times, and it hasn't helped anything. I found the hidden folder, and went all the way through, but there wasn't a "Testmod.civ5" there. (Testmod is what I named the mod). I've created the directory for the first file, but I've searched the whole hard drive, and there is nothing called Civ5Mod.targets. If you know how to (legally) obtain this file, I think that might solve the problem.
 
If you know how to (legally) obtain this file, I think that might solve the problem.

You'll find it in your SDK directory under ModBuddy\Build (i.e., not in C:\Program Files\MSBuild...).

EDIT: You could change the path in the <Import Project=...> line of your .civ5proj file to the proper one explicitly (i.e., the full path without the $(MSBuildExtensionsPath) part).

EDIT #2: Or better yet, fix it for all your projects by changing the directory in the registry. It's the ModBuddy.Civ5ModProject value, and you'll find it under the key something like HKCU\Software\Firaxis\ModBuddy\1.0_Config\MSBuild\SafeImports.
 
I'm fairly confident this file doesn't exist at all on the disk. Do you think the problem might have something to do with the Updater? Otherwise, I couldn't directly find either of those directories, but I did another disk search.
 
Back
Top Bottom