No indication of Syntax Error in BehaviourTree #5099
Labels
Status: Needs Discussion
Requires help discussing a reported issue or provided PR
Type: Improvement
Request for or addition/enhancement of a feature
Motivation
I feel confused when there is no syntax error shown but the game crashes because of one.
Twice I had a comma after the last child of a selector which gave a NullPointerException.
But it crashed on two different spots in the engine code the first in org/terasology/engine/logic/behavior/DefaultBehaviorTreeRunner.java:37 and the other in org/terasology/engine/logic/behavior/core/SelectorNode.java:23
Proposal
It would be wounderful if there was a indicator to tell you the syntax error like a red mark in the IDE.
Alternatives
A message in the console or a hard crash on behaviour Tree load would be helpful.
The text was updated successfully, but these errors were encountered: