Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: vandale on February 02, 2013, 04:58:25 pm

Title: Virtua Racing link success
Post by: vandale on February 02, 2013, 04:58:25 pm
Hi all, has anyone got SailorSats Virtua Racing link working yet?

http://www.mameworld.info/ubbthreads/showflat.php?Cat=&Number=297577&page=0&view=expanded&sb=5&o=&fpart=1&vc=1&new=#Post297577 (http://www.mameworld.info/ubbthreads/showflat.php?Cat=&Number=297577&page=0&view=expanded&sb=5&o=&fpart=1&vc=1&new=#Post297577)

I have tried but no success.

RetroRepair, I am sure you are giving it a go as we speak  ;D
Title: Re: Virtua Racing link success
Post by: vandale on February 02, 2013, 10:43:02 pm
Hi all, all working now. Will post my config and video soon.

Cheers
Title: Re: Virtua Racing link success
Post by: Howard_Casto on February 03, 2013, 01:27:36 am
It's hard to follow threads over at MW because of how their forums are setup.  Could you give me the gist of what this is please?   I'm assuming it's some sort of hack to get VR working on twin cabs. 
Title: Re: Virtua Racing link success
Post by: vandale on February 03, 2013, 01:37:10 am
It's hard to follow threads over at MW because of how their forums are setup.  Could you give me the gist of what this is please?   I'm assuming it's some sort of hack to get VR working on twin cabs.

Hi, I cant speak for SailorSat but I assume it is a hack until submitted and accepted into the official mame. I am not too fussed as long as it works in my cabinet  ;D

Yep the layout of those forums is horrible when trying to follow anything.

Here is a vid of it working in my cabinet Sega Model 1 Virtua Racing (Virtua Formula) 2 player network link via Cabmame (http://www.youtube.com/watch?v=-GyWZjzi5Js#ws)

I ran into a few issues on the way. I had never used any other mame than mame32 so having to do a quick refresh of how command line mame worked was needed, things like joystick saturation, hw stretch and no mame.ini had me reading for a few mins to figure it out  :banghead:

I havent tried Virtua Racing, works fine with Virtua Formula. Next to try is Wing War. Hopefully this will open some doors to other network connectivity in mame.
Title: Re: Virtua Racing link success
Post by: Howard_Casto on February 03, 2013, 02:02:24 am
That's pretty awesome man. 

What's with all the racing game progress btw?

There's this, my work on model 2, cannonball.... all kinds of racing stuff. 
Title: Re: Virtua Racing link success
Post by: vandale on February 03, 2013, 02:47:17 am
Thanks. I dont know the answer to that. My thinking is that mame is mame and once you build a cool upright mame cab then what can you do next. Racers suck with joysticks so it was only a matter of time before peope started building kick ass driving cabinets when they couldnt get there driving fix from a stand up mame machine, then when playing by yourself gets boring the only thing to do next is build a twin, whats next after that, maybe a 4 player....haha

Probably the same thing with M2. You can only play the gun games by yourself a few times then bordom sets in, whats the point of having these cool games if you cant share with your mates and play co-op games.

Well thats my thoughts on the subject.

Thanks

Title: Re: Virtua Racing link success
Post by: Yenome on February 03, 2013, 04:21:14 am
I ran into a few issues on the way. I had never used any other mame than mame32 so having to do a quick refresh of how command line mame worked was needed, things like joystick saturation, hw stretch and no mame.ini had me reading for a few mins to figure it out 
to get a mame.ini with command line mame. make a short cut to it and add -cc on to the end and run it. or just open a cmd window and go to the mame folder and run mame -cc
Title: Re: Virtua Racing link success
Post by: vandale on February 03, 2013, 05:32:58 am
I ran into a few issues on the way. I had never used any other mame than mame32 so having to do a quick refresh of how command line mame worked was needed, things like joystick saturation, hw stretch and no mame.ini had me reading for a few mins to figure it out 
to get a mame.ini with command line mame. make a short cut to it and add -cc on to the end and run it. or just open a cmd window and go to the mame folder and run mame -cc

hi, yep sailorsat pointed me in the right direction.

have this now booting via hyperspin so its seamless in the cabinet, works a treat. Have played 5 full races with wifey and no issues apart from some very minor sound syncing during attract mode.

thanks
Title: Re: Virtua Racing link success
Post by: bdam on February 04, 2013, 08:42:53 am
It's hard to follow threads over at MW because of how their forums are setup. 
For what it's worth; if you want to view the forums in flat mode you can do so by using the Flat/Threaded toggle in the upper right.  You can also set this permanently in your display preferences.
Title: Re: Virtua Racing link success
Post by: dgame on February 06, 2013, 12:51:10 am
I tried the communications link on a single system.
First time running multiple instances of MAME at once.
Wing War and the other dual screen intros are nice.

Congratulations SailorSat et al. on a wonderful achievement.  :cheers:
Necessity is indeed the mother of invention.  8)
Title: Re: Virtua Racing link success
Post by: dgame on February 06, 2013, 04:13:44 pm
Read the Virtua Racer Twin Communications Link Manual and setup 8 players on one system.

