Code: [BNW] Colonialist Legacies - The Blackfoot Confederacy (v.2) (v 1)

Code: [bnw]_colonialist_legacies_-_the_blackfoot_confederacy_(v.2)

Code: folder = string.gsub(folder, ")", "") folder = string.gsub(folder, "(", "_")

Code: folder = string.gsub(folder, "%)", "") folder = string.gsub(folder, "%(", "_")

tl; dr: To get your thing to compile right, rename the mod folder containing blackfoot to:

Code: [BNW] Colonialist Legacies - The Blackfoot Confederacy (v.2) (v 1)

Code: [517227.953] \Users\{USERNAME}\Documents\My Games\Sid Meier's Civilization 5\MODS\MultiPlayer ModsPack Maker (v 1)\MPMP_Maker: Copying [BNW] Colonialist Legacies - The Blackfoot Confederacy (v.2) (v 1)

Code: <?xml version="1.0" encoding="utf-8"?> <Mod id="90090edf-4691-4393-b7ed-e7f07e240387" version="1"> <Properties> <Name>[BNW] Colonialist Legacies - The Blackfoot Confederacy (v.2)</Name>

Sorry for double-post, but I wanted to make it more obvious that there was a new post:I have found the solution. It is actually much simpler than I thought. For me the error occurs on line 179 (which, btw, DirtyFace, you probably have the wrong version of the code). The issue is actually because of folder naming. The code assumes your folder name is one of two formats:1) Steam format: {mod name} (v {version number})i.e.2) "civfanatics downloaded name" (this is what the comments say, but I don't what this is), which comes out like:If you download Blackfoot off of the civfanatics link, he has the folder named "Colonialist Legacies - The Blackfoot Confederacy (v.2)", which matches neither format. Since the first one fails, it tries the second one, which happens to have erroneous statements:You can't actually use ( and ) in the gsub pattern, apparently (I had to look that up), so I corrected it to:The proper form. No one has ever noticed this error because most people get their folder names from steam.For any other civ with this problem, pay attention to the last lua message you see just before you get the error. It should say something like:Your big hint is the last line there. If your folder name does not match that, then you should rename your folder to match that.You can also piece the name back together from your modinfo:The proper folder name is {Name} (v {version # in modinfo}).I will update the OP to reflect this shortly, and upload fixed code.The real proper way to do this, coding-wise, would be to search the Mods folder for the folder containing the relevant .modinfo, and use that folder. However, because of the way permissions work in civ 5, this cannot be done from lua - it needs to be done from the dll. Only Gedemon has the source code for the dll, so...EDIT: OP now has fixed code.