Adventure Creator 1.44a Update

Announcements, support questions, and discussion for the Dialogue System.
Rocco
Posts: 41
Joined: Wed Apr 22, 2015 12:13 pm

Adventure Creator 1.44a Update

Post by Rocco »

Hi everyone. This is my first time posting here after using Dialogue System. It's a great product and has really helped us out in the development of our game. However, we were also using Adventure Creator in conjunction with Dialogue System and a recent update (April 21) to AC has caused a bug to appear in Dialogue System.



I managed to track down where the bug is coming from, but I'm not sure if there is a quick fix or if you guys are even aware of it just yet. The details of the bug are below.



Current Error

Assets/Libs/Dialogue System/Third Party Support/Adventure Creator/Scripts/Sequencer Commands/SequencerCommandACSpeech.cs(56,31): error CS0029: Cannot implicitly convert type AC.Speech' tofloat'



The specific line that is throwing this error is the following

Script: SequencerCommandACSpeech

Line: 56



float displayDuration = KickStarter.dialog.StartDialog(speaker, message, lineNumber,

language, isBackground, noAnimation);

Invoke("Stop", displayDuration);







Prior to the the 1.44a update to AC the StartDialog function returned a float value. However, with the most recent update, the StartDialog function now returns Speech. Here is the new function (heavily shortened from the looks of it). Additionally the original file Dialog.cs (this is where StartDialog function resides) was over 900 lines. Now it has been shortened to around 400+.



public Speech StartDialog (Char _speaker, string _text, int lineID, string _language, bool isBackground, bool noAnimation)

{

// Remove speaker's previous line

for (int i=0; i<speechList.Count; i++)

{

if (speechList.GetSpeakingCharacter () == _speaker)

{

EndSpeech (i);

i=0;

}

}



Speech speech = new Speech (_speaker, _text, lineID, _language, isBackground, noAnimation);

speechList.Add (speech);



KickStarter.runtimeVariables.AddToSpeechLog (speech.log);

KickStarter.playerMenus.AssignSpeechToMenu (speech);



if (speech.hasAudio)

{

KickStarter.stateHandler.UpdateAllMaxVolumes ();

}



return speech;

}





Any ideas on some sort of a quick fix or when a new integration update can be expected? Both AC and DS have provided a great platform to build this game and we would love to continue using these tools. With AC's latest update they have fixed a couple key WebGL crashes which we will probably need. Unfortunately, DS is currently not compatible. :(
User avatar
Tony Li
Posts: 22093
Joined: Thu Jul 18, 2013 1:27 pm

Adventure Creator 1.44a Update

Post by Tony Li »

Hi,



You can download the updated support package that's compatible with AC 1.44 right here. It also includes an expanded ACCam() sequencer command.



You can usually find news and links to updated packages on the Late Breaking News page, and you can also download updates from the Pixel Crushers customer download site. If you'd like access, please email your Unity Asset Store invoice number to tony (at) pixelcrushers.com.
Rocco
Posts: 41
Joined: Wed Apr 22, 2015 12:13 pm

Adventure Creator 1.44a Update

Post by Rocco »

Thanks Tony! Looks like that worked. I was also wondering, is Dialogue System compatible with a Unity WebGL build? I attempted a build today and for some reason none of the dialogue shows up like it does in the Editor.



The only thing that actually pops up is the portion of the UI that is meant for the character portrait. I am using one of the built in UI's that came with DS (JRPG with continue).
User avatar
Tony Li
Posts: 22093
Joined: Thu Jul 18, 2013 1:27 pm

Adventure Creator 1.44a Update

Post by Tony Li »

Hi,



I'll double-check a WebGL build today and get back to you!


Rocco
Posts: 41
Joined: Wed Apr 22, 2015 12:13 pm

Adventure Creator 1.44a Update

Post by Rocco »

Thanks a lot Tony. With Chrome's latest update (42.X) they've dropped support for plugins and one of those is Unity's Webplayer. Currently the only way to do that is to go to advanced settings and to enable NPAPI support. However, sounds like in September that will not be available anymore and they will completely phase it out. WebGL is the only way to go so it would be great to see DS support that move! :)
User avatar
Tony Li
Posts: 22093
Joined: Thu Jul 18, 2013 1:27 pm

Adventure Creator 1.44a Update

Post by Tony Li »

Hi,



The Dialogue System supports WebGL already. That said, I do notice an issue with the JRPG UI. I'll check it out before the next release. In the meantime, you might consider switching to Unity UI, which performs better than the legacy GUI. Here are some WebGL builds:



Unity UI: http://pixelcrushers.com/dialogue_syste ... t_unityui/

Legacy GUI: http://pixelcrushers.com/dialogue_syste ... ebgl_test/

JRPG (broken): http://pixelcrushers.com/dialogue_syste ... test_jrpg/



The Legacy GUI and JRPG builds used the "fast build time, no optimization" setting. The JRPG build also exhibits the problem you described, which I'll look into.
Rocco
Posts: 41
Joined: Wed Apr 22, 2015 12:13 pm

Adventure Creator 1.44a Update

Post by Rocco »

Tony, thanks for the clarification.





I have a couple of questions really quick concerning the environment you ran these in. First here is my environment.





OSX Yosemite 10.10.3

Firefox 37.0.2

Chrome 42.0.2311.90 (64-bit)





All the links you provided load just fine in Firefox but in Chrome I am presented with the following error (pasted from the JS console). Note that if you have the JavaScript console OPEN prior to the load completing it works fine in Chrome however if you are just loading the page without any debug tools open, you get the JS Error Popup.





What browsers and version were you using when you tested this?





UnityConfig.js:74 Invoking error handler due to

Uncaught abort() at Error

at jsStackTrace (http://pixelcrushers.com/dialogue_syste ... js:1:19000)

at stackTrace (http://pixelcrushers.com/dialogue_syste ... js:1:19183)

at Object.abort (http://pixelcrushers.com/dialogue_syste ... :106:76729)

at _abort (http://pixelcrushers.com/dialogue_syste ... s:1:220843)

at i3p (http://pixelcrushers.com/dialogue_syste ... :97:578233)

at k2p (http://pixelcrushers.com/dialogue_syste ... :97:544306)

at Oyf (http://pixelcrushers.com/dialogue_syste ... :29:956745)

at eHf (http://pixelcrushers.com/dialogue_syste ... :81:119659)

at gHf (http://pixelcrushers.com/dialogue_syste ... :81:119970)

at Imd (http://pixelcrushers.com/dialogue_syste ... :41:711265)

If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.

2015-04-27 10:12:02.427 /dialogue_system/demos/webgl_test_unityui/Release/featuredemo_webgl_unityui.js:1 Uncaught abort() at Error

at jsStackTrace (http://pixelcrushers.com/dialogue_syste ... js:1:19000)

at stackTrace (http://pixelcrushers.com/dialogue_syste ... js:1:19183)

at Object.abort (http://pixelcrushers.com/dialogue_syste ... :106:76729)

at _abort (http://pixelcrushers.com/dialogue_syste ... s:1:220843)

at i3p (http://pixelcrushers.com/dialogue_syste ... :97:578233)

at k2p (http://pixelcrushers.com/dialogue_syste ... :97:544306)

at Oyf (http://pixelcrushers.com/dialogue_syste ... :29:956745)

at eHf (http://pixelcrushers.com/dialogue_syste ... :81:119659)

at gHf (http://pixelcrushers.com/dialogue_syste ... :81:119970)

at Imd (http://pixelcrushers.com/dialogue_syste ... :41:711265)

If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.
User avatar
Tony Li
Posts: 22093
Joined: Thu Jul 18, 2013 1:27 pm

Adventure Creator 1.44a Update

Post by Tony Li »

I tested with Windows 7 64-bit, Chrome 42.0.2311.90 m. I'll replace the first link with a development build and soft exceptions so we can get good stack traces. I'll also increase the WebGL memory size (which defaults to 256), since there's apparently an open bug report with Chrome 42.x and large projects. Since I didn't prepare any of the assets for the web and just did a default, unoptimized build, the whole build ended up being a ridiculous 240 MB.







It'll take a little time to build. I'll post it and test it in a bunch of browsers on OSX and Windows.
Rocco
Posts: 41
Joined: Wed Apr 22, 2015 12:13 pm

Adventure Creator 1.44a Update

Post by Rocco »

Sounds good Tony. I will most likely see it tomorrow as I am heading out in the next half hour. Thanks a bunch for your help thus far!
User avatar
Tony Li
Posts: 22093
Joined: Thu Jul 18, 2013 1:27 pm

Adventure Creator 1.44a Update

Post by Tony Li »

It's going to take a little experimenting. I built a minimal Dialogue System scene (the Mobile Test scene). It runs fine in Chrome 42 on Windows 7, but it crashes in Chrome 42 on OSX 10.9.5.
Post Reply