Skip to content

Restructured execution to support a future pre-load patching feature. #56

Restructured execution to support a future pre-load patching feature.

Restructured execution to support a future pre-load patching feature. #56

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / Test results failed Sep 5, 2023 in 1s

Test results ❌

Tests failed

❌ test-results.trx

62 tests were completed in 8s with 40 passed, 22 failed and 0 skipped.

Test suite Passed Failed Skipped Time
TestProject.CommonnessInfoTests 2✔️ 204ms
TestProject.CoordinateSpace2DTests 1✔️ 8ms
TestProject.EndpointComparisonTests 1✔️ 0ms
TestProject.EndpointParseTests 5✔️ 117ms
TestProject.GenericToolBoxTests 1✔️ 203ms
TestProject.INetSerializableStructImplementationChecks 1✔️ 54ms
TestProject.INetSerializableStructTests 22✔️ 2s
TestProject.LuaCs.HookPatchTests 1✔️ 22❌ 2s
TestProject.MathUtilsTests 2✔️ 2ms
TestProject.NetIdUtilsTests 1✔️ 8ms
TestProject.SerializableDateTimeTests 3✔️ 65ms

✔️ TestProject.CommonnessInfoTests

✔️ TestInheritedCommonness
✔️ TestPathCommonness

✔️ TestProject.CoordinateSpace2DTests

✔️ TestLocalToCanonical

✔️ TestProject.EndpointComparisonTests

✔️ TestLidgrenAddress

✔️ TestProject.EndpointParseTests

✔️ TestLidgrenAddress
✔️ TestLidgrenEndpoint
✔️ TestLidgrenEndpointHostName
✔️ TestSteamP2PAddress
✔️ TestSteamP2PEndpoint

✔️ TestProject.GenericToolBoxTests

✔️ MatchesStatIdentifier

✔️ TestProject.INetSerializableStructImplementationChecks

✔️ CheckStructMemberTypes

✔️ TestProject.INetSerializableStructTests

✔️ TestArray
✔️ TestBitField
✔️ TestBoolean
✔️ TestByte
✔️ TestColor
✔️ TestDouble
✔️ TestEnum
✔️ TestEnumFlags
✔️ TestImmutableArray
✔️ TestInt16
✔️ TestInt32
✔️ TestInt64
✔️ TestNested
✔️ TestNullable
✔️ TestOptional
✔️ TestRanged
✔️ TestSingle
✔️ TestString
✔️ TestUInt16
✔️ TestUInt32
✔️ TestUInt64
✔️ TestVector2

❌ TestProject.LuaCs.HookPatchTests

❌ TestCastByte
	MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetNumbers'
❌ TestCastDouble
	MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetNumbers'
❌ TestCastInt16
	MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetNumbers'
❌ TestCastInt32
	MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetNumbers'
❌ TestCastInt64
	MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetNumbers'
❌ TestCastSByte
	MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetNumbers'
❌ TestCastSingle
	MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetNumbers'
❌ TestCastUInt16
	MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetNumbers'
❌ TestCastUInt32
	MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetNumbers'
❌ TestCastUInt64
	MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetNumbers'
❌ TestFullMethodReplacement
	MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetSimple'
❌ TestModifyParameters
	MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetModifyParams'
❌ TestOverrideExistingPatch
	MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetSimple'
❌ TestParameterValueType
	MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetVector2'
✔️ TestPatchAmbiguous
❌ TestPatchConstructor
	MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetConstructor'
❌ TestRemovePostfix
	MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetSimple'
❌ TestRemovePrefix
	MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetSimple'
❌ TestReturnBoxed
	MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetReturnsObject'
❌ TestReturnInterfaceImplementingType
	MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetReturnsInterface'
❌ TestReturnNil
	MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetReturnsObject'
❌ TestReturnValueType
	MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetReturnsObject'
❌ TestReturnVoid
	MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetReturnsObject'

✔️ TestProject.MathUtilsTests

✔️ TestNearlyEquals
✔️ TestWrapAngle

✔️ TestProject.NetIdUtilsTests

✔️ TestGetIdOlderThan

✔️ TestProject.SerializableDateTimeTests

✔️ EqualityTest
✔️ ParseTest
✔️ ToLocalTest

Annotations

Check failure on line 842 in Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs

See this annotation in the file changed.

@github-actions github-actions / Test results

TestProject.LuaCs.HookPatchTests ► TestCastByte

Failed test found in:
  test-results.trx
