Main > Lightguns

Gun4ir Default Feedback Not Working after Adding Mamehooker

(1/2) > >>

vd2021:
After setting up mamehooker my light gun feedback Only works when I am (mamehooker)hooked to a game that I've set up or with the gui when I test them. The gun's LED is constantly on and red until it is hooked to a game that is setup. I have setup tra for solenoid and rumble with damage and a few mame games. Again,  I nolonger have the default  feed back. No solenoid or rumble and the led is solid red. When I launch tra, mamehooker hooks and the light guns respond perfectly to the game and damage with rumble.

JayBee:
When leaving a game, mamehooker needs to send the command that stops the serial mode, else it stays in that mode.

vd2021:
I still can get the lightguns to go back to theirnormal state. Here is my tra ini. I have four light guns and they are on com ports 4, 6, 3 and 5  ( in that order from light gun 1 to 4).

When I launch tra, mamehooker hooks and the gun's react perfectly with the recoil and rumble. When I Esc, closing the game, all 4 light guns don't go back to their normal state. No recoil,or rumble and the led is solid red. Thanks in advance for all help.

R/s
Vidal


[General]
MameStart=cmo 4 baud=9600_parity=N_data=8_stop=1, cmo 6 baud=9600_parity=N_data=8_stop=1, cmo 3 baud=9600_parity=N_data=8_stop=1, cmo 5 baud=9600_parity=N_data=8_stop=1, cmw 4 S6M1x2xM3x0, cmw 6 S6M1x2xM3x0x, cmw 3 S6M1x2xM3x0, cmw 5 S6M1x2xM3x0x

MameStop=cmw 4 M1x2M3x0E, cmw 6 M1x2M3x0E, cmw 3 M1x2M3x0E, cmw 5 M1x2M3x0E, cmc 4, cmc 6, cmc 3, cmc 5

StateChange=

OnRotate=

OnPause=

[KeyStates]

RefreshTime=

[Output]

P1_Ammo=

P2_Ammo=

P3_Ammo=

P1_Clip=

P2_Clip=

P3_Clip=

P4_Clip=

P1_CtmRecoil=cmw 4 F0x%s%x0xF4x%s%x255

P2_CtmRecoil=cmw 6 F0x%s%x0xF4x%s%x255

P3_CtmRecoil=cmw 3 F0x%s%x0xF4x%s%x255

P4_CtmRecoil=cmw 5 F0x%s%x0xF4x%s%x255

P1_Life=

P2_Life=

P3_Life=

P4_Life=

P1_Damaged=nll | cmw 4 F1x2x1xF2x%s%x255

P2_Damaged=nll | cmw 6 F1x2x1xF2x%s%x255

P3_Damaged=nll | cmw 3 F1x2x1xF2x%s%x255

P4_Damaged=nll | cmw 5 F1x2x1xF2x%s%x255

P1_Credits=

P2_Credits=

P3_Credits=

P4_Credits=

JayBee:

--- Quote from: vd2021 on February 08, 2024, 09:41:03 am ---I still can get the lightguns to go back to theirnormal state. Here is my tra ini. I have four light guns and they are on com ports 4, 6, 3 and 5  ( in that order from light gun 1 to 4).

When I launch tra, mamehooker hooks and the gun's react perfectly with the recoil and rumble. When I Esc, closing the game, all 4 light guns don't go back to their normal state. No recoil,or rumble and the led is solid red. Thanks in advance for all help.

R/s
Vidal


[General]
MameStart=cmo 4 baud=9600_parity=N_data=8_stop=1, cmo 6 baud=9600_parity=N_data=8_stop=1, cmo 3 baud=9600_parity=N_data=8_stop=1, cmo 5 baud=9600_parity=N_data=8_stop=1, cmw 4 S6M1x2xM3x0, cmw 6 S6M1x2xM3x0x, cmw 3 S6M1x2xM3x0, cmw 5 S6M1x2xM3x0x

MameStop=cmw 4 M1x2M3x0E, cmw 6 M1x2M3x0E, cmw 3 M1x2M3x0E, cmw 5 M1x2M3x0E, cmc 4, cmc 6, cmc 3, cmc 5

StateChange=

OnRotate=

OnPause=

[KeyStates]

RefreshTime=

[Output]

P1_Ammo=

P2_Ammo=

P3_Ammo=

P1_Clip=

P2_Clip=

P3_Clip=

P4_Clip=

P1_CtmRecoil=cmw 4 F0x%s%x0xF4x%s%x255

P2_CtmRecoil=cmw 6 F0x%s%x0xF4x%s%x255

P3_CtmRecoil=cmw 3 F0x%s%x0xF4x%s%x255

P4_CtmRecoil=cmw 5 F0x%s%x0xF4x%s%x255

P1_Life=

P2_Life=

P3_Life=

P4_Life=

P1_Damaged=nll | cmw 4 F1x2x1xF2x%s%x255

P2_Damaged=nll | cmw 6 F1x2x1xF2x%s%x255

P3_Damaged=nll | cmw 3 F1x2x1xF2x%s%x255

P4_Damaged=nll | cmw 5 F1x2x1xF2x%s%x255

P1_Credits=

P2_Credits=

P3_Credits=

P4_Credits=

--- End quote ---
I don't see much out of the ordinary here, and the stop command is correct (no need to change the other modes btw, E is enough to reset everything).
Are the guns still working beside the feedbacks after you exit mame?
When you say solid red, you mean on the board itself?
Both pro micro and camera modules emmit a bright red light whenever powered, but there should be a second led that blinks when you pressed a button.
What your gun models btw?

vd2021:


Are the guns still working beside the feedbacks after you exit mame?
-Yes. I can play the light gun games, but the feedback solenoid and rumble do not function and the feedback RGB led is solid read.

When you say solid red, you mean on the board itself?
-I am referring to the feedback LED not the micro pro or camera LEDs.

Both pro micro and camera modules emmit a bright red light whenever powered, but there should be a second led that blinks when you pressed a button.
What your gun models btw?
-I haven't opened to guns to see what the micro pro board and camera LED states are. I build all of my light guns using kits purchased from Ray.

Can you tell me where I can find the code data/info used in the "MameStop=" line? I believe this is where the issue is.

Thanks for the help.

Navigation

[0] Message Index

[#] Next page

Go to full version