Service that attach to Task in Behaviour Tree are not working until open it in Editor

Hi, I found some bug issue with Unreal Editor Version 4.17.0. when I start an editor and open my AI test level, My AI are not working properly. But when I open my AI Behavior Tree (to check and debug), It’s working properly.

I have been debug all of my AI task and service and I found that one of service that I attached into a task are not running.

When I take service out from a task and attach into Selector or Sequence as parent, it’s working correctly. Even I close editor and reopen.

To reproduce this bug

  1. Create a test level.
  2. Create simple AI, include controller and Behavior tree. then put it into level.
  3. Create simple print string task and service.
  4. In Behavior Tree, create a Sequence and put task as child and attach service into task.
  5. Close and reopen editor. And do not open any Blueprint class or Behavior Tree.
  6. Open a test level and play.

Hey LuviKunG,

I’ve tested this in a clean project, but both my service and task appear to be working as expected. Could you please recreate this issue in a clean test project, zip up the project, and provide it so I can take a closer look at what you’re experiencing?

Thanks

We are closing this topic for tracking purposes, as we haven’t heard from you in a few days. If this issue persists, feel free to leave a response to my previous comment to reopen the thread and I can continue to investigate.

Thanks

Same thing happens to me. I have services that don’t run when I open the project. As soon as I open the behaviour tree it starts working again, until the next time I open the project. Does not work in packaged project at all.

Everything was working fine in 4.16, it just started happening when I upgraded to 4.17.

Hey bishop86,

Could you provide the information I requested in my last comment so that we can look into the issue? I haven’t been able to reproduce it in a clean project following the steps that LuviKunG listed in the original post.

Thanks

i’m also having this issue with a project that iv updated from 4.16 to 4.172, the Event Receive Activation AI in my service blueprint doesn’t seem to execute after i first open the editor. it prints this message in the log
“LogBehaviorTree: Warning: TestBehaviorTree has missing service node! (parent: TestMoveTask[0])”

:frowning: ill try and reproduce the issue in a clean project. i have a feeling there are a number of factors as iv had a first attempt at reproducing that failed. any help would be awesome,
Cheers,
Finn

Please do let me know if you’re able to reproduce the issue. I’ve been trying to reproduce this on my end for a while, but I’ve had no success so far.

Thanks!

Hi Sean, I have the same problem after I upgraded from 4.16.2 to 4.19.2.

Hey ,

Could you provide us with a project where this issue is happening? If you are using any repro steps that are different from the original poster then please provide those as well.

Hi , I’m unable to reproduce it with a new project. I’ll try to shrink my project to be able to send you only the problematic assets.

Hi , I was able to resize the project,can I send it to you in private?

Message sent, thank you.

Sure. You can message it to me on the Forums. I have the same username there

Was there ever an issue tracker opened for this? I’m having the same issue in my project. I can send along a copy of my project for testing if need be.

The documentation says that services can be attached to composite nodes. But the editor allows them to be attached to tasks, which works in the editor, but fails when packaging the project.

Yep, that’s what I ended up doing too. So far it’s been working fine for me.

I also have this problem. Works fine in the editor, but not in a packaged build.

I get the “has missing service node” message mentioned in the answer. The problem is fixed if I create a dummy composite, and put the service under that instead of under a task.

I still have this issue in 4.17.2. Do we have issue tracker for this?

i had to do the same thing, attached a picture of my service in a dummy selector node.