Difference between revisions of "Wiimmfi"

From Custom Mario Kart
Jump to navigation Jump to search
(Added Riivolution details)
Line 24: Line 24:
 
To play Wii games using the custom server, the games must be patched using the [[wiimmfi-Patcher]]. There are 3 patchers for Wii images, one for Mario Kart Wii, one for Animal Crossing Wii, and one for other games.
 
To play Wii games using the custom server, the games must be patched using the [[wiimmfi-Patcher]]. There are 3 patchers for Wii images, one for Mario Kart Wii, one for Animal Crossing Wii, and one for other games.
 
{{youtube-box|tutorial|RqFtklrXY9M|Wiimmfi Tutorial - Homebrew Channel}}
 
{{youtube-box|tutorial|RqFtklrXY9M|Wiimmfi Tutorial - Homebrew Channel}}
 +
 +
If you don't feel like getting the game patcher, or want a few more extra bells and whistles, you can download BeanJr's Wiimmfi pack for Riivolution (MKW only!)
 +
{{youtube-box|tutorial|iFmHYLCo_a0|Wiimmfi Tutorial - Riivolution}}
 +
The pack supports NTSCU, NTSCJ and PAL regions. It has the following features:
 +
* The graphical speedometer - BeanJr was able to port it from CTGPR
 +
* You can save and upload ghosts to Wiimmfi
 +
* If you use a CTGPR save file, you can use that within Riivolution
 +
* UNLOCK EVERYTHING! - when you run this pack, and even when you create brand new files, your file is unlocked with all vehicles, characters, and has a 3 star rank. This is great for people who want to quickly start playing the game with everything unlocked.
 +
* NEW AS OF AUGUST 2017 UPDATE
 +
** Cheat Mode allows cheaters to connect to Wiimmfi and use region 20008. If a cheater attempts to use cheats outside of that region, or outside of Cheat Mode, the user will be banned.
 +
 +
There are plans for an update during Christmas 2017 for the 2017 New Year. The following are planned and are subject to change:
 +
* An ISO builder based around this pack and any future packs
 +
* ULU Mode
 +
** BeanJr has gotten a lot of complaints from downloaders who do not wish to have everything unlocked on their file. BeanJr has announced that he will push out an update over Christmas in 2017 that will make the Ultimate License Unlocker an optional feature. If one wishes to go back to the old behaviour of the pack, they only need to flick a switch to turn ULU Mode back on.
 +
  
 
== Implementation ==
 
== Implementation ==

Revision as of 20:08, 27 August 2017

Wiimmfi-300.png

Nintendo announced that Nintendo Wi-Fi Connection will be discontinued on May 20, 2014. This impacted all DS and Wii games with online features that were directly using Nintendo WFC, which included Mario Kart Wii. Wiimm had been analysing the Mario Kart Wii network traffic since November 2012, and had already written a helper tool named mkw-ana. And so he decided, together with other people, to create the Wiimmfi Project (formerly Wii-Server Project) to replace Nintendo's servers for Mario Kart Wii and for other games, if possible.



wiimmfi.de

wiimmfi.de replaces nintendowifi.net in games. All games must use this new domain and change https to http (see below).

The domain wiimmfi.de was registered by Wiimm for this project. If Wiimm discontinue this service at any time in the future, he will give away the domain, the software and the data base content.

State of the Project

On May 10 2014, 10 days before Nintendo shut down their NAS and disconnected themselves from GameSpy, Wiimm released Wiimmfi-Patchers. Since that date, Wiimmfi was publically usuable. At first, the server only supported Mario Kart Wii, including the different Custom Track Distributions. However, more games have been enabled, tested, and are now fully supported.

List of all Wiimmfi games (supported, test and disabled)

The game lists contain also information about issues.

Game Patcher

To play Wii games using the custom server, the games must be patched using the wiimmfi-Patcher. There are 3 patchers for Wii images, one for Mario Kart Wii, one for Animal Crossing Wii, and one for other games.

Wiimmfi Tutorial - Homebrew Channel

If you don't feel like getting the game patcher, or want a few more extra bells and whistles, you can download BeanJr's Wiimmfi pack for Riivolution (MKW only!)

Wiimmfi Tutorial - Riivolution

The pack supports NTSCU, NTSCJ and PAL regions. It has the following features:

  • The graphical speedometer - BeanJr was able to port it from CTGPR
  • You can save and upload ghosts to Wiimmfi
  • If you use a CTGPR save file, you can use that within Riivolution
  • UNLOCK EVERYTHING! - when you run this pack, and even when you create brand new files, your file is unlocked with all vehicles, characters, and has a 3 star rank. This is great for people who want to quickly start playing the game with everything unlocked.
  • NEW AS OF AUGUST 2017 UPDATE
    • Cheat Mode allows cheaters to connect to Wiimmfi and use region 20008. If a cheater attempts to use cheats outside of that region, or outside of Cheat Mode, the user will be banned.

