Build Your Own Arcade Controls Forum

Main => Driving & Racing Cabinets => Topic started by: baritonomarchetto on May 11, 2020, 09:36:47 am

Title: Virtua Racing Rumble - mamehooker
Post by: baritonomarchetto on May 11, 2020, 09:36:47 am
As far as I know, Boomslang's FFPlugin gets FF and rumble information from the MAME driver. Anyway, I cannot have mamehooker to hook to that output, but only lamps: is the rumble for that game "hidden" under one of those lamps assignations eventually?

And another question while I am there: are FFPlugin and Mamehooker mutually esclusive? I would like to have both sending outputs to my peripheral, but I can have one or the other it seems...

(Thanks!)
Title: Re: Virtua Racing Rumble - mamehooker
Post by: baritonomarchetto on May 11, 2020, 12:01:46 pm
I have noticed vr outputs have changed name from mame 0.160 to 0.220. Unfortunately none of them sound like a rumble to me.
I also made some cohexistence tests, but they confirm that MameHooker and FFBPlugin cannot co-exist
Title: Re: Virtua Racing Rumble - mamehooker
Post by: Boomslang on May 11, 2020, 04:08:04 pm
Yes unfortunately right now you cant use both at same time.

I've spoken to Howard about it but he has been too busy last few months to have time for us to sort it out, it's on to-do list

 The name is digit0 for vr and you need to change cabinet to upright to get it
Title: Re: Virtua Racing Rumble - mamehooker
Post by: Howard_Casto on May 11, 2020, 04:14:46 pm
I'm sorry guys.  Working on the house and I've got to get a new pc purchased and assembled before I want to even try working on a pc-related project.  This thing is limping bad...you should hear the fans.   :'(
Title: Re: Virtua Racing Rumble - mamehooker
Post by: baritonomarchetto on May 12, 2020, 01:57:17 am
I had the same two weeks ago with the PC I am configuring for my racingcab: no boot, just noisy fans.
Title: Re: Virtua Racing Rumble - mamehooker
Post by: baritonomarchetto on May 12, 2020, 02:01:47 am


The name is digit0 for vr and you need to change cabinet to upright to get it

I tryied to have that output light a bulb yesterday to figure what it was used for, but I had a steady light (and some random crashes I still have to dig out). Digit1 gave me a flashing light instead: should I assume they are outputting arcaic digital messages for FF and not rumble?

Title: Re: Virtua Racing Rumble - mamehooker
Post by: SailorSat on May 12, 2020, 09:41:22 am
Unless they "changed" something again...

digit0 are driveboard commands
digit1 are the 8 lamps

The cabinet setting actually is important.
If my memory serves me correctly, "DELUXE" and "TWIN" send out "normal" FFB commands, and "UPRIGHT" does not.

*edit*
I dunno it Virtua Racing actually supports "rumble".
Title: Re: Virtua Racing Rumble - mamehooker
Post by: baritonomarchetto on May 12, 2020, 10:04:27 am
With Force Feedback Plugin,  Virtua Racing Upright outputs rumble so it's somewhere there. Being that Mamehooker handles lights too, untill MH and FFBP cannot coexist I will stay with mamehooker (for Mame). What I have difficulties to figure out is what is the line/command I should place my "mamehooker xinput advanced code" to have rumblr (digit0 seems not working as I would... Only a brief rumble on game startup, then nothing).

(Thanks for the help so far!)
Title: Re: Virtua Racing Rumble - mamehooker
Post by: Boomslang on May 12, 2020, 06:25:38 pm
read post below
Title: Re: Virtua Racing Rumble - mamehooker
Post by: Boomslang on May 12, 2020, 07:44:15 pm
Ive done a little testing here and managed to get it to at least have outputs work on Both Mamehooker and FFB Plugin at same time

Ill release new FFB Arcade Plugin version
Title: Re: Virtua Racing Rumble - mamehooker
Post by: baritonomarchetto on May 13, 2020, 01:57:25 am
That's great!
In case both MH and FFBP try to handle the same output at the same time, is there some "priority" option eventually?
(I will test this as soon as possible, thanks a lot!)
Title: Re: Virtua Racing Rumble - mamehooker
Post by: Boomslang on May 13, 2020, 02:06:57 am
That's great!
In case both MH and FFBP try to handle the same output at the same time, is there some "priority" option eventually?
(I will test this as soon as possible, thanks a lot!)

No there won't be, What you decide to do with either Mamehooker or FFB Plugin is up to you but if you decided to set both apps to use the same output at the same time then they will both run effect
Title: Re: Virtua Racing Rumble - mamehooker
Post by: baritonomarchetto on May 13, 2020, 02:54:13 am
Makes sense. Perfect!
(PS: noticed that on github you renamed the link to the zip file of the latest release "1.8.7" while instead you meant "1.8" I suppose ;))
Title: Re: Virtua Racing Rumble - mamehooker
Post by: Boomslang on May 13, 2020, 04:20:19 am
Makes sense. Perfect!
(PS: noticed that on github you renamed the link to the zip file of the latest release "1.8.7" while instead you meant "1.8" I suppose ;))

no lol

i did zip and 7z and gave option to download depending how what you prefer

