EuphoricPenguin

Results 36 comments of EuphoricPenguin

Please do post an update on this when you have some time. It seems essential to include, especially if the packaged software is re-distributed by someone else.

Checked what I think was the docs, apparently, it is imported with a module require. I'm installing the current version of Node (12.1.0) right now. IDK if you have to...

Yeah, the latest version of Node is running fine without issues. I didn't even have to use the flag, but I did call in `var worker = require("worker_threads");`.

Oh, @torch2424 , quick thing. It's saying all of the functions aren't functions. ```C:\Users\Euphoric\Documents\wasmboytesting\index.js:5 var screen = WasmBoy.getCanvas(); ^ TypeError: WasmBoy.getCanvas is not a function at Object. (C:\Users\Euphoric\Documents\wasmboytesting\index.js:5:22) at Module._compile...

``` C:\Users\Euphoric\Documents\wasmboytesting>node index.js WasmBoy is configured! Error Configuring WasmBoy... (node:2616) UnhandledPromiseRejectionWarning: ReferenceError: fetch is not defined at fetchROMAsByteArrayTask (C:\Users\Euphoric\Documents\wasmboytesting\node_modules\wasmboy\dist\wasmboy.wasm.cjs.js:2418:19) at fetchROMAsByteArray (C:\Users\Euphoric\Documents\wasmboytesting\node_modules\wasmboy\dist\wasmboy.wasm.cjs.js:2445:10) at loadROMAndConfigTask (C:\Users\Euphoric\Documents\wasmboytesting\node_modules\wasmboy\dist\wasmboy.wasm.cjs.js:3611:34) at loadROMTask (C:\Users\Euphoric\Documents\wasmboytesting\node_modules\wasmboy\dist\wasmboy.wasm.cjs.js:3650:13) (node:2616) UnhandledPromiseRejectionWarning:...

```D:\Documents\jsgbc>npm i wasmboy npm ERR! code ENOGIT npm ERR! Error while executing: npm ERR! undefined ls-remote -h -t https://github.com/torch2424/audiobuffer-to-wav.git npm ERR! npm ERR! undefined npm ERR! No git binary found...

Yeah, sounds right. Probably need the latest version of Node too...

``` D:\Documents\dpptwo\colorsupport>node index.js WasmBoy is configured! Error Configuring WasmBoy... (node:6356) UnhandledPromiseRejectionWarning: ReferenceError: fetch is not defined at fetchROMAsByteArrayTask (D:\Documents\dpptwo\colorsupport\node_modules\wasmboy\dist\wasmboy.wasm.cjs.js:2420:19) at fetchROMAsByteArray (D:\Documents\dpptwo\colorsupport\node_modules\wasmboy\dist\wasmboy.wasm.cjs.js:2447:10) at loadROMAndConfigTask (D:\Documents\dpptwo\colorsupport\node_modules\wasmboy\dist\wasmboy.wasm.cjs.js:3613:34) at loadROMTask (D:\Documents\dpptwo\colorsupport\node_modules\wasmboy\dist\wasmboy.wasm.cjs.js:3652:13) (node:6356) UnhandledPromiseRejectionWarning:...

Nah, that's some code I'm recycling from gbajs. Probably doesn't work here. I was just looking for errors, but I was stopped by the internal module file reading stuff before...

I think I'm a little confused on how to get the RGB array. In the link you sent above, it looks like you're passing it to another function to do...