UnrealEngineHTML5 / Documentation

542 stars 183 forks source link

Difficulties when packing to HTML5 #150

Open ikarasdream opened 1 year ago

ikarasdream commented 1 year ago

Good day,

in my company we are trying to create a web tool through Unreal. Given the lack of support from 4.23, we are testing in 4.24 (since this version has a GitHub where the necessary tools for the pack to web are offered, and is the one in which the Variant Sets are integrated).

After successfully following the instructions and managing to make several successful tests (we managed to get the first and third person templates to the web without any problem), we have tried to pack a first phase of our project into the web, just to see if it works. Result? An error, and one that we don’t even know where to begin with.

Error

Browser: Chrome

Any help? It’s hard to understand why the first two projects in TP and FP worked, but then when testing ours, that is the result. We have also tried to build the architectural visualisation template into the web, just for testing, and we get exactly the same error.

Could it have something to do with the size (500 Mb), or with the camera sequences…?

Any help or guidance, no matter how small, is appreciated.

Any aditional info needed, just ask.

SpeculativeCoder commented 1 year ago

I think 4.23 was the last official version with HTML5 support - handed over to community for 4.24 onward.

Could be worth looking at the browser log (F12) to see if there are any other messages before / around this error to see if there is any additional context about what is going wrong and causing this error (maybe some other warnings prior to this error?)

If you have the working build (e.g. the ThirdPerson / FirstPerson) and a non-working build, you could try chasing down what functionality in your non-working build that is triggering the error. Possible ways:

Likely this would involve a lot of trial and error though (very time consuming).

SpeculativeCoder commented 1 year ago

Also may worth giving singlethreaded mode a try (the default on 4.23/4.24 was multithreaded I think) unsure if it will help things but maybe worth a shot: Project Settings -> HTML5 -> Emscripten -> Multithreading support - set to false for singlethreaded mode

ikarasdream commented 1 year ago

Good morning again,

thanks once one more for your advice. In the end we solved this problem by changing the AA (we removed the TAA). But it didn't matter to fix it because of the button issue I mentioned in the other post. Without functional buttons it didn't really change anything.

And yep, we also considered the multitrheading issue, since comparing the .html of 4.23 (effectively the last one supported by Epic and fully functional) and 4.24, it was one of the few differences. But when disabling it, it gave us an error when packing.

But that said, the above matters little, because we finally tested your version, the 4.27 and there everything works like a charm (at least for now, after so many problems one never knows).

So thank you very much :D

SpeculativeCoder commented 1 year ago

Nice 👍 glad you got it working.

wapollo86 commented 5 months ago

I have gained something