There are plans for an update during Christmas 2017 for the 2017 New Year. The following are planned and are subject to change:

  • An ISO builder based around this pack and any future packs
  • ULU Mode
    • BeanJr has gotten a lot of complaints from downloaders who do not wish to have everything unlocked on their file. BeanJr has announced that he will push out an update over Christmas in 2017 that will make the Ultimate License Unlocker an optional feature. If one wishes to go back to the old behaviour of the pack, they only need to flick a switch to turn ULU Mode back on.


Implementation

Wiimm originally implemented the server in PHP, so that the servers were created quickly. From the beginning of development, it was known that the servers must be ported to C/C++ to improve performance. While developing, there were issues due to using PHP, and 2 servers have thus been ported to C.

NAS

NAS is the Nintendo Authentication Server. The Wii used naswii with HTTPS, and the DS used nas (which supported HTTP) with HTTPS. They are interchangeable. On Wiimmfi, the server is implemented using APACHE2 and PHP5. At the moment, logins are accepted with old and new profiles. New savegames send a request to get their unique console nickname from the server.

GPCM

If entering the WFC, the Wii connects to 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 currently implemented as PHP script. The interprocess communication (transferring messages) is implemented with UNIX sockets. To improve the performance and to allow a better a interprocess communication, a C server was written. It is still in development and supports a model with supervisors and workers. Since March 2016, the new server is in use at Wiimmfi's test server.

GPSP

GPSP is used to retrieve information about friends. The Wii connects frequently using TCP. Nintendo's GPSP server was used to retrieve the profile_id and nick pairs before shutdown.

On Wiimmfi, GPSP has been implemented as PHP script.

MASTER

MASTER listens on port 27900 via UDP. Games send status records to MASTER. MASTER stores them into a game specific table, where other clients can retrieve the information using MS (see next point).

At the beginning, MASTER was implemented as PHP script. In September 2014 it was replaced by a giant server written in C to improve performance. The new MASTER reduces was optimized and reduces queries to the database by ~90%.

MS

MS is used by the clients to retrieve information about other online clients. The query is similar to an SQL query, with select, where and limit clauses. The reply is encrypted by a game specific secret.

At the beginning, MS was implemented as PHP, but piped the response through an encoder written in C. In January 2016 it was integrated into the MASTER server (written in C).

NATNEG

NATNEG is used to establish a connection between two players whom are both behind NAT. The clients only communicate with this server when they try to connect to another player.

NATNEG has been implemented in C. As it was the first C tool, it has an open second port to send special UDP packets for MS with the faked sender address of MASTER.

SAKE

SAKE is used for data exchange — files or records can be uploaded to the SAKE server. This is used for friend Mii exchange in Mario Kart Wii, along with ghosts.

SAKE has been implemented in PHP, and can send/receive ghosts and Miis, along with other games' data.

RACE

RACE is used for downloading competitions and rankings in Mario Kart Wii. RACE has been implemented in PHP, with competition support added by Leseratte (with help from PokeAcer), which is now fully working.

GAMESTATS

GAMESTATS is for game statistics. A basic GAMESTATS server exists for most games, with a special response for certain games to allow the game to work, and a working GTS for Pokemon generations 4 and 5, implemented by mm201 (the server is shared with AltWFC, as this is allowed by mm201).

DLS1

DLS1 is a server for game file downloading. It is implemented as APACHE2/PHP script. At the moment, it just returns that no update is available. The base system allows different DLS1 server for different games. PokeAcer runs both a Wii one (dls1.pokeacer.tk) and a NDS one (dls2.pokeacer.tk) - the NDS one returns Mystery Gifts for Pokemon, missions for Pokemon Ranger 2, songs for Jam With The Band, books for 100 Classic Book Collection, and other games, and the Wii returns PES updates, along with SSBB updates.

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 with error code 60000.

There is only 1 way to use your old profiles with Wiimmfi: At the beginning of the project, when the old GameSpy servers were available (which shut down on July 25th, 2014), Wiimm retrieved 2.9 million pairs. Perhaps your profile was also retrieved. If not, you have to get a new profile id for the old licenses.

Details and solutions

Links

More about Wiimmfi at this Wiki
Project forum at Wii-Homebrew.com
Forums at GBATEMP.net