Error:
  MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetNumbers'
Raw output
MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetNumbers'
   at Barotrauma.LuaCsHook.ResolveMethod(String className, String methodName, String[] parameters) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs:line 842
   at Barotrauma.LuaCsHook.Patch(String className, String methodName, LuaCsPatchFunc patch, HookMethodType hookType) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs:line 1287
   at lambda_method86(Closure , Object , Object[] )
   at MoonSharp.Interpreter.Interop.MethodMemberDescriptor.Execute(Script script, Object obj, ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/MethodMemberDescriptor.cs:line 191
   at MoonSharp.Interpreter.Interop.OverloadedMethodMemberDescriptor.PerformOverloadedCall(Script script, Object obj, ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/OverloadedMethodMemberDescriptor.cs:line 217
   at MoonSharp.Interpreter.Interop.OverloadedMethodMemberDescriptor.<>c__DisplayClass33_0.<GetCallback>b__0(ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/OverloadedMethodMemberDescriptor.cs:line 426
   at MoonSharp.Interpreter.CallbackFunction.Invoke(ScriptExecutionContext executionContext, IList`1 args, Boolean isMethodCall) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/DataTypes/CallbackFunction.cs:line 58
   at MoonSharp.Interpreter.Execution.VM.Processor.Internal_ExecCall(Int32 argsCount, Int32 instructionPtr, CallbackFunction handler, CallbackFunction continuation, Boolean thisCall, String debugText, DynValue unwindHandler) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor_InstructionLoop.cs:line 723
   at MoonSharp.Interpreter.Execution.VM.Processor.Processing_Loop(Int32 instructionPtr) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor_InstructionLoop.cs:line 116
   at MoonSharp.Interpreter.Execution.VM.Processor.Call(DynValue function, DynValue[] args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor.cs:line 85
   at MoonSharp.Interpreter.Script.Call(DynValue function, DynValue[] args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 474
   at MoonSharp.Interpreter.Script.Call(DynValue function) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 433
   at MoonSharp.Interpreter.Script.DoString(String code, Table globalContext, String codeFriendlyName) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 322
   at TestProject.LuaCs.HookPatchHelpers.DoHookPatch(LuaCsSetup luaCs, String patchId, String className, String methodName, String[] parameters, String function, HookMethodType patchType) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchHelpers.cs:line 74
   at TestProject.LuaCs.HookPatchHelpers.AddPrefix[T](LuaCsSetup luaCs, String body, String methodName, String[] parameters, String patchId) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchHelpers.cs:line 98
   at TestProject.LuaCs.HookPatchTests.TestCastByte() in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchTests.cs:line 501

Check failure on line 842 in Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs

See this annotation in the file changed.

@github-actions github-actions / Test results

TestProject.LuaCs.HookPatchTests ► TestCastDouble

Failed test found in:
  test-results.trx
Error:
  MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetNumbers'
Raw output
MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetNumbers'
   at Barotrauma.LuaCsHook.ResolveMethod(String className, String methodName, String[] parameters) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs:line 842
   at Barotrauma.LuaCsHook.Patch(String className, String methodName, LuaCsPatchFunc patch, HookMethodType hookType) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs:line 1287
   at lambda_method86(Closure , Object , Object[] )
   at MoonSharp.Interpreter.Interop.MethodMemberDescriptor.Execute(Script script, Object obj, ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/MethodMemberDescriptor.cs:line 191
   at MoonSharp.Interpreter.Interop.OverloadedMethodMemberDescriptor.PerformOverloadedCall(Script script, Object obj, ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/OverloadedMethodMemberDescriptor.cs:line 217
   at MoonSharp.Interpreter.Interop.OverloadedMethodMemberDescriptor.<>c__DisplayClass33_0.<GetCallback>b__0(ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/OverloadedMethodMemberDescriptor.cs:line 426
   at MoonSharp.Interpreter.CallbackFunction.Invoke(ScriptExecutionContext executionContext, IList`1 args, Boolean isMethodCall) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/DataTypes/CallbackFunction.cs:line 58
   at MoonSharp.Interpreter.Execution.VM.Processor.Internal_ExecCall(Int32 argsCount, Int32 instructionPtr, CallbackFunction handler, CallbackFunction continuation, Boolean thisCall, String debugText, DynValue unwindHandler) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor_InstructionLoop.cs:line 723
   at MoonSharp.Interpreter.Execution.VM.Processor.Processing_Loop(Int32 instructionPtr) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor_InstructionLoop.cs:line 116
   at MoonSharp.Interpreter.Execution.VM.Processor.Call(DynValue function, DynValue[] args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor.cs:line 85
   at MoonSharp.Interpreter.Script.Call(DynValue function, DynValue[] args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 474
   at MoonSharp.Interpreter.Script.Call(DynValue function) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 433
   at MoonSharp.Interpreter.Script.DoString(String code, Table globalContext, String codeFriendlyName) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 322
   at TestProject.LuaCs.HookPatchHelpers.DoHookPatch(LuaCsSetup luaCs, String patchId, String className, String methodName, String[] parameters, String function, HookMethodType patchType) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchHelpers.cs:line 74
   at TestProject.LuaCs.HookPatchHelpers.AddPrefix[T](LuaCsSetup luaCs, String body, String methodName, String[] parameters, String patchId) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchHelpers.cs:line 98
   at TestProject.LuaCs.HookPatchTests.TestCastDouble() in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchTests.cs:line 605

Check failure on line 842 in Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs

See this annotation in the file changed.

@github-actions github-actions / Test results

TestProject.LuaCs.HookPatchTests ► TestCastInt16

Failed test found in:
  test-results.trx
Error:
  MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetNumbers'
Raw output
MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetNumbers'
   at Barotrauma.LuaCsHook.ResolveMethod(String className, String methodName, String[] parameters) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs:line 842
   at Barotrauma.LuaCsHook.Patch(String className, String methodName, LuaCsPatchFunc patch, HookMethodType hookType) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs:line 1287
   at lambda_method86(Closure , Object , Object[] )
   at MoonSharp.Interpreter.Interop.MethodMemberDescriptor.Execute(Script script, Object obj, ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/MethodMemberDescriptor.cs:line 191
   at MoonSharp.Interpreter.Interop.OverloadedMethodMemberDescriptor.PerformOverloadedCall(Script script, Object obj, ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/OverloadedMethodMemberDescriptor.cs:line 217
   at MoonSharp.Interpreter.Interop.OverloadedMethodMemberDescriptor.<>c__DisplayClass33_0.<GetCallback>b__0(ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/OverloadedMethodMemberDescriptor.cs:line 426
   at MoonSharp.Interpreter.CallbackFunction.Invoke(ScriptExecutionContext executionContext, IList`1 args, Boolean isMethodCall) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/DataTypes/CallbackFunction.cs:line 58
   at MoonSharp.Interpreter.Execution.VM.Processor.Internal_ExecCall(Int32 argsCount, Int32 instructionPtr, CallbackFunction handler, CallbackFunction continuation, Boolean thisCall, String debugText, DynValue unwindHandler) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor_InstructionLoop.cs:line 723
   at MoonSharp.Interpreter.Execution.VM.Processor.Processing_Loop(Int32 instructionPtr) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor_InstructionLoop.cs:line 116
   at MoonSharp.Interpreter.Execution.VM.Processor.Call(DynValue function, DynValue[] args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor.cs:line 85
   at MoonSharp.Interpreter.Script.Call(DynValue function, DynValue[] args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 474
   at MoonSharp.Interpreter.Script.Call(DynValue function) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 433
   at MoonSharp.Interpreter.Script.DoString(String code, Table globalContext, String codeFriendlyName) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 322
   at TestProject.LuaCs.HookPatchHelpers.DoHookPatch(LuaCsSetup luaCs, String patchId, String className, String methodName, String[] parameters, String function, HookMethodType patchType) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchHelpers.cs:line 74
   at TestProject.LuaCs.HookPatchHelpers.AddPrefix[T](LuaCsSetup luaCs, String body, String methodName, String[] parameters, String patchId) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchHelpers.cs:line 98
   at TestProject.LuaCs.HookPatchTests.TestCastInt16() in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchTests.cs:line 514

Check failure on line 842 in Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs

See this annotation in the file changed.

@github-actions github-actions / Test results

TestProject.LuaCs.HookPatchTests ► TestCastInt32

Failed test found in:
  test-results.trx
Error:
  MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetNumbers'
Raw output
MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetNumbers'
   at Barotrauma.LuaCsHook.ResolveMethod(String className, String methodName, String[] parameters) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs:line 842
   at Barotrauma.LuaCsHook.Patch(String className, String methodName, LuaCsPatchFunc patch, HookMethodType hookType) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs:line 1287
   at lambda_method86(Closure , Object , Object[] )
   at MoonSharp.Interpreter.Interop.MethodMemberDescriptor.Execute(Script script, Object obj, ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/MethodMemberDescriptor.cs:line 191
   at MoonSharp.Interpreter.Interop.OverloadedMethodMemberDescriptor.PerformOverloadedCall(Script script, Object obj, ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/OverloadedMethodMemberDescriptor.cs:line 217
   at MoonSharp.Interpreter.Interop.OverloadedMethodMemberDescriptor.<>c__DisplayClass33_0.<GetCallback>b__0(ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/OverloadedMethodMemberDescriptor.cs:line 426
   at MoonSharp.Interpreter.CallbackFunction.Invoke(ScriptExecutionContext executionContext, IList`1 args, Boolean isMethodCall) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/DataTypes/CallbackFunction.cs:line 58
   at MoonSharp.Interpreter.Execution.VM.Processor.Internal_ExecCall(Int32 argsCount, Int32 instructionPtr, CallbackFunction handler, CallbackFunction continuation, Boolean thisCall, String debugText, DynValue unwindHandler) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor_InstructionLoop.cs:line 723
   at MoonSharp.Interpreter.Execution.VM.Processor.Processing_Loop(Int32 instructionPtr) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor_InstructionLoop.cs:line 116
   at MoonSharp.Interpreter.Execution.VM.Processor.Call(DynValue function, DynValue[] args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor.cs:line 85
   at MoonSharp.Interpreter.Script.Call(DynValue function, DynValue[] args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 474
   at MoonSharp.Interpreter.Script.Call(DynValue function) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 433
   at MoonSharp.Interpreter.Script.DoString(String code, Table globalContext, String codeFriendlyName) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 322
   at TestProject.LuaCs.HookPatchHelpers.DoHookPatch(LuaCsSetup luaCs, String patchId, String className, String methodName, String[] parameters, String function, HookMethodType patchType) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchHelpers.cs:line 74
   at TestProject.LuaCs.HookPatchHelpers.AddPrefix[T](LuaCsSetup luaCs, String body, String methodName, String[] parameters, String patchId) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchHelpers.cs:line 98
   at TestProject.LuaCs.HookPatchTests.TestCastInt32() in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchTests.cs:line 540

Check failure on line 842 in Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs

See this annotation in the file changed.

@github-actions github-actions / Test results

TestProject.LuaCs.HookPatchTests ► TestCastInt64

Failed test found in:
  test-results.trx
Error:
  MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetNumbers'
Raw output
MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetNumbers'
   at Barotrauma.LuaCsHook.ResolveMethod(String className, String methodName, String[] parameters) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs:line 842
   at Barotrauma.LuaCsHook.Patch(String className, String methodName, LuaCsPatchFunc patch, HookMethodType hookType) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs:line 1287
   at lambda_method86(Closure , Object , Object[] )
   at MoonSharp.Interpreter.Interop.MethodMemberDescriptor.Execute(Script script, Object obj, ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/MethodMemberDescriptor.cs:line 191
   at MoonSharp.Interpreter.Interop.OverloadedMethodMemberDescriptor.PerformOverloadedCall(Script script, Object obj, ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/OverloadedMethodMemberDescriptor.cs:line 217
   at MoonSharp.Interpreter.Interop.OverloadedMethodMemberDescriptor.<>c__DisplayClass33_0.<GetCallback>b__0(ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/OverloadedMethodMemberDescriptor.cs:line 426
   at MoonSharp.Interpreter.CallbackFunction.Invoke(ScriptExecutionContext executionContext, IList`1 args, Boolean isMethodCall) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/DataTypes/CallbackFunction.cs:line 58
   at MoonSharp.Interpreter.Execution.VM.Processor.Internal_ExecCall(Int32 argsCount, Int32 instructionPtr, CallbackFunction handler, CallbackFunction continuation, Boolean thisCall, String debugText, DynValue unwindHandler) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor_InstructionLoop.cs:line 723
   at MoonSharp.Interpreter.Execution.VM.Processor.Processing_Loop(Int32 instructionPtr) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor_InstructionLoop.cs:line 116
   at MoonSharp.Interpreter.Execution.VM.Processor.Call(DynValue function, DynValue[] args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor.cs:line 85
   at MoonSharp.Interpreter.Script.Call(DynValue function, DynValue[] args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 474
   at MoonSharp.Interpreter.Script.Call(DynValue function) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 433
   at MoonSharp.Interpreter.Script.DoString(String code, Table globalContext, String codeFriendlyName) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 322
   at TestProject.LuaCs.HookPatchHelpers.DoHookPatch(LuaCsSetup luaCs, String patchId, String className, String methodName, String[] parameters, String function, HookMethodType patchType) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchHelpers.cs:line 74
   at TestProject.LuaCs.HookPatchHelpers.AddPrefix[T](LuaCsSetup luaCs, String body, String methodName, String[] parameters, String patchId) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchHelpers.cs:line 98
   at TestProject.LuaCs.HookPatchTests.TestCastInt64() in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchTests.cs:line 566

Check failure on line 842 in Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs

See this annotation in the file changed.

@github-actions github-actions / Test results

TestProject.LuaCs.HookPatchTests ► TestCastSByte

Failed test found in:
  test-results.trx
Error:
  MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetNumbers'
Raw output
MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetNumbers'
   at Barotrauma.LuaCsHook.ResolveMethod(String className, String methodName, String[] parameters) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs:line 842
   at Barotrauma.LuaCsHook.Patch(String className, String methodName, LuaCsPatchFunc patch, HookMethodType hookType) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs:line 1287
   at lambda_method86(Closure , Object , Object[] )
   at MoonSharp.Interpreter.Interop.MethodMemberDescriptor.Execute(Script script, Object obj, ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/MethodMemberDescriptor.cs:line 191
   at MoonSharp.Interpreter.Interop.OverloadedMethodMemberDescriptor.PerformOverloadedCall(Script script, Object obj, ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/OverloadedMethodMemberDescriptor.cs:line 217
   at MoonSharp.Interpreter.Interop.OverloadedMethodMemberDescriptor.<>c__DisplayClass33_0.<GetCallback>b__0(ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/OverloadedMethodMemberDescriptor.cs:line 426
   at MoonSharp.Interpreter.CallbackFunction.Invoke(ScriptExecutionContext executionContext, IList`1 args, Boolean isMethodCall) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/DataTypes/CallbackFunction.cs:line 58
   at MoonSharp.Interpreter.Execution.VM.Processor.Internal_ExecCall(Int32 argsCount, Int32 instructionPtr, CallbackFunction handler, CallbackFunction continuation, Boolean thisCall, String debugText, DynValue unwindHandler) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor_InstructionLoop.cs:line 723
   at MoonSharp.Interpreter.Execution.VM.Processor.Processing_Loop(Int32 instructionPtr) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor_InstructionLoop.cs:line 116
   at MoonSharp.Interpreter.Execution.VM.Processor.Call(DynValue function, DynValue[] args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor.cs:line 85
   at MoonSharp.Interpreter.Script.Call(DynValue function, DynValue[] args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 474
   at MoonSharp.Interpreter.Script.Call(DynValue function) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 433
   at MoonSharp.Interpreter.Script.DoString(String code, Table globalContext, String codeFriendlyName) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 322
   at TestProject.LuaCs.HookPatchHelpers.DoHookPatch(LuaCsSetup luaCs, String patchId, String className, String methodName, String[] parameters, String function, HookMethodType patchType) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchHelpers.cs:line 74
   at TestProject.LuaCs.HookPatchHelpers.AddPrefix[T](LuaCsSetup luaCs, String body, String methodName, String[] parameters, String patchId) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchHelpers.cs:line 98
   at TestProject.LuaCs.HookPatchTests.TestCastSByte() in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchTests.cs:line 488

Check failure on line 842 in Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs

See this annotation in the file changed.

@github-actions github-actions / Test results

TestProject.LuaCs.HookPatchTests ► TestCastSingle

Failed test found in:
  test-results.trx
Error:
  MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetNumbers'
Raw output
MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetNumbers'
   at Barotrauma.LuaCsHook.ResolveMethod(String className, String methodName, String[] parameters) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs:line 842
   at Barotrauma.LuaCsHook.Patch(String className, String methodName, LuaCsPatchFunc patch, HookMethodType hookType) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs:line 1287
   at lambda_method86(Closure , Object , Object[] )
   at MoonSharp.Interpreter.Interop.MethodMemberDescriptor.Execute(Script script, Object obj, ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/MethodMemberDescriptor.cs:line 191
   at MoonSharp.Interpreter.Interop.OverloadedMethodMemberDescriptor.PerformOverloadedCall(Script script, Object obj, ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/OverloadedMethodMemberDescriptor.cs:line 217
   at MoonSharp.Interpreter.Interop.OverloadedMethodMemberDescriptor.<>c__DisplayClass33_0.<GetCallback>b__0(ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/OverloadedMethodMemberDescriptor.cs:line 426
   at MoonSharp.Interpreter.CallbackFunction.Invoke(ScriptExecutionContext executionContext, IList`1 args, Boolean isMethodCall) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/DataTypes/CallbackFunction.cs:line 58
   at MoonSharp.Interpreter.Execution.VM.Processor.Internal_ExecCall(Int32 argsCount, Int32 instructionPtr, CallbackFunction handler, CallbackFunction continuation, Boolean thisCall, String debugText, DynValue unwindHandler) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor_InstructionLoop.cs:line 723
   at MoonSharp.Interpreter.Execution.VM.Processor.Processing_Loop(Int32 instructionPtr) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor_InstructionLoop.cs:line 116
   at MoonSharp.Interpreter.Execution.VM.Processor.Call(DynValue function, DynValue[] args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor.cs:line 85
   at MoonSharp.Interpreter.Script.Call(DynValue function, DynValue[] args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 474
   at MoonSharp.Interpreter.Script.Call(DynValue function) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 433
   at MoonSharp.Interpreter.Script.DoString(String code, Table globalContext, String codeFriendlyName) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 322
   at TestProject.LuaCs.HookPatchHelpers.DoHookPatch(LuaCsSetup luaCs, String patchId, String className, String methodName, String[] parameters, String function, HookMethodType patchType) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchHelpers.cs:line 74
   at TestProject.LuaCs.HookPatchHelpers.AddPrefix[T](LuaCsSetup luaCs, String body, String methodName, String[] parameters, String patchId) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchHelpers.cs:line 98
   at TestProject.LuaCs.HookPatchTests.TestCastSingle() in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchTests.cs:line 592

Check failure on line 842 in Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs

See this annotation in the file changed.

@github-actions github-actions / Test results

TestProject.LuaCs.HookPatchTests ► TestCastUInt16

Failed test found in:
  test-results.trx
Error:
  MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetNumbers'
Raw output
MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetNumbers'
   at Barotrauma.LuaCsHook.ResolveMethod(String className, String methodName, String[] parameters) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs:line 842
   at Barotrauma.LuaCsHook.Patch(String className, String methodName, LuaCsPatchFunc patch, HookMethodType hookType) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs:line 1287
   at lambda_method86(Closure , Object , Object[] )
   at MoonSharp.Interpreter.Interop.MethodMemberDescriptor.Execute(Script script, Object obj, ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/MethodMemberDescriptor.cs:line 191
   at MoonSharp.Interpreter.Interop.OverloadedMethodMemberDescriptor.PerformOverloadedCall(Script script, Object obj, ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/OverloadedMethodMemberDescriptor.cs:line 217
   at MoonSharp.Interpreter.Interop.OverloadedMethodMemberDescriptor.<>c__DisplayClass33_0.<GetCallback>b__0(ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/OverloadedMethodMemberDescriptor.cs:line 426
   at MoonSharp.Interpreter.CallbackFunction.Invoke(ScriptExecutionContext executionContext, IList`1 args, Boolean isMethodCall) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/DataTypes/CallbackFunction.cs:line 58
   at MoonSharp.Interpreter.Execution.VM.Processor.Internal_ExecCall(Int32 argsCount, Int32 instructionPtr, CallbackFunction handler, CallbackFunction continuation, Boolean thisCall, String debugText, DynValue unwindHandler) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor_InstructionLoop.cs:line 723
   at MoonSharp.Interpreter.Execution.VM.Processor.Processing_Loop(Int32 instructionPtr) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor_InstructionLoop.cs:line 116
   at MoonSharp.Interpreter.Execution.VM.Processor.Call(DynValue function, DynValue[] args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor.cs:line 85
   at MoonSharp.Interpreter.Script.Call(DynValue function, DynValue[] args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 474
   at MoonSharp.Interpreter.Script.Call(DynValue function) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 433
   at MoonSharp.Interpreter.Script.DoString(String code, Table globalContext, String codeFriendlyName) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 322
   at TestProject.LuaCs.HookPatchHelpers.DoHookPatch(LuaCsSetup luaCs, String patchId, String className, String methodName, String[] parameters, String function, HookMethodType patchType) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchHelpers.cs:line 74
   at TestProject.LuaCs.HookPatchHelpers.AddPrefix[T](LuaCsSetup luaCs, String body, String methodName, String[] parameters, String patchId) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchHelpers.cs:line 98
   at TestProject.LuaCs.HookPatchTests.TestCastUInt16() in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchTests.cs:line 527

Check failure on line 842 in Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs

See this annotation in the file changed.

@github-actions github-actions / Test results

TestProject.LuaCs.HookPatchTests ► TestCastUInt32

Failed test found in:
  test-results.trx
Error:
  MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetNumbers'
Raw output
MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetNumbers'
   at Barotrauma.LuaCsHook.ResolveMethod(String className, String methodName, String[] parameters) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs:line 842
   at Barotrauma.LuaCsHook.Patch(String className, String methodName, LuaCsPatchFunc patch, HookMethodType hookType) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs:line 1287
   at lambda_method86(Closure , Object , Object[] )
   at MoonSharp.Interpreter.Interop.MethodMemberDescriptor.Execute(Script script, Object obj, ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/MethodMemberDescriptor.cs:line 191
   at MoonSharp.Interpreter.Interop.OverloadedMethodMemberDescriptor.PerformOverloadedCall(Script script, Object obj, ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/OverloadedMethodMemberDescriptor.cs:line 217
   at MoonSharp.Interpreter.Interop.OverloadedMethodMemberDescriptor.<>c__DisplayClass33_0.<GetCallback>b__0(ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/OverloadedMethodMemberDescriptor.cs:line 426
   at MoonSharp.Interpreter.CallbackFunction.Invoke(ScriptExecutionContext executionContext, IList`1 args, Boolean isMethodCall) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/DataTypes/CallbackFunction.cs:line 58
   at MoonSharp.Interpreter.Execution.VM.Processor.Internal_ExecCall(Int32 argsCount, Int32 instructionPtr, CallbackFunction handler, CallbackFunction continuation, Boolean thisCall, String debugText, DynValue unwindHandler) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor_InstructionLoop.cs:line 723
   at MoonSharp.Interpreter.Execution.VM.Processor.Processing_Loop(Int32 instructionPtr) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor_InstructionLoop.cs:line 116
   at MoonSharp.Interpreter.Execution.VM.Processor.Call(DynValue function, DynValue[] args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor.cs:line 85
   at MoonSharp.Interpreter.Script.Call(DynValue function, DynValue[] args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 474
   at MoonSharp.Interpreter.Script.Call(DynValue function) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 433
   at MoonSharp.Interpreter.Script.DoString(String code, Table globalContext, String codeFriendlyName) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 322
   at TestProject.LuaCs.HookPatchHelpers.DoHookPatch(LuaCsSetup luaCs, String patchId, String className, String methodName, String[] parameters, String function, HookMethodType patchType) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchHelpers.cs:line 74
   at TestProject.LuaCs.HookPatchHelpers.AddPrefix[T](LuaCsSetup luaCs, String body, String methodName, String[] parameters, String patchId) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchHelpers.cs:line 98
   at TestProject.LuaCs.HookPatchTests.TestCastUInt32() in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchTests.cs:line 553

Check failure on line 842 in Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs

See this annotation in the file changed.

@github-actions github-actions / Test results

TestProject.LuaCs.HookPatchTests ► TestCastUInt64

Failed test found in:
  test-results.trx
Error:
  MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetNumbers'
Raw output
MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetNumbers'
   at Barotrauma.LuaCsHook.ResolveMethod(String className, String methodName, String[] parameters) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs:line 842
   at Barotrauma.LuaCsHook.Patch(String className, String methodName, LuaCsPatchFunc patch, HookMethodType hookType) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs:line 1287
   at lambda_method86(Closure , Object , Object[] )
   at MoonSharp.Interpreter.Interop.MethodMemberDescriptor.Execute(Script script, Object obj, ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/MethodMemberDescriptor.cs:line 191
   at MoonSharp.Interpreter.Interop.OverloadedMethodMemberDescriptor.PerformOverloadedCall(Script script, Object obj, ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/OverloadedMethodMemberDescriptor.cs:line 217
   at MoonSharp.Interpreter.Interop.OverloadedMethodMemberDescriptor.<>c__DisplayClass33_0.<GetCallback>b__0(ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/OverloadedMethodMemberDescriptor.cs:line 426
   at MoonSharp.Interpreter.CallbackFunction.Invoke(ScriptExecutionContext executionContext, IList`1 args, Boolean isMethodCall) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/DataTypes/CallbackFunction.cs:line 58
   at MoonSharp.Interpreter.Execution.VM.Processor.Internal_ExecCall(Int32 argsCount, Int32 instructionPtr, CallbackFunction handler, CallbackFunction continuation, Boolean thisCall, String debugText, DynValue unwindHandler) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor_InstructionLoop.cs:line 723
   at MoonSharp.Interpreter.Execution.VM.Processor.Processing_Loop(Int32 instructionPtr) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor_InstructionLoop.cs:line 116
   at MoonSharp.Interpreter.Execution.VM.Processor.Call(DynValue function, DynValue[] args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor.cs:line 85
   at MoonSharp.Interpreter.Script.Call(DynValue function, DynValue[] args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 474
   at MoonSharp.Interpreter.Script.Call(DynValue function) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 433
   at MoonSharp.Interpreter.Script.DoString(String code, Table globalContext, String codeFriendlyName) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 322
   at TestProject.LuaCs.HookPatchHelpers.DoHookPatch(LuaCsSetup luaCs, String patchId, String className, String methodName, String[] parameters, String function, HookMethodType patchType) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchHelpers.cs:line 74
   at TestProject.LuaCs.HookPatchHelpers.AddPrefix[T](LuaCsSetup luaCs, String body, String methodName, String[] parameters, String patchId) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchHelpers.cs:line 98
   at TestProject.LuaCs.HookPatchTests.TestCastUInt64() in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchTests.cs:line 579

Check failure on line 842 in Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs

See this annotation in the file changed.

@github-actions github-actions / Test results

TestProject.LuaCs.HookPatchTests ► TestFullMethodReplacement

Failed test found in:
  test-results.trx
Error:
  MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetSimple'
Raw output
MoonSharp.Interpreter.ScriptRuntimeException : invalid class name 'TestProject.LuaCs.HookPatchTests+PatchTargetSimple'
   at Barotrauma.LuaCsHook.ResolveMethod(String className, String methodName, String[] parameters) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs:line 842
   at Barotrauma.LuaCsHook.Patch(String className, String methodName, LuaCsPatchFunc patch, HookMethodType hookType) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs:line 1287
   at lambda_method86(Closure , Object , Object[] )
   at MoonSharp.Interpreter.Interop.MethodMemberDescriptor.Execute(Script script, Object obj, ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/MethodMemberDescriptor.cs:line 191
   at MoonSharp.Interpreter.Interop.OverloadedMethodMemberDescriptor.PerformOverloadedCall(Script script, Object obj, ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/OverloadedMethodMemberDescriptor.cs:line 217
   at MoonSharp.Interpreter.Interop.OverloadedMethodMemberDescriptor.<>c__DisplayClass33_0.<GetCallback>b__0(ScriptExecutionContext context, CallbackArguments args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/OverloadedMethodMemberDescriptor.cs:line 426
   at MoonSharp.Interpreter.CallbackFunction.Invoke(ScriptExecutionContext executionContext, IList`1 args, Boolean isMethodCall) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/DataTypes/CallbackFunction.cs:line 58
   at MoonSharp.Interpreter.Execution.VM.Processor.Internal_ExecCall(Int32 argsCount, Int32 instructionPtr, CallbackFunction handler, CallbackFunction continuation, Boolean thisCall, String debugText, DynValue unwindHandler) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor_InstructionLoop.cs:line 723
   at MoonSharp.Interpreter.Execution.VM.Processor.Processing_Loop(Int32 instructionPtr) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor_InstructionLoop.cs:line 116
   at MoonSharp.Interpreter.Execution.VM.Processor.Call(DynValue function, DynValue[] args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Execution/VM/Processor/Processor.cs:line 85
   at MoonSharp.Interpreter.Script.Call(DynValue function, DynValue[] args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 474
   at MoonSharp.Interpreter.Script.Call(DynValue function) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 433
   at MoonSharp.Interpreter.Script.DoString(String code, Table globalContext, String codeFriendlyName) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Libraries/moonsharp/MoonSharp.Interpreter/Script.cs:line 322
   at TestProject.LuaCs.HookPatchHelpers.DoHookPatch(LuaCsSetup luaCs, String patchId, String className, String methodName, String[] parameters, String function, HookMethodType patchType) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchHelpers.cs:line 74
   at TestProject.LuaCs.HookPatchHelpers.AddPrefix[T](LuaCsSetup luaCs, String body, String methodName, String[] parameters, String patchId) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchHelpers.cs:line 98
   at TestProject.LuaCs.HookPatchTests.TestFullMethodReplacement() in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaTest/LuaCs/HookPatchTests.cs:line 58