Navigation

    TripleA Logo

    TripleA Forum

    • Register
    • Login
    • Search
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags

    Funny Error message in new bata release 9220

    Map Making
    3
    5
    1330
    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
      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_Zod 1 Reply Last reply Reply Quote 0
      • General_Zod
        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
          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...

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

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

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