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: fooling with m2emu network  (Read 111804 times)

0 Members and 1 Guest are viewing this topic.

Sixfortyfive

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 4
  • Last login:November 29, 2021, 12:19:06 am
  • I want to build my own arcade controls!
Re: fooling with m2emu network
« Reply #240 on: October 28, 2021, 01:43:35 pm »
Ah, I'm close, and it seemed to have been working fine at first, but now the spectator cam alternates between a working behind-the-car view and this, where only the background is visible.



Ah... I see...
I guess you are missing the patch-script for the special inputs.

https://raw.githubusercontent.com/SailorSat/daytona-utils/master/src/scripts/daytonas.lua
I did have a version of this; just forgot to put it in the scripts folder for the spectator. But now I'm getting the above error whether I have a script in the folder or not.



EDIT: In any case, here's what it looked like while I had it working.





EDIT: I consistently get that bug on the spectator station if I hold the VR4 button during the part in the attract demo where it lets you change views.



EDIT: Fixed it by deleting the spectator emulator's NVRAM and reconfiguring it from scratch.  :)

Can the control panel tool be feasibly run from a single PC setup?
« Last Edit: October 28, 2021, 04:36:55 pm by Sixfortyfive »

anchounio

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 121
  • Last login:December 17, 2023, 04:24:10 pm
  • I want to build my own arcade controls!
Re: fooling with m2emu network
« Reply #241 on: November 12, 2021, 01:58:50 pm »
Are there lua scripts also for stcc and waverunr ?  :notworthy: :notworthy:

The network is not stable on those games too, as well as indy500 or motoraid without the lua scripts

Daytonafan1984

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:March 11, 2022, 04:57:02 am
  • I want to build my own arcade controls!
Re: fooling with m2emu network
« Reply #242 on: December 02, 2021, 09:28:55 pm »
Hi Sailorsat, I want to thank you for all the awesome work you have done with lagfix and the live cam. I have this setup on my cab and it's great. I have a few questions, I noticed you have a new daytonalagfix.exe but I can't get this working with livecam, not sure the benefit of this new exe? Also just curious if you found a way to make it possible to be able to start a game from 1p and have the live cam work as I only have a 2 can setup the game often gets started from 1p and the camera doesn't work :( lastly I was wondering if you could update to allow livestats to work with model 2 in full screen mode. I have the livecam on a 75" and it doesn't look great in native resolution without antialiasing which is only possible in full screen( also higher resolutions are possible in full screen) I've tried everything and can't find a solution here so I'm hoping it's something you can add? Thanks again!

SailorSat

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1208
  • Last login:Yesterday at 03:04:49 am
    • For Amusement Only e.V.
Re: fooling with m2emu network
« Reply #243 on: December 04, 2021, 04:58:29 am »
As for the fullscreen issue - I use dxwnd to "fake" fullscreen.

As for the 1p issue - well, thats sadly not possile right now. maybe later ;D
I do all that stuff even without a Joystick ;)
Soft-15kHz, cabMAME, For Amusement Only e.V.


Daytonafan1984

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:March 11, 2022, 04:57:02 am
  • I want to build my own arcade controls!
Re: fooling with m2emu network
« Reply #244 on: December 05, 2021, 08:06:40 pm »
Thanks for your help Sailorsat! I can confirm dxwnd works perfectly with livestats. Now I'm able to run a higher res with AA on the live cam screen and it looks great!

I look forward to the 1p race start fix :)

holmes

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 39
  • Last login:March 28, 2024, 05:42:06 pm
  • I want to build my own arcade controls!
Re: fooling with m2emu network
« Reply #245 on: January 05, 2022, 05:06:42 pm »
Hi,

OK, here is my stupid question: if I only want to have a 2 player session + AI cars without livecam, on a single PC or using 2 PCS, is it relevant to use m2lagfix?
Should I use the zip files provided in post #110 or should I use the files from Sailorsat's github (daytona-utils/src)? There seems to be a lot of files in there and it is not obvious to me which ones to use.

Thank you for your help

gareth_iowc

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 33
  • Last login:October 04, 2022, 03:27:37 am
  • I want to build my own arcade controls!
