ect0s
ect0s
I feel like the new Info would allow for an SL tracking plugin (which I started on, and I know others have as well) DBLog for kit tracking. Although this...
> Just some initial feedback from a quick rear on my phone: > > * Can we reword the event names please to read better, e.g. `PLAYET_PROMOTED_TO_SQUAD_LEADER`. > > *...
Was giving this some thought today. Perhaps it is more sane to simplify events: PLAYER_ROLE_CHANGED [Oldplayer, Newplayer] And then only fire SL changes from SQUAD_LEADER_CHANGED [OldSquad, NewSquad] This eliminates the...
https://github.com/ect0s/SquadJS/blob/1a53bcd8ccf3c2f278a032d47f7395865a2672a4/squad-server/index.js#L383 Not the most elegant code, but SQUAD_LEADER_CHANGE is implemented
I've started doing this for the changes I'm making, its going to be a bit of work. Theres a few other places where I'm not sure *what* the eventStore is...
So, heres the deal: DBlog has alot of null data because we fail to lookup via PlayerControllers in events where they replace a player name. In the current version of...
``` Before { raw: '[2022.04.08-22.31.59:904][826]LogSquadTrace: [DedicatedServer]Wound(): Player:popper69 KillingDamage=40.000000 from BP_PlayerController_C_2147458718 caused by BP_L85A2AG36_ElcanLDS_Rifle_C', time: 2022-04-08T22:31:59.904Z, chainID: 826, victimName: 'popper69', damage: 40, attackerName: 'hawk32791', weapon: 'BP_L85A2AG36_ElcanLDS_Rifle', attackerPlayerController: 'BP_PlayerController_C_2147458718' } After {...
If we don't want to do it via suffix, I think I can replace those with steamIDs. I'm already handling player connected and steamid being out of order and merging...
I also notice with Damage, Wound and Die we never reap the eventStore[playerName] I think ```RestartPlayer()``` is a respawn, which might make it possible; unfortunately its the playerSuffix that appears...
Alternatively, inside playerDisconnected, we have a steamID, a Full Name, and a Suffix. These should let us reap the eventStore eventually. This works for a running SquadJS instance with RCON...