Error in ShowResponses()

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
patxiku
Posts: 14
Joined: Tue Nov 07, 2017 6:46 am

Error in ShowResponses()

Post by patxiku »

I'm getting an error in the mentioned function since the subtitle is null. (Object reference not set to an instance of an object) I've checked that subtitle is indeed null with the debugger.

It keeps going after, but I don't like to have any error :lol:

Why might the subtitle be null?

Thanks in advance,
Julen.
User avatar
Tony Li
Posts: 22062
Joined: Thu Jul 18, 2013 1:27 pm

Re: Error in ShowResponses()

Post by Tony Li »

Hi Julen,

Does this happen all the time or only with a specific conversation?

If it's only a specific conversation, at what point in the conversation does it happen?

If it happens at the start of the conversation, make sure the <START> node's Dialogue Text and Menu Text are blank.

There are also updated UI scripts in this post. There's a remote possibility that they might help. Back up your project before importing the package, just to be safe. These scripts will be in version 1.7.7.2.

Please feel free to send a reproduction scene to tony (at) pixelcrushers.com. I'll be happy to take a look.
patxiku
Posts: 14
Joined: Tue Nov 07, 2017 6:46 am

Re: Error in ShowResponses()

Post by patxiku »

Hi Tony, Thanks for answering.

I've tested with multiple conversations, it always gives the same error. Everytime a response menu is in invoked it gives the same error.

I've installed the 1.7.7.2 patch and the error persists.

Responses have no sequence nor condition, <START> node is as it should be.

More information:
Conversations are called with the Adventure Creator custom action

Sadly I'm not able to send you the scene.

Thank you,

Julen.
patxiku
Posts: 14
Joined: Tue Nov 07, 2017 6:46 am

Re: Error in ShowResponses()

Post by patxiku »

Problem solved,
Silly me, response buttons had no button component, I've added a button component, linked it into the UI Response Button scripts and works like a charm.

The subtitle error was misleading :lol:

Thanks,

Julen.
User avatar
Tony Li
Posts: 22062
Joined: Thu Jul 18, 2013 1:27 pm

Re: Error in ShowResponses()

Post by Tony Li »

I'm glad you got the problem solved! In the next release, I'll make sure it logs a warning if a response button doesn't have a UI Button component.
Post Reply