Thalassicus / cep-bnw

Civ V Communitas Expansion Pack
32 stars 22 forks source link

Compatibilty with Colonialist Legacies civilizations #218

Closed GrantSP closed 10 years ago

GrantSP commented 10 years ago

TPangolin, the lead of this mod project has contacted me about making 2 of his mods work with CEP, namely Mexico & Phillipines. I have looked at what is wrong and it appears our ProductionPopup.lua sorts the buildings into order and then displays them in the panel. The error with the Mexico civilization (I assume the Phillipines also) and CEP is the production panel only shows Units.

The lua shows an error at line 105 of the above file. I think we can fix this with having the load order or references changed to allow these mods to use our modded lua. How that is done isn't clear to me. CSD had no problem with their new buildings so I may be wrong in my assumptions.

stackpoint commented 10 years ago

What are the lua errors?

GrantSP commented 10 years ago

ProductionPopup.lua:105: bad argument #2 to '?' (Key must be of type 'number' or 'string'.)

stackpoint commented 10 years ago

Adding a reference to the mod in CAT should solve this?

GrantSP commented 10 years ago

If you mean like this:

<Mod id="5a13b06d-9298-40f9-a511-522a825af190" minversion="0" maxversion="999" title="[BNW] Colonialist Legacies - Mexican Republic" />

Then no, didn't work.

stackpoint commented 10 years ago

The mod author did not set the domains of his units which is why the domain call fails.

stackpoint commented 10 years ago

The two units in question for the Mexico civ is UNIT_FAKE_OVERRIDE and UNIT_FAKE_HACIENDA. I presume that the Phillipines civ has a similar problem.

GrantSP commented 10 years ago

I would NEVER have found that. Thanks. Good man.

stackpoint commented 10 years ago

I'm going to list a couple of possible errors for the Phillipines mod:

GrantSP commented 10 years ago

Mexico mod also seems to be lacking in tags for both the dummy buildings.

GrantSP commented 10 years ago

Made all the changes discussed and there don't appear to be any further errors.

stackpoint commented 10 years ago

Thanks for your help.