Skip to content

No indication of Syntax Error in BehaviourTree #5099

Description

@Jacob-Rueckert

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Needs DiscussionRequires help discussing a reported issue or provided PRType: ImprovementRequest for or addition/enhancement of a feature

    Type

    No type

    Projects

    Status
    🚀 Next Up (5.4.0)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions