# Fixes to play HTML5 builds on Itch.io

**URL:** <https://forums.unrealengine.com/t/fixes-to-play-html5-builds-on-itch-io/354708>\
**Category:** Platform & Builds\
**Tags:** HTML5, unreal-engine, Shipping, fix, keyboard, question\
**Created:** [April 19, 2016, 2:08pm UTC](https://forums.unrealengine.com/t/fixes-to-play-html5-builds-on-itch-io/354708 "2016-04-19T14:08:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kafumanto](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kafumanto/32/1194651_2.png) [@Kafumanto](https://forums.unrealengine.com/u/Kafumanto)\
**Post date:** [April 19, 2016, 2:08pm UTC](https://forums.unrealengine.com/t/fixes-to-play-html5-builds-on-itch-io/354708/1 "2016-04-19T14:08:15Z")

</div>

.HTML file produced by the HTML5 build process doesn’t works when published on [Itch.io](http://Itch.io). The fixes are simple:

- as [Itch.io](http://Itch.io) content is distributed via HTTPS, replace `http://` occurences with `https://` (they are used to download common files from CDNs - in the line 7,8 and 9) [maybe also the argument in `-filehostIp=` near line 205?].

- to fix the loose of keyboard inputs (I think due iframe embedding), immediately below \<script …\> (line 126) add the following 2 instructions to force the focus to the game window:

See also [Upload HTML5 game to Itch.io - Platform & Builds - Unreal Engine Forums](https://forums.unrealengine.com/showthread.php?102040-Upload-HTML5-game-to-Itch-io&p=515594&viewfull=1#post515594)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [April 25, 2016, 4:13pm UTC](https://forums.unrealengine.com/t/fixes-to-play-html5-builds-on-itch-io/354708/2 "2016-04-25T16:13:39Z")

</div>

Hey Kafu,

I have tested this on [itch.io](http://itch.io) and have entered report UE-29886. Once our Developers have reviewed the issue, I will provide you updates with any fixes or suggestions provided.

Thank you!

---

<div class="post-metadata">

**Author:** ![Kafumanto](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kafumanto/32/1194651_2.png) [@Kafumanto](https://forums.unrealengine.com/u/Kafumanto)\
**Post date:** [April 26, 2016, 12:23pm UTC](https://forums.unrealengine.com/t/fixes-to-play-html5-builds-on-itch-io/354708/3 "2016-04-26T12:23:45Z")

</div>

Hi , thanks for the follow-up! I saw the post was not complete (maybe some formatting character cropped the original text). I think to have fixed it, completing the instructions for the second fix too.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [April 27, 2016, 2:51pm UTC](https://forums.unrealengine.com/t/fixes-to-play-html5-builds-on-itch-io/354708/4 "2016-04-27T14:51:58Z")

</div>

Kafu,

Could you please explain what you’ve changed in order to get it to work? I have entered the bug and the developers are looking into why it wasn’t working with what you had provided to us.

Thanks! 🙂

---

<div class="post-metadata">

**Author:** ![Kafumanto](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kafumanto/32/1194651_2.png) [@Kafumanto](https://forums.unrealengine.com/u/Kafumanto)\
**Post date:** [April 27, 2016, 3:24pm UTC](https://forums.unrealengine.com/t/fixes-to-play-html5-builds-on-itch-io/354708/5 "2016-04-27T15:24:48Z")

</div>

Hi , sure. Attached you find the patch file with the reported fixes.[link text][1]

[88629-html5.patch.txt](https://forums.unrealengine.com/uploads/short-url/cfw94bRhgxYXG83G60og7NOeP7H.txt) (1.09 KB)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [June 3, 2016, 2:27pm UTC](https://forums.unrealengine.com/t/fixes-to-play-html5-builds-on-itch-io/354708/6 "2016-06-03T14:27:29Z")

</div>

Kafu,

When you upload your project as a zip file, it’ll load without any trouble. Do not try to use winrar as it does not work the same as zipping does. UE-29886 has been closed out.

Thanks!

---

<div class="post-metadata">

**Author:** ![Kafumanto](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kafumanto/32/1194651_2.png) [@Kafumanto](https://forums.unrealengine.com/u/Kafumanto)\
**Post date:** [June 3, 2016, 3:51pm UTC](https://forums.unrealengine.com/t/fixes-to-play-html5-builds-on-itch-io/354708/7 "2016-06-03T15:51:19Z")

</div>

Hi , I don’t understand your comment: I never used WinRar, always uploaded ordinary Zip files, without the patch the release build don’t work on [Itch.io](http://Itch.io) (it uploads correctly on [Itch.io](http://Itch.io), but it can’t _run_ correctly).

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [June 7, 2016, 9:31pm UTC](https://forums.unrealengine.com/t/fixes-to-play-html5-builds-on-itch-io/354708/8 "2016-06-07T21:31:38Z")

</div>

Can you please explain how it’s not running correctly? We uploaded zip files ourselves and never ran into any trouble. The only time we ran into trouble was uploading without a zip and also using rar to zip the project up with.

What files are you including in your zip?

Thanks!
