Page 1 of 2
Black screen on Android after adding Dialogue Manager prefab
Posted: Sat Dec 07, 2019 10:51 am
by fanaei
Hi Tony
I'm using Unity 2018.3 and recently get a black screen on scenes that I added Dialogue manager prefab. When I touch the black screen on my android device, game crashes. Even if I de-active the prefab, it gives me black screen.
It just works fine if I delete the Dialogue manager prefab from the scene or if I use development build.
However everything works fine in Editor.
I tested it on Galaxy note 8 and note10.1
--------
Tried to update to latest version and got this error:
Assets\Plugins\Pixel Crushers\Dialogue System\Wrappers\Options\Cinemachine\CinemachineCameraPriorityOnDialogueEvent.cs(16,90): error CS0234: The type or namespace name 'CinemachineCameraPriorityOnDialogueEvent' does not exist in the namespace 'PixelCrushers.DialogueSystem' (are you missing an assembly reference?)
Deleted the file for now! to check if the problem getting solved or not.
Re: Black screen on Android after adding Dialogue Manager prefab
Posted: Sat Dec 07, 2019 2:20 pm
by Tony Li
For the Cinemachine error, select menu item Tools > Pixel Crushers > Dialogue System > Welcome Window.
If you're not using Cinemachine, make sure the "Cinemachine (USE_CINEMACHINE)" checkbox is unticked.
If you're using Cinemachine, then tick the checkbox. Back up your project, then delete the Plugins/Pixel Crushers/Dialogue System folder and the Pixel Crushers/Dialogue System/Third Party Support/Cinemachine Support folder if it exists. Then import the Dialogue System again.
For the black screen issue, let's see if it's the Dialogue System. Please create a new, empty project. Set up a scene according to the
Quick Start tutorial, except set the Dialogue System Trigger to OnStart so the conversation starts immediately. Then build and test it on your Android device.
Re: Black screen on Android after adding Dialogue Manager prefab
Posted: Sun Dec 08, 2019 11:43 am
by fanaei
I tried to build in a new project and I got black screen again! But I found out that if I disable Managed Stripping level, there won't be any black screen. I hope you'll be able to find the reason.
Re: Black screen on Android after adding Dialogue Manager prefab
Posted: Sun Dec 08, 2019 12:29 pm
by Tony Li
The Dialogue System's link.xml file should make it so you don't have to set Managed Stripping Level to Disabled. Is this file present in your project?
Re: Black screen on Android after adding Dialogue Manager prefab
Posted: Sun Dec 08, 2019 12:35 pm
by fanaei
No. I don't have any file with the name "Link.xml" in my assets
Re: Black screen on Android after adding Dialogue Manager prefab
Posted: Sun Dec 08, 2019 12:53 pm
by Tony Li
It should be in Plugins/Pixel Crushers/Dialogue System/Templates, named link.xml
If it's not there, you can create it and add this to it:
Code: Select all
<linker>
<assembly fullname="Assembly-CSharp-firstpass">
<namespace fullname="PixelCrushers" preserve="all"/>
<namespace fullname="PixelCrushers.DialogueSystem" preserve="all"/>
</assembly>
</linker>
If you've unpacked the Dialogue System's assembly definition files, use this instead:
Code: Select all
<linker>
<assembly fullname="PixelCrushers">
<namespace fullname="PixelCrushers" preserve="all"/>
</assembly>
<assembly fullname="DialogueSystem">
<namespace fullname="PixelCrushers.DialogueSystem" preserve="all"/>
</assembly>
</linker>
Re: Black screen on Android after adding Dialogue Manager prefab
Posted: Sun Dec 08, 2019 1:03 pm
by fanaei
Found it in the folder :
Plugins/Pixel Crushers/Dialogue System/Templates/Link
Should I move it to Templates folder?
It's also different from what you wrote:
Code: Select all
<linker>
<assembly fullname="Assembly-CSharp-firstpass">
<namespace fullname="PixelCrushers.DialogueSystem" preserve="all"/>
</assembly>
</linker>
Re: Black screen on Android after adding Dialogue Manager prefab
Posted: Sun Dec 08, 2019 1:27 pm
by Tony Li
Please try the longer version in my post above, and move it to the root Assets folder as a test.
Re: Black screen on Android after adding Dialogue Manager prefab
Posted: Mon Dec 09, 2019 8:58 am
by fanaei
I already have a link.xml file in my root assets folder, with these lines of code:
Code: Select all
<linker>
<assembly fullname="mscorlib">
<namespace fullname="System.Security.Cryptography" preserve="all"/>
<namespace fullname="System.IO.Directory" preserve="all"/>
</assembly>
</linker>
Now, Should I add Your lines to this file?
Re: Black screen on Android after adding Dialogue Manager prefab
Posted: Mon Dec 09, 2019 9:18 am
by Tony Li
Yes, please add the lines between <linker> and </linker>.