I've updated the elements.txt in the above URL to work with Immigration mod.
Impaler: You had made some mistakes with your updates.
This one has the wrong toplevel element (a typo I suppose). The ReligionInfos element should be container and ReligionInfo an object. However, the typo prevented this line from working and the hardcoded rules for Info stuff took over. Set and list elements can only contain value elements!
This just won't work. Containers and objects rely on each sub-element being uniquely identifiable from the element name or key. See also a few posts above.
Position should be container. UnitEntry is basically a container too, but can potentially cause problems since it can occur multiple times. I'll have to see if I can figure something out - there might be an easy-ish fix for it. The masks should be sets, since each value is unique and order doesn't matter (I suppose).
These are fixed in the above elements.txt as well.
Impaler: You had made some mistakes with your updates.
Code:
ReligionInfo Civ4ReligionInfo toplevel
[b]ReligionInfos ReligionInfo set[/b]
ReligionInfo GlobalReligionCommerces list
ReligionInfo HolyCityCommerces list
ReligionInfo StateReligionCommerces list
This one has the wrong toplevel element (a typo I suppose). The ReligionInfos element should be container and ReligionInfo an object. However, the typo prevented this line from working and the hardcoded rules for Info stuff took over. Set and list elements can only contain value elements!
Code:
LSystemInfos LNode container
LSystemInfos LProduction container
LSystemInfos ArtRef list
LSystemInfos To list
This just won't work. Containers and objects rely on each sub-element being uniquely identifiable from the element name or key. See also a few posts above.
Code:
UnitFormations EventMaskList list
UnitFormations UnitMaskList list
UnitFormations PromotionMaskList list
UnitFormations Position list
UnitFormations UnitEntry list
Position should be container. UnitEntry is basically a container too, but can potentially cause problems since it can occur multiple times. I'll have to see if I can figure something out - there might be an easy-ish fix for it. The masks should be sets, since each value is unique and order doesn't matter (I suppose).
These are fixed in the above elements.txt as well.