I just finished to pack a game made in Unreal4 for HTML5. I obtained several gziped files that I need to upload to make it work on my website so I can test the project. The thing is, I'm new with this type of content. I've searched through the engine documentation but didn't found nothing about how to upload and use the files on a website.
Does anyone have any tip or any kind of material that I can read about it to start the implementation?
Thanks in advance for the help.
Files generated by the engine:
***** UPDATE 08/10/2017 *****
So, I'm implementing this on Amazon S3 with CloudFront and this is what I found out that is needed to make it work:
1 - All the gziped files generated must be renamed if you're going to use Amazon S3. What you need to do is remove the "gz" part of the name.
2 - In the .html file generated by Unreal, there's a line that says:
return serveGzipped ? (name + 'gz') : name;
that must be editted to:
return serveGzipped ? (name) : name;
3 - Rename the .html file to index.html or create a new index.html file that redirects to the .html generated by Unreal.
4 - After you upload all your files to Amazon as a Static Website, you'll need to open your Amazon S3 folder that contains the files (it's called Bucket on Amazon) and add this information to the metadata of each gziped file:
'content-encoding' : 'gzip'
This will make Amazon S3 recognize the file is gziped when needed.
5 - Grant public access for reading operations to all the files.
6 - Grant public access for reading operations and to "list objects" for the bucket. Also, implement this policy for the bucket:
"Sid": "PublicReadForGetBucketObjects",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
All these steps will make Amazon recognize gziped files and serve them when needed. This also solve the problems with error 403 and 404.
But still, after all this, I'm facing this error:
This happens when I use the new Wasm file generation for Unreal.
If I use the old Asm file generation, I receive no error message, but the screen keeps black:
Does anyone knows how to solve any of these issues (the wasm clone error or the asm black screen)?