Page 1 of 1
Error in ShowResponses()
Posted: Wed Jan 17, 2018 5:54 am
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
Why might the subtitle be null?
Thanks in advance,
Julen.
Re: Error in ShowResponses()
Posted: Wed Jan 17, 2018 9:26 am
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.
Re: Error in ShowResponses()
Posted: Thu Jan 18, 2018 1:20 am
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.
Re: Error in ShowResponses()
Posted: Thu Jan 18, 2018 1:37 am
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
Thanks,
Julen.
Re: Error in ShowResponses()
Posted: Thu Jan 18, 2018 8:32 am
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.