Re: fooling with m2emu network
« Reply #246 on: February 17, 2022, 02:21:32 pm »
Sorry, I have a few questions :)

I have 4 emulators running with lagfix no issues but as soon as i open stats it crashes.


I'm opening in order

Code: [Select]
Emulator 1
Master
Car 1

[Network]
RxPort=15612
NextIP=127.0.0.1
NextPort=15613
FrameSync=1

Code: [Select]
Emulator 2
Slave
Car 2

[Network]
RxPort=7002
NextIP=127.0.0.1
NextPort=7003
FrameSync=1

Code: [Select]
Emulator 3
Slave
Car 3

[Network]
RxPort=7003
NextIP=127.0.0.1
NextPort=7004
FrameSync=1

Code: [Select]
Emulator 4
Slave
Car 4

[Network]
RxPort=7004
NextIP=127.0.0.1
NextPort=7001
FrameSync=1

Code: [Select]
Sats Emulator
Slave
Car 2

[Network]
RxPort=9001
NextIP=127.0.0.1
NextPort=8002
FrameSync=1


Code: [Select]

Lagfix

[network]
localhost=127.0.0.1
localport=7001
remotehost=127.0.0.1
remoteport=7002

[emulator]
host=127.0.0.1
localport=15613
remoteport=15612

[stats]
remotehost=127.0.0.1
remoteport=8000



Code: [Select]
Stats

[client]
localhost=0.0.0.0
localport=8000

[live]
LocalHost=127.0.0.1
LocalPort=9002
RemoteHost=127.0.0.1
RemotePort=9001


Is that stats emulator set to master or slave in game?
« Last Edit: February 17, 2022, 03:58:35 pm by gareth_iowc »

dgrace

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 341
  • Last login:April 11, 2024, 01:43:59 am
  • I want to build my own arcade controls!
Re: fooling with m2emu network
« Reply #247 on: November 08, 2022, 03:40:31 pm »
Finally got Daytona and Motoraid Network/LAN running pretty smoothly using two separate PCs. I'm still struggling to get Wave Runner to link consistently. I can only get them to link up maybe 25% of the time. Otherwise I either get a "network error" or "checking internet connection". Is anyone aware of any tricks or tips on linking Wave Runner consistently (i.e. lua script)? Thanks a bunch

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:March 22, 2024, 12:55:20 am
  • Is running at 15kHz
Re: fooling with m2emu network
« Reply #248 on: November 08, 2022, 05:50:33 pm »
Finally got Daytona and Motoraid Network/LAN running pretty smoothly using two separate PCs. I'm still struggling to get Wave Runner to link consistently. I can only get them to link up maybe 25% of the time. Otherwise I either get a "network error" or "checking internet connection". Is anyone aware of any tricks or tips on linking Wave Runner consistently (i.e. lua script)? Thanks a bunch

Not sure what you've already tried, but for some model2 games in two player I find going into the test menu's and exiting again at the right time will help them link. Some games you exit the master half a second before the slave, some the slave half a second before the master. There's probably a way to automate the process. This is without using Sailorsat's patch though, no idea what effect that would have.

EDIT: This is exactly what Buno is showing below. And i should have typed "test menu's" not "text menu's". Have updated now :)
« Last Edit: November 09, 2022, 06:06:23 pm by buttersoft »

xbrunox

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 148
  • Last login:Yesterday at 12:45:25 am
  • I want to build my own arcade controls!
Re: fooling with m2emu network
« Reply #249 on: November 09, 2022, 11:31:33 am »
Finally got Daytona and Motoraid Network/LAN running pretty smoothly using two separate PCs. I'm still struggling to get Wave Runner to link consistently. I can only get them to link up maybe 25% of the time. Otherwise I either get a "network error" or "checking internet connection". Is anyone aware of any tricks or tips on linking Wave Runner consistently (i.e. lua script)? Thanks a bunch


sorry is in italian..



look at min 8:30

MrThunderwing

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1054
  • Last login:Yesterday at 05:31:43 pm
  • As I pass, do I give you the ass or the crotch?
Re: fooling with m2emu network
« Reply #250 on: November 10, 2022, 06:14:15 pm »
What's the deal with that crazy wide 3 monitor cabinet? I don't think I've ever seen anything like it before.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9401
  • Last login:Today at 02:36:37 am
  • Designated spam hunter
Re: fooling with m2emu network
« Reply #251 on: November 10, 2022, 06:32:45 pm »
What's the deal with that crazy wide 3 monitor cabinet? I don't think I've ever seen anything like it before.
That's Bruno's "YATTACAB".
- There are lots of pics in his Project Announcement thread here.
- The other cab in the video is his "MAZINCAB" which is also mentioned in that thread.


Scott

Maillouski

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:July 19, 2023, 03:00:15 pm
  • I want to build my own arcade controls!
Re: fooling with m2emu network
« Reply #252 on: March 04, 2023, 09:05:37 pm »
Sorry if this is very well known information, but I would like to know if it is possible to run 2 instances on fullscreen on 2 monitors plugged into the same PC ?

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:March 22, 2024, 12:55:20 am
  • Is running at 15kHz
Re: fooling with m2emu network
« Reply #253 on: March 05, 2023, 12:39:03 am »
Hmm, i have memories of m2emu being stubborn about moving monitors. There will be apps you can force or redraw it with tho.

SailorSat

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1208
  • Last login:Yesterday at 03:04:49 am
    • For Amusement Only e.V.
Re: fooling with m2emu network
« Reply #254 on: March 15, 2023, 09:46:24 am »
I used dxWnd for that, however I think I had issues with controls only workin in the focused instance.
I do all that stuff even without a Joystick ;)
Soft-15kHz, cabMAME, For Amusement Only e.V.


Billkwando

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 178
  • Last login:February 08, 2024, 10:42:45 pm
  • I'm a llama!
Re: fooling with m2emu network
« Reply #255 on: July 19, 2023, 02:25:21 pm »
Hello folks! Old timey poster here, back hoping for some Daytona link mode help.

I recently had to order a new racing seat, because my new G29 wheel has a giant pedal board that won't fit on my playseat (original, from 20 years ago) seen here, in the top right corner:



So now, I'm going to have 2 seats and 2 FFB wheels. I ordered a monitor stand for the old playseat (2nd player) and before I shell out on a big monitor, build a new 4 speed shifter (bought the 2nd happ cruisin stick already) and buy a used PC on ebay, I figured I'd better check on the state of things.

Is it possible to run Daytona smoothly on 2 PCs? My understanding is I only need the lag fix on the master machine, correct? I hear everyone talking about live cam but I'm not sure what that is. If I just want to run 2 players and have the audio and everything sync up nicely, what do I need?

Should I download the lagfix from the Github address? I originally saw a link to it in a youtube video pointing to a .de site, but Firefox kept blocking it like a virus or something.

I am at your mercy, gentlefolk, so please help me start my engines!  ;)

Also, here's a cheery Mitsuyoshi to brighten your day!



Thanks!!!!


EDIT: Also, I can't seem to figure out how to download the lagfix from the github site.
« Last Edit: July 19, 2023, 02:44:51 pm by Billkwando »
"If you believe you're up against a swordsman who is proficient in the Way, you will lose."-Miyamoto Musashi

USSDG

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 3
  • Last login:July 25, 2023, 10:23:39 pm
  • I want to build my own arcade controls!
Re: fooling with m2emu network
« Reply #256 on: July 25, 2023, 10:38:22 am »
Depends on the specs of your 2 PCs.  I have same setup as you.  Daytona USA (Model 2 version) runs perfectly smooth multiplayer with both PCs linked over LAN cable.  Same with Daytona USA 2 (Model 3, Supermodel) and most Teknoparrot games.  My PCs are MinisForum HX99G, so they are pretty capable of playing both old and new games very smooth.

Perhaps you are talking about the Teknoparrot version of Daytona Championship USA?  I think that is the one that requires webcams to work. 

**BREAK**
Does anyone know why networking with Waverunner on Model 2 is not yet working?

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:March 22, 2024, 12:55:20 am
  • Is running at 15kHz
