why is my promotion tree messed up?

davidlallen

Deity
Joined
Apr 28, 2008
Messages
4,743
Location
California
I have created a few new promotions for my Mad Max mod in progress. The XML appears to be correct. But, in the civilopedia, the tree of promotions is totally messed up.

Please find my promotions file by clicking this link. If you have trouble following the link please PM me. Put the file into customassets/xml/units and then bring up BTS and look in the civilopedia. You don't need to start any game, and there is only one file I have modified.

In the promotions page of the civilopedia, you will see the big pink spots for my new promotions. I intentionally left out the button graphics for this simplified test. Even without the graphics you can hover the mouse over the pink squares to see the promotion names.

What I want is a progression Erratic Driving I,II,III and a progression Less Fuel I,II,III. This is what shows up in my XML. I have used the PromotionPrereqOr1 field the same way that the standard Combat I-VI and Guerilla I-III use it.

But in my civilopedia, and also in game play, what I get is messed up. Erratic Driving I leads to hardpoint instead of Erratic Driving II. Erratic Driving II does not require Erratic Driving I or lead to anything. Erratic Driving III does not require anything. The Less Fuel promotion tree is similarly messed up.

It is *obvious* that my XML is right! Why is the game messing it up?
 
What's happening is your prerequisites are being pushed down to the next entry for some reason. I managed to fix the Less Fuel ones by removing your comment, but something is still messing with the Erratic Driving. Perhaps knowing the cause of the former you can solve the latter?
 
Thanks for the additional info. I confirmed that deleting one comment changes the behavior. I *really* don't like it when changing comments changes the behavior!

Similar problem reported here

Possible solution and further discussion here
 
found the bug, it's a firaxian bug, i'll notify alex and check if it can be fixed in the upcoming patch

note, now i know why i never saw it, because in WoC we have rewritten this code 100% completely, and I when i wrote it automatically did it right when i wrote it to skip the comments properly...therefore i never saw this issue and had no idea what you're talking about, but in original firaxis codes there's indeed a bug for this..but it has been reported just a minute ago..so no worries

or simply join WoC :P
 
Back
Top Bottom