Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Player Activity #64

Open
stive101 opened this issue Jan 23, 2025 · 3 comments
Open

Player Activity #64

stive101 opened this issue Jan 23, 2025 · 3 comments

Comments

@stive101
Copy link

Hello Everyone,

did somone know, how the player activity gets calculatet ?
all players activitiy is at 100 %, also for player last connectet at first of jannuary.

hlstats-awards and hlstats-resolve gets executet every day.
what did i miss ? :=)

@DNA-styx
Copy link

did somone know, how the player activity gets calculatet ?

I've not done the exact maths but if it help you work out it looks to be calculated here:


Runs daily and reduces activity by a percentage so that when they hit the minimum activity days (as set in the admin settings) their activity is zero.

and


Every kill made sets activity back to to 100(%).

@stive101
Copy link
Author

stive101 commented Feb 1, 2025

what i ckeckd now, the activity loss is very slow,
its not stay at 100% its decreasing but very slow,

i have a player wich are not connectet for 3 week, he has now 98% activity.

when i watch your (@DNA-styx ) hlstats site, you had a player last connectet 28.1 with a percentage activity of 89%,
so it looks like, my activity calculation works different from yours.

also 1 issue i had is a problem with the Player trend.
i found a player from your hlstats site that only has 2 player sessions. but the player trend graph is shown a line.
a player from my side has 8 player sessions but the graph still says : not enough session data.

somthing special is going on here becouse i know, that the session graph still worked a time ago,
but i reinstall all systems several times ago

your "image cached fix" does the fix for the player trend graph :=)"

but at the same time, it breaks the forum signature ;/

edit 2 :
hmmm, now i revertet the changes for the imagepng($image); back to original and deletet the old progress images, but the correct creation still works, now im confused, but with the original imagepng($image); the signature works, with our fix the image cannot be shown

@DNA-styx
Copy link

DNA-styx commented Feb 1, 2025

i have a player wich are not connectet for 3 week, he has now 98% activity.

What's your admin setting HLstatsX will automatically hide players which have no event more days than this value. (Default 28 days): set to?

Player trend

That's generated by the variables supplied to trend_graph.php which I've not modified, likewise none of my new code (should) change the unlaying data in the database, so I would be reasonably comfortable that any oddities you are see with that graph are 'normal' for HLStatsX :)

The 'Not Enough Session Data' calculation is done here if you want to try to work out what it's doing...

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants