User Tools

Site Tools


hosting:netpackets

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
hosting:netpackets [2025/12/05 12:15] blamedennyhosting:netpackets [2025/12/05 15:37] (current) – whoops blamedenny
Line 9: Line 9:
 ---- ----
 ^ Network Packet type ^ What does the network packet contain? ^  ^ Network Packet type ^ What does the network packet contain? ^ 
 +| **1** (Authentication packet, defined by Node Hill as ''Authentication'') | **Network ID**((Object id of a ''obj_client'', assigned server-side.)) (32-bit integer)\\ **Brick Count** (32-bit integer)\\ **User ID**((Retrieved via Brick Hill site API, hence the auth key **must be verified**.)) (32-bit integer)\\  **Username** (string)\\ Are you an **admin**?((1 - true, 0 - false.)) (8-bit integer)\\ **Membership type** (8-bit integer)\\ **Game ID** (32-bit integer)\\ **Game Name** (string) | 
 | **3** (New player packet, client creates the ''obj_figure'' Object, defined by Node Hill as ''SendPlayers'') | **Amount of players** (8-bit integer)\\ **Network ID** (32-bit integer)\\ **Username** (string)\\ **User ID**((Retrieved via Brick Hill site API server-side.)) (32-bit integer)\\ Is new player an **admin**?((1 - true, 0 - false.)) (8-bit integer)\\ **Membership type** (8-bit integer) | | **3** (New player packet, client creates the ''obj_figure'' Object, defined by Node Hill as ''SendPlayers'') | **Amount of players** (8-bit integer)\\ **Network ID** (32-bit integer)\\ **Username** (string)\\ **User ID**((Retrieved via Brick Hill site API server-side.)) (32-bit integer)\\ Is new player an **admin**?((1 - true, 0 - false.)) (8-bit integer)\\ **Membership type** (8-bit integer) |
 | **4** (Client Data Packet, defined in GameMaker Client via ''packet_handler'' script; defined by Node Hill as ''Figure'')| **ID type** (string)\\ **Network ID** (32-bit integer)\\ **ID types**, defined in GameMaker client:\\ **A** - Position by X (float int)\\ **B** - Position by Y (float int)\\ **C** - Position by Z (float int)\\ **D** - ? (float int, **unused**)\\ **E** - Camera Rotation (float int, **unused**)\\ **F** - Player rotation by Z (float int)\\ **G** - Player scale by X (float int)\\ **H** - Player scale by Y (float int)\\ **I** - Player scale by Z (float int)\\ **K** - Head color (32-bit integer)\\ **L** - Torso color (32-bit integer)\\ **M** - Left Arm color (32-bit integer)\\ **N** - Right arm color (32-bit integer)\\ **O** - Left leg color (32-bit integer)\\ **P** - Right Leg color (32-bit integer)\\ **Q** - Face Item ID (string)\\ **R** - Shirt Item ID((unused, old. Same with Pants, T-Shirt)) (string)\\ **S** - Pants Item ID (string)\\ **T** - T-Shirt Item ID (string)\\ **U** - First Equipped Hat Item ID, receives Mesh UUID (string) and Texture UUID (string)\\ **V** - Second Equipped Hat Item ID, receives Mesh UUID (string) and Texture UUID (string)\\ **W** - Third Equipped Hat Item ID, receives Mesh UUID (string) and Texture UUID (string)\\ **X** - Score (32-bit integer, can be negative)\\ **Y** - Team (32-bit integer)\\ \\ The next ID Types are defined by GameMaker client as **Local Changes**:\\ **1** - Walking Speed (32-bit integer)\\ **2** - Jump Height (32-bit integer)\\ **3** - Field of View (32-bit integer)\\ **4** - Camera distance (32-bit integer, can be negative)\\ **5** - Camera position by X (float int)\\ **6** - Camera position by Y (float int)\\ **7** - Camera position by Z (float int)\\ **8** - Camera rotation by X (float int)\\ **9** - Camera rotation by Y (float int)\\ **a** - Camera rotation by Z (float int)\\ **b** - Camera Type (string)\\ **c** - Camera Object (32-bit integer)\\ **e** - Health (float int)\\ **f** - Speech((bubble chat message)) (string, **limited to 500 characters**((''If this packet function didn't check the length of the chat message then hosts using Game.on('chat') could cause clients to crash by relaying very large chat messages.'')))\\ **g** - Equipped tool: **Slot ID** (32-bit integer), **Mesh UUID** (string), **Texture UUID** (string) \\ **h** - Sets ''Arm'' value to ''-1''\\ **i** - Is player alive?((1 - true, 0 - false.)) (8-bit integer)\\ \\ The next ID Types are defined by GameMaker client as **"new clothing system"**:\\ **j** - ''Clothe1'' (string)\\ **k** - ''Clothe2'' (string)\\ **l** - ''Clothe3'' (string)\\ **m** - ''Clothe4'' (string)\\ **n** - ''Clothe5'' (string)| | **4** (Client Data Packet, defined in GameMaker Client via ''packet_handler'' script; defined by Node Hill as ''Figure'')| **ID type** (string)\\ **Network ID** (32-bit integer)\\ **ID types**, defined in GameMaker client:\\ **A** - Position by X (float int)\\ **B** - Position by Y (float int)\\ **C** - Position by Z (float int)\\ **D** - ? (float int, **unused**)\\ **E** - Camera Rotation (float int, **unused**)\\ **F** - Player rotation by Z (float int)\\ **G** - Player scale by X (float int)\\ **H** - Player scale by Y (float int)\\ **I** - Player scale by Z (float int)\\ **K** - Head color (32-bit integer)\\ **L** - Torso color (32-bit integer)\\ **M** - Left Arm color (32-bit integer)\\ **N** - Right arm color (32-bit integer)\\ **O** - Left leg color (32-bit integer)\\ **P** - Right Leg color (32-bit integer)\\ **Q** - Face Item ID (string)\\ **R** - Shirt Item ID((unused, old. Same with Pants, T-Shirt)) (string)\\ **S** - Pants Item ID (string)\\ **T** - T-Shirt Item ID (string)\\ **U** - First Equipped Hat Item ID, receives Mesh UUID (string) and Texture UUID (string)\\ **V** - Second Equipped Hat Item ID, receives Mesh UUID (string) and Texture UUID (string)\\ **W** - Third Equipped Hat Item ID, receives Mesh UUID (string) and Texture UUID (string)\\ **X** - Score (32-bit integer, can be negative)\\ **Y** - Team (32-bit integer)\\ \\ The next ID Types are defined by GameMaker client as **Local Changes**:\\ **1** - Walking Speed (32-bit integer)\\ **2** - Jump Height (32-bit integer)\\ **3** - Field of View (32-bit integer)\\ **4** - Camera distance (32-bit integer, can be negative)\\ **5** - Camera position by X (float int)\\ **6** - Camera position by Y (float int)\\ **7** - Camera position by Z (float int)\\ **8** - Camera rotation by X (float int)\\ **9** - Camera rotation by Y (float int)\\ **a** - Camera rotation by Z (float int)\\ **b** - Camera Type (string)\\ **c** - Camera Object (32-bit integer)\\ **e** - Health (float int)\\ **f** - Speech((bubble chat message)) (string, **limited to 500 characters**((''If this packet function didn't check the length of the chat message then hosts using Game.on('chat') could cause clients to crash by relaying very large chat messages.'')))\\ **g** - Equipped tool: **Slot ID** (32-bit integer), **Mesh UUID** (string), **Texture UUID** (string) \\ **h** - Sets ''Arm'' value to ''-1''\\ **i** - Is player alive?((1 - true, 0 - false.)) (8-bit integer)\\ \\ The next ID Types are defined by GameMaker client as **"new clothing system"**:\\ **j** - ''Clothe1'' (string)\\ **k** - ''Clothe2'' (string)\\ **l** - ''Clothe3'' (string)\\ **m** - ''Clothe4'' (string)\\ **n** - ''Clothe5'' (string)|
Line 29: Line 30:
  
 ^ Network Packet type ^ What does the network packet contain? ^  ^ Network Packet type ^ What does the network packet contain? ^ 
-| **1** (Authentication packet, defined by Node Hill as ''Authentication'') | **Token**((User's authentication key.)) (string)\\ **Client version** (string)\\ What **Host** sends((should be received by client)):\\  **Network ID**((Object id of a ''obj_client'', assigned server-side.)) (32-bit integer)\\ **Brick Count** (32-bit integer)\\ **User ID**((Retrieved via Brick Hill site API, hence the auth key **must be verified**.)) (32-bit integer)\\  **Username** (string)\\ Are you an **admin**?((1 - true, 0 - false.)) (8-bit integer)\\ **Membership type** (8-bit integer)\\ **Game ID** (32-bit integer)\\ **Game Name** (string) | +| **1** (Authentication packet, defined by Node Hill as ''Authentication'') | **Token**((User's authentication key.)) (string)\\ **Client version** (string) | 
 | **2** (Player position Packet, defined by Node Hill as ''Position'')((Earlier: unused method of loading bricks. Exists yet commented out in the game code of latest Brick Hill Legacy Client.)) | **Position by X** (float int)\\ **Position by Y** (float int)\\ **Position by Z** (float int)\\ **Rotation by Z** (float int)\\ **Camera rotation by Z** (float int) | | **2** (Player position Packet, defined by Node Hill as ''Position'')((Earlier: unused method of loading bricks. Exists yet commented out in the game code of latest Brick Hill Legacy Client.)) | **Position by X** (float int)\\ **Position by Y** (float int)\\ **Position by Z** (float int)\\ **Rotation by Z** (float int)\\ **Camera rotation by Z** (float int) |
 |**3** (''Command'' Packet)| **Command** (via ''/'', string) | |**3** (''Command'' Packet)| **Command** (via ''/'', string) |
hosting/netpackets.1764933353.txt.gz · Last modified: by blamedenny