Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Operation Thunderbolt + MAMEHooker 2 player script issue  (Read 420 times)

0 Members and 1 Guest are viewing this topic.

Afterburner1970

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • Last login:Today at 11:34:53 am
  • I want to build my own arcade controls!
Operation Thunderbolt + MAMEHooker 2 player script issue
« on: December 02, 2025, 02:58:42 pm »
Hi,

Ok, after losts of mucking around and reading many posts and help from Howard, I finally got both guns (on my Revolution X) working.

Only issue is when playing 2 player..... whoever pulls the trigger second, it stops the first players guns recoil.

It must be a script issue, so hoping someone can spot my error?

ini file

[General]
MameStart=
MameStop=kls 1
StateChange=
OnRotate=
OnPause=
[KeyStates]
RefreshTime=
[Output]
Player1_Recoil_Piston=lfs pistonthunder 20 %s%
Player2_Recoil_Piston=lfs pistonthunder-2 20 %s%


and the 2 script files


Pisonthunder.mhs

uls 1 1 0

uls 1 1 %s%



Pistonthunder-2.mhs

uls 1 2 %s%

uls 1 1 %s%

Many thanks

bandicoot

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 125
  • Last login:Yesterday at 11:14:19 am
Re: Operation Thunderbolt + MAMEHooker 2 player script issue
« Reply #1 on: Yesterday at 11:07:39 am »
hello i think
this mut be like this

Pistonthunder-2.mhs

uls 1 2 0

uls 1 2 %s%

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19440
  • Last login:Yesterday at 10:10:00 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Operation Thunderbolt + MAMEHooker 2 player script issue
« Reply #2 on: Yesterday at 06:25:57 pm »
to simplify even greater, you never have to pass a zero when the state is off.   I have that option in place for outputs with multiple values.   Just pass a %s%... when the output isn't firing the value of %s% will be 0 anyway.



Afterburner1970

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • Last login:Today at 11:34:53 am
  • I want to build my own arcade controls!
Re: Operation Thunderbolt + MAMEHooker 2 player script issue
« Reply #3 on: Today at 11:24:59 am »
i had made a typo

the script is actually

uls 1 2 0

uls 1 2 %s%

but still have this issue....any thoughts?

Thanks

Afterburner1970

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • Last login:Today at 11:34:53 am
  • I want to build my own arcade controls!
Re: Operation Thunderbolt + MAMEHooker 2 player script issue
« Reply #4 on: Today at 11:27:59 am »
I should point out, as I didnt make this very clear..this issue is happening on operation thunderbolt. Revolution X is working perfectly.

Thanks in advance