Open csportalsk opened 3 months ago
is this server Windows or Linux?
The issue with bot is very common here since they're so much pain to deal with it. I suggest that to test it with the actual player rather than bot.
Linux server.
I tried server alone with no bots. Still error. @oylsister
[EROR] (cssharp:Core) Error invoking callback
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.InvalidOperationException: Sequence contains no elements
at System.Linq.ThrowHelper.ThrowNoElementsException()
at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
at ZombieSharp.ZombieSharp.GetGameRules() in E:\Github\ZombieSharp\ZombieSharp\ZombieSharp.cs:line 484
at ZombieSharp.ZombieSharp.OnRoundStart(EventRoundStart event, GameEventInfo info) in E:\Github\ZombieSharp\ZombieSharp\EventModule.cs:line 140
at InvokeStub_GameEventHandler`1.Invoke(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
--- End of inner exception stack trace ---
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(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 100
I think the latest change in CSSharp has also changed hl2sdk. You could try recompiling plugin with the latest Api instead. https://www.youtube.com/watch?v=wCLKUO0xj38
I recompiled ZombieSharp and ZombieSharpAPI with CSSharp v259 and still same errors.
Did you test this during warmup round? and did you enable infection during warmup?
Same errors with default model players or workshop models player. Tested with 9 bots.
[#2:LOADED]: "Zombie Sharp" (1.2.1) by Oylsister, Kurumi, Sparky Current API Version: v259 (1.0.259+28ce183) Metamod:Source version 2.0.0-dev+1313