Gameye / halflife-statistic

Statistics for halflife engine games (TF2, CS:GO)
Other
0 stars 0 forks source link

reduce player connected states #13

Closed elmerbulthuis closed 6 years ago

elmerbulthuis commented 6 years ago

in the PlayerContainerState there is a player field that is a hash of all players that are related to the match. When a player connects he should be added to this list, when he disconnects, the connected field of the player should be set to false.

Teams have a statistic property, we will set that to an empty hash {} for now.

TNGPS commented 6 years ago

welke feature file hoort hierbij ??

elmerbulthuis commented 6 years ago

Eigenlijk wordt dit in vrijwel elke feature file getest, omdat in elke test gebruikt wordt gemaakt van de player name en vaak ook van stats per player. Als players er niet goed in zitten, dan falen vrijwel alle features.

We gaan hier een test voor maken!

@Smashmint kan jij een feature maken voor spelers in een game? van een stuk of 3 logs welke spelers erin zaten?

Smashmint commented 6 years ago

@TNGPS Belangrijk om te weten is: Player disconnect -> remove from player list. Als hij opnieuw connect (reconnect) voordat de game is aflopen dan moet hij teruggezet worden inde player list.

elmerbulthuis commented 6 years ago

@Smashmint niet helemaal, als een player disconnect wordt connected op false gezet!

Dit werkt hetzelfde als bij CSGO.

Ook leuk om te weten is dat als een player opnieuw connect, krijgt hij een nieuwe key, en daarom lijkt het alsof het een nieuwe player is. De player kan zo meerdere malen voorkomen, elke keer als hij connect is hij een nieuwe player.

elmerbulthuis commented 6 years ago

@TNGPS er is een test beschikbaar voor de players, deze is echter nog nooit gedaan dus we weten niet 100% zeker of ie correct is. Als hij faalt kan het dus ook bij ons liggen!

ff op letten!

Smashmint commented 6 years ago

closed by #33