{"author_link":"\/users\/pov","author_name":"PoV","author_uid":"pov","comments":[],"epoch":1664845245,"event":"LD51","format":"md","ldjam_node_id":307894,"likes":15,"metadata":{"p_key":"168320","p_author":"PoV","p_authorkey":"1000011","p_urlkey":"396077","p_title":"Unity HTML5 games work again. How to fix your 404","p_cat":"LDJam ","p_event":"LD51","p_time":"1664845245","p_likes":"15","p_comments":"0","p_status":"WAYBACK","us_key":"1000011","us_name":"PoV","us_username":"pov","event_start":"1664496000","event_key":"114","event_name":"Ludum Dare 51"},"node":{"_collation":{"body_sanitizer":"TextUtils::SanitizeHTML via existing importer","event":"LD51","removed_author":false},"_superparent":296586,"_trust":1,"author":11,"body":"![unitygl.png](\/\/\/raw\/b\/z\/51b76.png)\n\nMy apologies for the hiccup! Embedded Unity games were working earlier today, but we had to make a fix that broke them for a few hours. If your game previously worked, it should now work again.\n\nIf you deleted your game and need to re-upload, you can use the edit button in the bottom right corner of the game page.\n\n\n## 404: how to fix \n\n![404guide.png](\/\/\/raw\/b\/z\/51bbb.png)\n\nWe've heard that other websites are smarter about finding the `index.html` file. We'll fix that for next time, but today we're expecting to find it in the root or \"top-most\" folder of your `.zip`. We've replaced the unhelpful \"blank white screen\" with the page above. If you see this, if you recreate your `.zip` and re-upload, and it should work.\n\n```python\n# BrokenGame.zip\n\/MyGame\/index.html\n\/MyGame\/game.js\n\/MyGame\/game.wasm\n\/MyGame\/assets\/player.png\n```\n\n```python\n# WorkingGame.zip \n\/index.html\n\/game.js\n\/game.wasm\n\/assets\/player.png\n```\n\n## Godot and libGDX\nThe embedding guide has been updated with a pair of workarounds for Godot and libGDX games.\n\nhttps:\/\/ludumdare.com\/resources\/guides\/embedding\/\n\nGodot checks for `serviceWorker in Navigator` and libGDX tries to read `document.compatMode`. With sandboxing enabled, this seems to cause problems. Editing the `.js` file, and replacing these should resolve the startup problems. See the guide for more details.","comments":3,"comments-timestamp":"2022-10-04T08:06:53Z","created":"2022-10-04T00:38:54Z","files":[],"files-timestamp":0,"id":307894,"love":15,"love-timestamp":"2022-10-21T22:01:31Z","meta":[],"modified":"2022-10-21T22:01:31Z","name":"Unity HTML5 games work again. How to fix your 404","node-timestamp":"2022-10-04T01:07:07Z","parent":296587,"parents":[1,5,9,296586,296587],"path":"\/events\/ludum-dare\/51\/paid-vacation\/unity-html5-games-work-again-how-to-fix-your-404","published":"2022-10-04T01:00:45Z","scope":"public","slug":"unity-html5-games-work-again-how-to-fix-your-404","subsubtype":"","subtype":"","type":"post","version":955928},"node_metadata":{"n_key":"307894","n_urlkey":"396077","n_parent":"296587","n_path":"\/events\/ludum-dare\/51\/paid-vacation\/unity-html5-games-work-again-how-to-fix-your-404","n_slug":"unity-html5-games-work-again-how","n_type":"post","n_subtype":"","n_subsubtype":"","n_author":"11","n_created":"1664843934","n_modified":"1666389691","n_version":"955928","n_status":"WAYBACK"},"source_url":"https:\/\/ldjam.com\/events\/ludum-dare\/51\/paid-vacation\/unity-html5-games-work-again-how-to-fix-your-404","text":"![unitygl.png](\/\/\/raw\/b\/z\/51b76.png)\n\nMy apologies for the hiccup! Embedded Unity games were working earlier today, but we had to make a fix that broke them for a few hours. If your game previously worked, it should now work again.\n\nIf you deleted your game and need to re-upload, you can use the edit button in the bottom right corner of the game page.\n\n\n## 404: how to fix \n\n![404guide.png](\/\/\/raw\/b\/z\/51bbb.png)\n\nWe've heard that other websites are smarter about finding the `index.html` file. We'll fix that for next time, but today we're expecting to find it in the root or \"top-most\" folder of your `.zip`. We've replaced the unhelpful \"blank white screen\" with the page above. If you see this, if you recreate your `.zip` and re-upload, and it should work.\n\n```python\n# BrokenGame.zip\n\/MyGame\/index.html\n\/MyGame\/game.js\n\/MyGame\/game.wasm\n\/MyGame\/assets\/player.png\n```\n\n```python\n# WorkingGame.zip \n\/index.html\n\/game.js\n\/game.wasm\n\/assets\/player.png\n```\n\n## Godot and libGDX\nThe embedding guide has been updated with a pair of workarounds for Godot and libGDX games.\n\nhttps:\/\/ludumdare.com\/resources\/guides\/embedding\/\n\nGodot checks for `serviceWorker in Navigator` and libGDX tries to read `document.compatMode`. With sandboxing enabled, this seems to cause problems. Editing the `.js` file, and replacing these should resolve the startup problems. See the guide for more details.","title":"Unity HTML5 games work again. How to fix your 404","wayback_source":[]}