Character Component (4)¶
This component does not have any client database table associated with it, as it represents and manages the state of the character of some player. It holds information such as the lego score (U-Score), account information and the passport statistics.
There is a very strange struct in the serialization, notably the TransitionState
in the Character Component.
It is a 2 bit enum defined as the following:
[uint2_t] - TransitionState
if TransitionState == 1
[uint16_t] - lastCustomBuildParts (presumably the rocket they are arriving on)
[wchar] - wCharacterOfTheAboveString
Component Dependencies¶
Component Construction¶
Component Serialization¶
Relevant Game Messages¶
Component XML Format¶
char
- Character Component dataattr acct
- account IDattr cc
- Currencyatrr cm
- Maximum Currencyattr co
- Unknown, related to claim codes?attr edit
- Unknown, Maybe related to HF editor?attr ft
- FreeToPlay status?attr gid
- Guild IDattr gm
- GM levelattr gn
- Guild nameattr lcbp
- modular info of last used rocketattr llog
- Timestamp of last login as this characterattr lrx
- Last respawn point position xattr lry
- Last respawn point position yattr lrz
- Last respawn point position zattr lrrw
- Last respawn point rotation wattr lrrx
- Last respawn point rotation xattr lrry
- Last respawn point rotation yattr lrrz
- Last respawn point rotation zattr ls
- Lego score/Universe score.attr lzcs
- Last Zone Check Sum, stored as an int32_tattr lzid
- The last zone clone ID, instance ID and zone ID concatenated into 1 64 bit number. See this footnote for more info.attr lzrw
- Last world rotation wattr lzrx
- Last world rotation xattr lzry
- Last world rotation yattr lzrz
- Last world rotation zattr lzx
- Last world position xattr lzy
- Last world position yattr lzz
- Last world position zattr mldt
- “Prop mod last display time”attr stt
- Player stats. See this footnote for more information about the format.attr time
- Total time played, in seconds.attr ttip
- “tool tip flags”attr v
- Unknown, maybe version? Always 3 in capsattr vd
- Unknown, some packet cap values are 15368, 15318, 15367ue
- Unlocked emotese
- An unlocked emoteattr id
- Emote IDvl
- Visited worldsl
- A visited worldattr cid
- Clone ID (used for properties, 0 if not a property)attr id
- World ID.zs
- World Statisticss
- Statistics for a worldattr ac
- Achievements collectedattr bc
- Bricks collectedattr cc
- Coins collectedattr es
- Enemies smashedattr map
- ID of the world the statistics are forattr qbc
- Quick build countNote
lzid
a binary concatenation of world ID, world instance and world clone, e.g:lzid =
2341502167811299
hex representation of lzid =
00 08 51 95 74 f4 04 e3
hex representation of lzid, byte reversed (= packet byte order, Little Endian) =
e3 04 f4 74 95 51 08 00
World ID =
e3 04
World Instance =
f4 74
World Clone =
95 51 08 00
Character Statistics Format¶
The character statistics are formatted as follows with a semicolon delimiting each statistic, including the last one. Fill in empty statistics with a zero.
Example:
10809;543;106;43;257;3;41;0;532;236;123;32403;1;58;7;55;101;111;0;0;0;0;0;0;0;0;0;
All stats are
uint64_t
except where noted otherwise:CurrencyCollected
BricksCollected (
int64_t
)SmashablesSmashed
QuickBuildsCompleted
EnemiesSmashed
RocketsUsed
MissionsCompleted
PetsTamed
ImaginationPowerUpsCollected
LifePowerUpsCollected
ArmorPowerUpsCollected
MetersTraveled
TimesSmashed
TotalDamageTaken
TotalDamageHealed
TotalArmorRepaired
TotalImaginationRestored
TotalImaginationUsed
DistanceDriven
TimeAirborneInCar
RacingImaginationPowerUpsCollected
RacingImaginationCratesSmashed
RacingCarBoostsActivated
RacingTimesWrecked
RacingSmashablesSmashed
RacesFinished
FirstPlaceRaceFinishes
Tooltip flags¶
Todo
bitmask?