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:0When I change to <option name="attemptsPerTurn" value="2"/> The error goes away.
Has any one seen this before?Thanks
Cheers... -
@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
Cheers...
-
@wc_sumpton If you leave the attempts out.... does it not automatically default to 1?
-
@hepps @General_Zod after further checking I found that it was an installation problem. After I removed another JAVA product, everything started to run fine.
Thanks for all your help!!
P.S. @Hepps yes the default is 1 when not used.
Cheers...
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login