Attract-Mode Support Forum

Attract-Mode Support => Scripting => Topic started by: nitrogen_widget on March 23, 2018, 05:31:45 PM

Title: fe.game info and number of buttons?
Post by: nitrogen_widget on March 23, 2018, 05:31:45 PM
Does fe.game_info( id ) have an id for number of buttons?
I don't see it here.

https://github.com/mickelson/attract/blob/master/Layouts.md#game_info

I have it setup in my romlist for mame though.

I want to make a plugin for the RPI that will light up LED's hooked up to the GPIO's and placed in the control panel buttons to tell the player which ones to use for each game.

But i'm not familiar with plugins scripting and didn't want to beat my head against the wall if that particular id isn't recognized.


Title: Re: fe.game info and number of buttons?
Post by: progets on March 23, 2018, 10:24:23 PM
Info.Buttons
Title: Re: fe.game info and number of buttons?
Post by: nitrogen_widget on March 24, 2018, 05:36:24 AM
:)

I was going to guess that but since I don't quite know what i'm doing I wouldn't know if I was doing it wrong or if it just didn't work. :)

Thanks.
Title: Re: fe.game info and number of buttons?
Post by: zpaolo11x on June 19, 2018, 02:17:33 AM
Info.Buttons

Is Info.Buttons available on all versions of Mame? I'm running AM with Mame 0.185 and Info.Buttons doesn't return anything...
Title: Re: fe.game info and number of buttons?
Post by: keilmillerjr on June 19, 2018, 07:22:34 AM
Info.Buttons

Is Info.Buttons available on all versions of Mame? I'm running AM with Mame 0.185 and Info.Buttons doesn't return anything...

That’s because I made a pull request to fix the issue months ago on GitHub and no accept. We need to get on top of accepting these requests.

I can compile for Mac with the fix, and some one compiled windows for me. I forgot who, sorry. It was a conversation with help on discus channel. If anyone needs it let me know.
Title: Re: fe.game info and number of buttons?
Post by: zpaolo11x on June 19, 2018, 11:21:42 PM
I can compile for Mac with the fix, and some one compiled windows for me. I forgot who, sorry. It was a conversation with help on discus channel. If anyone needs it let me know.

I use AM on a Mac so if you can share the compiled Mac version it would be great. Maybe if someone has the windows build he can share it too...