Re: fooling with m2emu network
« Reply #257 on: July 25, 2023, 07:25:15 pm »
**BREAK**
Does anyone know why networking with Waverunner on Model 2 is not yet working?

Because the networking in M2emu isn't finished. We're lucky to have it at all, really :) Elsemi, the dev, got up to where he got up to and stopped very abruptly. Rumour has it Sega was watching development, and was so impressed they hired him (under all sorts of NDAs) to work for them porting games to other platforms like VC.

FYI Waverunner GP on Naomi will network in Flycast, but it doesn't control well with a wheel.

USSDG

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 3
  • Last login:July 25, 2023, 10:23:39 pm
  • I want to build my own arcade controls!
Re: fooling with m2emu network
« Reply #258 on: July 25, 2023, 09:50:42 pm »
Wow, fascinating insight.  Thank you for that bit of info.  Yes, indeed, we truly are lucky to have it at all, but so sad it is unfinished.  M2 is the Edward Scissorhands of emulators.

Super-Becker

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 86
  • Last login:April 12, 2024, 07:31:38 am
  • I want to build my own arcade controls!
Re: fooling with m2emu network
« Reply #259 on: September 01, 2023, 07:14:16 am »
This is not a topic but a historical document! Congratulations SailorSat, Nuexzz and everyone who put in the effort.

trick72

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 67
  • Last login:April 09, 2024, 03:20:55 am
Re: fooling with m2emu network
« Reply #260 on: October 11, 2023, 07:11:31 am »
Hi,
I'm trying to setup m2emulator linked on two different pc's via lan. I can get m2emulator to work but i cannot get m2lagfix to work on top of it.
The m2lagfix small window has a red bar in it (supposed to be green when working?) and the cars in daytona still flicker.
So I'm not running the two emulators on the same machine, but on 2 different PC's on a LAN network (not cross linked, but on a switch)
I am able to run a lot of other linked arcade games like supermodel, teknoparrot etc.

cab1 ip address is 192.168.0.11
cab2 ip address is 192.168.0.12
currently working m2emulator link is:

cab1:
[Network]
RxPort=1978
NextIP=192.168.0.12
NextPort=1978
FrameSync=1

cab2:
[Network]
RxPort=1978
NextIP=192.168.0.11
NextPort=1978
FrameSync=1

What would the m2lagfix.ini would look like to make it work in this particular situation? I found various example ini files in this thread but they are all different, some really don't make sense (like 127.0.0.1 as remote ip address??), and none of them work for me. Anyone in the same setup as me can share their working m2lagfix.ini?
Thanks



Super-Becker

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 86
  • Last login:April 12, 2024, 07:31:38 am
  • I want to build my own arcade controls!
Re: fooling with m2emu network
« Reply #261 on: October 11, 2023, 07:05:31 pm »
Try putting:

cab1:
[Network]
RxPort=11200
NextIP=192.168.0.12
NextPort=44405
FrameSync=1


cab2:
[Network]
RxPort=44405
NextIP=192.168.0.11
NextPort=11200
FrameSync=1



trick72

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 67
  • Last login:April 09, 2024, 03:20:55 am
Re: fooling with m2emu network
« Reply #262 on: October 12, 2023, 02:58:22 am »
Try putting:

cab1:
[Network]
RxPort=11200
NextIP=192.168.0.12
NextPort=44405
FrameSync=1


cab2:
[Network]
RxPort=44405
NextIP=192.168.0.11
NextPort=11200
FrameSync=1

Hi, thanks for your reply. But the suggestion you have is the contents of the m2network.ini but I want to know the contents of a working m2lagfix.ini in my situation. Lan on m2emulator itself works for me, so the contents of m2network.ini is fine for me.
« Last Edit: October 12, 2023, 03:00:40 am by trick72 »

jorgenjl2

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 99
  • Last login:March 07, 2024, 07:10:47 pm
  • I want to build my own arcade controls!
Re: fooling with m2emu network
« Reply #263 on: October 28, 2023, 01:13:01 pm »
Try putting:

