Comments (2)
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.
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)
- dead link in README HOT 1
- Enable sound when throttle = True? HOT 3
- Emulator error when initializing the environment. HOT 1
- How should I save and load models HOT 1
- Can it train on the server? HOT 5
- duplicated and missing frames HOT 2
- get gemini wing actions fail HOT 1
- gemini wing agents can't work HOT 2
- Have you considered providing a gym interface? HOT 1
- [Q] alternative for older MAME versions HOT 1
- Links from this part of readme aren't working: HOT 1
- Environment() setup time seems very long HOT 1
- get Error "FileNotFoundError: [Errno 2] No such file or directory" HOT 3
- Error No output expected from command 'mem = manager:machine().devices[":maincpu"].spaces["program"]' HOT 1
- compilation failure HOT 1
- Qt platform plugin "xcb" not found --- calling run_cheat_debugger() HOT 3
- I had to modify mamearcade.make - others may need this too. HOT 1
- Emulator() call never hooks and returns - just runs MAME
- Sample code problem
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mametoolkit.