Page 1 of 1

NullReferenceException: DrawConversationSectionNodeStyle ()

Posted: Mon Jul 10, 2023 8:47 am
by KS_devteam
Hi,

since the latest update we're experiencing a strange bug that appears in all conversations and databases of our game.
Whenever zooming in the conversations editor window, we recieve this Error Message in the console:
NullReferenceException: Object reference not set to an instance of an object
PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow.DrawConversationSectionNodeStyle () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Editor/Dialogue Editor/Nodes/DialogueEditorWindowConversationNodeEditor.cs:173)
PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow.DrawConversationSection () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Editor/Dialogue Editor/DialogueEditorWindowConversationSection.cs:158)
PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow.DrawCurrentSection () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Editor/Dialogue Editor/DialogueEditorWindowMain.cs:465)
PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow.DrawMainBody () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Editor/Dialogue Editor/DialogueEditorWindowMain.cs:430)
PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow.OnGUI () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Editor/Dialogue Editor/DialogueEditorWindowMain.cs:336)
Also arranging the nodes automatically seems to be broken, because this causes extremely wide distances between directly related nodes and shifts every node diagonally over the whole screen. Unfortunately this happens to everyone in our team individually.

We're currently using Unity version 2022.31f1

Thank You! :)

Re: NullReferenceException: DrawConversationSectionNodeStyle ()

Posted: Mon Jul 10, 2023 9:18 am
by Tony Li
Hi,

That NullReferenceException issue is fixed in 2.2.38.2, which should be available today. (2.2.38.1 introduced this error while working around a bug in Unity 2022.3.1.)

The new auto-arrange algorithm can produce arrangements like this with certain conversation trees, but it arranges broad conversation trees more nicely than the original algorithm. In 2.2.38.2, there are now two menu items for vertical arrangement: the current style and the previous style. For conversation trees like this one you can use the previous style to get something more narrow.

Re: NullReferenceException: DrawConversationSectionNodeStyle ()

Posted: Mon Jul 10, 2023 9:53 am
by KS_devteam
Great, thank you for the update!