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: Link play on San Francisco Rush & all vegas/seattle games  (Read 70518 times)

0 Members and 3 Guests are viewing this topic.

Super-Becker

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 105
  • Last login:Today at 09:19:45 pm
  • I want to build my own arcade controls!
Re: Link play on San Francisco Rush & all vegas/seattle games
« Reply #120 on: May 30, 2024, 03:48:37 pm »
Here are the files you requested:
https://www.transfernow.net/pt/bld?utm_source=20240530HRIeSzOi

Man, what a mess you made! Many things you said are in the standard tutorial on the first page, much clearer. Other things you said are confusing, because I didn't need to do that. Rewriting the tutorial this way could make everything more confusing for a new user on the forum. Maybe I'm too much of a layman to understand, I'm sorry.

Your PCs will run MAME 300mhz well, it's worth testing.

NOTE: I suggest activating Slider Control on the track selection screen.

jorgenjl2

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 132
  • Last login:November 16, 2024, 03:49:38 pm
  • I want to build my own arcade controls!
Re: Link play on San Francisco Rush & all vegas/seattle games
« Reply #121 on: May 30, 2024, 07:54:15 pm »
Here are the files you requested:
https://www.transfernow.net/pt/bld?utm_source=20240530HRIeSzOi

Man, what a mess you made! Many things you said are in the standard tutorial on the first page, much clearer. Other things you said are confusing, because I didn't need to do that. Rewriting the tutorial this way could make everything more confusing for a new user on the forum. Maybe I'm too much of a layman to understand, I'm sorry.

Your PCs will run MAME 300mhz well, it's worth testing.

NOTE: I suggest activating Slider Control on the track selection screen.

EDIT: Can you clarify what exactly you did? When you install the openvpn download, it creates a tap vpn network adapter. When you install the tap download, it then automatically creates a second tap adapter. My mame was crashing with the two adapters so as a last ditch effort after a long time of troubleshooting I removed the 2nd tap adapter (using the delete batch script in the bin folder) and then I bridged my ethernet and the openvpn tap adapter as normal and mame no longer crashed. Were you able to bridge the openvpn tap adapter (created by default when installing openvpn) and the 2nd tap adapter (installed by default when installing tap software you linked to) and that worked for you? The original instructions have it bridged between the ethernet and tap adapter if I understand correctly but clarify for us.

100% agreed on trying the 300mhz 60fps. That was next on my to do list to try to get rid of the remaining car oscillations if the item discussed above is not the issue. I am wondering if the faster amd 3600 pc may have had less oscillations compared to my i7 4th gen pcs but I am still confirming. I did try some changes to the mame ini and it made no difference. However, assuming above is correct, I need to go back and test.

Also, can you confirm that your LAN games stop working when you have the bridge enabled? If needed, I was planning on using SikuliX to program the bridging (which uses AI image recognition) since Microsoft did not allow programmatic bridge ability (only Windows 11 with one of the most recent patches has it but I am on win 10). For some reason some LAN games work fine with my tap vpn bridge but others do not. For example FnF Supercars, Pixar Cars, and Chase HQ 2 worked fine with it at least for my setup. However, Mario Kart SP DX, Outrun 2  SPDX, or Daytona USA break when it was bridged. So I was thinking I could have a "before" script run from Launchbox/BigBox to run a Sikuli script to add or remove the bridge properties checkbox. Again if you know something I do not with this then let us know.
« Last Edit: May 30, 2024, 08:55:23 pm by jorgenjl2 »

Super-Becker

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 105
  • Last login:Today at 09:19:45 pm
  • I want to build my own arcade controls!
Re: Link play on San Francisco Rush & all vegas/seattle games
« Reply #122 on: May 30, 2024, 09:27:54 pm »
It shouldn't have gone wrong for you. Maybe I installed tap first and then OpenVPN, I didn't remove anything, try this. If it doesn't work, you will definitely need more powerful processors.

I only use the bridge to play Rush, as it interferes with other games in Lan.

jorgenjl2

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 132
  • Last login:November 16, 2024, 03:49:38 pm
  • I want to build my own arcade controls!
Re: Link play on San Francisco Rush & all vegas/seattle games
« Reply #123 on: May 31, 2024, 10:33:54 am »
It shouldn't have gone wrong for you. Maybe I installed tap first and then OpenVPN, I didn't remove anything, try this. If it doesn't work, you will definitely need more powerful processors.

I only use the bridge to play Rush, as it interferes with other games in Lan.

Can you send a screenshot of your network adapters and/or the right click properties of the tap you used? If it was anything like my install, it installed two tap adapters so it is not clear which of the two (the openvpn tap adapter or the regular tap adapter install) you bridged to the regular ethernet adapter. Since only one is used (if I understand you correctly), I wonder if we even need both of the installs you mentioned or if only one install is needed. Like I said though, I have had zero disconnects at all since using this new method. The main issue was crashing of mame and nothing would work until I removed one of the two (I believe it removed the regular tap and left the openvpn tap) though. So knowing which of the two you are using may solve the issue.

jorgenjl2

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 132
  • Last login:November 16, 2024, 03:49:38 pm
  • I want to build my own arcade controls!
Re: Link play on San Francisco Rush & all vegas/seattle games
« Reply #124 on: May 31, 2024, 02:13:20 pm »
If I go to my tap adapter (named mame3 on my third pc as an example) and right click properties > configure > driver > driver details > it shows copyright openvpn on version 9.24.7 which is the tap version. So maybe the openvpn install is still needed to put files on your pc and the tap version is the version needed and both versions installs are needed maybe? Here is what I have after deleting the additional tap adapter with the bin file and showing the version.

Super-Becker

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 105
  • Last login:Today at 09:19:45 pm
  • I want to build my own arcade controls!
Re: Link play on San Francisco Rush & all vegas/seattle games
« Reply #125 on: May 31, 2024, 05:17:44 pm »
Hope this video helps:


jorgenjl2

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 132
  • Last login:November 16, 2024, 03:49:38 pm
  • I want to build my own arcade controls!
Re: Link play on San Francisco Rush & all vegas/seattle games
« Reply #126 on: June 01, 2024, 12:40:32 am »
 :tool:
Hope this video helps:


This helped but doing more testing I was able to tell that installing the tap software you mentioned first and THEN the OpenVPN version you mentioned (instead of the order you showed) makes it so only one tap adapter is installed. So now everything makes sense as to why it seemed like you were being so rude about steps that were necessary (but not if we do it this way instead). I am also glad you sent the video because it appears that adding the wintun adapter checkbox to the properties of the bridge (and not just the Ethernet and tap adapter that I renamed “mameX”) got rid of a lot of the cars bouncing. I tested that wintun before uninstalling/reinstalling with this new order method. I only tested two races but at least it seemed that way. It seems really good now but I need to get more people to test my four player racers. The only thing I don’t have of yours is the “Open VPN Data Channel Offload” adapter but not sure that would help a ton or not. 

Attached is what my 4th player pc adapters look like now for example now that I used that install order and rebooted after having it setup. I just agree that we should use the versions you posted along with mostly what the OG instructions say to do (just with these updated versions and not the order of your previous post).

Super-Becker

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 105
  • Last login:Today at 09:19:45 pm
  • I want to build my own arcade controls!
Re: Link play on San Francisco Rush & all vegas/seattle games
« Reply #127 on: June 01, 2024, 09:17:53 am »
I would like to see a video of your results.
I made a video showing Rush 2049, check it out. Car oscillation is zero.

Another detail I forgot to mention is that I use high quality Cat8 ethernet cables. I believe that any help, however small, is welcome to make this game work correctly.

NOTE: I didn't mean to be rude. If I left that impression, please forgive me.
« Last Edit: June 01, 2024, 09:48:14 am by Super-Becker »

jorgenjl2

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 132
  • Last login:November 16, 2024, 03:49:38 pm
  • I want to build my own arcade controls!
Re: Link play on San Francisco Rush & all vegas/seattle games
« Reply #128 on: June 02, 2024, 11:30:51 pm »
I would like to see a video of your results.
I made a video showing Rush 2049, check it out. Car oscillation is zero.

Another detail I forgot to mention is that I use high quality Cat8 ethernet cables. I believe that any help, however small, is welcome to make this game work correctly.

NOTE: I didn't mean to be rude. If I left that impression, please forgive me.
No worries at all. I figured it was a misunderstanding. I am so happy you found out how to do this and get these working as Rush the Rock is my favorite racing game.

I did some more testing and ever since I added the wintun checkbox (and possibly doing the correct order but I think it was the wintun), I get pretty much zero oscillations of cars for two players. When I have three racers join a race, I get just the smallest amount of oscillations. When I do a four player race, I get just a little more but not enough to worry about. Before the wintun checkbox, I would get cpu cars sometimes going underneath the road and then sometimes flying in the clouds when they should be on the road. That has not been seen since adding it.

The only issue I have found is when doing four player races, it sometimes starts the race with a random racer or two being against 7 other cpu cars and the other two or three being in the race together. It appears to be a timing thing on when the countdown happens to go to 0 and people accept their car and auto vs shifter. It happens maybe every third race in 4 player but it has never happened to me in a 2 player race. A 3 player I think it happened once. I will have to get some friends over to test to see if there is a trick to get around it in 4 player mode or if I just have to randomly restart and try again.

FYI I was able to automate adding the Ethernet connection to the bridge before starting Rush the Rock/Rush 2049/California Speed and then have it automate removing it from the bridge so all other games work. It works really well. I will post the code when I get a chance. I personally have it for BigBox (Launchbox) but you could probably update it just slightly for any front end. This code is for windows 10 since supposedly Microsoft added the Netsh bridge commands to win 11 (assuming on one of latest patches that has it) so having win 11 makes it easy. On win 10 it was a pain but now that we have the code it’s fairly easy.

Are you running Windows 11 or 10? I noticed on my laptop that is win 11 that installing that tap and openvpn version created the extra network offload adapter that you had but on my win 10’s it did not.

Super-Becker

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 105
  • Last login:Today at 09:19:45 pm
  • I want to build my own arcade controls!
Re: Link play on San Francisco Rush & all vegas/seattle games
« Reply #129 on: June 03, 2024, 08:16:59 am »
I'm glad it worked for you. I hope everyone can do this. Rush The Rock is also my favorite racing game. I think the only game that would surpass Rush The Rock would be Rush 2, if it had come out in the arcade. The creators could release Rush 2 on PC as it would have been if it had been released on the arcade back then. It would be incredible.

In my case the oscillations appear when I add the original arcade. I hope to find an old version of MAME that runs this game with more difficulty and is balanced with the arcade, without oscillations.

Select tracks and cars at the same time on all PCs.

I don't use front-end. I think it's cooler to customize desktop icons, as you can see.

I'm using Windows 11 on both PCs.

jorgenjl2

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 132
  • Last login:November 16, 2024, 03:49:38 pm
  • I want to build my own arcade controls!
Re: Link play on San Francisco Rush & all vegas/seattle games
« Reply #130 on: June 03, 2024, 11:15:38 pm »
I'm glad it worked for you. I hope everyone can do this. Rush The Rock is also my favorite racing game. I think the only game that would surpass Rush The Rock would be Rush 2, if it had come out in the arcade. The creators could release Rush 2 on PC as it would have been if it had been released on the arcade back then. It would be incredible.

In my case the oscillations appear when I add the original arcade. I hope to find an old version of MAME that runs this game with more difficulty and is balanced with the arcade, without oscillations.

Select tracks and cars at the same time on all PCs.

I don't use front-end. I think it's cooler to customize desktop icons, as you can see.

I'm using Windows 11 on both PCs.

I will need to test four players in the Rock with selecting the track/car/shifter at the same time. Now that you mention it, I think the first times I played 4 players, I always let the countdown go by itself and I didn’t click the pedal to actually select the car or shifter (just highlighted it). That probably kept it more in sync. I think I also separately kept pushing the “radio” button to lower the time left a few times and I believe it still worked with all in sync. I will test some more but 2 players seemed great regardless.

I tested Mame 2049 SE on this (close to) latest Mame version and got disconnects very early on multiple times. However, I went back and read the thread and realized you or others have the same issue in recent Mame versions and instead you have no disconnects on Rush 2049 SE when using mame 0.249. It looks like BigTymers 60fps hack goes back to .239 Mame so I am assuming the .249 was regular Mame and not the hack which I will try. Besides .249 Mame, that is also with the openvpn and tap adapter versions below right where 2049 SE gets no disconnects?

Do first: install "tap-windows-9.24.7-I601-Win10
Do second: OpenVPN-2.6.9-I001-amd64" (other versions didn't work including the latest 2.6.10)
Third: Restart PCs


 

jorgenjl2

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 132
  • Last login:November 16, 2024, 03:49:38 pm
  • I want to build my own arcade controls!
Re: Link play on San Francisco Rush & all vegas/seattle games
« Reply #131 on: June 07, 2024, 09:26:07 pm »
I used 0.249 for Rush 2049 and it did seem to stop the disconnects but the car oscillations were too crazy so I ended up hiding Rush 2049 for now. I also unfortunately got a couple disconnects with Rush the Rock. It seems like maybe once every third time now. I am thinking I will try to turn on Mame logging in the ini to see what is running at the time to see if it tells us anything. If may just be that my PCs are slower than what is needed though. It works well enough to leave on my racing cabinet but it has enough of an issue that I have to prepare people it may disconnect occasionally and we have to start again. It’s usually the i7 4th gen that disconnects but I did have my ryzen 1600 pc disconnect once. The ryzen 3600 pc has not disconnected and the 4th pc (another i7 4th gen) also has not disconnected.

jorgenjl2

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 132
  • Last login:November 16, 2024, 03:49:38 pm
  • I want to build my own arcade controls!
Re: Link play on San Francisco Rush & all vegas/seattle games
« Reply #132 on: June 12, 2024, 08:04:28 am »
I have automated turning on and back off jumbo frames (setting mtu to 9000 on each of the four PCs that are isolated to their own router) and so far no disconnects. I am still testing though. If I get a disconnect I can try to turn on mame logging. From what I am reading, jumbo frames can sometimes help lower cpu usage which may (or may not) be related to the infrequent disconnects. I will update once I know more.

SailorSat

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1227
  • Last login:Today at 06:07:42 am
    • For Amusement Only e.V.
Re: Link play on San Francisco Rush & all vegas/seattle games
« Reply #133 on: June 12, 2024, 01:14:15 pm »
As for jumbo frames...
The "performance" effect has to do with splitting (and recombining) large packets.
That does not affect games using the TAP-interface, as those were designed with standard ethernet (1500 bytes per packet) in mind.

On current CPUs (and with probably frequency of 60-120 packets per second) that probably can barely be measured.
I do all that stuff even without a Joystick ;)
Soft-15kHz, cabMAME, For Amusement Only e.V.


jorgenjl2

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 132
  • Last login:November 16, 2024, 03:49:38 pm
  • I want to build my own arcade controls!
Re: Link play on San Francisco Rush & all vegas/seattle games
« Reply #134 on: June 12, 2024, 08:21:48 pm »
As for jumbo frames...
The "performance" effect has to do with splitting (and recombining) large packets.
That does not affect games using the TAP-interface, as those were designed with standard ethernet (1500 bytes per packet) in mind.

On current CPUs (and with probably frequency of 60-120 packets per second) that probably can barely be measured.
Yeah although I know the original game probably used 1500 mtu, I wasn’t sure if the extra large frames (both Ethernet and tap bridge set to 9000 mtu) could help with the disconnects. It’s hard to tell what is a coincidence with this testing since the disconnects were sporadic. It “seems” like the races are more reliable with 9k mtu but the attract mode screen is less reliable and crashes for 3 of them about a half hour later. I previously (back when I used 1500 mtu and had no wintun adapter but heavy oscillating cars) went overnight with no disconnects in attract mode. Once there is only one attract mode running, it never seems to disconnect so the error seems to be network related. I need to test a bunch of races to see if in race it disconnects.

jorgenjl2

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 132
  • Last login:November 16, 2024, 03:49:38 pm
  • I want to build my own arcade controls!
Re: Link play on San Francisco Rush & all vegas/seattle games
« Reply #135 on: June 12, 2024, 08:31:34 pm »
Here is a part of a log file from Mame ini log I got but it seemed the same as the log for the PCs that did not disconnect. I do get an error in the Windows event log though for the ones that disconnect

Application event viewer error:
Faulting application name: mame_SFRushRock.exe, version: 0.261.0,0, time stamp: 0x656525e5
Faulting module name: mame_SfRushRock,exe, version: 0,261.0.0, time stamp: 0x656525e5
Exception code: 0x0000005

Code: [Select]
Log file output Mame near end:
[:pci:00.0] config_read 00:08.0:10 08000008 @ ffffffff
[:pci: 08.0] command = 0002
: pc1:00.01
config write 00:08.0:04 00000002 @ ffffffff
: pci: 00.01
config_read 00:08.0:08 03000002 @ ffffffff
[:pci: 00.01
config_read 00:08.0:00 0001121a @ ffffffff
l:pci:00.01
config_read 00:08.0:00 0001121a @ ffffffff
[:pc1:00.01
':maincpu (8008FA88): unmapped configuration_
_space memory write to 4000 = 00000000 & FFFFFFFF
[:pci: 00.0] config write 00:08.0:0 00000000 @ fffffffF [:pci: 08.01
'maincpu' (8008FA88): voodoo_pci_device pictri_w (initEnable) offset 40 - 00000001 & FFFFFFFF
[:pci: 00.0] config write 00:08.0:40 00000001 @ ffffffff pci: 08.01
':maincpu (8008FA88): voodoo_pci device pcictri_w to offset 44 = 00000000 & FFFFFFFF
[:pci:00.01
config write 00:08.0:44 00000000 @ ffffffff
[:pci: 08.0]
'maincpu' (8008FA88): voodoo_pci_device peictriw to offset 48 = 00000000 & FFFFFFFF
lipci: 00.01
config write 00:08.0:48 00000000 @ ffffffff
[:pci: 08.0] ':maincu' (8008F88): voodoo_pci device pcictrl_w (initEnable) offset 40 = 00000003 & FFFFFFFF
[:pci:00.01 config write 00:08.0:40 00000003 @ ffffffff
[:pci: 08.0] ':maincpu' (800B3220): voodoo_pci device pcictri_w (initEnable) offset 40 - 00000005 & FFFFFFFF
[:pci:00.01
config_write 00:08.0:40 00000005 @ ffffffff
[:pci: 08.07
:maincpu' (80081F98):voodoo_pci device peictriw (initEnable) offset 40 - 00000003 & FFFFFFFF
[:pci: 00.01
config write 00:08.0:40 00000003 @ ffffffff
l:pci: 08.0]
':maincpu' (800B3220): voodoo_pci device pcictri_w (initEnable) offset 40 - 00000005 & FFFFFFFF
•pc1:00.01
config write 00:08.0:40 00000005 @ ffffffff
[:pci: 08.01
maincpu'
(800B3220): voodoo_pci device pcictrl_w (initEnable) offset 40 - 00000003 & FFFFFFFF
[:pci: 00.0] config write 00:08.0:40 00000003 @ ffffffff [:pci:08.0:voodoo] internal
_lfb_r: Buffer offset out of bounds x-128 y-100 offset-00019080 bufoffs=00014580
[:pci: 08.0:voodoo]
':maincpu* (800B3220): Unexpected write to register vRetrace[1.81] = 00000000
[:pci: 08.0:voodoo]
'maincpu'
(8003220): Unimplemented write to register maxRgbDelta [1.8C] = 00000000
V: pci: 00.072
"maincpu'
(800B3220): unmapped configuration_space memory write to 400C0 - 00000000 & FFFFFFFF
Lapci:00.0] config write 00:08.0:0 00000000 @ ffffffff [: pci: 08.0:voodoo] hSync=23-640, bp=92, vis=511
vSync=3-411, bp=24, vis=384
[:pci: 08.0:voodoo] Horiz: 92-602 (665 total)
Vert: 24-407 (414 total) -- [:pci: 08.0:voodoo] Medium resolution, 60.386473 Hz
[epci: 08.0:voodoo] yoffs: 24 vsyncstart: 411 vsyncstop: 0
V: pci: 08.0: voodoo]
'maincpu* (80081F98): Unimplemented write to register maxRgbDelta[1.8C] = 00080408
[: pci: 08.0] ':maincpu (800B3220): voodoo_pci _device pcictri_w (initEnable) offset 40 - 00000005 & FFFFFFFF
Lipci: 00.0] config write 00:08.0:40 00000005 @ ffffffff [pci: 08.01
"maincpu'
(80081F98): voodoo_pci device pcictrl_ (initEnable) offset 40 - 00000003 & FFFFFFFF
[:pci: 00.0] config write 00:08.0:40 00000003 @ ffffffff
L•pci: 08.01
"maincpu'
(800B3220): voodoo_pci_device pcictri_w (initEnable) offset 40 - 00000005 & FFFFFFFF|
I
[: pci: 00.01
config write 00:08.0:40 00000005 @ ffffffff
V:pci: 08.01
'maincpu' (800B3220): voodoo_pci
device pcictri w (initEnable) offset 40 - 00000003 & FFFFFFFF.
[:pci: 00.01
config write 00:08.0:40 00000003 @ ffffffff
Lapci: 08.01
':maincpu'
(8003220): voodoo_pci device pcictriw (initEnable) offset 40 = 00000005 & FFFFFFFF
L:pci: 00.01
config write 00:08.0:40 00000005 @ ffffffff
[: pci: 08.01
"maincpu'
(8003220): voodoo pci device pcictrl_w (initEnable) offset 40 = 00000003 & FFFFFFFF
[:pci: 00.0] config write 00:08.0:40 00000003 @ ffffffff
disconnect.

jorgenjl2

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 132
  • Last login:November 16, 2024, 03:49:38 pm
  • I want to build my own arcade controls!
Re: Link play on San Francisco Rush & all vegas/seattle games
« Reply #136 on: June 14, 2024, 04:39:46 pm »
Here is the code to be able to automate adding and dropping the bridge for Windows 10. If you have Windows 11 you should be able to use a netsh command to not have to bother with this but win 10 and older apparently do not have the bridge netsh capability and Microsoft is not adding as far as I know.. Just use Launchbox to set this to run before (with wait to exit) and after the game kicks off. It uses a free program called Sikuli that uses AI to find images and click it for you.

1) Create a folder in your documents folder called Mame4.sikuli
2) Create a add_bridge.bat file
Code: [Select]
java -jar "C:\Users\Emulation\Documents\Mame4.sikuli\sikulixidewin-2.0.6-20230417.153928-17.jar" -r "C:\Users\Emulation\Documents\Mame4.sikuli\Mame_add_bridge.py"
timeout /t 4 /nobreak >nul
C:\Users\Emulation\Documents\Mame4.sikuli\mame_foreground.ahk

3) Create a remove_bridge.bat file
Code: [Select]
java -jar "C:\Users\Emulation\Documents\Mame4.sikuli\sikulixidewin-2.0.6-20230417.153928-17.jar" -r "C:\Users\Emulation\Documents\Mame4.sikuli\Mame_remove_bridge.py"
timeout /t 4 /nobreak >nul
C:\Users\Emulation\Documents\Mame4.sikuli\BigBox_foreground.ahk

4) Create a BigBox_foreground.ahk file
Code: [Select]
#Persistent
SetTimer, CheckBigBox, 100
return

CheckBigBox:
If WinExist("Network Connections")
{
WinClose
Sleep, 500 ;wait 500ms to make sure closes ncpa.cpl
}

IfWinExist, ahk_exe BigBox.exe
{
WinActivate
SetTimer, CheckBigBox, Off
        ExitApp
}
return

and mame_foreground.ahk but change the exe you use for mame (may be mame.exe or mame64.exe but I use custom names so I can control each with Logitech app)
Code: [Select]
#NoEnv
#SingleInstance force
#Persistent
Process, Close, mame_foreground.ahk
SetTimer, Checkmame, 100
return

Checkmame:
If WinExist, ahk_exe mame_SFRushRock.exe
{
WinActivate
SetTimer, Checkmame, Off
        ExitApp
}
else if WinExist, ahk_exe mame_SFRush2049.exe
{
WinActivate
SetTimer, Checkmame, Off
        ExitApp
}
else if WinExist, ahk_exe mame_calspeed.exe
{
WinActivate
SetTimer, Checkmame, Off
        ExitApp
}
else if WinExist, ahk_exe mame_SFRush.exe
{
WinActivate
SetTimer, Checkmame, Off
        ExitApp
}
else
{
SetTimer, Checkmame, Off
        ExitApp
}
return

5) Create a Mame_add_bridge.py
Code: [Select]
import os
import subprocess
import time
from sikuli import *

# Function to open Network Connections
def open_network_connections():
    subprocess.Popen(["control.exe", "ncpa.cpl"])

# Define the image patterns for the network bridge and context menu options
ethernet_pattern = Pattern(Pattern("ethernetmain.png").similar(.80).targetOffset(32,21))
ethernet_pattern_blue = Pattern(Pattern("ethernet_blue.png").targetOffset(26,22))
ethernet_pattern_line = Pattern(Pattern("ethernet_line.png").targetOffset(39,23))
remove_bridge_pattern = Pattern("removebridge.png")
add_bridge_pattern = Pattern("add_bridge.png")

# Open Network Connections window
open_network_connections()
#wait(1)  # Wait for the window to open

def check_click_patterns():
    matches = findAnyList([ethernet_pattern,ethernet_pattern_blue,ethernet_pattern_line])
    if matches:
        for match in matches:
            if match.getImage() == ethernet_pattern.getImage():
                rightClick(match)
                print('Ethernet Pattern Found and Clicked')
                if exists(add_bridge_pattern):
                    click(add_bridge_pattern)
                    print('Clicked add bridge')
                return True
            elif match.getImage() == ethernet_pattern_blue.getImage():
                rightClick(match)
                print('Ethernet Pattern Blue Found and Clicked')
                if exists(add_bridge_pattern):
                    click(add_bridge_pattern)
                    print('Clicked add bridge from blue')
                return True
            elif match.getImage() == ethernet_pattern_line.getImage():
                rightClick(match)
                print('Ethernet Pattern Line Found and Clicked')
                if exists(add_bridge_pattern):
                    click(add_bridge_pattern)
                    print('Clicked add bridge from line')
                return True
    return False

timeout =2
start_time = time.time()

while True:
    if check_click_patterns():
        break
    if time.time() - start_time > timeout:
        print('Timeout Reached, Exiting')
        break
    #wait(1) #wait a sec before checking again

# Close the Network Connections window
open_network_connections()#make sure back on window
wait(0.2)
type(Key.F4, KeyModifier.ALT)#close


6) Create a Mame_remove_bridge.py
Code: [Select]
import os
import subprocess
import time
from sikuli import *

# Function to open Network Connections
def open_network_connections():
    subprocess.Popen(["control.exe", "ncpa.cpl"])

# Define the image patterns for the network bridge and context menu options
ethernet_pattern = Pattern(Pattern("ethernetmain.png").similar(.80).targetOffset(32,21))
ethernet_pattern_blue = Pattern(Pattern("ethernet_blue.png").targetOffset(26,22))
ethernet_pattern_line = Pattern(Pattern("ethernet_line.png").targetOffset(39,23))
remove_bridge_pattern = Pattern("removebridge.png")
add_bridge_pattern = Pattern("add_bridge.png")

# Open Network Connections window
open_network_connections()
#wait(1)  # Wait for the window to open

def check_click_patterns():
    matches = findAnyList([ethernet_pattern,ethernet_pattern_blue,ethernet_pattern_line])
    if matches:
        for match in matches:
            if match.getImage() == ethernet_pattern.getImage():
                rightClick(match)
                print('Ethernet Pattern Found and Clicked')
                if exists(remove_bridge_pattern):
                    click(remove_bridge_pattern)
                    print('Clicked remove bridge')
                return True
            elif match.getImage() == ethernet_pattern_blue.getImage():
                rightClick(match)
                print('Ethernet Pattern Blue Found and Clicked')
                if exists(remove_bridge_pattern):
                    click(remove_bridge_pattern)
                    print('Clicked remove bridge from blue')
                return True
            elif match.getImage() == ethernet_pattern_line.getImage():
                rightClick(match)
                print('Ethernet Pattern Line Found and Clicked')
                if exists(remove_bridge_pattern):
                    click(remove_bridge_pattern)
                    print('Clicked remove bridge from line')
                return True
    return False

timeout =2
start_time = time.time()

while True:
    if check_click_patterns():
        break
    if time.time() - start_time > timeout:
        print('Timeout Reached, Exiting')
        break
    #wait(1) #wait a sec before checking again

# Close the Network Connections window
open_network_connections()#make sure back on window
wait(0.2)
type(Key.F4, KeyModifier.ALT)#close

7) Download sikulixidewin-2.0.6-20230417.153928-17.jar for free to be able to run the Sikuli script. This may require installing a jdk first like OpenJDK21U-jdk_x64_windows_hotspot_21.0.3_9.msi for free

8 ) Downoad the attached image files to the same folder. Sikuli looks for these images.

9) Set Launhbox to kick off the add upon start (with wait to exist) and the remove after

Done. Now Sikuli opens up the network adapter screen, looks for the connection called "Ethernet", right clicks it, and says add to bridge. Then after closing, it finds the Ethernet connection, right clicks, and clicks remove from bridge. I have three types of Ethernet images where one is not clicked, one is clicked where it is greyed, and then one where it was clicked but was clicked off of. This works perfect on my pc but should be tested obviously.
« Last Edit: June 14, 2024, 04:42:53 pm by jorgenjl2 »

jorgenjl2

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 132
  • Last login:November 16, 2024, 03:49:38 pm
  • I want to build my own arcade controls!
Re: Link play on San Francisco Rush & all vegas/seattle games
« Reply #137 on: June 30, 2024, 09:47:41 pm »
Has anyone else tested Rush the Rock with the vpn/tap versions listed? How is it working if so?

I dropped the idea of using jumbo frames so I would not say that helps enough to change much of anything (and attract mode seems to crash with it enabled more often). Remember that I am using four players which is also more demanding than just two players and I have two i7 4th gen PCs and one ryzen 1600 and one ryzen 3600 pc so newer PCs may be even better. It works most of the time though.

jorgenjl2

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 132
  • Last login:November 16, 2024, 03:49:38 pm
  • I want to build my own arcade controls!
Re: Link play on San Francisco Rush & all vegas/seattle games
« Reply #138 on: August 12, 2024, 07:15:38 pm »
I was talking to SailorSat about the networking on this and she mentioned she saw this Project R. I see it was just recently updated. Looks pretty interesting for those interested in Rush the Rock.

https://t3hd0gg.com/project-r/#

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1912
  • Last login:October 22, 2024, 11:51:12 am
    • My Arcade (updated 1/30/13)
Re: Link play on San Francisco Rush & all vegas/seattle games
« Reply #139 on: October 22, 2024, 11:48:31 am »
I'm glad to find this thread! I have a pair of TRX machines and the Seattle board in one of them went out recently. I'm trying to find someone who can repair them, or find a replacement board, but if I don't have any luck with that I may eventually go the emulation route for one, linked directly to the other (without a vpn). I'm glad the mame team has worked on these games and thanks to everyone here who has worked on getting it running and documented their efforts. I also have a pair of Rush the Rocks but those have always worked great, knock on wood.
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

Bigtymer781

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 47
  • Last login:October 30, 2024, 08:10:04 am
Re: Link play on San Francisco Rush & all vegas/seattle games
« Reply #140 on: October 30, 2024, 08:08:35 am »
I've been playing Rush The Rock on Project R the last few weeks, I'd highly recommend it (for this game) over MAME. Force Feedback was added a few days ago also, in v0.6.0-beta1.


TheArcaveProject

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:Yesterday at 05:48:24 pm
  • Here as a collector!
Re: Link play on San Francisco Rush & all vegas/seattle games
« Reply #141 on: October 30, 2024, 03:09:43 pm »
Awesome thread, going to read through it all this evening. Building a dual race cab out of a gutted final lap 2 cab.

