emularity icon indicating copy to clipboard operation
emularity copied to clipboard

Arcade not work

Open jfranpino opened this issue 7 years ago • 8 comments

I can not get the example_arcade to work. I have the file examples/targ.zip And I have the emulator emulators/jsmess/mameexidy.js

But it does not work, I leave my code:

 ```

var emulator = new Emulator (document.querySelector ("# canvas"), null, new JSMAMELoader (JSMAMELoader.driver ("targ"), JSMAMELoader.nativeResolution (256, 256), JSMAMELoader.emulatorJS ("emulators / jsmess / mameexidy.js"), JSMAMELoader.mountFile ("targ.zip", JSMAMELoader.fetchFile ("Game File", "examples / targ.zip")))) emulator.setScale (2); emulator.start ({waitAfterDownloading: true});

jfranpino avatar Dec 07 '18 14:12 jfranpino

Do you get any error messages on the dev console?

db48x avatar Dec 08 '18 17:12 db48x

Also, I notice that your code has "emulators / jsmess / mameexidy.js" instead of "emulators/jsmess/mameexidy.js". Those spaces would certainly cause it to fail to load the file (unless you really saved it to directories that have those spaces in their names), but it's also possible that github mangled your comment.

db48x avatar Dec 08 '18 17:12 db48x

My error messages is "Failed to download game data!" The code no contained any spaces, is error the copy/paste in this edit text web

jfranpino avatar Dec 12 '18 15:12 jfranpino

What about in the js console? Or are there any 404 errors in the networking tab of the dev tools? You can open the dev tools with the keyboard shortcut control-shift-i in any decent browser.

db48x avatar Dec 12 '18 16:12 db48x

error 1 error 2

jfranpino avatar Dec 13 '18 08:12 jfranpino

Reload the page while the devtools are recording the network activity, that way you can see which request failed.

db48x avatar Dec 13 '18 09:12 db48x

image

jfranpino avatar Dec 14 '18 07:12 jfranpino

Possibly a CORS problem. I had to run a dev server, simply create-react-app and put everything I need in the public directory.

ins429 avatar Aug 13 '20 07:08 ins429