Skip to content

Server error: Capreolinae bear behaviour (incompatibility) #2

Description

@NiemandNatural

VS 1.19.8
FotSa Capreolinae 1.1.4
Creatures and Critters (unofficial) 1.0.9

Error on server startup only occurs when Creatures and Critters is installed.

19.5.2024 18:19:00 [Server Error] Patch 0 (target: game:entities/land/bear.json) in capreolinae:patches/behavior_animals.json failed, following Exception was thrown:
19.5.2024 18:19:00 [Server Error] Exception: Unable to cast object of type 'Newtonsoft.Json.Linq.JValue' to type 'Newtonsoft.Json.Linq.JArray'.
   at JsonPatch.Adaptors.JsonNetTargetAdapter.AddInsertPrepend(IValueOperation operation)
   at JsonPatch.Adaptors.JsonNetTargetAdapter.AddMerge(AddMergeOperation mergeOperation)
   at JsonPatch.Adaptors.BaseTargetAdapter.ApplyOperation(Operation operation)
   at Tavis.PatchDocument.ApplyTo(IPatchTarget target)
   at Tavis.PatchDocument.ApplyTo(JToken jToken)
   at Vintagestory.ServerMods.NoObf.ModJsonPatchLoader.ApplyPatch(Int32 patchIndex, AssetLocation patchSourcefile, JsonPatch jsonPatch, Int32& applied, Int32& notFound, Int32& errorCount) in VSEssentials\Loading\JsonPatchLoader.cs:line 323
19.5.2024 18:19:00 [Server Error] Patch 3 (target: game:entities/land/bear.json) in capreolinae:patches/behavior_animals.json failed, following Exception was thrown:
19.5.2024 18:19:00 [Server Error] Exception: Unable to cast object of type 'Newtonsoft.Json.Linq.JValue' to type 'Newtonsoft.Json.Linq.JArray'.
   at JsonPatch.Adaptors.JsonNetTargetAdapter.AddInsertPrepend(IValueOperation operation)
   at JsonPatch.Adaptors.JsonNetTargetAdapter.AddMerge(AddMergeOperation mergeOperation)
   at JsonPatch.Adaptors.BaseTargetAdapter.ApplyOperation(Operation operation)
   at Tavis.PatchDocument.ApplyTo(IPatchTarget target)
   at Tavis.PatchDocument.ApplyTo(JToken jToken)
   at Vintagestory.ServerMods.NoObf.ModJsonPatchLoader.ApplyPatch(Int32 patchIndex, AssetLocation patchSourcefile, JsonPatch jsonPatch, Int32& applied, Int32& notFound, Int32& errorCount) in VSEssentials\Loading\JsonPatchLoader.cs:line 323

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