barronwaffles / dwc_network_server_emulator

A Nintendo DS and Wii server emulator.
GNU Affero General Public License v3.0
1.08k stars 167 forks source link

Support large rooms in Mario Kart Wii #52

Closed mm201 closed 10 years ago

mm201 commented 10 years ago

Players are reporting that AltWFC is unable to handle MKW rooms with more than 4 players.

If I had to guess, it's that the game must use a hub and spoke model similar to Mario Kart 7, which is unimplemented. In MK7, a few players are declared servers and are responsible for a subset of players and sharing their telemetry with the other player-servers.

The closure of NWFC is hardly an issue in this regard since Wiimmfi supports 12-player MKW rooms and can be captured in just the same way.

polaris- commented 10 years ago

Can anyone get a packet capture of this happening? The person who reported it before and again today doesn't know how to packet capture so it's kinda impossible for me to debug this at the moment.

polaris- commented 10 years ago

I've looked over an instance of it happening in the server logs but there are no errors anywhere, so I'm assuming it's more complicated than that.

In fact, looking through the server logs after that some more, I see a lobby that claims to have had 6 players in it shortly after the crash even though the claim is that it crashes after 4 players. The disconnect is coming from the game side somewhere, so our server isn't forcing anyone out.

Does anyone have any idea? The only places I can think of where it could go wrong is when sending server information to a client. Maybe there's a condition that's missing somewhere? As far as I can tell, Mario Kart Wii uses a single host for the game, so I don't think it's the hub and spoke model thing mm201 mentioned.

Actually, on second glance, I do see this, but it's never caused problems before to my knowledge: [2014-07-28 23:52:14 | GameSpyServerBrowserServer] [190.xx.xxx.xxx:57545] Received unknown command (cc) from 190.xx.xxx.xxx:57545...

polaris- commented 10 years ago

I made a pretty big change in the way the server browser server works. It had the potential (and most likely did) drop packets during game searches and during the process up to natneg. That means it should hopefully be a little faster now and maybe it will fix this bug.

Can anyone test if 4+ player matches in Mario Kart Wii are still broken?

polaris- commented 10 years ago

According to the person who reported this on IRC (Fishguy6564), 4+ player matches aren't a problem anymore after the most recent changes. So I'm closing this for now unless it pops back up in the future.