0 votes

I recently tried to export my game to html5, since the game file is too big to send around on discord. When I first tried it with file://, it did not work (Failed loading file 'projectname.wasm': Not Found), I then heard that it had to be on a server, so I tried to put it on my website server (note this is a free byethost website), but I still got the error, I also tried enabling and disabling Runnable and Debug. The Wasm, HTML, JS, and PNG files are all there too.

NOTE: I also tried Firefox.

asked Aug 13 in Engine by PixelatedIvan (12 points)

I recently tried to export my game to html5, since the game file is too big to send around on discord.

If all you need is sending your project over Discord, you can use an ephemeral file sharing service such as transfer.sh which allows up to 10 GB of file uploads stored for 14 days. You could even look at Instant.io for direct peer-to-peer transfers (not going through an intermediate server).

2 Answers

0 votes

Same thing for me. So I modified the index.js file and changed the basePath since I put the export files into a sub directory. But now I get

ERROR: Failed loading file 'index.pck': Not Found

But that file is also in the same folder on my web server.

answered 2 days ago by DigitalMan (14 points)

According to A2 Hosting you can't just throw the web assembly files into a folder of a .net core web site and have it work. Is not compatible. I'm going to research other solutions.

0 votes

If you use IIS on windows, add MIME type in IIS config
.wasm application/wasm
.pck application/pck
This will work~

answered 5 hours ago by kiroslee (14 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.