[BUG?] ConditionalEvaluator

Forums 💬 NodeCanvas ⚙️ Support [BUG?] ConditionalEvaluator

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #16303
    driiade
    Participant

      Hey,

      ConditionalEvaluator seems to have a bug in case it is attached with an interrupt. See the attachments.

      For me it’s not logic to have this state. The solution is to reset the decorated connection like in attachment2.

      Had a bunch of weird Reset decorrator in the v1 of the game. Now found why :p

      #16308
      Gavalakis
      Keymaster

        Hey 🙂

        Hm. Can you please clarify a bit more on the said bug? I just tried a simple tree to reproduce some sort of problem, but everything was working fine.

        This is the tree I’ve tested. When I Fire1 is down, the flow continues down running the branch and as soon as I let go (Fire1 Up), the flow is interrupted and Failure is returned to the root. Can you please let me know how to reproduce the problem you’ve encountered? 🙂

        [attachment file=”ConditionalInterrupt.png”]

        Thanks!

        #16307
        driiade
        Participant

          Hello,

          yes because you have only 1 branch.

          Make a dynamic selector with multiple branch, the last has to be true in all case and run forever. If you push the Fire button and release it, it will go to the everytime true branch, and will not release the interrupt (the interupt will be false instead of Resting). making the second time you push Fire to ignore the Conditional because you are on the Interupt instead.

          In your case it works because the BT finish as soon as fire is up and release/reset everything when stopping.

           

          Didn’t tested in a simple case like yours, but on our game, it’s like that.

          #16306
          Gavalakis
          Keymaster

            Thanks. I was able to reproduce it. I fixed it with this code instead:

            Let me know if that works for you as well considering I’ve found the same issue.

            Thank you.

            #16305
            driiade
            Participant

              Hi,
              I don’t know what it fix. But It didn’t fix the fact the Interruptor is in Fail state instead of Resting.

              For me it’s logic to have the interruptor in Resting state, but maybe not.

              #16304
              Gavalakis
              Keymaster

                Hey,
                Sorry for the late reply.
                Could you send me a simple preproduction project showcasing the behaviour you are getting and the expected behaviour you want to have please?
                If so that would be really great. Please use (support_AT_paradoxnotion.com) if you want to!
                Thank you.

              Viewing 6 posts - 1 through 6 (of 6 total)
              • You must be logged in to reply to this topic.