Extremelyd1 / Strat-Roulette

CS:GO Sourcemod Plugin
MIT License
9 stars 4 forks source link

PugSetup not detected #51

Closed lasa01 closed 3 years ago

lasa01 commented 3 years ago

Describe the bug Pug setup integration is not working. Seems like it is not detected.

To Reproduce Steps to reproduce the behavior:

  1. Install pugsetup and this.
  2. Try to start a game using sm_start

Expected behavior Plugin should tell me that pug setup handles starting or something according to the source code. In reality, it tries to start the game while pugsetup warmup is running resulting in strats getting into the warmup.

Additional context Here is some console output:

sm plugins info pugsetup
  Filename: pugsetup.smx
  Title: CS:GO PugSetup (Tools for setting up pugs/10mans)
  Author: splewis
  Version: 2.0.5
  URL: https://github.com/splewis/csgo-pug-setup
  Status: running
  Timestamp: 08/05/2018 15:11:30
  Hash: 30656067272e9d28b0010a379df6f9b2
sm plugins info stratroulette
  Filename: stratroulette.smx
  Title: Strat Roulette (Random strats every round)
  Author: Extremelyd1
  Version: 3.0
  Status: running
  Timestamp: 02/07/2021 01:50:09
  Hash: 33c2630f7d4879066de51d8077da8671
sm_start
L 02/07/2021 - 02:10:59: [SM] Exception reported: Client index 0 is invalid
L 02/07/2021 - 02:10:59: [SM] Blaming: pugsetup.smx
L 02/07/2021 - 02:10:59: [SM] Call stack trace:
L 02/07/2021 - 02:10:59: [SM]   [0] FakeClientCommand
L 02/07/2021 - 02:10:59: [SM]   [1] Line 943, ./scripting/pugsetup.sp::Command_Start
L 02/07/2021 - 02:10:59: Starting Freeze period
Attempted to create unknown entity type cs_bot_patrol_route_waypoint!
Can't init cs_bot_patrol_route_waypoint
Attempted to create unknown entity type cs_bot_patrol_route_waypoint!
Can't init cs_bot_patrol_route_waypoint
Attempted to create unknown entity type cs_bot_patrol_route_waypoint!
Can't init cs_bot_patrol_route_waypoint
Attempted to create unknown entity type cs_bot_patrol_route_waypoint!
Can't init cs_bot_patrol_route_waypoint
L 02/07/2021 - 02:10:59: World triggered "Match_Start" on "de_mirage"
Picked strat 21
sm_end
L 02/07/2021 - 02:11:15: Starting Freeze period
Attempted to create unknown entity type cs_bot_patrol_route_waypoint!
Can't init cs_bot_patrol_route_waypoint
Attempted to create unknown entity type cs_bot_patrol_route_waypoint!
Can't init cs_bot_patrol_route_waypoint
Attempted to create unknown entity type cs_bot_patrol_route_waypoint!
Can't init cs_bot_patrol_route_waypoint
Attempted to create unknown entity type cs_bot_patrol_route_waypoint!
Can't init cs_bot_patrol_route_waypoint
L 02/07/2021 - 02:11:15: World triggered "Match_Start" on "de_mirage"
lasa01 commented 3 years ago

Seems like the function public void OnMapStart() is never called. Changing this check to always set the variable to true doesn't fix the problem, but changing the initialization here to true fixes the issue.