jsdf / pce

Emulates Mac Plus, PC, & Atari ST in the browser using WebAssembly
https://jamesfriend.com.au/pce-js
GNU General Public License v2.0
864 stars 154 forks source link

Error when running pcejs-atarist #30

Closed shazz closed 3 weeks ago

shazz commented 3 weeks ago

Hi,

I followed the instructions usign the npm modules but when accessing the local server:

npm init
npm install --save pcejs-atarist pcejs-util

added the index.js, index.html, bundle browerified, server started then:

[2024-08-22T22:34:55.500Z]  "GET /" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36"
[2024-08-22T22:34:55.517Z]  "GET /bundle.js" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36"
[2024-08-22T22:34:55.661Z]  "GET /pce-atarist.wasm" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36"
[2024-08-22T22:34:55.662Z]  "GET /favicon.ico" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36"
[2024-08-22T22:34:55.664Z]  "GET /pce-atarist.wasm" Error (404): "Not found"
[2024-08-22T22:34:55.665Z]  "GET /favicon.ico" Error (404): "Not found"
[2024-08-22T22:34:55.669Z]  "GET /pce-atarist.wasm" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36"
[2024-08-22T22:34:55.671Z]  "GET /pce-atarist.wasm" Error (404): "Not found"

Any idea?

shazz commented 3 weeks ago

Ok I copied the wasm file from the node_modules\pcejs-atarist\pce-atarist.wasm to the root folder and it works