cab1:
[Network]
RxPort=11200
NextIP=192.168.0.12
NextPort=44405
FrameSync=1


cab2:
[Network]
RxPort=44405
NextIP=192.168.0.11
NextPort=11200
FrameSync=1

Hi, thanks for your reply. But the suggestion you have is the contents of the m2network.ini but I want to know the contents of a working m2lagfix.ini in my situation. Lan on m2emulator itself works for me, so the contents of m2network.ini is fine for me.

Here are my files that work if you assume pc1 is 192.168.0.2 and pc2 is 192.168.0.3. No blinking cars.

Pc1 (192.168.0.2) - Set to master/car number 1 in test menu.
—m2lagfix.ini
[m2rx]
LocalHost=0.0.0.0
LocalPort=9000
RemoteHost=192.168.0.2
RemotePort=9001
StallDetection=1

[m2tx]
LocalHost-192.168.0.2
LocalPort=9002
RemoteHost=192.168.0.3
RemotePort=9000

—m2network.ini
RxPort=9001
NextIP=192.168.0.3
NextPort=9001
FrameSync=1



Pc2 (192.168.0.3 - set to slave and car 2 in test menu)
—M2lagfix.ini
[m2rx]
LocalHost=0.0.0.0
LocalPort=9000
Remotellost=192.168.0.3
RemotePort=9001
StallDetection=1

[m2tx]
LocalHost=192.168.0.3
LocalPort=9002
RemoteHost=192.168.0.2
RemotePort=9000

—M2network.ini
[Network]
RxPort=9001
NextIP=192.168.0.2
NextPort=9001
FrameSync=1


Note: This was keyed in via iPhone pic to text so double check for any typos but numbers should be right. Also, if using Launchbox, esc key script may not auto save test menu changes so open m2emu and load DaytonaUSA outside Bigbox/LB or take away LB esc script temporarily)

MrThunderwing

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1054
  • Last login:Yesterday at 05:31:43 pm
  • As I pass, do I give you the ass or the crotch?
Re: fooling with m2emu network
« Reply #264 on: October 29, 2023, 12:30:27 pm »
Y'know, trying this lagfix out has been on my 'to-do' list for awhile, but because I started playing Daytona online again on the PS3 several years back, it kept slipping off my horizon... but I kept saying to myself I'll have a crack at getting it working sometime soon...

I just realised this thread is over 10 years old now.

10 years!

---fudgesicle--- me sideways - where has that time gone?!?

SailorSat

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1208
  • Last login:Yesterday at 03:04:49 am
    • For Amusement Only e.V.
Re: fooling with m2emu network
« Reply #265 on: October 29, 2023, 02:28:01 pm »
---fudgesicle--- me sideways - where has that time gone?!?
Took one too many pit-stop... :)
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: 99
  • Last login:March 07, 2024, 07:10:47 pm
  • I want to build my own arcade controls!
Re: fooling with m2emu network
« Reply #266 on: December 03, 2023, 11:25:32 pm »
I need some help. I have three racing cabinets hooked up with the settings below but the racers still blink a lot. What is wrong with this? The m2network.ini is simple (pc 1 to pc2 to pc3 back to pc1 all over rx and next port both/all 9001 for port and framesync=1) which network wise works fine but the lagfix is not working. Is RemoteHost supposed to be local host ip like below? I am pretty sure my 2 player settings I posted a few posts up worked with no blinking but now I am wondering if I had anything wrong.

Pc 1 - 192.168.0.2
—M2lagfix.ini
LocalHost=0.0.0.0
LocalPort=9000
RemoteHost=192.168.0.2
RemotePort=9001
StallDetection=1
[m2tx]
LocalHost=192.168.0.2
LocalPort=9002
RemoteHost=192.168.0.3
RemotePort=9000

Pc2 - 192.168.0.3
—m2lagfix.ini
[m2rx]
LocalHost=0.0.0.0
LocalPort=9000
RemoteHost=192.168.0.3
RemotePort=9001
StallDetection=1
[m2tx]
LocalHost=192.168.0.3
LocalPort=9002
RemoteHost=192.168.0.4
RemotePort=9000

Pc 3 - 192.168.0.4
—m2lagfix.ini
[m2rx]
LocalHost-0.0.0.0
LocalPort=9000
RemoteHost-192.168.0.4
RemotePort=9001
StallDetection=1
[m2tx]
LocalHost=192.168.0.4
LocalPort=9002
RemoteHost=192.168.0.2
RemotePort=9000

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:March 22, 2024, 12:55:20 am
  • Is running at 15kHz
Re: fooling with m2emu network
« Reply #267 on: December 04, 2023, 05:32:38 am »
This post contains two IP addresses, and the one below it is Sailorsat explaining how to config m2lagfix for them.

http://forum.arcadecontrols.com/index.php/topic,133283.msg1462123.html#msg1462123

jorgenjl2

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 99
  • Last login:March 07, 2024, 07:10:47 pm
  • I want to build my own arcade controls!
Re: fooling with m2emu network
« Reply #268 on: December 05, 2023, 03:56:09 pm »
This post contains two IP addresses, and the one below it is Sailorsat explaining how to config m2lagfix for them.

http://forum.arcadecontrols.com/index.php/topic,133283.msg1462123.html#msg1462123


EDIT: REPLACING 127.0.0.1 with each PCs local ip address (192.168.0.2 on pc 1, etc) for each time 127.0.0.1 is below, it runs and it appears pc 1 and pc3 have no flashing cars but pc 2 does still for some reason (I may have started the game with pc2 if it matters). I will test some more or see if I have a typo in my code.

Hmm this doesn’t seem to work for 3 players but I may have something wrong. Here is what I have. I assume it’s a ring back to the beginning. Do the ports need to change for 3 players?


Pc 1 - 192.168.0.2
—M2network.ini
[Network]
RxPort=9001
NextIP=127.0.0.1
NextPort=9002
FrameSvnc=1

—M2lagfix.ini
[m2rx]
Localhost=0.0.0.0
LocalPort=9000
Remotelost=127.0.0.1
RemotePort=9001
StallDetection=1

[m2rx]
LocalHost=127.0.0.1
LocalPort=9002
RemoteHost=192.168.0.3
RemotePort=9000



Pc 2 - 192.168.0.3
—M2network.ini
[Network]
RxPort=9001
NextIP=127.0.0.1
NextPort=9002
FrameSync=1

—M2lagfix.ini
[m2rx]
LocalHost-=0.0.0.0
LocalPort=9000
RemoteHost=127.0.0.1
RemotePort=9001
StallDetection=1

[m2tx]
LocalHost=127.0.0.1
LocalPort=9002
RemoteHost=192.168.0.4
RemotePort=9000



Pc 3 - 192.168.0.4
—M2network.ini
[Network]
RxPort=9001
NextIP=127.0.0.1
NextPort=9002
FrameSync=1

—M2lagfix.ini
[m2rx]
LocalHost=0.0.0.0
LocalPort=9000
RemoteHost=127.0.0.1
RemotePort=9001
StallDetection=1

[m2tx]
LocalHost=127.0.0.1
LocalPort=9002
RemoteHost=192.168.0.2
RemotePort=9000
« Last Edit: December 05, 2023, 04:29:43 pm by jorgenjl2 »

jorgenjl2

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 99
  • Last login:March 07, 2024, 07:10:47 pm
  • I want to build my own arcade controls!
Re: fooling with m2emu network
« Reply #269 on: December 05, 2023, 05:18:51 pm »
The first two times I played with the new lag fix settings above (with the local ips instead of 127.0.0.1), the game started in 3 player mode but just racer 2 had flickering. The third and fourth time (exit game but no reboot and same settings) there was no flickering at all for any racer. Does this have to do with who starts the race or something? I will have to test more.

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:March 22, 2024, 12:55:20 am
  • Is running at 15kHz
