EndTurnNoPU delegate not working
-
I was adding this delegate to play around with triggers that create units at the end of the turn with createsUnitsList since this allows PU to not be gained but it doesnt seem to be working for me.
I am also using a normal turn end but I played around and it seems theres no conflicts having two normal turn ends in the same round. The error seems to be that Ive wrote the delegate wrong.
This is whats in my xml.
<delegate name="endTurn" javaClass="games.strategy.triplea.delegate.EndTurnDelegate" display="Turn Complete" /> <delegate name="endTurnNoPU" javaClass="games.strategy.triplea.delegate.NoPUEndTurnDelegate" display="Turn Complete No PU"/> ... <step name="bloodelvesEndTurnNoPU" delegate="endTurnNoPU" player="BloodElves"/> <step name="bloodelvesEndTurn" delegate="endTurn" player="BloodElves"/>
-
@zaroph Idk if you can change the display or not but POS2 just has "Turn Complete"
<delegate name="endTurnNoPU" javaClass="games.strategy.triplea.delegate.NoPUEndTurnDelegate" display="Turn Complete"/>
Doesn't have "...No PU" in it
-
Idk if you can change the display or not but POS2 just has "Turn Complete"
<delegate name="endTurnNoPU" javaClass="games.strategy.triplea.delegate.NoPUEndTurnDelegate" display="Turn Complete"/>
Doesn't have "...No PU" in it
I first tried it with "Turn Complete but it didnt work so it was something I changed to see if it did work.
However it seems that ive solved it now. I changed
<step name="bloodelvesEndTurnNoPU" delegate="endTurnNoPU" player="BloodElves"/> to <step name="bloodelvesEndTurn" delegate="endTurnNoPU" player="BloodElves"/>
And it seems to work now.
Seems weird to me that they have to have the same name even tho they are different things.