Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Atoi32 ¶
Atoi32 converts a string directly to a int32, baseline golang parses string always into int64 and have to be converted to int32. You can however transform a string easily to int, which is somehow the same, but the parquet package expects int32 specifically
func Normalize ¶
func Normalize(scanner *bufio.Scanner, uploadUUID string) (map[string]map[string][]*timestreamwrite.WriteRecordsInput, map[string][]string, error)
Normalize converts the combatlog to a slice of Event structs TODO: rename, we are not really normalizing the data anymore, because I'm not using a relational database anymore
Types ¶
type Event ¶
type Event struct { //START_BASE_PARAMS // UploadUUID string // Unsupported bool //DEBUGGING PARAM // CombatlogUUIDs string // BossFightUUID string MythicplusUUID string // ColumnUUID string Timestamp int64 //6/30 21:46:57.014 CasterID string //Player-970-000BF9AC CasterName string //"Eluxbeta-Sylvanas" CasterType string //0x511 its always 511 for me and 512 for other grp members and other stuff for enemy trash SourceFlag string //0x0 TargetID string //Player-970-000BF9AC TargetName string //"Eluxbeta-Sylvanas" TargetType string //0x511 DestFlag string //0x0 //START_BASE_SPELL_PARAMS SpellID int32 //194509 SpellName string //"Power Word: Radiance" SpellType string //0x2 //holy i guess //START_ADVANCED_COMBAT_LOGGING_PARAMS // AnotherPlayerID string //Player-970-000BF9AC in case of pets this is always the target player_id not the summoner // D0 string //0000000000000000 // D1 int64 //89449 // D2 int64 //93932 // D3 int64 //5637 // D4 int64 //998 // D5 int64 //2599 // D6 int64 //1 // D7 int64 //596 // D8 int64 //1000 // D9 string //0 // D10 string //-967.46 coordinates? // D11 string //2171.14 ^ // D12 string //0.4005 ^ // D13 string //313 // DamageUnkown14 string //Added with combatlog version 9? //END_ADVANCED_COMBAT_LOGGING_PARAMS //START_HEAL_PARAMS (SPELL_HEAL, SPELL_PERIODIC_HEAL) //START_DAMAGE_PARAMS e.g. 3724,5319,-1,1,0,0,0,nil,nil,nil ActualAmount int64 //reduced by amor, 2x for crit, reduced by absorb }
Event contains all events that are relevant for the combat itself. It does not contain things like COMBAT_LOG_VERSION
example: 6/30 21:46:57.014 SPELL_HEAL,Player-970-000BF9AC,"Eluxbeta-Sylvanas",0x511,0x0,Player-970-000BF9AC,"Eluxbeta-Sylvanas",0x511,0x0,194509,"Power Word: Radiance",0x2,Player-970-000BF9AC,0000000000000000,92811,110009,368,4868,801,0,100000,100000,0,-922.47,2149.70,3.0913,326,5101,5101,0,0,nil