|
2 | 2 |
|
3 | 3 | ## Comment
|
4 | 4 |
|
5 |
| -A comment is a message left on a level by a user. The server stores the message and its ID, along with the author's player ID, the likes, the percentage, etc. |
| 5 | +A Comment is a message that the player can create inside of Geometry Dash. There are **Two** types of comments: `Level Comments` and `Account Comments` |
6 | 6 |
|
7 |
| -#### Comment Object |
| 7 | +> - `Level Comments` can be found after pressing the `i` button which is located on the right side of the level menu which then opens the Comment Menu - you can also view comments by clicking on the comment icon on the player Profile. To Post a comment, the player has to click on the speech bubble icon and they can type their comment. Without any external tools, a comment can be up to **100** Characters in length<br/><br/> |
| 8 | +> - `Account Comments` can be found on a user's profile. `Account Comments` are exactly the same as `Level Comments` however the following keys will not affect it: `10, 11, 12`<br/>To Upload an Account Comment the player must click the speech bubble icon on their profile and they can type their comment. Without any external tools, a comment can be up to **140** Characters in length |
8 | 9 |
|
9 |
| -A comment is split into two sections, separated by a colon. The first part is the comment information, and the second part is the author information. |
| 10 | +### Comment Object |
10 | 11 |
|
11 |
| -#### Comment Structure |
| 12 | +A comment object is split into two sections: a `Comment String` and an `Author String`. these two strings are divided by a `:` |
12 | 13 |
|
13 |
| -**Note:** Keys marked with an asterisk `*` are not returned by the getGJAccountComments20 endpoint. |
| 14 | +> - The `Comment String` contains all the data regarding the comment itself<br/><br/> |
| 15 | +> - The `User String` contains all the data regarding the user who is commenting |
| 16 | +
|
| 17 | +The `Comment String` and `User String` are both structured with a `key~value~key~value` pairing. Here is some examples of raw responses from the server |
| 18 | + |
| 19 | + |
| 20 | +<!-- tabs:start --> |
| 21 | + |
| 22 | +#### **Level Comment Example** |
| 23 | +```md |
| 24 | +2~R0QgRG9jcyBhcmUgZXBpYw==~3~84696119~4~0~7~0~10~0~9~2 seconds~6~12872819:1~TheWylieMaster~9~1~10~4~11~16~14~3~15~2~16~9276649 |
| 25 | +``` |
| 26 | + |
| 27 | +#### **Account Comment Example** |
| 28 | +```md |
| 29 | +2~R0QgRG9jcyBhcmUgZXBpYw==~4~11~9~3 months~6~18083050 |
| 30 | +``` |
| 31 | + |
| 32 | +<!-- tabs:end --> |
| 33 | + |
| 34 | +Each `key` is tied to a component within the client and the `value` sets data for the specific component. |
| 35 | +A list of all known keys can be found in the table below |
| 36 | + |
| 37 | +### Comment Structure |
| 38 | + |
| 39 | +**Note:** Keys marked with an asterisk `*` do not affect `Account Comments` |
14 | 40 |
|
15 | 41 | | Key | Name/Value | Type | Description
|
16 | 42 | |-----|---------------------------|----------------------------------------------|--------------------------------------------------------------------------
|
17 |
| -| 2 | Comment | **string** | The comment left by the user, encoded in [base64](/topics/encryption/base64.md) |
18 |
| -| 3 | Author* | **number** | The player ID of the author. **This is different than the account ID** |
19 |
| -| 4 | Likes | **number** | The amount of likes the comment has |
20 |
| -| 6 | Message ID | **number** | The message ID. Account comments have different IDs than level comments |
21 |
| -| 7 | isSpam | **Bool** | if a comment has been flagged as spam |
22 |
| -| 9 | Age | **string** | How long ago the comment was posted (e.g. "2 months") |
23 |
| -| 10 | Percent* | **number** | The percent the player put in their comment |
24 |
| -| 11 | ModBadge | **number** | The Mod Badge of a moderator commenting |
25 |
| -| 12 | Moderator Chat Color | **string** | Comma separated list of the RGB values of the moderator's chat color. only appears if `modBadgeID != 0` |
26 |
| - |
27 |
| -#### Player Structure |
| 43 | +| 1 | levelID | **Integer** | The levelID linked to the comment |
| 44 | +| 2 | comment | **String** | The comment left by the user, encoded in [base64](/topics/encryption/base64.md) |
| 45 | +| 3 | author* | **Integer** | The player ID of the author. **This is different than the account ID** |
| 46 | +| 4 | likes | **Integer** | The amount of likes the comment has |
| 47 | +| 6 | messageID | **Integer** | The message ID. Account comments have different IDs than level comments |
| 48 | +| 7 | spam | **Bool** | If a comment has been flagged as spam |
| 49 | +| 9 | age | **String** | How long ago the comment was posted (e.g. "2 months") |
| 50 | +| 10 | percent* | **Integer** | The percent the player put in their comment |
| 51 | +| 11 | modBadge* | **Integer** | The Mod Badge of a moderator commenting |
| 52 | +| 12 | moderatorChatColor* | **String** | Comma separated list of the RGB values of the moderator's chat color - only appears if the players `modBadge > 0` |
28 | 53 |
|
29 |
| -**Note:** This is not returned by the getGJAccountComments20 endpoint. |
| 54 | +### User Structure |
| 55 | + |
| 56 | +**Note:** These values are only returned through `Level Comments` |
30 | 57 |
|
31 | 58 | | Key | Name/Value | Type | Description
|
32 | 59 | |-----|---------------------------|----------------------------------------------|--------------------------------------------------------------------------
|
33 |
| -| 1 | Username | **string** | Author's username |
34 |
| -| 9 | Icon | **number** | Which icon the player is using, starting with 1 as the first icon |
35 |
| -| 10 | Player Color 1 | **number** | Author's primary player color, presumably ordered cronologically from left to right per update |
36 |
| -| 11 | Player Color 2 | **number** | Author's secondary player color, presumably ordered cronologically from left to right per update |
37 |
| -| 14 | Icon Type | **number** | Author's icon type indexing an array of `icon, ship, ball, ufo, wave, robot, spider` |
38 |
| -| 15 | glow | **number** | 0 = no glow, 2 = glow |
39 |
| -| 16 | Account ID | **number** | Author's account ID. **This is different than the player ID** |
| 60 | +| 1 | userName | **String** | Author's username |
| 61 | +| 9 | icon | **Integer** | Which icon the player is using, starting with 1 as the first icon |
| 62 | +| 10 | playerColor | **Integer** | Author's primary player color, presumably ordered cronologically from left to right per update |
| 63 | +| 11 | playerColor2 | **Integer** | Author's secondary player color, presumably ordered cronologically from left to right per update |
| 64 | +| 14 | iconType | **Integer** | Author's icon type indexing an array of `icon, ship, ball, ufo, wave, robot, spider` |
| 65 | +| 15 | glow | **Integer** | 0 = no glow, 2 = glow |
| 66 | +| 16 | accountID | **Integer** | Author's account ID. **This is different than the player ID** |
| 67 | + |
| 68 | +### Comment Bans |
| 69 | + |
| 70 | +If a user violates [the commenting rules](https://imgur.com/a/US0Biaj), they can be banned from posting comments. |
| 71 | +> As of Geometry Dash version 2.11, there are 2 different types of bans<br/> |
| 72 | +> - Permanent Bans - Only way to recieve one is by RobTop directly. The server response to trigger this is `-10` |
| 73 | +> - Temporary Bans - Elder Moderators and RobTop are able to enforce these onto people. The server response to trigger temporary bans is split into 3 components `temp_{length}_{reason}` |
| 74 | +
|
| 75 | +#### Temporary Ban Structure |
| 76 | + |
| 77 | +| Component | Description | |
| 78 | +|:----------|:------------| |
| 79 | +| `temp` | is used for the game to identify if the user is banned | |
| 80 | +| `length` | The duration of the ban in seconds | |
| 81 | +| `reason` | The reason the user was banned | |
| 82 | + |
| 83 | +### Trivia |
| 84 | + |
| 85 | +- The `User String` uses the same response parser that [player profiles](/resources/server/user) use |
| 86 | + |
| 87 | +- The only example of `Account Comments` where it was able to display a colour is with [RobTop's](https://gdbrowser.com/u/71) profile, this is because RobTop hardcoded the account colour into the accountID of `71` |
| 88 | + |
| 89 | +- In the [December 2019 2.2 leaks](https://www.reddit.com/r/geometrydash/comments/e9b0y6/update_22_leaks_megathread/), a key wih the ID of `8` can be found hardcoded into a string for the `Versus Mode` feature - it seems to be linked to accountID as you can see from [this piece of pseudocode](https://imgur.com/a/Rjvzshb) |
| 90 | + |
| 91 | + |
| 92 | + |
0 commit comments