Building with HTML5 and the end product is a red box

http://puu.sh/o5Gtm/305761c664.png

This is what shows up when I play it in chrome or firefox

Sgtfluffybutt,

Could you please explain further about what you’re doing? Are you packaging for HTML5, or are you launching onto a browser? Are there any other errors that occur? Can you reproduce this with a regular template from UE4? Does this happen in 4.11?

Thanks!

Hi ,

I packaged my project in 4.10 using the html5 stuff and then ran it in Chrome and Firefox and neither play my game properly. I’ll try and package one of the templates now and see how that goes. I don’t have 4.11 installed so I can’t try that I’m afraid.

I am using a plugin in my project, does html5 work with plugins?

Thanks

EDIT: I’ve just tested the twin stick template and it worked fine in chrome. I’ve just ran my project and I got this error flash up. Do you know anything about it?

http://puu.sh/o9GgS/b2cad4123d.png

Do you have a link to your project that I can look at? Also, what type of plugin are you using? It’s possible that the plugin is causing the error.

I’m using ['s][1] plugin on the forums. [Here’s a link to my project][2]

(39) 's Extra Blueprint Nodes for You as a Plugin, No C++ Required! - Blueprint - Epic Developer Community Forums!
[2]: https://drive…com/open?id=0B2sRDu_fwaqha0hvQ2hyMk9XdDg

I tested your project along with a newly created First Person Template. First Person started without any trouble, your project on the other hand caused an error as you’ve posted above.

I believe this comes down to 's plugin. You’re going to need to bring this up with since he’s the one who created it and make sure it’s been optimized for HTML5.

Thank you, I should be able to take the plugin out of my project cause I don’t use it anymore as I saved the data it got for me. Do you know if save files work with HTML5?

I looked into this and I could not find any bugs that would state otherwise. If you run into an issue with your save files, please submit a new AnswerHub post.

Thanks! :slight_smile:

Hi ,

I finally took out the the plugin and dealt with the issues with taking it out but now when I come to play the packaged version I get this [error log][1] and this error [through chrome][2]. Have you seen this before?

Starting downloadsStarting download Utility.js.gzStarting download FootballM - Pastebin.com
[2]: http://puu.sh/okgd3/9c64589680.png

Are you using the editor from the Epic Games Launcher? If so, could you go to the Library and then click the down-arrow that’s beside Launch for your version of the engine, then click on options. Make sure that Editor symbols for debugging is included.

Show me what the logs look like once that’s set up, if it wasn’t previously. Thanks! :slight_smile:

I set up the symbols. Here’s the log from the latest build. Starting downloadsStarting download Utility.js.gzStarting download FootballM - Pastebin.com

Thanks for your help so far! I really appreciate it.

Tried this project, and the eval() error is associated with this callstack:

LaunchSetGameName(wchar_t*, FString?&)
FEngineLoop::PreInit(wchar_t*)
FEngineLoop::PreInit(int, wchar_t**, wchar_t*)
HTML5_Init()
main()

and the console error log says

Running…
Fatal error: [File:D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.10\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp] [Line: 297]
Non-agnostic games on cooked platforms require a uproject file be specified.

where there is the code

bool LaunchSetGameName(const TCHAR *InCmdLine, FString& OutGameProjectFilePathUnnormalized)
{

if (FApp::HasGameName())
{
UE_LOG(LogInit, Display, TEXT(“Running engine for game: %s”), FApp::GetGameName());
}
else
{
if (FPlatformProperties::RequiresCookedData())
{
UE_LOG(LogInit, Fatal, TEXT(“Non-agnostic games on cooked platforms require a uproject file be specified.”));
}
else
{
UE_LOG(LogInit, Display, TEXT(“Running engine without a game”));
}
}

}

It looks like the failure here was that FApp::HasGameName() was false, which it should not be for HTML5 exports it seems. Not sure if the plugin played a role in this, or if this was an export issue that it didn’t specify the game to launch, however, in your later console log from a few comments down, I see that you were able to fix this and the game name is properly specified, since there is:

[2016.04.19-22.44.29:985][ 0]LogInit:Display: Running engine for game: FootballManager

Do you have an updated build somewhere with the above fix in place?

Hi, sorry for the delay had assignments in all week. Here’s a [link][1] to the project flies and the html build. Hope this helps

https://drive…com/file/d/0B2sRDu_fwaqhSVVLTUpSTnhxSkE/view?usp=sharing

Hey Sgtfluffybutt,

I tested your project again. There seems to be an issue with 4.10.4 and your project. I think it comes down to the plugin. I ran your project in 4.11.2 and your project worked perfectly. What I did was create a copy of your project for 4.11.2 so you can still go back to 4.10.4 if you really wanted to. I would highly suggest trying that out.

In 4.11, they updated the emscripten to 1.35.0. and also fixed a few bugs, see [here][1].

Good luck!

4.11 Released! - Announcements - Epic Developer Community Forums!

Hey , That’s amazing news! I don’t have 4.11 installed just yet but I will when I need to come to build it. Thanks ever so much for testing my project in it!

You’re welcome, let us know if you have any other troubles.

:slight_smile: