Page 1 of 3

Visual Novel Add On Issue

Posted: Wed May 27, 2020 6:49 pm
by AlexNerd
Hi, I'm using the Visual Novel add on for the Dialogue System, and I'm having a problem. I was testing it but whenever I hit "Start" to start the game, the Start Menu doesn't deactivate and it blocks the text.

I tried to use

Code: Select all

SetActive(Visual Novel Menu Canvas, Start Panel, false);
SetActive(Visual Novel Menu Canvas, Gameplay Panel, true);
but it didn't work. They're both children of the Visual Novel Menu Canvas but I don't want to just deactivate that because that would also take away the Gameplay Panel. Did I do something wrong?

Re: Visual Novel Add On Issue

Posted: Wed May 27, 2020 7:41 pm
by Tony Li
Hi Alex,

When you click the Start button, are there any errors or warnings in the Console window?

Make sure the Start button's OnClick() event calls two methods on the Visual Novel Menu Canvas GameObject:
  • SaveHelper.RestartGame
  • Menus.HideAllPanels

Re: Visual Novel Add On Issue

Posted: Wed May 27, 2020 10:11 pm
by AlexNerd
It does.
I do have some warnings relating to the text table. I know it's a long shot but could that be the problem?
Capture.JPG
Capture.JPG (33.61 KiB) Viewed 1000 times

Re: Visual Novel Add On Issue

Posted: Thu May 28, 2020 8:19 am
by Tony Li
Hi,

What are the warnings?

If they're yellow warnings, that should be fine for now. If they're red errors, it may indicate that an error is stopping the code, preventing later code form hiding the start menu.

Can you try a new, empty project with only the latest version of the Dialogue System and the visual novel starter framework? If that doesn't work, please let me know what version of Unity you're using.

Re: Visual Novel Add On Issue

Posted: Thu May 28, 2020 1:03 pm
by AlexNerd
Didn't work. I even reimported the scripts to make sure I didn't accidentally change anything. I'm using Unity 2019.3

Re: Visual Novel Add On Issue

Posted: Thu May 28, 2020 2:05 pm
by Tony Li
I just tested it in 2019.3, and the start menu disappears. But there are some things that could use cleaning up to account for differences in 2019.3. I'll update the package and publish the updated version of the Extras page later today.

Re: Visual Novel Add On Issue

Posted: Thu May 28, 2020 2:18 pm
by AlexNerd
Thanks!

Re: Visual Novel Add On Issue

Posted: Thu May 28, 2020 8:55 pm
by Tony Li
I updated the VN starter framework: direct download

It requires Unity 2019.3+.

Re: Visual Novel Add On Issue

Posted: Thu May 28, 2020 9:21 pm
by AlexNerd
Thank you so much!

Re: Visual Novel Add On Issue

Posted: Thu May 28, 2020 9:39 pm
by Tony Li
If you run into any issues, please let me know. I ran basic tests, and they passed.