micovery / ArmA3_Wasteland.Altis

A3Wasteland is a harsh survival sandbox mission for Arma 3 where two teams and independent players fight for survival. This is a collaboration between GoT, TPG, KoS, 404Games, and others.
GNU Affero General Public License v3.0
3 stars 14 forks source link

A option to reset the score board #65

Open codexGW opened 9 years ago

codexGW commented 9 years ago

I would be cool to have a option to reset the score board at a set time. Say once every 24 hours. I want to keep the players info for a stats system and not wipe it out. I don't think the in game score board was ever meant to be a stats system.

micovery commented 9 years ago

Arma 3 does not give absolute time-stamps, so this is not possible to do, unless an external source is used to get the time. Best I can do is make it so that the in-game scoreboard only shows the player's kills since they joined the server ... but still keep their total kills in-memory so that the data is not lost when saving.

codexGW commented 9 years ago

I was thinking make a separate database document like A3W_scoreboard that keeps the players score and have it wipe at a set time like vehicles or objects do.

micovery commented 9 years ago

That would not work. There would literally be tens of thousands of sub-documents in there, which would take forever event to iterate through in SQF, and find a the score for a player.

codexGW commented 9 years ago

Not every player just the ones in the set time are saved in the document. In say 24 hours that would be maybe like 100 - 200 players.

micovery commented 9 years ago

That may work, with similar to how object life-time is tracked, the mission could track the scoreboard document lifetime, and throw it away when it goes over a certain time.