MAME 0.137 scripting

Thread in 'Research & Development' started by xyrnq, 4 Jul 2018.

  1. I've had about an hour of googling to try to find out how/if it's possible even to get data from mame via some kind of scripting. Now from MAME 0.148 this is easy, you have Lua and can do all kinds of good stuff. But unless I've missed something (very plausible), we're more or less stuck on MAME 0.137.

    Almost all of my googling attempts have ended up landing me on post 0.148 pages and examples. I can't find a single example of someone getting data from MAME in some way without Lua.

    My purpose for this is to essentially make tracking death series easier on myself. I've been grinding it a bit lately, and it would be nice to be able to automatically track what my current series is. But of course, once I'm given a tool, I may find other purposes for it too.

    So if anyone has any information about this, I'd love to read about it, even if it's just a link to an old page with a hack.
     
  2. Before I got my PCBs, I did this in a pretty awful way: I modified shmupmametgm to expose some variables to a memory-mapped file, then had another program read from it:

    https://github.com/MaryHal/shmupmametgm
    https://github.com/MaryHal/TapTracker

    Here you can see on the 2p side it calculates the running carnival score, but for whatever reason I removed that display...
    www.twitch.tv/videos/56899095

    A year ago or so, I ported it to Windows by request from Felicity. I'm pretty ashamed of the code, but maybe a few more people can find it useful. It has that graph thing, section timer, auto-fumenizer, and an m-roll condition checker too.

    EDIT: I just pushed a fix to put back carnival score in the score history: https://github.com/MaryHal/TapTracker/releases/tag/v2.1.1
     
    Last edited: 4 Jul 2018
    Echo, Archina and xyrnq like this.
  3. Oh thank you so much! I'll check this stuff out when I get home tonight! And don't be ashamed of the code :)
     
  4. Alright, I couldn't resist. I haven't left my house yet because I got distracted by looking at everything. It works perfectly! Thank you so much! :D I've only really set stuff up to track death related things, but it was much easier to use than I anticipated. Thanks for the hard part of it!
     

Share This Page