Facepunch / sbox-issues

175 stars 12 forks source link

[Website] Stats on most games don't increment properly #3922

Closed trende2001 closed 1 year ago

trende2001 commented 1 year ago

Describe the bug

I've encountered a problem where the code to increment the value of a stat is correct but it doesn't seem to be doing anything on the asset.party side of things. I've done a little more research and it turns out that only some games are able to see their stats being updated (like TTT)

To Reproduce

See Media/Files

Expected behavior

Stats should propagate the correct value for every game properly.

Media/Files

carbon (1) image

Additional context

No response

trende2001 commented 1 year ago

For clarification, LastDamage.Attacker does work in my code. I set the attackers health to 100 whenever the attacker kills someone

chrisspieler commented 1 year ago

I've also noticed this on duccsoft.ohio_rp

image

From the behind code of some menu UI:

image

Under the same conditions that the counter on screen gets updated, the stat online should also be getting updated.

CarsonKompon commented 1 year ago

This is also an issue in Wise Guys. I implemented stats at the same time as I did in Home but it isn't working in Wise Guys (but is working in Home). I threw debug logs in each call and I know the functions are being called but no results...

Wise Guys: image

Home: image

trende2001 commented 1 year ago

Works, thank you garry