Problems with Promotions.xml

smeagolheart

Monarch
Joined
Sep 4, 2007
Messages
924
Location
Phoenix, AZ
Hey, I haven't been able to find a tutorial covering promotions.

I'm stuck.

I'm trying to add nextwar units to the wolfshazne mod and the darn thing keeps crashing. I merged everything together but am running into problems in the CIV4PromotionInfos.xml file.

Wolf already adds a whole boat load of unitclass types to the regular game and it seems the game can't handle adding assault mechs and clone units. I get this useful error message after adding clones and assault mechs to the various combat promotions available:

error.jpg



If I use the default combatpromotion file, the game will load (albeit with errors saying there's no unitcombat class clones and assault mechs) and the units will show up fine - without any possibility of promotions :mad:

So the problem must be in this file. If you can assist please pm, post here or write me a letter.

My file is attached.
 

Attachments

I had the same message about siblings when I added the Alien Leader Civ to my Future Mod. I gave them all 80+techs for free to start with. After I cut out all the prefuture techs, the message went away. So, I assume this message means that you can only have so many items in this list, in the case of free techs presumably fifty or so. In your case, it sounds like you have too many unitclasses, and have to eliminate a couple if you plan to mod these new promotions in using only XML. Presumably if you are ready to mess with the SDK you can extend the number of siblings allocated.
 
... have to eliminate a couple if you plan to mod these new promotions in using only XML. Presumably if you are ready to mess with the SDK you can extend the number of siblings allocated.

I was hoping to not have to eliminate a couple classes, but if that is the only way I guess I'll have to.

Any other ideas? To me, it looks like the file from the error message is a python file. Can I just plug in a bigger number somewhere in that python file?

Or is the consensus remove some of the promotion groups?
 
Do you get any different errors before or after that?
 
I solved the problem with phungus420's help. Pretty simple fix actually, but since I couldn't find a tutorial for this it was tough for me :D

In addition to the mod's I'd made in CIV4PromotionInfos.xml, you have to add the new UnitCombats in the UnitCombatInfos.XML (in the basicinfos folder).
 
Back
Top Bottom