Page 1 of 1
OnConversationEnd event not being called on android
Posted: Tue Aug 03, 2021 11:37 am
by EVG
Hello. I'm trying to use the events of the dialogue system, everything works well in the editor, but after compilation and testing on the android phone, the OnConversationEnd event is not called. In this case, the OnConversationStart event is called normally. What could be the reason?
Re: OnConversationEnd event not being called on android
Posted: Tue Aug 03, 2021 11:46 am
by EVG
At the same time, when I finish the dialog, the UI of the dialog system does not disappear on the android. But in the editor, everything works well and without any problems.
Re: OnConversationEnd event not being called on android
Posted: Tue Aug 03, 2021 1:24 pm
by Tony Li
Hi,
Try playing in the editor's play mode from the first scene in build settings.
If it doesn't work, check the settings on the first Dialogue Manager that appears when you play through from the first scene.
If it does work, make a Development Build so you can get logs from the Android build.
Re: OnConversationEnd event not being called on android
Posted: Tue Aug 03, 2021 1:40 pm
by EVG
I tried to boot from the first scene in the build, there is no difference.
Also, if this is important, the usual end of the dialog normally raises the OnConversationEnd event, but elsewhere, with the script, the event is not called. Script: GiveQuest("Elf", "QuestKill10SnowmenInTime");
I use the dialogue system in conjunction with the quest machine. In this case, the quest itself starts normally, the OnConversationEnd event is not called
Re: OnConversationEnd event not being called on android
Posted: Tue Aug 03, 2021 2:00 pm
by Tony Li
Hi,
EVG wrote: ↑Tue Aug 03, 2021 1:40 pmAlso, if this is important, the usual end of the dialog normally raises the OnConversationEnd event, but elsewhere, with the script, the event is not called. Script: GiveQuest("Elf", "QuestKill10SnowmenInTime");
I don't understand. Does this mean GiveQuest() is called, or is not called?
EVG wrote: ↑Tue Aug 03, 2021 1:40 pmI use the dialogue system in conjunction with the quest machine. In this case, the quest itself starts normally, the OnConversationEnd event is not called
What starts the quest? The GiveQuest() call in the Script field? Or something else?
Where is your OnConversationEnd event? Are you talking about the Dialogue System Events component? If so, what GameObject is it on?
After testing the Development Build and reviewing the logs from the build, please let me know if there are any error or warning messages.
Then temporarily set the Dialogue Manager's Other Settings > Debug Level to Info. When the conversation starts, it will log something like this to the Console window:
Dialogue System: Starting conversation 'XXX' with actor=AAA and conversation=BBB
Is the OnConversationEnd event on the GameObjects XXX, AAA, or BBB?
Re: OnConversationEnd event not being called on android
Posted: Sat Aug 07, 2021 9:22 am
by EVG
Also, some other scripts did not work correctly. I do not know whether it is related or not, but most likely the reason was in Firebase, or rather, that I did not copy the GoogleService-Info.plist and google-services.json files into my project. There were no problems after copying.
Re: OnConversationEnd event not being called on android
Posted: Sat Aug 07, 2021 9:58 am
by Tony Li
Great! I'm glad that it sounds like that fixed it.