PlayerDB.txt: Difference between revisions
No edit summary |
No edit summary |
||
| Line 16: | Line 16: | ||
!Name | !Name | ||
!Data Type | !Data Type | ||
!Purpose | |||
!Remarks | !Remarks | ||
|- | |- | ||
|1 | |1 | ||
|Name | |Name | ||
|String | |String | ||
|Player's account name. | |||
|Invalid values cause whole record to be skipped. Regex used to verify validity: | |Invalid values cause whole record to be skipped. Regex used to verify validity: | ||
| Line 29: | Line 30: | ||
|LastIP | |LastIP | ||
|IPAddress | |IPAddress | ||
|For offline players, last IP used to successfully log in. For online players, current IP. | |||
|May be blank ("none") for players whose records were imported. | |May be blank ("none") for players whose records were imported. | ||
|- | |- | ||
| Line 34: | Line 36: | ||
|Rank | |Rank | ||
|String | |String | ||
|Player's current rank. | |||
|Full rank name. Saved as "RankName#UUID", where UUID is rank's universally unique identifier. fCraft can parse rank name without ID as well. If parsing fails, default rank is assigned to player. Not escaped. | |Full rank name. Saved as "RankName#UUID", where UUID is rank's universally unique identifier. fCraft can parse rank name without ID as well. If parsing fails, default rank is assigned to player. Not escaped. | ||
|- | |- | ||
| Line 39: | Line 42: | ||
|RankChangeDate | |RankChangeDate | ||
|DateTime | |DateTime | ||
|Date of the most recent promotion/demotion. | |||
|Defaults to "never" (empty string) for players who have never been ranked. | |Defaults to "never" (empty string) for players who have never been ranked. | ||
|- | |- | ||
| Line 44: | Line 48: | ||
|RankChangedBy | |RankChangedBy | ||
|String | |String | ||
|Name of the player or entity who most recently promoted/demoted this player. | |||
|Defaults to empty string for players who have never been ranked. Name of a player (usually). Does not have to be a valid player name though. Escaped. | |Defaults to empty string for players who have never been ranked. Name of a player (usually). Does not have to be a valid player name though. Escaped. | ||
|- | |- | ||
| Line 49: | Line 54: | ||
|BanStatus | |BanStatus | ||
|Enum | |Enum | ||
|One | |Player's current BanStatus: Banned, NotBanned, or Exempt. | ||
|One or zero characters long. | |||
*'''<code>b</code>''' = player is banned. | *'''<code>b</code>''' = player is banned. | ||
*'''<code>x</code>''' = player is exempt from all bans. | *'''<code>x</code>''' = player is exempt from all bans. | ||
| Line 57: | Line 63: | ||
|BanDate | |BanDate | ||
|DateTime | |DateTime | ||
|Date of most recent ban. | |||
|Defaults to "never" (empty string) for players who have never been banned. | |Defaults to "never" (empty string) for players who have never been banned. | ||
|- | |- | ||
| Line 62: | Line 69: | ||
|BannedBy | |BannedBy | ||
|String | |String | ||
|Name of the player or entity who most recently banned this player. | |||
|Only read if BanDate was set. Defaults to empty string for players who have never been banned. Name of a player (usually). Does not have to be a valid player name though. Escaped. | |Only read if BanDate was set. Defaults to empty string for players who have never been banned. Name of a player (usually). Does not have to be a valid player name though. Escaped. | ||
|- | |- | ||
| Line 67: | Line 75: | ||
|UnbanDate | |UnbanDate | ||
|DateTime | |DateTime | ||
|Date of most recent unban. | |||
|Defaults to "never" (empty string) for players who have never been banned. | |Defaults to "never" (empty string) for players who have never been banned. | ||
|- | |- | ||
| Line 72: | Line 81: | ||
|UnbannedBy | |UnbannedBy | ||
|String | |String | ||
|Name of the player or entity who most recently unbanned this player. | |||
|Only read if UnbanDate was set. Defaults to empty string for players who have never been unbanned. Name of a player (usually). Does not have to be a valid player name though. Escaped. | |Only read if UnbanDate was set. Defaults to empty string for players who have never been unbanned. Name of a player (usually). Does not have to be a valid player name though. Escaped. | ||
|- | |- | ||
| Line 77: | Line 87: | ||
|BanReason | |BanReason | ||
|String | |String | ||
|Reason given for the most recent ban. | |||
|Only read if BanDate was set. May be blank. Escaped. | |Only read if BanDate was set. May be blank. Escaped. | ||
|- | |- | ||
| Line 82: | Line 93: | ||
|UnbanReason | |UnbanReason | ||
|String | |String | ||
|Reason given for the most recent unban. | |||
|Only read if UnbanDate was set. May be blank. Escaped. | |Only read if UnbanDate was set. May be blank. Escaped. | ||
|- | |- | ||
| Line 87: | Line 99: | ||
|LastFailedLoginDate | |LastFailedLoginDate | ||
|DateTime | |DateTime | ||
|Date of most recent failed attempt to log in | |Date of most recent failed attempt to log in. | ||
| | |||
|- | |- | ||
|14 | |14 | ||
| Line 93: | Line 106: | ||
|IPAddress | |IPAddress | ||
|IP from which player most recently tried (and failed) to log in. | |IP from which player most recently tried (and failed) to log in. | ||
| | |||
|- | |- | ||
|15 | |15 | ||
|UNUSED | |UNUSED | ||
| | | | ||
|No longer in use. | |||
|Skip this column. | |Skip this column. | ||
|- | |- | ||
| Line 102: | Line 117: | ||
|FirstLoginDate | |FirstLoginDate | ||
|DateTime | |DateTime | ||
|First time the player ever attempted to log in. | |||
|May be "never" for players whose records were imported. | |May be "never" for players whose records were imported. | ||
|- | |- | ||
| Line 107: | Line 123: | ||
|LastLoginDate | |LastLoginDate | ||
|DateTime | |DateTime | ||
|Most recent time the player successfully logged in. | |||
|May be "never" for players whose records were imported. | |May be "never" for players whose records were imported. | ||
|- | |- | ||
| Line 112: | Line 129: | ||
|TotalTime | |TotalTime | ||
|TimeSpan | |TimeSpan | ||
|Total amount of time the player spent on this server. | |||
|May be 0 for players whose records were imported. | |May be 0 for players whose records were imported. | ||
|- | |- | ||
| Line 117: | Line 135: | ||
|BlocksBuilt | |BlocksBuilt | ||
|Int32 | |Int32 | ||
|Total number of blocks manually built or painted by the player. | |||
| | | | ||
|- | |- | ||
| Line 122: | Line 141: | ||
|BlocksDeleted | |BlocksDeleted | ||
|Int32 | |Int32 | ||
|Total number of blocks manually deleted by the player. | |||
| | | | ||
|- | |- | ||
| Line 127: | Line 147: | ||
|TimesVisited | |TimesVisited | ||
|Int32 | |Int32 | ||
|Number of sessions/logins. | |||
|May be 0 for players whose records were imported. | |May be 0 for players whose records were imported. | ||
|- | |- | ||
| Line 132: | Line 153: | ||
|MessagesWritten | |MessagesWritten | ||
|Int32 | |Int32 | ||
|Total number of chat messages written. | |||
| | | | ||
|- | |- | ||
| Line 137: | Line 159: | ||
|UNUSED | |UNUSED | ||
| | | | ||
|No longer in use. | |||
|Skip this column. | |Skip this column. | ||
|- | |- | ||
| Line 142: | Line 165: | ||
|UNUSED | |UNUSED | ||
| | | | ||
|No longer in use. | |||
|Skip this column. | |Skip this column. | ||
|} | |} | ||
Revision as of 04:01, 22 August 2013
Header
Encoding
Numbers: All numbers are nonnegative integers, written out with decimal digits. Empty Int32/Int64 fields are interpreted as 0.
Dates: Dates are saved as number of seconds since UTC Unix Timestamp. Value of "0" and empty DateTime fields are interpreted as "never" (DateTime.MinValue).
IP Addresses: IPs are serialized in dotted decimal notation (e.g. "192.168.1.1"). Only IPv4 addresses are used — no IPv6. Empty string, any invalid value, or "255.255.255.255" are interpreted as "unknown" address.
Strings: Strings are encoded as ASCII. Escaped characters are ,, \n, and \r — they are replaced with \xFF, \xFE, and \xFD respectively. There is no limit on string length. Parsing ends at the nearest comma.
Columns
(Note that order in this list starts with 1, not 0)
| Order | Name | Data Type | Purpose | Remarks |
|---|---|---|---|---|
| 1 | Name | String | Player's account name. | Invalid values cause whole record to be skipped. Regex used to verify validity:
|
| 2 | LastIP | IPAddress | For offline players, last IP used to successfully log in. For online players, current IP. | May be blank ("none") for players whose records were imported. |
| 3 | Rank | String | Player's current rank. | Full rank name. Saved as "RankName#UUID", where UUID is rank's universally unique identifier. fCraft can parse rank name without ID as well. If parsing fails, default rank is assigned to player. Not escaped. |
| 4 | RankChangeDate | DateTime | Date of the most recent promotion/demotion. | Defaults to "never" (empty string) for players who have never been ranked. |
| 5 | RankChangedBy | String | Name of the player or entity who most recently promoted/demoted this player. | Defaults to empty string for players who have never been ranked. Name of a player (usually). Does not have to be a valid player name though. Escaped. |
| 6 | BanStatus | Enum | Player's current BanStatus: Banned, NotBanned, or Exempt. | One or zero characters long.
|
| 7 | BanDate | DateTime | Date of most recent ban. | Defaults to "never" (empty string) for players who have never been banned. |
| 8 | BannedBy | String | Name of the player or entity who most recently banned this player. | Only read if BanDate was set. Defaults to empty string for players who have never been banned. Name of a player (usually). Does not have to be a valid player name though. Escaped. |
| 9 | UnbanDate | DateTime | Date of most recent unban. | Defaults to "never" (empty string) for players who have never been banned. |
| 10 | UnbannedBy | String | Name of the player or entity who most recently unbanned this player. | Only read if UnbanDate was set. Defaults to empty string for players who have never been unbanned. Name of a player (usually). Does not have to be a valid player name though. Escaped. |
| 11 | BanReason | String | Reason given for the most recent ban. | Only read if BanDate was set. May be blank. Escaped. |
| 12 | UnbanReason | String | Reason given for the most recent unban. | Only read if UnbanDate was set. May be blank. Escaped. |
| 13 | LastFailedLoginDate | DateTime | Date of most recent failed attempt to log in. | |
| 14 | LastFailedLoginIP | IPAddress | IP from which player most recently tried (and failed) to log in. | |
| 15 | UNUSED | No longer in use. | Skip this column. | |
| 16 | FirstLoginDate | DateTime | First time the player ever attempted to log in. | May be "never" for players whose records were imported. |
| 17 | LastLoginDate | DateTime | Most recent time the player successfully logged in. | May be "never" for players whose records were imported. |
| 18 | TotalTime | TimeSpan | Total amount of time the player spent on this server. | May be 0 for players whose records were imported. |
| 19 | BlocksBuilt | Int32 | Total number of blocks manually built or painted by the player. | |
| 20 | BlocksDeleted | Int32 | Total number of blocks manually deleted by the player. | |
| 21 | TimesVisited | Int32 | Number of sessions/logins. | May be 0 for players whose records were imported. |
| 22 | MessagesWritten | Int32 | Total number of chat messages written. | |
| 23 | UNUSED | No longer in use. | Skip this column. | |
| 24 | UNUSED | No longer in use. | Skip this column. |