Coder Social home page Coder Social logo

Comments (9)

rhickstedjr avatar rhickstedjr commented on July 4, 2024

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.

rhickstedjr avatar rhickstedjr commented on July 4, 2024

info on mame64 binary in use:

parallels@parallels-Parallels-Virtual-Platform:$ which mame
/usr/local/bin/mame
parallels@parallels-Parallels-Virtual-Platform:
$ ls -l /usr/local/bin/mame
-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.

rhickstedjr avatar rhickstedjr commented on July 4, 2024

I also have a good sfiii3n rom...

from mametoolkit.

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

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.

rhickstedjr avatar rhickstedjr commented on July 4, 2024

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.

rhickstedjr avatar rhickstedjr commented on July 4, 2024

Note the game runs just fine.

from mametoolkit.

rhickstedjr avatar rhickstedjr commented on July 4, 2024

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.

rhickstedjr avatar rhickstedjr commented on July 4, 2024

I am running in a Ubuntu 18.04 VM under Mac OS X. Seems .5 is not a sufficient timeout.

from mametoolkit.

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

I'll change the default timeout to be 5 seconds.

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.