Skip to content

“Your stats could not be validated” error when selecting a class for the first time since joining in dedicated servers if doing so does not spawn the player immediately #39

@Hadi77KSA

Description

@Hadi77KSA

What happened?

When a player that joins the server selects a class, but the game decides they shouldn’t spawn in (such as during postgame, the final killcam, or a round of Search and Destroy), the player gets kicked out of the server with the error message: Server Disconnected - Your stats could not be validated, and on the console of the dedicated server it would show: <player num>:<player name> PATCH_BAD_STATS. This seems to be caused by the function fix_godmode_class_exploit in Plutonium’s script scripts\mp\mp_spawn_fix.gsc, specifically self.custom_class being undefined when the player is not spawned in immediately after selecting a class for the first time since joining.

Expected result

For the player to not get falsely kicked after selecting a class for the first time since joining the server when the selection is made during a period that doesn’t make the player spawn in.

Steps to reproduce

  1. Join a dedicated server, preferably one on Search and Destroy with players already in it on both teams.
  2. Select a class once the final killcam starts playing, or if on an SnD server, do so after some time has passed for you to not spawn in.

Affected game(s)

BO1 Multiplayer (T5MP)

Affected component(s)

Server (dedi)

Plutonium version

r4855

Relevant logs

Client console:

Com_ERROR: Server Disconnected - Your stats could not be validated.

Server console:

6:Hadi77KSA PATCH_BAD_STATS

Additional information

No response

Operating system

No response

Plutonium profile

No response

Discord username

hadi77ksa

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcomponent: serverIssue related to the game servergame: T5Issue related to T5mode: MPIssue only affecting Multiplayer

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions