Difference between revisions of "Wiimmfi/Connection Status"

From Custom Mario Kart
Jump to navigation Jump to search
Line 14: Line 14:
 
| align=center | N || cyan || NATNEG and CONNECT set. LOCAL is ignored.
 
| align=center | N || cyan || NATNEG and CONNECT set. LOCAL is ignored.
 
|-
 
|-
| align=center | n || cyan || NATNEG set, but not CONNECT. LOCAL is ignored.
+
| align=center | n || green || NATNEG set, but not CONNECT. LOCAL is ignored.
 
|-
 
|-
 
| align=center | L || blue || LOCAL and CONNECT set, but not NATNEG.
 
| align=center | L || blue || LOCAL and CONNECT set, but not NATNEG.
 
|-
 
|-
 
| align=center | l || blue || LOCAL set, but neither CONNECT nor NATNEG.
 
| align=center | l || blue || LOCAL set, but neither CONNECT nor NATNEG.
 +
|-
 +
| align=center | c || yellow || CONNECT set, but neither LOCAL nor NATNEG.
 
|-
 
|-
 
| align=center | ! || red  || Neither NATNEG, nor CONNECT, nor LOCAL is set.
 
| align=center | ! || red  || Neither NATNEG, nor CONNECT, nor LOCAL is set.

Revision as of 21:38, 16 September 2016

The Connection Status is a special feature of Wiimmfi. Server SV collects data from GPCM, MS (both GPCMv90 Status Type 02), MASTER (master-id) and from NATNEG (connected) and creates 3 bit fields for each player:

local
A bit is set, if 2 players have the same public IPv4.
connect
A bit is set, if connection was accepted by the host. Then is sends a "GPCMv90 Status Type 02" message.
natneg
A NATNEG connection finished.

The slot index is used for the bit number. If for example players at slot 2 and 5 did NATNEG, then bit 5 for player 2 and bit 2 for player 5 are set.

Server SV and mkw-ana print a summary as character vector. The following table shown the character and color selection, highest priority first:

char color Description
\ gray Self reference. All other bits are ignored.
N cyan NATNEG and CONNECT set. LOCAL is ignored.
n green NATNEG set, but not CONNECT. LOCAL is ignored.
L blue LOCAL and CONNECT set, but not NATNEG.
l blue LOCAL set, but neither CONNECT nor NATNEG.
c yellow CONNECT set, but neither LOCAL nor NATNEG.
! red Neither NATNEG, nor CONNECT, nor LOCAL is set.

2 examples:

Connection-status-examples.png