Visual Novel Add On Issue

Announcements, support questions, and discussion for the Dialogue System.
AlexNerd
Posts: 39
Joined: Sat Jun 29, 2019 11:46 am

Visual Novel Add On Issue

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

Re: Visual Novel Add On Issue

Post 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
AlexNerd
Posts: 39
Joined: Sat Jun 29, 2019 11:46 am

Re: Visual Novel Add On Issue

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

Re: Visual Novel Add On Issue

Post 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.
AlexNerd
Posts: 39
Joined: Sat Jun 29, 2019 11:46 am

Re: Visual Novel Add On Issue

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

Re: Visual Novel Add On Issue

Post 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.
AlexNerd
Posts: 39
Joined: Sat Jun 29, 2019 11:46 am

Re: Visual Novel Add On Issue

Post by AlexNerd »

Thanks!
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Visual Novel Add On Issue

Post by Tony Li »

I updated the VN starter framework: direct download

It requires Unity 2019.3+.
AlexNerd
Posts: 39
Joined: Sat Jun 29, 2019 11:46 am

Re: Visual Novel Add On Issue

Post by AlexNerd »

Thank you so much!
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Visual Novel Add On Issue

Post by Tony Li »

If you run into any issues, please let me know. I ran basic tests, and they passed.
Post Reply