AMP icon indicating copy to clipboard operation
AMP copied to clipboard

sessionid Regex Only Tracking First Player

Open IceOfWraith opened this issue 2 years ago • 5 comments

Bug Report

System Information

  • Operating System Windows 11 Pro x64
  • AMP version and build date v2.3.3, built 29/05/2022 00:31
  • Which AMP release stream you're using bleeding

I confirm:

  • [x] that I have searched for an existing bug report for this issue.
  • [x] that I am using the latest available version of AMP.
  • [x] that my operating system is up-to-date.

Symptoms

  • What are you trying to do? Track player count using sessionid.
  • What are you expecting to happen? Player increment on join.
  • What is actually happening? ('Nothing' is not an acceptable answer!) The sessionid only tracks the first player that joins.

Reproduction

Create a RoR 2 instance using the latest PR and it will only grab the first player to join. The rest don't seem to register.

IceOfWraith avatar May 29 '22 15:05 IceOfWraith

To debug this on live systems, is there a way to see the value of the sessionid which is being captured by regex?

DataBitz avatar May 30 '22 02:05 DataBitz

I don't believe so. I figured it out by having random people join my game over and over. The result was always the same. The first counted and the rest didn't.

IceOfWraith avatar May 30 '22 02:05 IceOfWraith

I could imagine that if the sessionid were incorrect and the same value was captured multiple times that it'd simply ignore subsequent hits of that regex because it thinks that user has already joined.

PhonicUK avatar Jun 13 '22 09:06 PhonicUK

Can confirm this happens even with unique sessionids. Only the first player join gets registered.

Greelan avatar Jul 17 '22 07:07 Greelan

When I post the SID out to Discord is shows as empty and the UID is UID1235634588 for every player

DataBitz avatar Jul 17 '22 08:07 DataBitz