Coder Social home page Coder Social logo

Comments (2)

M-J-Murray avatar M-J-Murray commented on July 24, 2024

I was wondering when this would become an issue. Every game has their own bitmap format. Currently the underlying mame recompilation only supports RGB32 and ARGB32 formats. I would have to edit some of the mame code to get it working with other games. I'll have a look some time. There is a command to check you game's bitmap format. I'll have to have a look over the code to find it.

from mametoolkit.

RielFox avatar RielFox commented on July 24, 2024

Hey Michael,
Thanks for your reply. I had a look at the python code that causes the exception in Emulator.py and the associated video.cpp file in your modified MAME implementation to see if I could fork and modify it in some way, but it seems to be beyond my abilities as of now.
RGB32 (8 bits for each color for each pixel) is the standard format for image data as far as I understand, and I thought all games would have returned the same image data format.
I'm doing this project as my dissertation for university as well, my aim is to start with Tekken 2 agents and then expand their capabilities to other Tekken games emulatable by MAME , either by training a network on more than one game or using knowledge distillation between neural networks of different agents and recording their performance.
Right now, as far as I am aware, your tool is the only tool that makes it easy to train RL agents on MAME (I tried to make my own LUA environment but there were a lot of constraints that required MAME to be modified and recompiled, as you did). I was under the impression that the toolkit would work with any MAME game.
I know you are doing this in your free time and it would probably take a long time for an update to support more games. Perhaps I should pivot and look for other games? It would be easy to know the command that would tell you but I can try creating an environment for a game until it either stops at the exception or passes it successfully.

Edit: I tried >print(s:bitmap_format())
on MAME's command line but I got:
error: [string "..."]:2: attempt to index a nil value (global 's')

Thanks!

from mametoolkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.