Comments (9)
I built and I am using the mame64 custom source: The modified MAME implementation can be found at [https://github.com/M-J-Murray/mame]
from mametoolkit.
info on mame64 binary in use:
parallels@parallels-Parallels-Virtual-Platform:$ which mame$ ls -l /usr/local/bin/mame
/usr/local/bin/mame
parallels@parallels-Parallels-Virtual-Platform:
-rwxr-xr-x 1 root root 283795616 Feb 11 11:12 /usr/local/bin/mame
parallels@parallels-Parallels-Virtual-Platform:~$ ls -l ./mame-master/mame64
-rwxr-xr-x 1 parallels parallels 283795616 Feb 11 15:58 ./mame-master/mame64
from mametoolkit.
I also have a good sfiii3n rom...
from mametoolkit.
You do not need to compile your own instance of mame. When you pip install the library the custom compiled mame will be downloaded with the library code. I'm not exactly sure what is causing this. But a good place to start would be to download the official MAME emulator and try and get your game running on that first.
from mametoolkit.
Removed my mame build and see the same issue?
parallels@parallels-Parallels-Virtual-Platform:~$ python3.6 ./sfla.py
Expected output but received nothing from emulator after 'for k,v in pairs(iop.ports) do print(k) end'
Traceback (most recent call last):
File "./sfla.py", line 5, in
print(list_actions(roms_path, game_id))
File "/home/parallels/.local/lib/python3.6/site-packages/MAMEToolkit/emulator/Emulator.py", line 19, in list_actions
ports = console.writeln("for k,v in pairs(iop.ports) do print(k) end", expect_output=True, timeout=0.5)
File "/home/parallels/.local/lib/python3.6/site-packages/MAMEToolkit/emulator/Console.py", line 71, in writeln
raise IOError(error)
OSError: Expected output but received nothing from emulator after 'for k,v in pairs(iop.ports) do print(k) end'
from mametoolkit.
Note the game runs just fine.
from mametoolkit.
Found the issue the timeout was too low:
parallels@parallels-Parallels-Virtual-Platform:$ python3.6 ./sfla.py$
[{'port': ':EXTRA', 'field': 'P2 Forward Kick'}, {'port': ':EXTRA', 'field': 'P1 Roundhouse Kick'}, {'port': ':EXTRA', 'field': 'P1 Short Kick'}, {'port': ':EXTRA', 'field': 'P2 Short Kick'}, {'port': ':EXTRA', 'field': 'P1 Forward Kick'}, {'port': ':INPUTS', 'field': 'P1 Up'}, {'port': ':INPUTS', 'field': 'P2 Down'}, {'port': ':INPUTS', 'field': 'P1 Down'}, {'port': ':INPUTS', 'field': 'P2 Strong Punch'}, {'port': ':INPUTS', 'field': 'P1 Fierce Punch'}, {'port': ':INPUTS', 'field': 'P2 Right'}, {'port': ':INPUTS', 'field': 'Coin 2'}, {'port': ':INPUTS', 'field': 'P1 Right'}, {'port': ':INPUTS', 'field': 'P2 Roundhouse Kick'}, {'port': ':INPUTS', 'field': '2 Players Start'}, {'port': ':INPUTS', 'field': 'Coin 1'}, {'port': ':INPUTS', 'field': 'Service Mode'}, {'port': ':INPUTS', 'field': '1 Player Start'}, {'port': ':INPUTS', 'field': 'Service 1'}, {'port': ':INPUTS', 'field': 'P2 Up'}, {'port': ':INPUTS', 'field': 'P2 Fierce Punch'}, {'port': ':INPUTS', 'field': 'P1 Strong Punch'}, {'port': ':INPUTS', 'field': 'P2 Jab Punch'}, {'port': ':INPUTS', 'field': 'P1 Jab Punch'}, {'port': ':INPUTS', 'field': 'P1 Left'}, {'port': ':INPUTS', 'field': 'P2 Left'}, {'port': ':scsi:1:cdrom:SCSI_ID', 'field': 'SCSI ID'}]
parallels@parallels-Parallels-Virtual-Platform:
Fixed this line:
ports = console.writeln("for k,v in pairs(iop.ports) do print(k) end", expect_output=True, timeout=5.0)
from mametoolkit.
I am running in a Ubuntu 18.04 VM under Mac OS X. Seems .5 is not a sufficient timeout.
from mametoolkit.
I'll change the default timeout to be 5 seconds.
from mametoolkit.
Related Issues (20)
- dead link in README HOT 1
- Enable sound when throttle = True? HOT 3
- MAMEToolkit only supports RGB32 and ARGB32 frame bit format games - Tekken 2 Environment HOT 2
- 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.