Page 1 of 1

'ChatOutputProcesser' has been destroyed but you are still trying to access it.’

Posted: Sun Mar 26, 2023 6:15 am
by GameDev273
Newb here… challenged by the following error.

‘MissingReferenceException: The object of type 'ChatOutputProcesser' has been destroyed but you are still trying to access it.’
In the scene the dialogue is a player and one NPC.

I am using Dialogue System v2.2.34, LivelyChatBubbles, Unity 2021.3.7f1
Advice on the web is to find what is null, why it is null and fix it, but the error seems to refer to this script LivelyBubblesChatOuputProcessor which is not mine.

The individual scenes (work ok), but when I put them together I get the error, which then stops the dialogue from working.
Also, on investigation (at runtime) I find that cloned ‘ChatBubble_CharacterName’ has 15 Chat Output Processor (script) components attached to it, which I didn’t attach.

A ‘clean’ project using a different previously created dialogue system database (i.e. TestDB_New), still makes reference to the Chat Output Processor (script) components related to a different dialogue system database (i.e. TestDB_Previous).
Any help most appreciated.

Re: 'ChatOutputProcesser' has been destroyed but you are still trying to access it.’

Posted: Sun Mar 26, 2023 3:02 pm
by Tony Li
Hi,

If possible, make sure the characters and their LCB canvas only exist in the current scene. That is, they're not children of Don't Destroy On Load objects such as the Dialogue Manager. Take a look at the integration's included example scene. The characters are grouped under a GameObject named "Avatars", and their Lively Chat Bubble Subtitle Panel components point to a Canvas that's not part of the Dialogue Manager.

Re: 'ChatOutputProcesser' has been destroyed but you are still trying to access it.’

Posted: Mon Mar 27, 2023 1:38 am
by GameDev273
OK thanks very much for your response,
I'll have a look at the respective setups (Example and mine).

Re: 'ChatOutputProcesser' has been destroyed but you are still trying to access it.’

Posted: Tue Mar 28, 2023 12:03 pm
by GameDev273
Thanks Tony,
just want to confirm for anyone else with the same issue, that Tony's advice worked in my case.

I simply put a specific canvas 'BubbleCanvas' high up in the hierarchy and referenced the Lively Chat Subtitle Panel canvas field to it.

Similar to the example integration setup in the Pixel Crushers - Lively Chat Bubbles Example


Thanks again.

Re: 'ChatOutputProcesser' has been destroyed but you are still trying to access it.’

Posted: Tue Mar 28, 2023 1:24 pm
by Tony Li
Glad to help!