Funny Error message in new bata release 9220
This is the code:
<attachment name="userActionAttachmentAmericanIsHuman" attachTo="Americans" javaClass="games.strategy.triplea.attachments.UserActionAttachment" type="player"> <option name="conditions" value="conditionAttachmentAmericanAIPlayer"/> <option name="activateTrigger" value="triggerAttachmentAmericanIsHuman:1:false:false:false:false"/> <option name="text" value="AMERICAN_PLAYER"/> <option name="attemptsPerTurn" value="1"/> </attachment>
This is the error (in part):
WARNING: Could not set property:attemptsLeftThisTurn subject:UserActionAttachment attached to:PlayerID named:Americans with name:userActionAttachmentAmericanIsHuman new value:0
java.lang.IllegalStateException: Could not set property:attemptsLeftThisTurn subject:UserActionAttachment attached to:PlayerID named:Americans with name:userActionAttachmentAmericanIsHuman new value:0
When I change to <option name="attemptsPerTurn" value="2"/> The error goes away.
Has any one seen this before?
@wc_sumpton Strange, I have a few of these userActions in my map with "attemptsPerTurn" value="1" and their fine. Only thing that might be related is I have the first false set to true in the trigger. That's for testing uses.
@general_zod was making sure Invasion USA would work with current stable 7621, and it does with the above. But when I try to load it into 9220 I get that error. Tried changing the 'false' to 'true', but still get the same error. Maybe its because I have both version loaded? But the 1 to 2 does make it work. If no one else see this then it must be on my side. Will continue to check.
Thanks for the reply
@wc_sumpton If you leave the attempts out.... does it not automatically default to 1?
Thanks for all your help!!
P.S. @Hepps yes the default is 1 when not used.