B3none / cs2-retakes

CS2 implementation of retakes. Based on the version for CS:GO by Splewis.
GNU General Public License v3.0
180 stars 35 forks source link

Queue problem #40

Closed brkvlr closed 8 months ago

brkvlr commented 8 months ago
CHostStateMgr::QueueNewRequest( Changelevel (de_dust2), 3 )
SV:  CNetworkServerService::StartChangeLevel( (no landmark) )
"Jesse Pinkman<4><[U:1:1473332431]><CT>" ChangeTeam() CTMDBG , team 3, req team 0 willSwitch 0, 9766.52 
[Retakes 1.3.8] OnPlayerTeam event fired.
[Retakes 1.3.8] [Jesse Pinkman] CounterTerrorist -> None
[Retakes 1.3.8] ActivePlayers (BEFORE): 
[Retakes 1.3.8] QueuePlayers (BEFORE): Joseph-, Boundless
[Retakes 1.3.8] _roundTerrorists (BEFORE): Joseph-
[Retakes 1.3.8] _roundCounterTerrorists (BEFORE): No players in the queue.
[Retakes 1.3.8] [Jesse Pinkman] PlayerTriedToJoinTeam called.
[Retakes 1.3.8] [Jesse Pinkman] Checking ActivePlayers.
[Retakes 1.3.8] [Jesse Pinkman] Checking QueuePlayers.
[Retakes 1.3.8] [Jesse Pinkman] Not found, adding to QueuePlayers.
[Retakes 1.3.8] [Jesse Pinkman] Changing to spectator.
"Jesse Pinkman<4><[U:1:1473332431]><CT>" ChangeTeam() CTMDBG , team 3, req team 1 willSwitch 0, 9766.52 
[Retakes 1.3.8] OnPlayerTeam event fired.
[Retakes 1.3.8] [Jesse Pinkman] CounterTerrorist -> Spectator
[Retakes 1.3.8] ActivePlayers (BEFORE): 
[Retakes 1.3.8] QueuePlayers (BEFORE): Joseph-, Boundless, Jesse Pinkman
[Retakes 1.3.8] _roundTerrorists (BEFORE): Joseph-
[Retakes 1.3.8] _roundCounterTerrorists (BEFORE): No players in the queue.
[Retakes 1.3.8] [Jesse Pinkman] PlayerTriedToJoinTeam called.
[Retakes 1.3.8] [Jesse Pinkman] Checking ActivePlayers.
[Retakes 1.3.8] [Jesse Pinkman] Checking QueuePlayers.
[Retakes 1.3.8] [Jesse Pinkman] Found in QueuePlayers, do nothing.
[Retakes 1.3.8] ActivePlayers (AFTER): 
[Retakes 1.3.8] QueuePlayers (AFTER): Joseph-, Boundless, Jesse Pinkman
[Retakes 1.3.8] _roundTerrorists (AFTER): Joseph-
[Retakes 1.3.8] _roundCounterTerrorists (AFTER): No players in the queue.
[Retakes 1.3.8] [Jesse Pinkman] checking to ensure we have active players
[Retakes 1.3.8] ActivePlayers (AFTER): 
[Retakes 1.3.8] QueuePlayers (AFTER): Joseph-, Boundless, Jesse Pinkman
[Retakes 1.3.8] _roundTerrorists (AFTER): Joseph-
[Retakes 1.3.8] _roundCounterTerrorists (AFTER): No players in the queue.
[Retakes 1.3.8] [Jesse Pinkman] checking to ensure we have active players
Client 260 'Jesse Pinkman' signon state SIGNONSTATE_FULL -> SIGNONSTATE_CHANGELEVEL
"Joseph-<5><[U:1:841754534]><Spectator>" ChangeTeam() CTMDBG , team 1, req team 0 willSwitch 0, 9766.52 
[Retakes 1.3.8] OnPlayerTeam event fired.
[Retakes 1.3.8] [Joseph-] Spectator -> None
[Retakes 1.3.8] ActivePlayers (BEFORE): 
[Retakes 1.3.8] QueuePlayers (BEFORE): Boundless, Jesse Pinkman
[Retakes 1.3.8] _roundTerrorists (BEFORE): No players in the queue.
[Retakes 1.3.8] _roundCounterTerrorists (BEFORE): No players in the queue.
[Retakes 1.3.8] [Joseph-] PlayerTriedToJoinTeam called.
[Retakes 1.3.8] [Joseph-] Checking ActivePlayers.
[Retakes 1.3.8] [Joseph-] Checking QueuePlayers.
[Retakes 1.3.8] [Joseph-] Not found, adding to QueuePlayers.
[Retakes 1.3.8] [Joseph-] Changing to spectator.
[Retakes 1.3.8] ActivePlayers (AFTER): 
[Retakes 1.3.8] QueuePlayers (AFTER): Joseph-, Boundless, Jesse Pinkman
[Retakes 1.3.8] _roundTerrorists (AFTER): No players in the queue.
[Retakes 1.3.8] _roundCounterTerrorists (AFTER): No players in the queue.
[Retakes 1.3.8] [Joseph-] checking to ensure we have active players
Client 261 'Joseph-' signon state SIGNONSTATE_FULL -> SIGNONSTATE_CHANGELEVEL
"Boundless<6><[U:1:246043192]><Spectator>" ChangeTeam() CTMDBG , team 1, req team 0 willSwitch 0, 9766.52 
[Retakes 1.3.8] OnPlayerTeam event fired.
[Retakes 1.3.8] [Boundless] Spectator -> None
[Retakes 1.3.8] ActivePlayers (BEFORE): 
[Retakes 1.3.8] QueuePlayers (BEFORE): Joseph-, Jesse Pinkman
[Retakes 1.3.8] _roundTerrorists (BEFORE): No players in the queue.
[Retakes 1.3.8] _roundCounterTerrorists (BEFORE): No players in the queue.
[Retakes 1.3.8] [Boundless] PlayerTriedToJoinTeam called.
[Retakes 1.3.8] [Boundless] Checking ActivePlayers.
[Retakes 1.3.8] [Boundless] Checking QueuePlayers.
[Retakes 1.3.8] [Boundless] Not found, adding to QueuePlayers.
[Retakes 1.3.8] [Boundless] Changing to spectator.
[Retakes 1.3.8] ActivePlayers (AFTER): 
[Retakes 1.3.8] QueuePlayers (AFTER): Joseph-, Boundless, Jesse Pinkman
[Retakes 1.3.8] _roundTerrorists (AFTER): No players in the queue.
[Retakes 1.3.8] _roundCounterTerrorists (AFTER): No players in the queue.
[Retakes 1.3.8] [Boundless] checking to ensure we have active players
Client 262 'Boundless' signon state SIGNONSTATE_FULL -> SIGNONSTATE_CHANGELEVEL
HostStateRequest::Start(HSR_GAME):  loop(levelload) id(3) addons() desc(Changelevel (de_dust2))

I'm still having a problem with the queuing system. I added it as console.log txt if you want to review it.

B3none commented 8 months ago

It looks like when a player is going from Spectate -> None they're still getting added to the Queue players which is incorrect.

brkvlr commented 8 months ago

Yes, generally with the message that you have been added to the queue, it joins the team and does not make you wait in the queue.

B3none commented 8 months ago

I've made lots of changes in this area. If you're still experiencing bugs when using the latest version let me know @brkvlr

B3none commented 8 months ago

Closing as completed with the latest release, any issues re-open the ticket 👍