Re: fooling with m2emu network
« Reply #270 on: December 05, 2023, 05:51:42 pm »
From memory you are supposed to use the loopback IP's (127.0.0.1) in the m2network.ini files where they were shown. This is because the m2lagfix program wraps m2emu and handles the comms between PC's for you. So M2emu on PC1 talks to M2lagfix on PC1 (loopback and ports), then M2lagfix on PC1 talks to M2lagfix on PC2 (IP addreses), then M2lagfix on PC2 talks to M2emu on PC2 (loopback and ports), and on. If you aren't doing that, the comms chain won't be set up right.

If you compare the example i linked with Sailorsat's next post three spots down, which shows an example of two instances of m2emu on the one PC, i'm hoping it makes more sense. I'm not saying i understand why the ports numbers are the way they are yet, but i'm sure the answer is in there somewhere.

EDIT: err, also, one of those "remotehost" entries in your config was misspelled as remotelost, though that could just be in the post not the files.

EDIT2: ok, i think it runs like this:

-PC1 receives IP message (on PC2 M2lagfix M2TX remote port)
-M2lagfix M2RX local port (same port number as line above)
-M2lagfix M2RX remote port
-M2emu RXport (same port number as line above; i.e. M2RX remote port)
-M2emu TXport
-M2lagfix M2TX local port (same port number as line above)
-M2lagfix M2TX remote port
-M2lagfix M2TX remotehost (PC2 IP address)

-PC2 receives IP message (on PC1 M2lagfix M2TX remote port)
-M2lagfix M2RX local port (same port number as line above)
-M2lagfix M2RX remote port
-M2emu RXport (same port number as line above)
-M2emu TXport
-M2lagfix M2TX local port (same port number as line above)
-M2lagfix M2TX remote port
-M2lagfix M2TX remotehost (PC1 IP address)

and repeat. The m2network.ini file should not contain any external IP addresses. M2emu itself is not talking to the other PC, it's only talking locally to M2Lagfix, and M2lagfix talks to the other PC.

That's for two PC's.  I'm not sure if the ports need to line up between PCs, but it's not going to hurt, so best to stick to it. And the magic lagfix itself happens somewhere between steps, of course.
« Last Edit: December 05, 2023, 07:12:06 pm by buttersoft »

jorgenjl2

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 99
  • Last login:March 07, 2024, 07:10:47 pm
  • I want to build my own arcade controls!
Re: fooling with m2emu network
« Reply #271 on: December 05, 2023, 08:07:10 pm »
This is awesome thank you. Yeah I did a pic to text via my iPhone since my arcades don't have internet so that explains that typo. I went ahead and connected to them via the physical router to grab the actual code below. A few posts after the one you sent, SailorSat talks about how on Windows 7 using 127.0.0.1 works but newer Windows versions require using the actual ip address of that local host so that explains why the three linked cabs would not start at all until I fixed that. However, using the below settings, I always have one cabinet that has flashing cars. If all three race, player 2 flashes. If player 1 and player 3 race (and player 2 sits out), player 3 has flashing cars. So something odd. Here is the code I have now with the one showing blinking... Do you see any issues?


--Racer 1 - 192.168.0.2 (Master, Car 1 in Test Menu)
--m2network.ini
[Network]
RxPort=9001
NextIP=192.168.0.2
NextPort=9002
FrameSync=1

--m2lagfix.ini
[m2rx]
LocalHost=0.0.0.0
LocalPort=9000
RemoteHost=192.168.0.2
RemotePort=9001
StallDetection=1

[m2tx]
LocalHost=192.168.0.2
LocalPort=9002
RemoteHost=192.168.0.3
RemotePort=9000



--Racer 2 - 192.168.0.3 (Slave, Car 2 in Test Menu)
--m2network.ini
[Network]
RxPort=9001
NextIP=192.168.0.3
NextPort=9002
FrameSync=1

--m2lagfix.ini
[m2rx]
LocalHost=0.0.0.0
LocalPort=9000
RemoteHost=192.168.0.3
RemotePort=9001
StallDetection=1

[m2tx]
LocalHost=192.168.0.3
LocalPort=9002
RemoteHost=192.168.0.4
RemotePort=9000



--Racer 3 - 192.168.0.4 (Slave, Car 3 in Test Menu)
--m2network.ini
[Network]
RxPort=9001
NextIP=192.168.0.4
NextPort=9002
FrameSync=1

