Navigation

    TripleA Logo

    TripleA Forum

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

    EndTurnNoPU delegate not working

    Map Making
    2
    3
    580
    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.
    • Z
      Zaroph last edited by

      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"/>
      
      B 1 Reply Last reply Reply Quote 0
      • B
        beelee @Zaroph last edited by

        @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

        Z 1 Reply Last reply Reply Quote 0
        • Z
          Zaroph @beelee last edited by

          @beelee

          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.

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post
          Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums