ApacheTech-VintageStory-Mods / ApacheTech.VintageMods.CampaignCartographer

Mod for Vintage Story: Adds multiple Cartography related features to the game, such as custom waypoint icons, GPS, auto waypoint markers, and more.
7 stars 4 forks source link

[BUG] Crash when stepping on Translocator as it powers up #30

Closed Konfuz closed 2 years ago

Konfuz commented 2 years ago

I accidentially stepped on a TL just as it finished powering up. I had manually deleted the waypoint for "broken translocator" before doing that. Crash to desktop. Stacktrace attached.

Running on 64 bit Linux with 15 GB. 
Game Version: v1.16.5 (Stable)
Loaded Mods: aurafurytweaks@0.0.3, bettercrates@1.4.1, chiseltools@1.4.6, extrachests@1.5.2, specializedbags-10Slot@0.4.2, tradeomat@1.6.1, game@1.16.5, automap@0.1.8, carrycapacity@0.6.5, extraoverlays@1.1.0, farmlanddropssoil@1.4.0, medievalexpansion@3.7.1, miningtools@1.1.4, petai@1.4.4, stepup@1.2.0, creative@1.16.5, prospectorinfo@3.1.2, survival@1.16.5, workbenchexpansion@1.4.1, bricklayers@0.9.1, campaigncartographer@2.0.2, feverstonehorses@1.2.9
8/11/2022 8:21:52 PM: Critical error occurred
System.NullReferenceException: Object reference not set to an instance of an object
  at ApacheTech.VintageMods.Core.Extensions.Game.PositionExtensions.RelativeToSpawn (Vintagestory.API.MathTools.BlockPos pos) [0x0001b] in <428cb076035d4d9383baaaa5315a215c>:0 
  at ApacheTech.VintageMods.CampaignCartographer.Features.ManualWaypoints.Extensions.BlockEntityStaticTranslocatorExtensions.AddWaypoint (Vintagestory.API.MathTools.BlockPos sourcePos, Vintagestory.API.MathTools.BlockPos destPos, System.String titleTemplate) [0x00006] in <428cb076035d4d9383baaaa5315a215c>:0 
  at ApacheTech.VintageMods.CampaignCartographer.Features.ManualWaypoints.Extensions.BlockEntityStaticTranslocatorExtensions.AddWaypointsForEndpoints (Vintagestory.GameContent.BlockEntityStaticTranslocator translocator, System.String titleTemplate) [0x0000e] in <428cb076035d4d9383baaaa5315a215c>:0 
  at ApacheTech.VintageMods.CampaignCartographer.Features.ManualWaypoints.TranslocatorWaypoints.DefaultHandler (System.Int32 groupId, Vintagestory.API.Common.CmdArgs args) [0x00167] in <428cb076035d4d9383baaaa5315a215c>:0 
  at ApacheTech.VintageMods.FluentChatCommands.Client.FluentClientCommand.CallHandler (System.Int32 groupId, Vintagestory.API.Common.CmdArgs args) [0x00102] in <428cb076035d4d9383baaaa5315a215c>:0 
  at Vintagestory.API.Common.ClientChatCommand.CallHandler (Vintagestory.API.Common.IPlayer player, System.Int32 groupId, Vintagestory.API.Common.CmdArgs args) [0x00000] in <0e4a7b5cab644d0da9e4f27ccd6e0015>:0 
  at Vintagestory.Client.NoObf.HudDialogChat.HandleClientCommand (System.Int32 groupid, System.String command, Vintagestory.API.Common.CmdArgs arguments) [0x00036] in <8316c93e98ed421da4237893dc4beacf>:0 
  at Vintagestory.Client.NoObf.HudDialogChat.HandleClientCommand (System.String message, System.Int32 groupid) [0x0003f] in <8316c93e98ed421da4237893dc4beacf>:0 
  at Vintagestory.Client.NoObf.HudDialogChat.OnNewClientOnlyChatLine (System.Int32 groupId, System.String message, Vintagestory.API.Common.EnumChatType chattype, System.String data) [0x0001e] in <8316c93e98ed421da4237893dc4beacf>:0 
  at Vintagestory.Client.NoObf.ClientEventManager.TriggerNewModChatLine (System.Int32 groupid, System.String message, Vintagestory.API.Common.EnumChatType chattype, System.String data) [0x00015] in <8316c93e98ed421da4237893dc4beacf>:0 
  at Vintagestory.Client.NoObf.ClientMain.SendMessageToClient (System.String message) [0x00000] in <8316c93e98ed421da4237893dc4beacf>:0 
  at Vintagestory.Client.NoObf.ClientCoreAPI.TriggerChatMessage (System.String message) [0x00000] in <8316c93e98ed421da4237893dc4beacf>:0 
  at ApacheTech.VintageMods.CampaignCartographer.Features.AutoWaypoints.Patches.BlockEntityStaticTranslocatorPatches+<>c.<Patch_BlockStaticTranslocator_OnEntityCollide_Prefix>b__0_0 () [0x00005] in <428cb076035d4d9383baaaa5315a215c>:0 
  at Vintagestory.Client.NoObf.ClientMain.ExecuteMainThreadTasks (System.Single deltaTime) [0x0008c] in <8316c93e98ed421da4237893dc4beacf>:0 
  at Vintagestory.Client.NoObf.ClientMain.MainGameLoop (System.Single deltaTime) [0x0004e] in <8316c93e98ed421da4237893dc4beacf>:0 
  at _esGsESICkihAc8ShXuIoQwZFwP4._lPY9uZeagiMGC6tvSE11dF7naaz (System.Single ) [0x0004d] in <8316c93e98ed421da4237893dc4beacf>:0 
  at _8UC8FAMhwKY89IbtSRDjsNSApPJ._KbwUAfxjCHyIG0aK445AAA9FHl5 (System.Single ) [0x00079] in <8316c93e98ed421da4237893dc4beacf>:0 
  at _8UC8FAMhwKY89IbtSRDjsNSApPJ._R0wAt2N0TpONMxGD0HJG3bDrRcI (System.Single ) [0x000cc] in <8316c93e98ed421da4237893dc4beacf>:0 
  at Vintagestory.Client.NoObf.ClientPlatformWindows.window_RenderFrame (System.Object sender, OpenTK.FrameEventArgs e) [0x00141] in <8316c93e98ed421da4237893dc4beacf>:0 
  at (wrapper delegate-invoke) System.EventHandler`1[OpenTK.FrameEventArgs].invoke_void_object_TEventArgs(object,OpenTK.FrameEventArgs)
  at OpenTK.GameWindow.OnRenderFrame (OpenTK.FrameEventArgs e) [0x00000] in <a4886e33f9fc416195d24950e7205b94>:0 
  at OpenTK.GameWindow.OnRenderFrameInternal (OpenTK.FrameEventArgs e) [0x00010] in <a4886e33f9fc416195d24950e7205b94>:0 
  at OpenTK.GameWindow.RaiseRenderFrame (System.Double elapsed, System.Double& timestamp) [0x0000c] in <a4886e33f9fc416195d24950e7205b94>:0 
  at OpenTK.GameWindow.DispatchRenderFrame () [0x00038] in <a4886e33f9fc416195d24950e7205b94>:0 
  at OpenTK.GameWindow.Run (System.Double updates_per_second, System.Double frames_per_second) [0x00104] in <a4886e33f9fc416195d24950e7205b94>:0 
  at OpenTK.GameWindow.Run () [0x00000] in <a4886e33f9fc416195d24950e7205b94>:0 
  at _7zNxEbLnuy6Bq08TdMSIu9ZbrKf._vvUTh6X5xLRNnjtX2xSE7z8yMeh (_SUsdg1ytavxaRcNNkhfDrODGhGP , System.String[] ) [0x003dc] in <ba2a76e506144f5084a46453a8f22fe3>:0 
  at _7zNxEbLnuy6Bq08TdMSIu9ZbrKf+_qZniT2fgiisIkqrp5iz6vEDMUVc._ZnDyalsB0FQk8So5sLBjhW87hXD () [0x00000] in <ba2a76e506144f5084a46453a8f22fe3>:0 
  at _yA4PJazdKq1OMm8H6js6v5AhQB._vvUTh6X5xLRNnjtX2xSE7z8yMeh (System.Threading.ThreadStart ) [0x00007] in <8316c93e98ed421da4237893dc4beacf>:0 
ApacheTech commented 2 years ago

This bug was fixed in v2.2.2, and should not have carried over to v3.