Closed Cervator closed 6 years ago
Although this isn't the cause of the problem, having a simple NULL check for text
in TextLineBuilder
would be better. Upon further inspection, the error arises when Pathfinding
is enabled. (Which is auto-enabled as a dependency to Behaviors
).
It occurs due to the presence of the deprecated convention based behavior node checkTargetSet
, as a prefab in the module, and by removing it the BT-editor works fine.
Thanks for the extra detective work :-)
I've merged in the two module PRs so this specific case shouldn't happen anymore. But it would still be good to add that null check with a quick warn log entry to go with it. Knowing a bit more about where should make resolving this issue trivial and indeed a Good First Issue!
On a kind of related note, we have the BT editor button in the main menu - but it doesn't do anything?
Yes, the button events for the BT editor button aren't subscribed in MainMenuScreen
. It's currently just a dummy button. Following line is to be added in MainMenuScreen
:
WidgetUtil.trySubscribe(this, "behavioreditor", button -> getManager().toggleScreen("engine:behaviorEditorScreen"));
Although this does result in a crash currently.
Yeah I suppose the button made sense back when BTs were purely in the engine. Now they require at least the Behaviors module active. So lets add to this issue outright removing that button from the main menu. At least until we have the ability to activate modules inside the main menu.
Closing this as complete. The button was just removed technically after v2.0.0 but still the crash etc was fixed then so leaving this issue in that milestone still.
What you were trying to do
Open the behavior tree editor in-game via F5
What actually happened
Client crashed with an NPE
How to reproduce
Log details and game version
Omega 900 during today's play test
Maybe of interest to @l0ftyWhizZ and/or @Naman-sopho since they're digging around in the BT area. Probably an easy fix?