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] Broken TL -> Broken Campaign Cartographer in v.1.18.5 #36

Closed Konfuz closed 1 year ago

Konfuz commented 1 year ago

Describe the Bug:

Walking on a broken TL in v1.18.5 crashes the game. Seems some API stuff has changed.

To Reproduce: Step on a broken TL triggering "AddBrokenTranslocatorWaypoint"

Expected Behaviour: Broken TL added to map, Game not crashing.

Additional Context

Game Version: v1.18.5 (Stable)
5/20/2023 1:33:46 PM: Critical error occurred in the following mod: campaigncartographer@3.1.2
Loaded Mods: aurafurypets@1.2.0, bettercrates@1.6.0, canmarket@0.2.7, chiseltools@1.8.4, extrachests@1.7.0, specializedbags-10Slot@0.4.2, game@1.18.5, aurafurytweaks@1.2.2, carryon@1.1.0, farmlanddropssoil@1.4.0, medievalexpansion@3.9.1, miningtools@1.1.4, stepup@1.2.0, creative@1.18.5, prospectorinfo@3.1.2, survival@1.18.5, workbenchexpansion@1.6.2, campaigncartographer@3.1.2, em@2.1.2, xinvtweaks@1.4.3, bricklayers@2.1.0
Involved Harmony IDs: ApacheTech.VintageMods.CampaignCartographer, Version=3.1.1.0, Culture=neutral, PublicKeyToken=null
System.MissingFieldException: Field not found: Vintagestory.API.Common.Entities.SyncedEntityPos Vintagestory.API.Common.Entities.Entity.Pos Due to: Could not find field in class
  at ApacheTech.VintageMods.CampaignCartographer.Domain.Extensions.BlockEntityStaticTranslocatorExtensions.AddBrokenTranslocatorWaypoint (Vintagestory.GameContent.BlockStaticTranslocator block, Vintagestory.API.MathTools.BlockPos blockPos) [0x0007a] in <421053c2577a464d8dba3d4e24b8006a>:0 
  at ApacheTech.VintageMods.CampaignCartographer.Domain.Extensions.BlockEntityStaticTranslocatorExtensions.ProcessWaypoints (Vintagestory.GameContent.BlockStaticTranslocator block, Vintagestory.API.MathTools.BlockPos blockPos) [0x00035] in <421053c2577a464d8dba3d4e24b8006a>:0 
  at ApacheTech.VintageMods.CampaignCartographer.Features.AutoWaypoints.Patches.AutoWaypointsPatches.Patch_BlockStaticTranslocator_OnEntityCollide_Postfix (Vintagestory.GameContent.BlockStaticTranslocator __instance, Vintagestory.API.Client.ICoreClientAPI ___api, Vintagestory.API.Common.Entities.Entity entity, Vintagestory.API.MathTools.BlockPos pos) [0x0006a] in <421053c2577a464d8dba3d4e24b8006a>:0 
  at (wrapper dynamic-method) Vintagestory.GameContent.BlockStaticTranslocator.Vintagestory.GameContent.BlockStaticTranslocator.OnEntityCollide_Patch1(Vintagestory.GameContent.BlockStaticTranslocator,Vintagestory.API.Common.IWorldAccessor,Vintagestory.API.Common.Entities.Entity,Vintagestory.API.MathTools.BlockPos,Vintagestory.API.MathTools.BlockFacing,Vintagestory.API.MathTools.Vec3d,bool)
  at Vintagestory.API.MathTools.CollisionTester.ApplyTerrainCollision (Vintagestory.API.Common.Entities.Entity entity, Vintagestory.API.Common.Entities.EntityPos entitypos, System.Single dtFac, Vintagestory.API.MathTools.Vec3d& outposition, System.Single stepHeight, System.Single YExtra) [0x000f8] in <151670ea5af9488c97adc6d4637134de>:0 
  at Vintagestory.GameContent.EntityBehaviorControlledPhysics.DisplaceWithBlockCollision (Vintagestory.API.Common.Entities.EntityPos pos, Vintagestory.API.Common.EntityControls controls, System.Single dt) [0x004dd] in <69de5a339ebb4c3fa1adee48b5e2f77c>:0 
  at Vintagestory.GameContent.EntityBehaviorControlledPhysics.TickEntityPhysics (Vintagestory.API.Common.Entities.EntityPos pos, Vintagestory.API.Common.EntityControls controls, System.Single dt) [0x0038d] in <69de5a339ebb4c3fa1adee48b5e2f77c>:0 
  at Vintagestory.GameContent.EntityBehaviorPlayerPhysics.TickEntityPhysicsPre (Vintagestory.API.Common.Entities.Entity entity, System.Single dt) [0x002ca] in <69de5a339ebb4c3fa1adee48b5e2f77c>:0 
  at Vintagestory.GameContent.EntityBehaviorPlayerPhysics.onPhysicsTick (System.Single deltaTime) [0x000ca] in <69de5a339ebb4c3fa1adee48b5e2f77c>:0 
  at Vintagestory.GameContent.EntityBehaviorPlayerPhysics.OnRenderFrame (System.Single deltaTime, Vintagestory.API.Client.EnumRenderStage stage) [0x0000e] in <69de5a339ebb4c3fa1adee48b5e2f77c>:0 
  at Vintagestory.Client.NoObf.ClientEventManager.TriggerRenderStage (Vintagestory.API.Client.EnumRenderStage stage, System.Single dt) [0x00021] in <1f3460e41e8b4f5c9909b9730ecb932a>:0 
  at Vintagestory.Client.NoObf.ClientMain.TriggerRenderStage (Vintagestory.API.Client.EnumRenderStage stage, System.Single dt) [0x00028] in <1f3460e41e8b4f5c9909b9730ecb932a>:0 
  at Vintagestory.Client.NoObf.ClientMain.MainRenderLoop (System.Single dt) [0x000e1] in <1f3460e41e8b4f5c9909b9730ecb932a>:0 
  at Vintagestory.Client.NoObf.ClientMain.MainGameLoop (System.Single deltaTime) [0x00047] in <1f3460e41e8b4f5c9909b9730ecb932a>:0 
  at Vintagestory.Client.GuiScreenRunningGame.RenderToPrimary (System.Single dt) [0x0004d] in <1f3460e41e8b4f5c9909b9730ecb932a>:0 
  at Vintagestory.Client.ScreenManager.Render (System.Single dt) [0x00079] in <1f3460e41e8b4f5c9909b9730ecb932a>:0 
  at Vintagestory.Client.ScreenManager.OnNewFrame (System.Single dt) [0x000cc] in <1f3460e41e8b4f5c9909b9730ecb932a>:0 
  at Vintagestory.Client.NoObf.ClientPlatformWindows.window_RenderFrame (System.Object sender, OpenTK.FrameEventArgs e) [0x00141] in <1f3460e41e8b4f5c9909b9730ecb932a>: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 Vintagestory.Client.ClientProgram.Start (Vintagestory.Client.ClientProgramArgs args, System.String[] rawArgs) [0x00421] in <7d5fb1e20c2d4f78b3ed4d46805c0e78>:0 
  at Vintagestory.Client.ClientProgram+<>c__DisplayClass16_0.<.ctor>b__0 () [0x00000] in <7d5fb1e20c2d4f78b3ed4d46805c0e78>:0 
  at Vintagestory.ClientNative.CrashReporter.Start (System.Threading.ThreadStart start) [0x00007] in <1f3460e41e8b4f5c9909b9730ecb932a>:0 
ApacheTech commented 1 year ago

This is not a bug.

The mod has not been updated for 1.18. Do not use this mod with 1.18, until an update has been released.

This will not be fixed, until a version of this mod exists for 1.18.