Difference between revisions of "Wiimmfi"

From Custom Mario Kart
Jump to navigation Jump to search
Line 9: Line 9:
 
The tester team around [[Wiimm]] already played versus and battle in rooms, in regions and worldwide. They played standard Mario Kart Wii and [[Wiimms Mario Kart Fun 2014-04|Wiimms MKW-Fun]]. The latter is based on [[CTGP Revolution v1.02|CTGP-R v1.02]].
 
The tester team around [[Wiimm]] already played versus and battle in rooms, in regions and worldwide. They played standard Mario Kart Wii and [[Wiimms Mario Kart Fun 2014-04|Wiimms MKW-Fun]]. The latter is based on [[CTGP Revolution v1.02|CTGP-R v1.02]].
  
Before playing on the new server, the game images must be patched to exchange the domain and to replace https by http access. There are 2 patcher available:
+
Before playing on the new server, the game images must be patched to exchange the domain and to replace https by http access. There are 2 patchers available:
  
 
=== Game Patcher ===
 
=== Game Patcher ===

Revision as of 14:06, 11 May 2014

Nintendo has announced that the Nintendo Wi-Fi Connection service will be discontinued on May 20, 2014. This will impact all DS and Wii games with online features, including Mario Kart Wii. Wiimm had been analysing the Mario Kart Wii network traffic since November 2012 and had already written an helper tool named mkw-ana. And so he decided together with other people to create the Wii-Server Project to replace Nintendo's servers for Mario Kart Wii and perhaps for other games.



State of the Project

The tester team around Wiimm already played versus and battle in rooms, in regions and worldwide. They played standard Mario Kart Wii and Wiimms MKW-Fun. The latter is based on CTGP-R v1.02.

Before playing on the new server, the game images must be patched to exchange the domain and to replace https by http access. There are 2 patchers available:

Game Patcher

To play Wii games using out own server, the games must be patched. There are 2 patchers for USB-Loader, one for MKWii and one for other games:

For Riivolution users, MrBean35000vr is on the way to create a channel, that will patch the strings on the fly.

Confirmed games

The following games can be played using the custom servers:

  • Mario Kart Wii
  • Animal Crossing Wii

Currently tested games

The following games are enabled and waiting for tests:

  • Mario Kart DS
  • Animal Crossing DS
  • Pokemon Diamond / Pearl
  • Pro Evolution Soccer 2008
  • Super Smash Bros Brawl

Supported Games

Implementation

Wiimm decided to implement the code in PHP as a fast solution and to find out the protocol details. From the beginning it was clear, that it must be rewritten in C or C++ for performance reasons. While developing, there were some other issues, so one of the servers is already implemented in C.

Server NASWII/NAS

Server NASWII is the https based login server. NAS is an old NDS implementation for http. Both can be interchanged. The server is implemented using APACHE2 and PHP5.

At the moment, only logins are accepted with old and new profiles. Complete new savegames send a request to get their unique console nickname from the server. This is not implemented yet.

Server GPCM

If entering the WFC, the Wii connects to the Server GPCM using TCP. The connection is closed, when leaving WFC. The server is used for general maintenance and for message exchange between the clients.

It is implemented as PHP script. Because of interprocess communication (transferring messages) an re-implementation in C is planned. Currently the custom server does not support al kinds of messages.

Server GPSP

Server GPSP is used to retrieve information about friends. The Wii connects and disconnects frequently using TCP. We use Nintendos GPSP server to retrieve the profile_id and nick pairs.

Server GPSP is fully implemented as PHP script.

Server MASTER

Server MS

Server NATNEG

Server SAKE

Server GAMESTATS

Using old profiles

For each profile, there exists a profile id and nick name pair. Only the Wii of the user and the server database knows both of them. At login, the Wii sends the nick name and the server answers with the related profile id. If the profile id is wrong, the game aborts the login.

If you want to use your old profile with the new custom servers, you must use the Web Formula to register it. The server will then try to retrieve your related nickname. This retrieving works only, if you have registered friends, and at least one friend has registered your profile.

This data retrieving only works until 18th May, 2014. For the future, a homebrew app to read the necessary data out of the savegame is planned.

If you want to use one of your old profiles, please use one of them during your first connection. It may lead to problems if your first connecton is done with a new profile.

Links

Project forum @ Wii-Homebrew.com
Other forums