Obviously not practical for actual play.

(http://forum.arcadecontrols.com/index.php?action=dlattach;topic=130136.0;attach=277011;image)

Title: Re: Virtua Racing link success
Post by: RamjetR on February 06, 2013, 05:50:29 pm
Obviously not practical for actual play.

Well that depends on the size of your TV  ;D
Title: Re: Virtua Racing link success
Post by: Howard_Casto on February 06, 2013, 08:55:07 pm
Actually yeah.  If somebody wants to do some crazy split-screen action I think it would be possible to remove those borders. 

I dunno about performance though. 
Title: Re: Virtua Racing link success
Post by: dgame on February 06, 2013, 10:48:14 pm
I am really impressed by the networking functionality especially in the context of the racing game.

The many screens are just for testing how the various link configurations work. Ideally each racer would be on a separate networked system.

Even with a single player racing setup you could add the Live Monitor with Virt McPolygon on any computer on your network. The live camera action and virtual commentary add to the spectator experience.
Title: Re: Virtua Racing link success
Post by: RamjetR on February 08, 2013, 07:22:21 pm
Actually yeah.  If somebody wants to do some crazy split-screen action I think it would be possible to remove those borders. 

I dunno about performance though. 

My borderless program will remove those borders in a jiffy... 3 lines of code... let me know if you want it done? :)

Even with a single player racing setup you could add the Live Monitor with Virt McPolygon on any computer on your network. The live camera action and virtual commentary add to the spectator experience.

I love the live Camera screens option in M2... I want to put a single screen up for that when I get all 3 cabinets together in the new house... just waiting for the tenants to move out so we can move in :)
Title: Re: Virtua Racing link success
Post by: vandale on February 08, 2013, 09:00:15 pm
Actually yeah.  If somebody wants to do some crazy split-screen action I think it would be possible to remove those borders. 

I dunno about performance though. 

My borderless program will remove those borders in a jiffy... 3 lines of code... let me know if you want it done? :)

Even with a single player racing setup you could add the Live Monitor with Virt McPolygon on any computer on your network. The live camera action and virtual commentary add to the spectator experience.

I love the live Camera screens option in M2... I want to put a single screen up for that when I get all 3 cabinets together in the new house... just waiting for the tenants to move out so we can move in :)

so to use the live commentary do you set the link to 'live' under f2 service options?

I have a neat 10inch LCD that I can connect to a old notebook pc hidden in the back
Title: Re: Virtua Racing link success
Post by: RamjetR on February 09, 2013, 10:45:11 pm
Yeah, just make the extra emulator a Link or Live machine in the service menu. It has been known to have some bugs, bug for the most part works well in my testing.

No need for running multiple computers if any of your main rigs have enough grunt... Check out my video on multiple emulators on one PC fullscreen with VMware virtual machines... works a treat with dual output graphic cards.
Title: Re: Virtua Racing link success
Post by: dgame on February 10, 2013, 02:21:25 pm
My borderless program will remove those borders in a jiffy... 3 lines of code... let me know if you want it done? :)

How do you do this? Is it a standalone program or MAME code change? I would like to try this.

Can two windows share focus for the controls to work on both?
Title: Re: Virtua Racing link success
Post by: Howard_Casto on February 10, 2013, 02:38:07 pm
Joysticks (not keyboards) should work regardless of focus.  That is unless mame has some strange code that halts the joystick or something. 
Title: Re: Virtua Racing link success
Post by: dgame on February 10, 2013, 03:02:16 pm
In my testing with v0.148 only the focused window gets joystick controls.

I also tried it with the "#define FORCE_DIRECTINPUT   1" setting in input.c with the same result.
 
Any suggestions?
Title: Re: Virtua Racing link success
Post by: RamjetR on February 11, 2013, 04:24:01 am
My borderless program will remove those borders in a jiffy... 3 lines of code... let me know if you want it done? :)

How do you do this? Is it a standalone program or MAME code change? I would like to try this.

Can two windows share focus for the controls to work on both?
In my testing with v0.148 only the focused window gets joystick controls.

I also tried it with the "#define FORCE_DIRECTINPUT   1" setting in input.c with the same result.
 
Any suggestions?

I must have missed what the issue was...

