Black screen on Android after adding Dialogue Manager prefab
Black screen on Android after adding Dialogue Manager prefab
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.
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
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.
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
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
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
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
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:
If you've unpacked the Dialogue System's assembly definition files, use this instead:
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>
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
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:
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
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
I already have a link.xml file in my root assets folder, with these lines of code:
Now, Should I add Your lines to this file?
Code: Select all
<linker>
<assembly fullname="mscorlib">
<namespace fullname="System.Security.Cryptography" preserve="all"/>
<namespace fullname="System.IO.Directory" preserve="all"/>
</assembly>
</linker>
Re: Black screen on Android after adding Dialogue Manager prefab
Yes, please add the lines between <linker> and </linker>.