EmeraldLoc / tag

sm64coopdx tag pack. This mod includes Tag, Freeze Tag, Infection, Hot Potato, and more.
14 stars 2 forks source link

Stats wont load correctly when looked at decently quickly #1286

Closed TheMan6900 closed 1 month ago

TheMan6900 commented 1 month ago

spammed stat page image

normal stat page image

TheMan6900 commented 1 month ago

The intro message can also have a little hiccup when loading peoples stats (theres supposed to be a tagger stat here in the image but there simply isnt) image

EmeraldLoc commented 1 month ago

The intro message can also have a little hiccup when loading peoples stats (theres supposed to be a tagger stat here in the image but there simply isnt)

Packet loss

stats wont load correctly when spammed

Why the heck are you spamming it in the first place, just resolving bugs that shouldn't happen in the first place.

Anyways, were you spamming on multiple players names or just one?

TheMan6900 commented 1 month ago

just one

TheMan6900 commented 1 month ago

also is packet loss fixable?

EmeraldLoc commented 1 month ago

also is packet loss fixable?

No it happens when someone has bad internet, sender or receiver

TheMan6900 commented 1 month ago

also is packet loss fixable?

No it happens when someone has bad internet, sender or receiver

oh

EmeraldLoc commented 1 month ago

Gonna attribute this to packets being lost. The main issue is you're spamming a player with a bunch of packets that shouldn't be spammed, and the player is sending more requests then they should. Within my code I do not believe anything is wrong, and I can slightly confirm that with the fact this only happens if you spam it. If this happens when you casually request stats, that's one thing, if it happens when you are spamming a client with bad internet (as it has been established since the tagger message did not send), well I dont think that's reliable enough. The packet being sent it a rather large one compared to a normal packet size in coop, so.

TheMan6900 commented 1 month ago

why cant say, another packet be sent if theres 10 - 20 seconds that the player stat page isnt being loaded?

EmeraldLoc commented 1 month ago

?

TheMan6900 commented 1 month ago

uh like, if someones stats arent showing up, a basically refresh (or packet resent) would take place, giving the stat page another chance to show up correctly.