Jump to content
LaunchBox Community Forums

Recommended Posts

Posted

I just wanted to share my project with everyone that aims to add light gun force feedback to a bunch more MAME games via LUA script and is compatible with Mamehooker and Hook Of The Reaper (preference is to use HOTR as that is what I'm personally more familiar with).

It operates under a universal script I made that has enough settings to be useful for any game, so the community can use it and add support for more games, which I can add into future releases.

The list of supported games is available in the "Progress Notes" text file on GitHub, and in the release description. Please read the GitHub readme for more details.

It's still in the final beta testing phase, but it should be finalised very soon. I hope the community finds it useful.

https://github.com/djGLiTCH/MAME-LUA-SCRIPT-STATE-OUTPUTS

  • Like 2
  • Thanks 1
Posted

Thanks for your work. Now i use co pilot to understand all this. He told me that i need a special Version of mame to let the recoil work. He made this message for me 

Quick question for the HOTR users here:
>  
> I’m looking for the HOTR‑compatible MAME build (0.250 or 0.253) that includes the output_lua plugin and the scripts folder.  
>  
> Specifically the version that has:
>  
> - plugins/output_lua/  
> - scripts/*.lua (Duck Hunt, Point Blank, Area 51, etc.)  
> - support for -output lua  
> - recoil / hit‑rumble events for HOTR  
>  
> I’ve already tried several packs (RetroBat, Sinden builds, MAMEGUN, 0.259LG, etc.), but none of them include the HOTR plugin.  
>  
> I only need the standalone MAME folder (around 200–300 MB), not a full pack.  
>  
> If anyone has the HOTR‑MAME 0.250 or 0.253 build and could share it with me, I’d really appreciate a DM.  
>  
> Thanks in advance!

Do you know if this is wat u really need to let mame work?

Posted

No worries, hope you enjoy it.

Not all games/ROMs in MAME require these LUA scripts to enable recoil/rumble in light gun games, only some.

What you need is any version of MAME, but I always recommend the latest version (currently 0.285), a tool called Hook Of The Reaper (HOTR), which is needed to communicate between games and your light guns to control recoil/rumble/etc, and then my files, which enable support for games/ROMs in MAME that don't typically support recoil/rumble.

To install my scripts, you just need to copy the relevant files into the relevant MAME and HOTR folders, which are already in the correct folder location in the downloaded file. Hope this helps.

  • Thanks 1
Posted

Thanks for your reply! Co pilot is saying that the lua scripts will only work if i have a Version of mame with the output_lua plugin. Or is co pilot wrong in this?

Posted

Glad to hear it's working. I just released a new version today as well, so please be sure to use the latest files as they include a few bug fixes. 👍

  • 3 weeks later...
Posted (edited)

Thanks so much DJ, this is great and opens up a bunch of lightgun games for my Launchbox cab that I’d not added as they’re not the same without proper recoil. 
 

One minor issue (which may be be using HOTR and the Reapers wrong) is that for my game.txt files I add in a line after the to ensure the Reapers are set to the right aspect ratio each time (>AspectRatio_4:3) but if I do this using your scripts then I get an error for an unexpected line. Is there an easy way for me to fix that? It’s not a major issue and the scripts work perfectly otherwise but thought I’d ask. 

Edited by Benoid
  • Like 1
Posted

Thanks @Benoid, appreciate the feedback.

Would you mind elaborating on what you mean by the game.txt file? If you can take some screenshots and share an example that will help me understand what you mean, cheers.

Posted

Hi, Yes sorry that wasn’t clear. I just mean the HOTR file for whichever “game” so in my example if I try to add the aspect-ratio command into the duckhunt.txt file it then outputs that error when the script runs and doesn’t hook the lightguns 

Posted

The txt files that go into your HookOfTheReaper\defaultLG folder are not meant to be edited, as the only commands that should exist within these files are already included.

When it comes to aspect ratios, I have a 4k monitor (16:9), and I just set MAME to automatically adjust the aspect ratio depending on the game. That way the calibration for my monitor remains 16:9 at all times, and when a game has a native 4:3 ratio MAME will automatically display the game in 4:3 aspect ratio and create "black" borders (and you can use bezel artwork to fill in the black borders using game specific artwork).

Is the aspect ratio something you used to use before, or are you just trying to implement it for the first time? By default you should be good to go with MAME, as I've never had to touch the aspect ratio settings at all.

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...