Your trying to run 2 instances of mame on one PC with separate wheels on each? But the only the focused one is taking input?  Hrmmmm

I haven't tried that kind of setup. Like howard said, it should work? But failing that... VMWare.

The latest version of VMWare workstation will use 3D graphics card aswell as processing power. Make the virtual PC as powerful or as weak as you like when you set it up, install TinyXP or similar on it for mame and virtual network it. You can force the VMWare machine onto another screen and it will lock the controls to the VM PC regardless of what the main PC is doing...

That's how I would do it with a single PC anyway...
Title: Re: Virtua Racing link success
Post by: Howard_Casto on February 11, 2013, 04:31:55 am
It's kind of odd.... pretty sure a recent version of mame switched the directinput code to non-exclusive, which is good... that means that mamehooker can wrangle your joystick as well for force-feedback.  That might be the issue though.... I dunno if DI in non-exclusive mode can read the joystick when the app loses focus. 

It might not be (easily) possible.  Oh well, it was a good idea anyway.
Title: Re: Virtua Racing link success
Post by: SailorSat on February 11, 2013, 01:38:13 pm
No need for running multiple computers if any of your main rigs have enough grunt...

But... It looks damn impressive ;D
(http://images.arianchen.de/temp/07022013511.jpg)
Title: Re: Virtua Racing link success
Post by: yotsuya on February 11, 2013, 01:44:34 pm
That does look cool!
Title: Re: Virtua Racing link success
Post by: Howard_Casto on February 11, 2013, 02:26:09 pm
How much did that cluster set you back if you don't mind me asking?
Title: Re: Virtua Racing link success
Post by: dgame on February 11, 2013, 02:27:42 pm
No worries about the single screen focus. Would still like to know how to remove the borders though.

Been actually playing the Virtua Racing game with different controllers and it needs an analog accelerator pedal.

Some hard cornering requires powering through the apex which doesn't always work right if you have digital on/off throttle.
 
Got pretty good with the analog throttle slider on the  Logitech Cordless Rumblepad.

Throttle Slider is on the shoulder above the right shoulder buttons:
(http://images.geeksimages.com/imageshare/W/300x300/WMCRDLS-unit.jpg)

I have had an  InterAct Concept 4 Racing Wheel for Dreamcast in my collection for a long time going unused, so I ordered an Dreamcast to USB adapter to try it with Virtua Racing.
(http://www.lulays.com/jr/images/interact/dreamcastconcept4racingwheel.gif)
If it works well I will probably get another one for a two car setup.


Title: Re: Virtua Racing link success
Post by: SailorSat on February 11, 2013, 02:51:24 pm
How much did that cluster set you back if you don't mind me asking?

About 100€ each.
75€ for the PC itself, 20€ for some used logitech wheels, and another 5€ for speakers and keyboard
Title: Re: Virtua Racing link success
Post by: Howard_Casto on February 11, 2013, 04:07:09 pm
That's not bad at all. 

I never run across good deals like that. 
Title: Re: Virtua Racing link success
Post by: SailorSat on February 11, 2013, 04:18:41 pm
hehe, ebay - refurbished business pcs
Title: Re: Virtua Racing link success
Post by: dgame on February 11, 2013, 05:06:35 pm
SailorSat,

Which  logitech wheels did you get and how do they perform?

Thanks
Title: Re: Virtua Racing link success
Post by: SailorSat on February 11, 2013, 05:18:22 pm
logitech driving force (not ex, not pro, not gt)

they performe well, but yeah, not even close to a real arcade wheel...
Title: Re: Virtua Racing link success
Post by: Hunk_4TH on February 11, 2013, 11:17:52 pm
This amazing! How exactly does one get this working? I agree with Howard, Mameworld's forums are rather confusing lol.
Title: Re: Virtua Racing link success
Post by: dgame on February 12, 2013, 11:06:41 am
If you want to try the link with two cars out on a single machine:

Get the link-cabmame binary linked here, extract, and put it in your MAME folder: http://www.mameworld.info/ubbthreads/showthreaded.php?Cat=&Number=303661 (http://www.mameworld.info/ubbthreads/showthreaded.php?Cat=&Number=303661)

Create a vr2.bat  batch file with:
Code: [Select]
start /b cabmame.exe vr -w -nvram_directory nvram1 -localport 15111 -remoteport 15112 -localhost 0.0.0.0 -remotehost 127.0.0.1
start /b cabmame.exe vr -w -nvram_directory nvram2 -localport 15112 -remoteport 15111 -localhost 0.0.0.0 -remotehost 127.0.0.1
This launches two instances of MAME with separate non-volatile memory [nvram] folders.

Having separate nvram folders allows each instance of MAME  to be defined as specific car.

In one window configure Car 1 as RED/MASTER, and in the other window configure Car 2 as BLUE/SLAVE or LIVE Commentary.

Press F2 to enter TEST MODE:
(http://forum.arcadecontrols.com/index.php?action=dlattach;topic=130136.0;attach=277458)

Configure Car 1 as RED/MASTER:
(http://forum.arcadecontrols.com/index.php?action=dlattach;topic=130136.0;attach=277460)

Configure Car 2 as BLUE/SLAVE for Car 1 vs Car 2:
(http://forum.arcadecontrols.com/index.php?action=dlattach;topic=130136.0;attach=277462)

-OR-

Configure Car 2 as Any Color/LIVE for the Virtual Race Commentary.
(http://forum.arcadecontrols.com/index.php?action=dlattach;topic=130136.0;attach=277464)

EXIT and SAVE THE CHANGE:
(http://forum.arcadecontrols.com/index.php?action=dlattach;topic=130136.0;attach=277466)

Quit MAME and restart the vr2.bat file.

 The two windows should now link.
Title: Re: Virtua Racing link success
Post by: RamjetR on February 12, 2013, 08:52:53 pm
No need for running multiple computers if any of your main rigs have enough grunt...

But... It looks damn impressive ;D
(http://images.arianchen.de/temp/07022013511.jpg)

LOL.... do Like!

That does look pretty cool hahaha...
Title: Re: Virtua Racing link success
Post by: RamjetR on February 12, 2013, 09:02:06 pm
If you want borders removed, I'll do a little app to do that back end of this week when I come off call. I'll have to double check how you can exit the program once I take away the min,max,close buttons off the screen. It can be launched in your .bat file too to keep it nice and clean.

Ramjet
Title: Re: Virtua Racing link success
Post by: Howard_Casto on February 12, 2013, 09:19:34 pm
If you want borders removed, I'll do a little app to do that back end of this week when I come off call. I'll have to double check how you can exit the program once I take away the min,max,close buttons off the screen. It can be launched in your .bat file too to keep it nice and clean.

Ramjet

A post close message will probably work.  Not sure what message mame needs though. 
Title: Re: Virtua Racing link success
Post by: Hunk_4TH on February 13, 2013, 09:26:45 pm
If you want to try the link with two cars out on a single machine:

Get the link-cabmame binary linked here, extract, and put it in your MAME folder: http://www.mameworld.info/ubbthreads/showthreaded.php?Cat=&Number=303661 (http://www.mameworld.info/ubbthreads/showthreaded.php?Cat=&Number=303661)

Create a vr2.bat  batch file with:
Code: [Select]
start /b cabmame.exe vr -w -nvram_directory nvram1 -localport 15111 -remoteport 15112 -localhost 0.0.0.0 -remotehost 127.0.0.1
start /b cabmame.exe vr -w -nvram_directory nvram2 -localport 15112 -remoteport 15111 -localhost 0.0.0.0 -remotehost 127.0.0.1
This launches two instances of MAME with separate non-volatile memory [nvram] folders.

Having separate nvram folders allows each instance of MAME  to be defined as specific car.

In one window configure Car 1 as RED/MASTER, and in the other window configure Car 2 as BLUE/SLAVE or LIVE Commentary.

Press F2 to enter TEST MODE:


Configure Car 1 as RED/MASTER:


Configure Car 2 as BLUE/SLAVE for Car 1 vs Car 2:


-OR-

Configure Car 2 as Any Color/LIVE for the Virtual Race Commentary.


EXIT and SAVE THE CHANGE:

Quit MAME and restart the vr2.bat file.

 The two windows should now link.
Sweet thanks man!! I love detailed responses :)
Title: Re: Virtua Racing link success
Post by: RamjetR on February 14, 2013, 04:55:46 am
If you want borders removed, I'll do a little app to do that back end of this week when I come off call. I'll have to double check how you can exit the program once I take away the min,max,close buttons off the screen. It can be launched in your .bat file too to keep it nice and clean.

Ramjet

A post close message will probably work.  Not sure what message mame needs though.

Post close message is what I did for v0.4 but it has compatibility issues with Windows XP. It worked fine on Vista/7 but XP didn't. What I ended up doing was monitoring the process and when it was closed (by user or by FE) then closed itself. Actually from memory I think it was the cmd window that didn't respond to the post message...

I think I'll make just a generic version of the program which you can just put a window/hwnd name into an ini and it'll just grab that and remove the borders... that outta just do the trick for everything in the future then?
Title: Re: Virtua Racing link success
Post by: Super-Becker on August 30, 2022, 12:00:52 pm
Anyone willing to do an updated tutorial on how to run on two PCs communicating? I would be immensely grateful.