Difference between revisions of "Template:Network Protocol RACE"

From Custom Mario Kart
Jump to navigation Jump to search
(Add missing sections and fix various descriptions)
 
Line 1: Line 1:
 
{| class="textbox grid sortable center alt"
 
{| class="textbox grid sortable center alt"
|+ Standard Structure of Packet
+
|+ Race Packet Sections
 
! Name
 
! Name
 
! Amount
 
! Amount
Line 14: Line 14:
 
| 1
 
| 1
 
| 0x10
 
| 0x10
| A header for a race packet.  
+
| A header for a race packet.
 
|-
 
|-
 
| [[Network Protocol/RACEHEADER_1|RACEHEADER_1]]
 
| [[Network Protocol/RACEHEADER_1|RACEHEADER_1]]
Line 24: Line 24:
 
| 0-1
 
| 0-1
 
| 0x28
 
| 0x28
| A record with basic race data that is not present in live view.
+
| A record with game-mode specific race data (not present in live view).
 +
|-
 +
| [[Network Protocol/ROOM|ROOM]]
 +
| 0-1
 +
| 0x04
 +
| A record containing a friend room message (not present outside friend room lobbies).
 +
|-
 +
| [[Network Protocol/SELECT|SELECT]]
 +
| 0-1
 +
| 0x38
 +
| A record containing data to set up a match (not present during races).
 
|-
 
|-
 
| [[Network Protocol/RACEDATA|RACEDATA]]
 
| [[Network Protocol/RACEDATA|RACEDATA]]
 
| 1-2
 
| 1-2
 
| 0x40
 
| 0x40
| A record with race data of positions for each player of a client.
+
| A record containing race data for each player, such as positions or inputs.
 
|-
 
|-
 
| [[Network Protocol/USER|USER]]
 
| [[Network Protocol/USER|USER]]
 
| 0-1
 
| 0-1
 
| 0xC0
 
| 0xC0
| A record containing Mii data and [[friend code]]s.
+
| A record containing user data such as Miis and [[friend code]]s.
 
|-
 
|-
 
| [[Network Protocol/ITEM|ITEM]]
 
| [[Network Protocol/ITEM|ITEM]]
Line 43: Line 53:
 
| [[Network Protocol/EVENT|EVENT]]
 
| [[Network Protocol/EVENT|EVENT]]
 
| 1
 
| 1
| 0x18
+
| ≥ 0x18
 
| A record transmitting item events.
 
| A record transmitting item events.
 
|}
 
|}

Latest revision as of 17:27, 28 January 2024

Race Packet Sections
Name Amount Size Description
SLOT 0-1 0x08 Only used for redirected data via a proxy. The record identifies the original client by its slot number.
HEADER 1 0x10 A header for a race packet.
RACEHEADER_1 1 0x28 A record with basic race data.
RACEHEADER_2 0-1 0x28 A record with game-mode specific race data (not present in live view).
ROOM 0-1 0x04 A record containing a friend room message (not present outside friend room lobbies).
SELECT 0-1 0x38 A record containing data to set up a match (not present during races).
RACEDATA 1-2 0x40 A record containing race data for each player, such as positions or inputs.
USER 0-1 0xC0 A record containing user data such as Miis and friend codes.
ITEM 1-2 0x08 A record containing information about players' items.
EVENT 1 ≥ 0x18 A record transmitting item events.