Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add artwork file in mame web (Game and Watch) #9283

Closed
rocheston opened this issue Feb 8, 2022 · 3 comments
Closed

How to add artwork file in mame web (Game and Watch) #9283

rocheston opened this issue Feb 8, 2022 · 3 comments

Comments

@rocheston
Copy link

rocheston commented Feb 8, 2022

I successfully compiled the code to the web using emscripten. See the code below. The Nintendo Game and Watch Mickey and Donald game loads fine (plain not artwork). But how do I add the artwork to the script? I have the artwork file. How to configure in this script.

`

<title>Micky and Donald</title> <script type="text/javascript" src="es6-promise.js"></script> <script type="text/javascript" src="browserfs.min.js"></script> <script type="text/javascript" src="loader.js"></script> <script type="text/javascript"> var emulator = new Emulator(document.querySelector("#canvas"), null, new JSMAMELoader(JSMAMELoader.driver("gnw_mickdon"), JSMAMELoader.nativeResolution(256, 256), JSMAMELoader.scale(3), JSMAMELoader.emulatorJS("gw.js"), JSMAMELoader.mountFile("gnw_mickdon.zip", JSMAMELoader.fetchFile("Game File", "gnw_mickdon.zip")))) emulator.start({ waitAfterDownloading: true }); </script> `

grab0

grab1

@rocheston rocheston changed the title How to add artwork file in mame web How to add artwork file in mame web (Game and Watch) Feb 8, 2022
@algestam
Copy link
Contributor

algestam commented Feb 8, 2022

This is more of an emularity support question but to get this to work, make sure to also load the artwork and add arguments to MAME so that the artwork can be found.

Artwork can be loaded with something like this IIRC:

JSLoader.mountFile("artwork-gnw_mickdon.zip",
  JSLoader.fetchFile("Artwork",
    "/path/to/artwork/gnw_mickdon.zip")),

Add extra args to MAME with:

JSLoader.extraArgs([
  '-artpath', 'emulator',
  '-override_artwork', 'artwork-gnw_mickdon',
  ])
))

@cuavas
Copy link
Member

cuavas commented Feb 8, 2022

Please don’t abuse the issue tracker for support requests. Try asking somewhere like r/MAME on reddit, #mame on Libera IRC, or perhaps https://forum.mamedev.org/ or https://forums.bannister.org/ (if you can get past the registration process).

@cuavas cuavas closed this as completed Feb 8, 2022
@rocheston
Copy link
Author

Your solution totally worked. The game with artwork loads beautifully. Thank you so much.

grab0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants