PhlexPlexico / G5V

A front-end for G5API to manage matches/seasons/tournaments for CS:GO
MIT License
56 stars 29 forks source link

Live stats do not work properly, match page doesn't show names #172

Closed fanesahera closed 1 year ago

fanesahera commented 1 year ago

Hello,

Sorry, I am new to this. I am not sure if this is a G5V issue or G5API issue I am facing. The live stats won't update most of the time and sometimes if I refresh the website again and again, the team names also go from the match page as if it is failing to load - resulting in just 0 - 0 and rest of the information being blank.

I am not sure how to check G5API/G5V logs, can you help me figure that out?

PhlexPlexico commented 1 year ago

Hi,

Are you running via docker, or just through the host machine?

fanesahera commented 1 year ago

Thanks for the reply! I am running manually through yarn and using NGINX as a reverse proxy.

PhlexPlexico commented 1 year ago

Okay so a few things then.

I'm going to hazard a guess it's going to do with the reverse proxy setup, since that's usually the most finicky. you can find a working example config in the wiki of this repo :)

Thanks!

fanesahera commented 1 year ago

image Thank you for your reply!

These Valve/Steam HTTP Client 1.0 requests take 15-20s to show. I believe when I try to host let's say, 4 matches at the same time, it bugs out because the previous requests are not completed yet.

PhlexPlexico commented 1 year ago

I mean, that should be inconsequential. The updates will only show on round end, as per when the plugin sends the requests.

Does everything else work when you are viewing non-live matches? Like, does all the data on the site load properly?

fanesahera commented 1 year ago

Yes. When the panel bugs out for example, I can use every other feature such as teams, seasons, servers etc. I will need to recheck the logs when it bugs out to find and provide more information.

fanesahera commented 1 year ago

Hello,

I noticed the G5API is working perfectly. Right now, when the score is updated at the end of round, just the front end doesn't get updated. It shows this even after multiple rounds end. Should I send you the nginx config file? image

PhlexPlexico commented 1 year ago

I think that's because the front end checks if the match is currently started or not. If you idle on the page before the match has any values (I.e. everything in map stats table doesn't exist) it won't auto update. This is by design to ensure that ther a not too many open connections to the sockets at any given time, as there's no other way to determine if a match is running, or a match is stuck at the warmup (it happens quite a bit with the public pane).

fanesahera commented 1 year ago

This happens after the match has started however.

PhlexPlexico commented 1 year ago

Are you on the page before the match starts? And expecting the data to just flow in whenever the match begins? If you take a peep in the code, you will see that the event streams are only opened if it can find data for each route, and the end time of the match is null. Otherwise it will bring you to a static route (to save on some resources). Once a match is actually started, and there is some data (when a round ends, the player stats are updated), it should update the data automatically.

Thanks!

PhlexPlexico commented 1 year ago

Closing this as there has not been activity in 6 months.