OnConversationEnd event not being called on android

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
EVG
Posts: 27
Joined: Sun Jul 04, 2021 4:55 pm

OnConversationEnd event not being called on android

Post 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?
EVG
Posts: 27
Joined: Sun Jul 04, 2021 4:55 pm

Re: OnConversationEnd event not being called on android

Post 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.
User avatar
Tony Li
Posts: 22159
Joined: Thu Jul 18, 2013 1:27 pm

Re: OnConversationEnd event not being called on android

Post 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.
EVG
Posts: 27
Joined: Sun Jul 04, 2021 4:55 pm

Re: OnConversationEnd event not being called on android

Post 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
Attachments
scr.png
scr.png (14.02 KiB) Viewed 663 times
User avatar
Tony Li
Posts: 22159
Joined: Thu Jul 18, 2013 1:27 pm

Re: OnConversationEnd event not being called on android

Post 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?
EVG
Posts: 27
Joined: Sun Jul 04, 2021 4:55 pm

Re: OnConversationEnd event not being called on android

Post 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.
User avatar
Tony Li
Posts: 22159
Joined: Thu Jul 18, 2013 1:27 pm

Re: OnConversationEnd event not being called on android

Post by Tony Li »

Great! I'm glad that it sounds like that fixed it.
Post Reply