7z ends up like 4mb while zip is like 50mb or more
Title: Re: Virtua Racing Rumble - mamehooker
Post by: baritonomarchetto on May 13, 2020, 04:35:32 am
When I realized the stupidity I wrote, you had already answered me :(
Thanks ;)
Title: Re: Virtua Racing Rumble - mamehooker
Post by: baritonomarchetto on May 13, 2020, 05:01:02 am
Made a test "on-the-fly": it works great!
Title: Re: Virtua Racing Rumble - mamehooker
Post by: Boomslang on May 13, 2020, 05:37:07 am
 :cheers:
Title: Re: Virtua Racing Rumble - mamehooker
Post by: baritonomarchetto on May 14, 2020, 02:10:28 am
Yesterday I toyed with this a little and can confirm that now the two can co-exist in a system.
Going back to Virtua Racing, looks like my attempts on get it "rumbling" failed because VR does Force Feedback, not rumble (doh! :D). So, my question (for Boomslang mainly) is: would it be possible to "convert" FF effects into rumble effects? In other words: would it be possible to "catch" off-road and collision messages (or FF function) and turn them into rumble-compatibile outputs?
(Thanks for the help so far!)
Title: Re: Virtua Racing Rumble - mamehooker
Post by: Howard_Casto on May 14, 2020, 04:28:46 am
Finally finished ordering computer parts.  I was about to head to bed when I saw this. 

It's possible because I did it for that Daytona wrapper a few years back, but the end result isn't always great because of the way you have to do it.  Typically those force feedback values are an absolute position, or a direction plus power of force.  What you do is read those values constantly in a loop, storing the previous value and if the difference between the values is more than a certain threshold, indicating a sharp movement, you turn on rumble for either a set period or time or until the difference threshold of future reads decreases beyond a certain point, indicating stillness.  It sounds pretty straight forward, but the problem is most force feedback systems take the real position of the wheel into account and of course the player can turn the wheel, so an extremely sharp turn could give a false positive. 

Hope that makes sense. 
Title: Re: Virtua Racing Rumble - mamehooker
Post by: baritonomarchetto on May 14, 2020, 07:11:35 am
Thanks for the explanation Howard: makes perfect sense to me.
Title: Re: Virtua Racing Rumble - mamehooker
Post by: Boomslang on May 14, 2020, 07:32:47 am
Is there some particular reason you want it as a rumble output via mamehooker compared to just using FFB Plugin to do rumble directly on controller?
Title: Re: Virtua Racing Rumble - mamehooker
Post by: baritonomarchetto on May 14, 2020, 07:38:32 am
In my understanding digit0 (and digit1 eventually?) send FF messages, not rumble. I noticed that in FFBPlugin.ini there's not an option for setting rumble strenght to right and left motors, so I assumed rumble cannot be supported by both MH and your plugin. Correct me if I am wrong.

PS: I don't use the FFBP GUI because, even if supported by this new PC, I have a screen resolution of 640x480 (low res CRT) and virtua racing config button is out of the screen
Title: Re: Virtua Racing Rumble - mamehooker
Post by: Boomslang on May 14, 2020, 07:43:59 am
yeah it sends ff but I convert ff to rumble already with FFB Plugin if you select like xbox controller as device and have enable rumble checked

If you select a wheel as device then you should uncheck Enable Rumble and you will get force feedback

FFB Plugin does both FFB or Rumble depending on device chosen and ive automatically made it use either left or right rumble motor depending on ffb effect generally
Title: Re: Virtua Racing Rumble - mamehooker
Post by: baritonomarchetto on May 14, 2020, 09:23:37 am
Ok. I had some issue yesterday honestly and I could not get consistent results (sometimes I had rumble indeed, sometimes nothing, sometimes the same effect I had with Mamehooker when hooking my rumble motor to digit0). Very random behaviour I could not dig further.
Title: Re: Virtua Racing Rumble - mamehooker
Post by: baritonomarchetto on May 14, 2020, 12:05:01 pm
I made some additional tests today, with a fresh install of mame and FFBP and everything was ok! May I ask you if it's possible to increase the default rumble strenght value on VR? It's a little weak. Also, let me go OT asking : do you plan to convert to rumble some otjer game eventually? i.e. california speed or something?
(Thanks!)
Title: Re: Virtua Racing Rumble - mamehooker
Post by: Boomslang on May 14, 2020, 04:29:43 pm
The rumble should work on every game supported by FFB Plugin I'm pretty sure.

To increase strength you have only 1 option with rumble, you can either raise min force above 0 eg I'f you make it 30 it means the minimum force applied to any effect is 30% strength

There is something I do for wheel effects called Power Mode but I havent added that for rumble effects yet
Title: Re: Virtua Racing Rumble - mamehooker
Post by: baritonomarchetto on May 15, 2020, 01:57:07 am
Ok. I will try rising the minimum force just to "feel" if rumble actually is triggered on those games I felt nothing yesterday.
Thanks for the help and your work so far!
Title: Re: Virtua Racing Rumble - mamehooker
Post by: Boomslang on May 15, 2020, 05:18:59 am
Ok. I will try rising the minimum force just to "feel" if rumble actually is triggered on those games I felt nothing yesterday.
Thanks for the help and your work so far!

Just tested it here and works for sure on California Speed on Xbox One Controller
Title: Re: Virtua Racing Rumble - mamehooker
Post by: baritonomarchetto on May 15, 2020, 07:57:53 am
Rising minimum force actually brings to life some of those racers!
(I thought it was a threshold to cut low value rumble messages)