Repeat forever within parallel?

NodeCanvas Forums Support Repeat forever within parallel?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10185

    I have a situation where I want 2 things to happen in parallel, one is to generate some data, the other uses the data (if there is no data it doesn’t do anything so no worries of explosions).

    So the problem I have is that I have my root parallel node, then within that I have on the left a Repeat Forever, followed by a Cooldown 0.5, then on the right I have an iterator which will continue iterating through the data provided until finished.

    Now the problem is they both fire together, however it seems like the repeat forever does not seem to function after the initial call. Anything off the top of your head which could be causing it? as the iterator is going fine so I would expect the forever bit to keep going too, but it doesn’t 🙁

    I hope that a few moments after posting this I solve it like every other issue raised 🙂

    #10188
    Gavalakis
    Keymaster

    Hey,

    The problem comes from the fact that the Cooldown by default returns ‘Inactive When Limited’ and the repeater dosn’t correctly respond to that. In a few words its a small bug. You can either uncheck the option “Inactive when limited” in the cooldown filter decorator, or better open ip BTRepeater.cs and replace line # 44 with:

    if (status != Status.Running){

    I will fix it as well..
    Thanks for finding that out 🙂

    Join us on Discord: https://discord.gg/97q2Rjh

    #10187

    No worries, just good to know I am not being a dunce 🙂

    #10186

    Not sure if this is related to the fix or is an issue anyway, but for some reason one of my Repeat Until Success seems to lock up randomly.

    I have a custom iterator, followed by a repeat until success.

    Now if I look at the tree when this happens everything beneath it is green and successful, and if I attach VS to unity and put a breakpoint on the iterator code nothing is run so its like the success is not registering sometimes on the Repeater.

    If you cannot think of what would be causing it off top of your head I am happy to email you a little example showing my issue, incase it is me just misusing the tool again 😉

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