thorwin99 / SEWorldGenPlugin

A world generation plugin for space engineers
36 stars 8 forks source link

SEWorldGen unable to find method #137

Closed Synirrr closed 2 years ago

Synirrr commented 2 years ago

Describe the bug SEWorldGen is unable to find SendAddGPS to players because the method signature changed.

To Reproduce Steps to reproduce the behavior:

  1. Setup SEWorldGen to load
  2. Run Dedicated Server
  3. See failure to find method

Expected behavior SEworldGen not to throw an error when attempting to find methods.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context

Method signature sendaddgps became sendaddgpsrequest

20:48:00.3395 [FATAL]  Initializer: System.MissingMethodException: Method not found: 'Void Sandbox.Game.Multiplayer.MyGpsCollection.SendAddGps(Int64, Sandbox.Game.Screens.Helpers.MyGps ByRef, Int64, Boolean)'.
   at SEWorldGenPlugin.Session.MyGPSManager.UpdateBeforeSimulation()
   at Patched_Sandbox.Game.World.MySessionUpdateComponents_0(Object )
   at Patched_Sandbox.Game.World.MySessionUpdate_1(Object , MyTimeSpan )
   at Sandbox.MySandboxGame.Update()
   at Patched_Sandbox.Engine.Platform.GameUpdateInternal_0(Object )
   at Patched_Sandbox.Engine.Platform.GameRunSingleFrame_0(Object )
   at Patched_Sandbox.Engine.Platform.FixedLoop+<>c__DisplayClass11_0<Run>b__0_0(Object )
   at Sandbox.Engine.Platform.GenericLoop.Run(VoidAction tickCallback)
   at Sandbox.Engine.Platform.Game.RunLoop()
   at Sandbox.MySandboxGame.Run(Boolean customRenderLoop, Action disposeSplashScreen)
   at Torch.VRageGame.DoStart() in C:\ProgramData\Jenkins\.jenkins\workspace\Torch_master\Torch\VRageGame.cs:line 316
   at Torch.VRageGame.Run() in C:\ProgramData\Jenkins\.jenkins\workspace\Torch_master\Torch\VRageGame.cs:line 123
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
System.MissingMethodException: Method not found: 'Void Sandbox.Game.Multiplayer.MyGpsCollection.SendAddGps(Int64, Sandbox.Game.Screens.Helpers.MyGps ByRef, Int64, Boolean)'...
thorwin99 commented 2 years ago

Thats because of the new update. Will fix it as soon as i can

thorwin99 commented 2 years ago

Fixed in last update