help I can't get it to work
Closed this issue · 14 comments
Hello, I have tried everything to make it work but I can't.
I have the modded Counter-Strike 2 (CS2) Modded but when I install this plugin it loads but the css_modes or css_maps commands do not work and I don't know what I'm doing wrong.
In this way I have edited the gamemodes_server.txt
And this gives me the sv logs:
2024-03-28 04:56:01.880 -03:00 [INFO] plugin:GameModeManager OnMapGroupCommand execution started
2024-03-28 04:56:01.881 -03:00 [INFO] plugin:GameModeManager Map group command detected!
2024-03-28 04:56:01.882 -03:00 [INFO] plugin:GameModeManager Current MapGroup is .
2024-03-28 04:56:01.882 -03:00 [INFO] plugin:GameModeManager New MapGroup is .
2024-03-28 04:56:01.882 -03:00 [INFO] plugin:GameModeManager Mapgroup is the same. Not updating map list...
I hope you can help me...
Hey @Carloscb22, thanks for bringing this to my attention. I have one other report of this behavior. I will be doing some thorough testing tomorrow afternoon (EST) and will report back here with an update. It is likely that a new version will be released to address this issue so I will keep you posted.
Thank you so much! We remain attentive to your reports!
@Carloscb22, do you by chance still have the Ultimate Map Chooser plugin installed? If so, would you be able to remove it to see if the issue persists?
Hey @Carloscb22, can you try the new version and see if you are still experiencing issues? If so, can you provide me with the output of the logs?
Hello!! Sorry for the delay, I just installed the update and tried to run it but I get these errors from the console:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.Exception: No current scenario
at ExecutesPlugin.Managers.GameManager.GetCurrentScenario() in /home/runner/work/cs2-executes/cs2-executes/Managers/GameManager.cs:line 163
at ExecutesPlugin.ExecutesPlugin.OnRoundStart(EventRoundStart event, GameEventInfo info) in /home/runner/work/cs2-executes/cs2-executes/ExecutesPlugin.cs:line 568
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
--- End of inner exception stack trace ---
at System.Reflection.MethodInvoker.Invo
1 1 1
ke(Object obj, IntPtr* args, BindingFlags invokeAttr)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at CounterStrikeSharp.API.Core.FunctionReference.<CreateWrappedCallback>b__18_0(fxScriptContext* context) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/FunctionReference.cs:line 120
[Executes] Trying to loop valid active players.
[Executes] [Psicosis] Adding timer for allocation...
Server tick 16886 expected to be long because 'RestartRound'
['Psicosis' tick 16887 depth=4 (6459..6462) ping=23ms loss in/out = 11.71%/11.71%] CQ catchup: removed 4, max: 10, 10 ticks this frame
[S_API FAIL] Tried to access Steam interface SteamUtils010 before SteamAPI_Init succeeded.
[Executes] Player is first T, allocating bomb.
logs:
2024-04-01 05:51:11.390 -03:00 [EROR] (cssharp:PluginManager) Failed to load plugin from /home/tcagame_svc5048/carlosb/5048/game/csgo/addons/counterstrikesharp/plugins/GameModeManager/GameModeManager.dll
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.Exception: Cannot find MapGroup 'File': /home/steam/cs2/game/csgo/gamemodes_server.txt
at GameModeManager.Plugin.OnConfigParsed(Config config) in C:\Users\nickj\OneDrive\Documents\CS2\plugins\GameModeManager\Config.cs:line 26
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
--- End of inner exception stack trace ---
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at CounterStrikeSharp.API.Core.BasePlugin.InitializeConfig(Object instance, Type pluginType) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/BasePlugin.cs:line 339
at CounterStrikeSharp.API.Core.Plugin.PluginContext.Load(Boolean hotReload) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/Plugin/PluginContext.cs:line 217
at CounterStrikeSharp.API.Core.Plugin.Host.PluginManager.LoadPlugin(String path) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/Plugin/Host/PluginManager.cs:line 125
at CounterStrikeSharp.API.Core.Plugin.Host.PluginManager.Load() in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/Plugin/Host/PluginManager.cs:line 93
this is my gameserver.txt:
gamemodes_server.txt
Once inside the server it also doesn't let me use the !maps (css_maps) or !modes (css_modes) commands.
@Carloscb22, can you delete the old version of the configuration file and then reload the plugin or restart the server? The file you need to delete is /game/csgo/addons/counterstrikesharp/configs/plugins/GameModeManager/GameModeManager.json.
I have deleted the previous version of the configuration and when loading it, this appears in the console:
L 04/01/2024 - 12:40:50: "Psicosis<0><[U:1:75668681]><CT>" say "!css_maps"
12:40:50 [INFO] (plugin:GameModeManager) OnMapsCommand execution started.
SteamNetworkingSockets lock held for 5.6ms. (Performance warning.) ServiceThread,RecvUDPPacket
This is usually a symptom of a general performance problem such as thread starvation.
12:40:55 [INFO] (plugin:GameModeManager) OnMapsCommand execution started.
12:41:03 [INFO] (plugin:GameModeManager) OnMapsCommand execution started.
['Psicosis' tick 5980 depth=2 (1886..1887) ping=22ms] CQ bloat: removed 13, max: 10, 10 ticks this frame
['Psicosis' tick 5988 depth=2 (1914..1915) ping=22ms] CQ bloat: removed 17, max: 10, 10 ticks this frame
['Psicosis' tick 5995 depth=2 (1941..1942) ping=23ms] CQ bloat: removed 18, max: 10, 10 ticks this frame
['Psicosis' tick 6003 depth=2 (1966..1967) ping=24ms] CQ bloat: removed 15, max: 10, 10 ticks this frame
['Psicosis' tick 6257 depth=2 (2243..2244) ping=23ms loss in/out = 3.05%/3.05%] CQ bloat: removed 10, max: 10, 10 ticks this frame
['Psicosis' tick 6283 empty starved 16=250.0ms ping=22ms loss in/out = 3.05%/3.05%] generating substitute command 2276 from 2275
['Psicosis' tick 6299 empty starved 32=500.0ms ping=23ms loss in/out = 3.05%/3.05%] generating substitute command 2292 from 2291
12:41:22 [INFO] (plugin:GameModeManager) OnModesCommand execution started.
12:41:30 [INFO] (plugin:GameModeManager) OnModesCommand execution started.
The problem is that it still does not execute any command: !modes (css_modes) or !maps (css_maps)
Game_Modes_Server:
"GameModes_Server.txt"
{
"gameTypes"
{
"classic"
{
"gameModes"
{
"casual"
{
"maxplayers" "64"
"exec"
{
"exec" "gamemode_casual_last.cfg"
}
// Map groups for online modes
"mapgroupsMP"
{
//Other Maps Groups
"mg_1v1" "50"
"mg_bhop" "51"
"mg_kz" "52"
"mg_surf" "53"
"mg_minigames" "54"
"mg_scoutzknivez" "55"
"mg_course" "56"
"mg_hns" "57"
"mg_soccer" "58"
"mg_gg" "59"
"mg_awp" "60"
"mg_aim" "61"
}
}
"competitive"
{
"maxplayers" "64"
"exec"
{
"exec" "gamemode_competitive_last.cfg"
}
// Map groups for online modes
"mapgroupsMP"
{
// team lobby map veto
"mg_comp" "50"
}
}
// Wingman
"scrimcomp2v2"
{
"maxplayers" "64"
"exec"
{
"exec" "gamemode_competitive2v2_last.cfg"
}
// Map groups for online modes
"mapgroupsMP"
{
"mg_wingman" "50"
}
}
"deathmatch"
{
"maxplayers" "64"
"exec"
{
"exec" "gamemode_deathmatch_last.cfg"
}
// Map groups for online modes
"mapgroupsMP"
{
"mg_dm" "50"
}
}
}
}
}
"mapgroups"
{
"mg_active"
{
"name" "mg_active"
"maps"
{
"de_ancient" ""
"de_anubis" ""
"de_inferno" ""
"de_mirage" ""
"de_nuke" ""
"de_overpass" ""
"de_vertigo" ""
}
}
"mg_comp"
{
"name" "mg_comp"
"maps"
{
"cs_italy" ""
"cs_office" ""
"de_vertigo" ""
"de_ancient" ""
"de_anubis" ""
"de_dust2" ""
"de_inferno" ""
"de_mirage" ""
"de_nuke" ""
"de_overpass" ""
"de_vertigo" ""
"workshop/3071005299/de_assembly" ""
"workshop/3070212801/de_cbble" ""
"workshop/3070596702/de_cache" ""
"workshop/3079872050/de_pipeline" ""
"workshop/3075706807/de_biome" ""
"workshop/3070346180/mp_raid" ""
"workshop/3070766070/de_mutiny" ""
"workshop/3070594412/cs_assault" ""
"workshop/3072352643/de_ruins_d_prefab" ""
"workshop/3089953774/cs_militia" ""
"workshop/3070960099/de_aztec" ""
"workshop/3108513658/de_akiba" ""
}
}
"mg_wingman"
{
"name" "mg_wingman"
"maps"
{
"cs_italy" ""
"cs_office" ""
"de_vertigo" ""
"de_ancient" ""
"de_anubis" ""
"de_dust2" ""
"de_inferno" ""
"de_mirage" ""
"de_nuke" ""
"de_overpass" ""
"de_vertigo" ""
"ar_shoots" ""
"ar_baggage" ""
"workshop/3085490518/gd_rialto" ""
"workshop/3070550406/de_safehouse" ""
"workshop/3070563536/de_lake" ""
"workshop/3070581293/de_bank" ""
"workshop/3070612859/de_shortdust" ""
"workshop/3071005299/de_assembly" ""
"workshop/3070212801/de_cbble" ""
"workshop/3070596702/de_cache" ""
"workshop/3079872050/de_pipeline" ""
"workshop/3075706807/de_biome" ""
"workshop/3070346180/mp_raid" ""
"workshop/3070766070/de_mutiny" ""
"workshop/3070594412/cs_assault" ""
"workshop/3072352643/de_ruins_d_prefab" ""
}
}
"mg_dm"
{
"name" "mg_dm"
"maps"
{
"cs_italy" ""
"cs_office" ""
"de_vertigo" ""
"de_ancient" ""
"de_anubis" ""
"de_dust2" ""
"de_inferno" ""
"de_mirage" ""
"de_nuke" ""
"de_overpass" ""
"de_vertigo" ""
"ar_shoots" ""
"ar_baggage" ""
"workshop/3085490518/gd_rialto" ""
"workshop/3070550406/de_safehouse" ""
"workshop/3070563536/de_lake" ""
"workshop/3070581293/de_bank" ""
"workshop/3070612859/de_shortdust" ""
"workshop/3070923343/fy_pool_day" ""
"workshop/3070238628/fy_iceworld" ""
"workshop/3072640420/daymare" ""
"workshop/3070348309/aim_theorem" ""
"workshop/3071005299/de_assembly" ""
"workshop/3070212801/de_cbble" ""
"workshop/3070596702/de_cache" ""
"workshop/3079872050/de_pipeline" ""
"workshop/3075706807/de_biome" ""
"workshop/3077599381/dm_desk" ""
"workshop/3088183343/fun_bounce" ""
"workshop/3082605693/1v1aim_map_longdustversion_d" ""
"workshop/3070291913/ar_churches_s2r" ""
"workshop/3082113929/aim_ag_texture_city_advanced" ""
"workshop/3080973179/traningoutside" ""
"workshop/3086555291/shipment_version_1_0" ""
"workshop/3074961197/aim_ag_texture2" ""
"workshop/3095778105/aim_ag_texture_jungle" ""
"workshop/3071890065/cs2_bloodstrike" ""
"workshop/3109232789/gg_simpsons_vs_flanders_v2" ""
"workshop/3108513658/de_akiba" ""
"workshop/3112806723/cs_facingworlds-99" ""
}
}
"mg_gg"
{
"name" "mg_gg"
"maps"
{
"ar_shoots" ""
"ar_baggage" ""
"workshop/3070923343/fy_pool_day" ""
"workshop/3070238628/fy_iceworld" ""
"workshop/3072640420/daymare" ""
"workshop/3070348309/aim_theorem" ""
"workshop/3070550406/de_safehouse" ""
"workshop/3070563536/de_lake" ""
"workshop/3070581293/de_bank" ""
"workshop/3088183343/fun_bounce" ""
"workshop/3082605693/1v1aim_map_longdustversion_d" ""
"workshop/3070291913/ar_churches_s2r" ""
"workshop/3082113929/aim_ag_texture_city_advanced" ""
"workshop/3080973179/traningoutside" ""
"workshop/3086555291/shipment_version_1_0" ""
"workshop/3074961197/aim_ag_texture2" ""
"workshop/3095778105/aim_ag_texture_jungle" ""
"workshop/3071890065/cs2_bloodstrike" ""
"workshop/3109232789/gg_simpsons_vs_flanders_v2" ""
}
}
"mg_1v1"
{
"name" "mg_1v1"
"maps"
{
"workshop/3070253400/aim_redline_fp" ""
}
}
"mg_bhop"
{
"name" "mg_bhop"
"maps"
{
"workshop/3077211069/bhop_at_night" ""
"workshop/3076417347/bhop_asiimov" ""
"workshop/3077153735/bhop_ragnarok" ""
"workshop/3077475505/bhop_zunron" ""
"workshop/3077596014/bhop_1derland" ""
"workshop/3078523849/bhop_whiteshit" ""
"workshop/3082038560/bhop_cherryblossom" ""
"workshop/3088973190/bhop_arcturus" ""
"workshop/3095219437/bhop_kiwi_cwfx" ""
}
}
"mg_kz"
{
"name" "mg_kz"
"maps"
{
"workshop/3074758439/only_up" ""
"workshop/3070220367/kz_hub" ""
"workshop/3070194623/kz_checkmate" ""
"workshop/3086304337/kz_victoria" ""
"workshop/3072219045/kz_rc_stonehenge" ""
"workshop/3083714192/kz_sxb2_cxz" ""
"workshop/3083509404/kz_rc_twotowers" ""
"workshop/3078311932/kz_simplyhard" ""
"workshop/3077122656/kz_nomibo" ""
"workshop/3076000218/kz_sxb2_biewan" ""
"workshop/3072744536/kz_ggsh" ""
"workshop/3072699538/kz_ltt" ""
}
}
"mg_surf"
{
"name" "mg_surf"
"maps"
{
"workshop/3076153623/surf_kitsune" ""
"workshop/3073875025/surf_utopia_njv" ""
"workshop/3070321829/surf_beginner" ""
"workshop/3076980482/surf_mesa_revo" ""
"workshop/3080544577/surf_deathstar" ""
"workshop/3082548297/surf_rookie" ""
"workshop/3098972556/surf_benevolent" ""
"workshop/3088413071/surf_ace" ""
}
}
"mg_minigames"
{
"name" "mg_minigames"
"maps"
{
"workshop/3082120895/mg_skeet_multigames_v7" ""
"workshop/3076765511/mg_warmcup_headshot" ""
"workshop/3083325292/deathrun_iceworld_cs2" ""
}
}
"mg_course"
{
"name" "mg_course"
"maps"
{
"workshop/3076483842/cr_devisland_p1_v1" ""
"workshop/3070439729/mg_switch_course_v2" ""
"workshop/3070896876/cr_minecraft_jb_v2" ""
"workshop/3070463151/mg_metro_course_v1" ""
"workshop/3070455802/mg_alley_course_v2" ""
"workshop/3070445185/mg_glave_course_v2" ""
"workshop/3070459211/mg_office_course_v3" ""
"workshop/3070464208/mg_metal_course_v2" ""
"workshop/3070463620/mg_acrophobia_run_v2" ""
"workshop/3071040020/mg_metro_course_s2" ""
"workshop/3070434475/mg_circle_course_v3" ""
"workshop/3070447697/mg_simpsons_course_v2" ""
"workshop/3070452642/mg_sonic_course_v2" ""
"workshop/3070451616/mg_sky_realm_v3" ""
}
}
"mg_scoutzknivez"
{
"name" "mg_scoutzknivez"
"maps"
{
"workshop/3073929825/scoutzknivez_pure_cs2" ""
"workshop/3070553020/ar_dizzy" ""
}
}
"mg_hns"
{
"name" "mg_hns"
"maps"
{
"workshop/3097563690/infernohideandseek" ""
"workshop/3074479691/seek_town_bs" ""
"workshop/3070951079/winterday_bs" ""
"workshop/3070541369/minus_denhet" ""
"workshop/3071094345/hs_lake" ""
}
}
"mg_soccer"
{
"name" "mg_soccer"
"maps"
{
"workshop/3070198374/ka_soccer_2009" ""
}
}
"mg_awp"
{
"name" "mg_awp"
"maps"
{
"workshop/3142070597/awp_bhop_rocket" ""
}
}
"mg_aim"
{
"name" "mg_aim"
"maps"
{
"workshop/3084291314/aim_map" ""
"workshop/3146122036/freebet_aim_map" ""
"workshop/3070923343/fy_pool_day" ""
}
}
}
}
13:16:58 [EROR] (cssharp:Core) Error invoking callback
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.Exception: No current scenario
at ExecutesPlugin.Managers.GameManager.GetCurrentScenario() in /home/runner/work/cs2-executes/cs2-executes/Managers/GameManager.cs:line 163
at ExecutesPlugin.ExecutesPlugin.OnRoundFreezeEnd(EventRoundFreezeEnd event, GameEventInfo info) in /home/runner/work/cs2-executes/cs2-executes/ExecutesPlugin.cs:line 436
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
--- End of inner exception stack trace ---
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at CounterStrikeSharp.API.Core.FunctionReference.<CreateWrappedCallback>b__18_0(fxScriptContext* context) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/FunctionReference.cs:line 120
['Psicosis' tick 13660 depth=2 (7743..7744) ping=23ms loss in/out = 8.15%/8.15%] CQ bloat: removed 10, max: 10, 10 ticks this frame
13:23:12 [EROR] (cssharp:Core) Error invoking callback
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.Exception: No current scenario
at ExecutesPlugin.Managers.GameManager.GetCurrentScenario() in /home/runner/work/cs2-executes/cs2-executes/Managers/GameManager.cs:line 163
at ExecutesPlugin.ExecutesPlugin.OnRoundFreezeEnd(EventRoundFreezeEnd event, GameEventInfo info) in /home/runner/work/cs2-executes/cs2-executes/ExecutesPlugin.cs:line 436
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
--- End of inner exception stack trace ---
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at CounterStrikeSharp.API.Core.FunctionReference.<CreateWrappedCallback>b__18_0(fxScriptContext* context) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/FunctionReference.cs:line 120
Hey @Carloscb22, would you be able to provide a copy of just the GameModeManager logs from /game/csgo/addons/counterstrikesharp/logs
?
There is another new version if you want to give it a try. However, I would also be curious to know if you have the following versions or above:
Metamod:Source v1282+
Counter Strike Sharp v.197+
I can see that the commands are executing successfully from the logs you provided, so if you aren't at the very least seeing a menu it may be a compatibility issue. If the menus are just empty, it's an issue parsing the gamemodes_server.txt file, which the logs from the initial plugin load will help explain.
Hey @Carloscb22, are you still having issues?