Dilan Rona Posted April 24, 2025 Report Posted April 24, 2025 Does the following mean anything to anyone here? My log is spammed several times per second with this. And I am running out of ideas on how to resolve this. To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object. Path '*-surface', line 2, position 14. at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) at Vintagestory.GameContent.EntityBehaviorHarvestable.Initialize(EntityProperties properties, JsonObject typeAttributes) in VSEssentials\Entity\Behavior\BehaviorHarvestable.cs:line 309 at Vintagestory.API.Common.Entities.Entity.Initialize(EntityProperties properties, ICoreAPI api, Int64 InChunkIndex3d) at Vintagestory.API.Common.EntityAgent.Initialize(EntityProperties properties, ICoreAPI api, Int64 InChunkIndex3d) in VintagestoryApi\Common\Entity\EntityAgent.cs:line 137 at Vintagestory.Server.ServerMain.SpawnEntity(Entity entity, EntityProperties type) in VintagestoryLib\Server\ServerMain.cs:line 2475 at Vintagestory.Server.ServerSystemEntitySimulation.UpdateEvery100ms(Single t1) in VintagestoryLib\Server\Systems\World\EntitySimulation.cs:line 207 24.4.2025 23:23:10 [Server Error] Exception: Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'Vintagestory.API.Common.BlockDropItemStack[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly. To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object. Path '*-surface', line 2, position 14. at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) at Vintagestory.GameContent.EntityBehaviorHarvestable.Initialize(EntityProperties properties, JsonObject typeAttributes) in VSEssentials\Entity\Behavior\BehaviorHarvestable.cs:line 309 at Vintagestory.API.Common.Entities.Entity.Initialize(EntityProperties properties, ICoreAPI api, Int64 InChunkIndex3d) at Vintagestory.API.Common.EntityAgent.Initialize(EntityProperties properties, ICoreAPI api, Int64 InChunkIndex3d) in VintagestoryApi\Common\Entity\EntityAgent.cs:line 137 at Vintagestory.Server.ServerMain.SpawnEntity(Entity entity, EntityProperties type) in VintagestoryLib\Server\ServerMain.cs:line 2475 at Vintagestory.Server.ServerSystemEntitySimulation.UpdateEvery100ms(Single t1) in VintagestoryLib\Server\Systems\World\EntitySimulation.cs:line 207 24.4.2025 23:23:10 [Server Error] Exception: Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'Vintagestory.API.Common.BlockDropItemStack[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
Solution Brady_The Posted April 24, 2025 Solution Report Posted April 24, 2025 (edited) Revert back to v1.0.1 of Instant Temporal-Mob Drops or fix the bowtorn and shiver patches. Edited April 24, 2025 by Brady_The
Dilan Rona Posted April 24, 2025 Author Report Posted April 24, 2025 (edited) Thank you. That solves the log spam. Edited April 24, 2025 by Dilan Rona
Recommended Posts