nipsmg

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1750
  • Last login:Yesterday at 09:22:27 pm
  • ROONEY!! ERRGH!!
    • Arcadia
Re: Link play on San Francisco Rush & all vegas/seattle games
« Reply #142 on: October 31, 2024, 08:48:22 am »
I've been playing Rush The Rock on Project R the last few weeks, I'd highly recommend it (for this game) over MAME. Force Feedback was added a few days ago also, in v0.6.0-beta1.



Woah -- I didn't know this existed -- this is awesome. I've got a SF rush the rock I converted to a multi-racer-- need to install this -- was not happy with MAME's emulation.

anchounio

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 124
  • Last login:November 17, 2024, 11:20:06 pm
  • I want to build my own arcade controls!
Re: Link play on San Francisco Rush & all vegas/seattle games
« Reply #143 on: November 16, 2024, 04:10:21 am »
I've been playing Rush The Rock on Project R the last few weeks, I'd highly recommend it (for this game) over MAME. Force Feedback was added a few days ago also, in v0.6.0-beta1.



Does PROJECT R accept link play in several cabinets (PC's ) ? 
I've seen nothing related to it in the documentation of the project.

If it does, how can it be done?

jorgenjl2

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 132
  • Last login:November 16, 2024, 03:49:38 pm
  • I want to build my own arcade controls!
Re: Link play on San Francisco Rush & all vegas/seattle games
« Reply #144 on: November 16, 2024, 03:45:51 pm »
Project R looks so nice! I am glad they also added ffb as this was the only game where ffb didn’t work correctly for me (center of wheel clunks) so I will have to try this out.

Really hoping they can add LAN and this would be perfect!