Closed GameDevPassion closed 2 years ago
Try
npx love.js.cmd -m 30000000 C:\Users\etc. C:\Users\etc.
Thanks for the tip. When I do that, it creates a build.
However when running the html file in browser, it says:
"Exception thrown. See Javascript Console"
When I check the error in the browser console, it reads:
Uncaught ReferenceError: SharedArrayBuffer is not defined
at love.js:9:15375
at applicationLoad (index.html:102:9)
at HTMLScriptElement.onload (index.html:106:87)
Thank you. When uploading on itch, and activating "Shared Array Buffer", as is one of the solutions in your link, I do not get this error message anymore.
However right after it finishes the step 'Downloading data', it gives me a new error message:
Uncaught RangeError: offset is out of bounds
at Uint8Array.set (<anonymous>)
at processPackageData (game.js:231:26)
at putMetadataRequest.onsuccess (game.js:209:11)
How can I address that?
Hi there!
I'm attempting to make a javascript/html build, but I get the following error messages:
First I installed the package in the Windows command box with
'npm -g i love.js'
Now, when running
npx love.js.cmd C:\Users\etc. C:\Users\etc.
(I set two separate folders for input and output)I set 'Pong' as the game name.
I get the error message:
The memory (-m, --memory [bytes]) allocated for your game should at least be as big as your assets. The total size of your assets is 24094718 bytes.
When instead running
npx love.js.cmd -m --memory [24094718] C:\Users\etc. C:\Users\etc.
ornpx love.js.cmd --memory [24094718] C:\Users\etc. C:\Users\etc.
and again setting 'Pong' as the game name, I get the error message:
ENOENT: no such file or directory, stat '-'
I set all audio to static, as far as I know there's no threading in my code. I included the 'push' module in the game, which helps create a virtual screen size.
Why is this happening? Is this a bug?