--m2lagfix.ini
[m2rx]
LocalHost=0.0.0.0
LocalPort=9000
RemoteHost=192.168.0.4
RemotePort=9001
StallDetection=1

[m2tx]
LocalHost=192.168.0.4
LocalPort=9002
RemoteHost=192.168.0.2
RemotePort=9000

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:March 22, 2024, 12:55:20 am
  • Is running at 15kHz
Re: fooling with m2emu network
« Reply #272 on: December 05, 2023, 08:24:09 pm »
If I remember correctly, UDP on 127.0.0.1 did work fine on my Win7 development rig, but not on my XP64 rig in the cab.

She seems to be saying it should be fine for Win7 and up, but not on XP? I haven't even tried to run this yet, so i'm not saying i have any experience.

jorgenjl2

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 99
  • Last login:March 07, 2024, 07:10:47 pm
  • I want to build my own arcade controls!
Re: fooling with m2emu network
« Reply #273 on: December 05, 2023, 10:26:50 pm »
If I remember correctly, UDP on 127.0.0.1 did work fine on my Win7 development rig, but not on my XP64 rig in the cab.

She seems to be saying it should be fine for Win7 and up, but not on XP? I haven't even tried to run this yet, so i'm not saying i have any experience.
In later posts she talks about changing from 127.0.0.1 to the local actual ip so that definitely seemed to fix part of the issue as it wouldn’t get past the black initial screen until I changed that. It fixed everything after that except for one pc flickering.

I tried using gpt4 to see if something is wrong with those latest settings but it was not super helpful. It suggested changing the pc that is master which is a good idea. Right now I can get both pc 2 and pc3 to each separately flicker in a 2 player race (using 3 linked cabs though). So I expect the pc 1 to flicker once I make it a slave in the set. It is just odd that I am pretty sure I had all three working with no flicker at one point before it came back again. Not sure if the issue is sporadic or if I just missed the flicker somehow.

SailorSat mentioned something about not starting the game with player 1 but I think that was referencing the 9th player preview if I recall and anyhow my player 1 auto starts and inserts a coin every time automatically whereas player 2 and 3 (after an initial race) allow me to insert or not insert a coin to start or not start those. I also wonder if an odd number of players (3 players in my case) is supported with m2lagfix.

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:March 22, 2024, 12:55:20 am
  • Is running at 15kHz
Re: fooling with m2emu network
« Reply #274 on: December 06, 2023, 03:06:18 am »
That quote is from when Sailorsat was talking about changing IPs, or one of the following posts on the same subject. But i would imagine that if your games are linking, without using the IP of a different PC in the network.ini files at least, the IP is not the issue.

The auto-coin-up is just the NVRAM recording previous coin ups IIRC. When you switch off, credits carry over. Delete the NVRAM file and when the game loads there' won't be any credits. Of course then you have to go into the service menu and set things up, but if you're doing that anyway...
« Last Edit: December 06, 2023, 08:08:21 pm by buttersoft »

M00C0WM00

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:March 16, 2024, 04:12:01 pm
  • I want to build my own arcade controls!
Re: fooling with m2emu network
« Reply #275 on: February 29, 2024, 11:35:30 am »
As for the fullscreen issue - I use dxwnd to "fake" fullscreen.

As for the 1p issue - well, thats sadly not possile right now. maybe later ;D

Hey SailorSat,

Just wondering if I could ask you a few questions about your Daytona setup, if that's cool?

SailorSat

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1208
  • Last login:Yesterday at 03:04:49 am
    • For Amusement Only e.V.
Re: fooling with m2emu network
« Reply #276 on: March 02, 2024, 02:17:24 am »
Sure...
I do all that stuff even without a Joystick ;)
Soft-15kHz, cabMAME, For Amusement Only e.V.


M00C0WM00

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:March 16, 2024, 04:12:01 pm
  • I want to build my own arcade controls!
Re: fooling with m2emu network
« Reply #277 on: March 02, 2024, 06:48:41 am »
Sure...

Awesome! I sent you a DM with a few questions. Appreciate it!