Black screen on Android after adding Dialogue Manager prefab

Announcements, support questions, and discussion for the Dialogue System.
fanaei
Posts: 73
Joined: Wed Aug 15, 2018 10:38 am

Black screen on Android after adding Dialogue Manager prefab

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

Re: Black screen on Android after adding Dialogue Manager prefab

Post 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.
fanaei
Posts: 73
Joined: Wed Aug 15, 2018 10:38 am

Re: Black screen on Android after adding Dialogue Manager prefab

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

Re: Black screen on Android after adding Dialogue Manager prefab

Post 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?
fanaei
Posts: 73
Joined: Wed Aug 15, 2018 10:38 am

Re: Black screen on Android after adding Dialogue Manager prefab

Post by fanaei »

No. I don't have any file with the name "Link.xml" in my assets
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Black screen on Android after adding Dialogue Manager prefab

Post 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>
fanaei
Posts: 73
Joined: Wed Aug 15, 2018 10:38 am

Re: Black screen on Android after adding Dialogue Manager prefab

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

Re: Black screen on Android after adding Dialogue Manager prefab

Post by Tony Li »

Please try the longer version in my post above, and move it to the root Assets folder as a test.
fanaei
Posts: 73
Joined: Wed Aug 15, 2018 10:38 am

Re: Black screen on Android after adding Dialogue Manager prefab

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

Re: Black screen on Android after adding Dialogue Manager prefab

Post by Tony Li »

Yes, please add the lines between <linker> and </linker>.
Post Reply