TripleA Logo TripleA Forum
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags
    • Register
    • Login

    Funny Error message in new bata release 9220

    Scheduled Pinned Locked Moved Map Making
    5 Posts 3 Posters 1.8k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W Offline
      wc_sumpton
      last edited by

      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?

      Thanks
      Cheers...

      General_ZodG 1 Reply Last reply Reply Quote 0
      • General_ZodG Offline
        General_Zod Moderators @wc_sumpton
        last edited by

        @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.

        W 1 Reply Last reply Reply Quote 0
        • W Offline
          wc_sumpton @General_Zod
          last edited by

          @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...

          HeppsH 1 Reply Last reply Reply Quote 0
          • HeppsH Offline
            Hepps Moderators @wc_sumpton
            last edited by

            @wc_sumpton If you leave the attempts out.... does it not automatically default to 1?

            "A joyous heart sours with the burden of expectation"
            Hepster

            W 1 Reply Last reply Reply Quote 0
            • W Offline
              wc_sumpton @Hepps
              last edited by

              @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...

              1 Reply Last reply Reply Quote 0

              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
              • 1 / 1
              • First post
                Last post
              Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums