UnrealEngineHTML5 / Documentation

542 stars 183 forks source link

.html file is only 3KB and doesn't have anything in it. #127

Open W1Nd0W2 opened 2 years ago

W1Nd0W2 commented 2 years ago

So the one .html file included which has a Microsoft Edge icon next to it when opened with notepad says

" <!DOCTYPE html>

HTMLTEST

" When I run the HTML5LaunchHelper and put in http://localhost:8000/"MyProjectname".html the game loads and runs fine in both Edge and Chrome. My issue is I want to deploy this game on a website like Wix or something similar and or my own domain but don't have any viable html code to paste and don't know where to find it or how I might get it to build properly...I am using UE4.23.1 ....Any an all input or help is appreciated I am really hoping to figure this out. Thanks for reading!

ZeusLT commented 2 years ago

It is built properly, you have to host your files and then access the hosted html. You won't need html5 launch helper.

W1Nd0W2 commented 2 years ago

It is built properly, you have to host your files and then access the hosted html. You won't need html5 launch helper.

@ZeusLT How might you recommend going about this? I have tried everything to get it online but am still confused how exactly to go about it... (I've zipped it and tried uploading to certain platforms like itch.io but its too big of file size and the support wont respond to give me more space. So I manually went in an reduced all the texture sizes etc. and now its a reasonable size but still wont work on itch. I know if its working with HTML Launch Helper I should be able to get it up online. I have seen videos where people somehow have the html code for their game and can paste it on a wix site etc. or their domain but I am not sure how I might go about hosting it and accessing the hosted html. Sorry for all the questions I feel like I am close to getting my game up so that it is accessible. I am currently working on a custom game project for this non profit that helps kids with pediatric cancer/ it is similar to Make-A-Wish and need a way to get it up online.

W1Nd0W2 commented 2 years ago

I tried using this random site the other day that a Youtube video recommended called like 000webhost or something and even after zipping my files etc. it still said there was a 150mb limit and even a 256mb limit with the premium version which still didn't work even after zipping my files and getting it down to about 240mb total.

W1Nd0W2 commented 2 years ago

I also bought a godaddy domain which allows me to add some html code but I can't find any in my project files and or am unsure where to look...

W1Nd0W2 commented 2 years ago

Anyways I would appreciate any and all help on how to figure this out.

W1Nd0W2 commented 2 years ago

I've also seen people do it on Wordpress with a Plugin but you have upgrade your account to use plugins and its kind of expensive. Looking for something more affordable or free if possible.

ZeusLT commented 2 years ago

You need to access your websites storage and upload your game folder there, not zipped. If you can't do that for one reason or another you can use amazon web services s3 storage.

I myself been using wordpress and aws s3, both worked. In the end I stayed on aws because it was faster and I would just embed it into my wordpress website, but then there will be problems with cross origin header settings and such which I barely understand. I think I can link a youtube video you can follow: https://www.youtube.com/watch?v=NscuDkZw4RA I haven't watched it, but skimmed through and around minute 16 he starts with AWS, that is what you need.

For wordpress or any other website really* you need to use something like FileZilla and you need log in details to your websites FTP server. There you can upload your files to domain/yourdomain/public_hmtl/Yourgame/ and the address to your game will be www.yourdomain.com/Yourgame or www.yourdomain.com/Yourgame/index.html or whatever.html you called it.

W1Nd0W2 commented 2 years ago

Is there a link to video you know of on how to use Filezilla?