Thanks.
Right. We removed it yesterday, actually, but I just didn't regenerate the lovejs package since then. I wish I could automate that, by the way, but I saw it's not as simple as simply replacing the game.data file.
Thanks.
Right. We removed it yesterday, actually, but I just didn't regenerate the lovejs package since then. I wish I could automate that, by the way, but I saw it's not as simple as simply replacing the game.data file.
Have not tested this but it looks like all of the files are the same except for index.html
Thanks!Sheepolution wrote: ↑Tue Oct 20, 2020 5:04 pm Awesome work David! Love how easy it is to create a port, with a single command!
Sheepolution wrote: ↑Tue Oct 20, 2020 5:04 pm I was able to successfully port some games first try, but for others, I'm getting these errors:
love.js:9 wasm streaming compile failed: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.
(anonymous) @ love.js:9
love.js:9 falling back to ArrayBuffer instantiation
(anonymous) @ love.js:9
game.js:260 loading game.data from remote
game.js:231 Uncaught RangeError: offset is out of bounds
at Uint8Array.set (<anonymous>)
at processPackageData (game.js:231)
at IDBRequest.putMetadataRequest.onsuccess (game.js:209)
Any idea how this could happen? If the error is new to you I can try to strip down my games and figure out why it works for some but not for other games.
I'm experiencing this right now, and I'm rebuilding the whole thing. Sometimes when I refresh the page, or when I did a whole new build, the game won't load and it will be stuck on 'game.js:260 loading game.data from cache'. I tried changing the javascript so that it never uses cache, but then it gets stuck on 'game.js:260 loading game.data from remote' :')Stifu wrote: ↑Thu Sep 24, 2020 12:32 pm I'm not sure this is right. I noticed the game.js file is different, for example, as at the end of the file it specifies the size of the game, and also attaches an id to the bundle (which might be used as the client cache key, I'm not sure). By simply replacing the game.data file, the behavior I got was that browsers that had already accessed the previous version would be stuck on that old version, even when trying to Ctrl+F5 my way through.
Cool, I'll try this out.Davidobot wrote: ↑Wed Oct 21, 2020 12:49 pm I think I've seen this error before, but I don't exactly remember how/why... Are you using Chrome or Firefox? I have a gut feeling it may be down to the browser and how they treat MIME types - https://trac.nginx.org/nginx/ticket/1606
Something to try though - try increasing the memory when compiling? As in, using the -m flag. It might be that there is some funky stuff going on with a large amount of memory being required at start up.
Ahh, right. You should clear your local data in its entirety. So in Chrome that would be Inspect > Application > Clear Site DataSheepolution wrote: ↑Wed Oct 21, 2020 1:19 pm I'm experiencing this right now, and I'm rebuilding the whole thing. Sometimes when I refresh the page, or when I did a whole new build, the game won't load and it will be stuck on 'game.js:260 loading game.data from cache'. I tried changing the javascript so that it never uses cache, but then it gets stuck on 'game.js:260 loading game.data from remote' :')
Strange stuff indeed. I don't have too much time to work on this right now. If you could document bugs/findings in the GitHub Issues that would be fab) easiest way for me to keep track of things.Sheepolution wrote: ↑Wed Oct 21, 2020 1:19 pm Also, I have more info on the bug I was talking about earlier (see above). So the game was actually loading, but sometimes when reloading the page it changes the window's size to its minwidth and minheight instead of the set width and height in the config. Weird stuff.
Done!Davidobot wrote: ↑Wed Oct 21, 2020 3:11 pm Strange stuff indeed. I don't have too much time to work on this right now. If you could document bugs/findings in the GitHub Issues that would be fab) easiest way for me to keep track of things.
Users browsing this forum: No registered users and 3 guests