Jump to content
LaunchBox Community Forums

Recommended Posts

Posted (edited)

Is it possible to programmatically read the metadata from a game?  I would like to set up a TOS 4 to 8 way restrictor (TOS GRS Switchable 4-to-8-Way Restrictor | Thunderstick Studios (bing.com)).  My thoughts were to set metadata on the game that is being launched and then read that metadata to determine which way the restrictor plate should be oriented.  The TOS 428 way system even has an application for RPI that does this and includes an editable list of games so that you can manage the list centrally.  If I can programmatically read the game metadata then I think I can get this to work.

 

Thank you!

Edited by JimV
Posted

You can either use an LB plugin to read the controller information on the game, or you can do what we did to populate that data and read the mame.xml file that MAME generates with the information you are requesting.

Posted

Thank you for the direction.  I've spent quite a bit of time perusing the LB plugins out there and don't see anything that could do this.  Are you aware of a plugin that I might be able to use or repurpose for this?  I suppose I could write a script that MAME launches to switch the restrictors based on the controller type supported by the game being launched but that will require scripting against MAME but I'd rather keep all of this logic within LB.

 

Any additional direction you can provide would be very much appreciated.  

Posted

Most plugins don't utilize the game controller data point as it's newer. @JoeViking245 has the most plugins around here. I don't know of any you could easily repurpose but making a plugin that reads the game's data on launch isn't too complicated (assuming you have any programming knowledge)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...