Skip to content

VS 1.22 CTD with repeating error #1

Description

@FilmBoy84

Under VS 1.22 the game will immediately CTD on holding the BuildingGadget and write around 90,000 lines of repetition for this error in the log

[Error] Exception: Field not found: 'Vintagestory.API.Common.Entities.Entity.Pos'.
   at MonoMod.Core.Interop.CoreCLR.V60.InvokeCompileMethod(IntPtr functionPtr, IntPtr thisPtr, IntPtr corJitInfo, CORINFO_METHOD_INFO* methodInfo, UInt32 flags, Byte** nativeEntry, UInt32* nativeSizeOfCode)
   at MonoMod.Core.Platforms.Runtimes.Core60Runtime.JitHookDelegateHolder.CompileMethodHook(IntPtr jit, IntPtr corJitInfo, CORINFO_METHOD_INFO* methodInfo, UInt32 flags, Byte** nativeEntry, UInt32* nativeSizeOfCode)
   at BuildingGadgets.BuildingGadgetItem.OnHeldIdle(ItemSlot slot, EntityAgent byEntity) in C:\_Programming\Vintage\BuildingGadgets\code\BuildingGadgets\BuildingGadgetItem.cs:line 777
   at BuildingGadgets.BuildingGadgetItem.OnHeldIdle(ItemSlot slot, EntityAgent byEntity) in C:\_Programming\Vintage\BuildingGadgets\code\BuildingGadgets\BuildingGadgetItem.cs:line 777
   at Vintagestory.Server.ServerSystemInventory.OnUsingTick(Single dt) in VintagestoryLib\Server\Systems\Inventory.cs:line 173
   at Vintagestory.Common.GameTickListener.OnTriggered(Int64 ellapsedMilliseconds) in VintagestoryLib\Common\Model\GameTickListener.cs:line 36
   at Vintagestory.Common.EventManager.TriggerGameTick(Int64 ellapsedMilliseconds, IWorldAccessor world) in VintagestoryLib\Common\EventManager.cs:line 134
   at Vintagestory.Server.ServerMain.Process() in VintagestoryLib\Server\ServerMain.cs:line 882

To replicate, load VS 1.22 with only the Building Gadgets mod enabled, ensure settings are to NOT use paste (same as what im testing with), spawn in the building gadget with commands, attempt to "hold" the gadget, the game will crash

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions