Guest

09-16-2015, 02:40 AM

Hi brg,

I don't think this is possible right now. But it should be just a little change to the engine, I can do that. It will add the name as a CSS class so that you can style the textbox differently by character name. I'll notify you when you can find it in the GitHub develop branch.

Guest

09-16-2015, 06:32 AM

Hi C7N,

Thank you so much

Guest

09-16-2015, 10:52 AM

Hi again brg,

I have implemented that feature now. You can grab it from GitHub and tell me if this is what you need.

When a character with a display name is speaking, the textbox will have a "wse_character_[characterId]" CSS class. The character ID is the name by which the character is referenced in the line command, not the display name. If a character has no display name a "wse_no_character" CSS class is added to the textbox.

I notice you're now using a MO5 datasheet, so getting this sample project to run should be my priority; If future WSE releases will use this method.

Guest

09-17-2015, 12:56 AM

Weird, I don't get this error. Did you change something in the index.html file?

These errors basically mean that when the game starts the game.xml file hasn't been loaded. They occur in the .init() method of Game, but that is usually only called <i>after</i> the game file has been loaded.

Guest

Update:
Using Dropbox as a webserver the sample Visual Novel loads just fine. However, with Dropbox file synchronization is slower and less reliable than local testing.

We normally used Http File Server (HFS) http://www.rejetto.com/hfs/ with Web Story Engine for years. Its very reliable and the speed is great since it is our local machines. So the problem is HFS cannot run the code without getting the line error. I found out more useful information about the error location.

I'm not sure what problem HFS is detecting that Dropbox and your webserver is bypassing. I'll continue to do research. But it seems that ws is never populated and that is the source of all the problems. I noticed the old WSE code uses "out.Game" to define several functions and the new WSE code uses just "Game" is used in the old code.