Jump to content

Console Error on Install/Reload

Closed 1.1.0

dustyhansen
dustyhansen

Posted

Getting the following error with the new update when I install or reload the plugin:

Unloaded plugin KillFeed v1.0.8 by codeboy
[KillFeed] Failed ILoadConfig (Error converting value "Bear" to type 'System.Collections.Generic.Dictionary`2[System.String,System.String]'. Path '['Entity -> Name'].bear', line 84, position 18.)
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, object value, CultureInfo culture, JsonContract contract, Type targetType)
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, object existingValue)
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary(IDictionary dictionary, JsonReader reader, JsonDictionaryContract contract, JsonProperty containerProperty, string id)
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, object existingValue)
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, object existingValue)
at bool Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, object target)
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, string id)
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, object existingValue)
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, object existingValue)
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, bool checkAdditionalContent)
at object Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at object Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type objectType)
at object Newtonsoft.Json.JsonConvert.DeserializeObject(string value, Type type, JsonSerializerSettings settings)
at ConfigData Newtonsoft.Json.JsonConvert.DeserializeObject<ConfigData>(string value, JsonSerializerSettings settings)
at ConfigData Oxide.Core.Configuration.DynamicConfigFile.ReadObject<ConfigData>(string filename) in /home/runner/work/Carbon/Carbon/Carbon.Core/Carbon.Components/Carbon.Common/src/Oxide/Configuration/DynamicConfigFile.cs:line 30
at void Oxide.Plugins.KillFeed.LoadConfig() in /home/container/carbon/plugins/KillFeed.cs:line 4063
at void Oxide.Plugins.RustPlugin.ILoadConfig() in /home/runner/work/Carbon/Carbon/Carbon.Core/Carbon.Components/Carbon.Common/src/Oxide/RustPlugin.cs:line 235
Inner exception:
System.ArgumentException: Could not cast or convert from System.String to System.Collections.Generic.Dictionary`2[System.String,System.String].
at object Newtonsoft.Json.Utilities.ConvertUtils.EnsureTypeAssignable(object value, Type initialType, Type targetType)
at object Newtonsoft.Json.Utilities.ConvertUtils.ConvertOrCast(object initialValue, CultureInfo culture, Type targetType)
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, object value, CultureInfo culture, JsonContract contract, Type targetType)
Loaded plugin KillFeed v1.1.0 by codeboy [136ms]
Failed to execute OnFrame callback (Object reference not set to an instance of an object)
at void Oxide.Plugins.TreePlanter.TryPlantSeed(BasePlayer player, Item item, GrowableEntity entity) in /home/container/carbon/plugins/TreePlanter.cs:line 326
at void Oxide.Plugins.TreePlanter.OnEntityBuilt(Planner plan, GameObject gameObject)+() => { } in /home/container/carbon/plugins/TreePlanter.cs:line 290
at void Carbon.Managers.CarbonProcessor.Update() in /home/runner/work/Carbon/Carbon/Carbon.Core/Carbon/src/Processors/CarbonProcessor.cs:line 63
Timer of 2s has failed in 'KillFeed v1.1.0 by codeboy' [callback] (Object reference not set to an instance of an object)
at void Oxide.Plugins.KillFeed.DownloadImage(ImageSettings settings, Action callback) in /home/container/carbon/plugins/KillFeed.cs:line 865
at void Oxide.Plugins.KillFeed.OnServerInitialized()+() => { } in /home/container/carbon/plugins/KillFeed.cs:line 520
at Timer Oxide.Plugins.Timers.In(float time, Action action)+() => { } in /home/runner/work/Carbon/Carbon/Carbon.Core/Carbon.Components/Carbon.Common/src/Oxide/Libraries/Timer.cs:line 50
Failed to call internal hook 'OnEntityDeath' on plugin 'KillFeed v1.1.0' [1779071345] (Object reference not set to an instance of an object)
at void Oxide.Plugins.KillFeed.OnEntityDeath(BaseAnimalNPC animal, HitInfo info) in /home/container/carbon/plugins/KillFeed.cs:line 350
at object Oxide.Plugins.KillFeed.InternalCallHook(uint hook, object[] args) in KillFeed.cs/Internal:line 202
Failed to call internal hook 'OnEntityDeath' on plugin 'KillFeed v1.1.0' [1779071345] (Object reference not set to an instance of an object)
at void Oxide.Plugins.KillFeed.OnEntityDeath(BaseAnimalNPC animal, HitInfo info) in /home/container/carbon/plugins/KillFeed.cs:line 350
at object Oxide.Plugins.KillFeed.InternalCallHook(uint hook, object[] args) in KillFeed.cs/Internal:line 202
Failed to call internal hook 'OnEntityDeath' on plugin 'KillFeed v1.1.0' [1779071345] (Object reference not set to an instance of an object)
at void Oxide.Plugins.KillFeed.OnEntityDeath(BaseAnimalNPC animal, HitInfo info) in /home/container/carbon/plugins/KillFeed.cs:line 350
at object Oxide.Plugins.KillFeed.InternalCallHook(uint hook, object[] args) in KillFeed.cs/Internal:line 202

 

codeboy

Posted

3 minutes ago, dustyhansen said:

Getting the following error with the new update when I install or reload the plugin:

Unloaded plugin KillFeed v1.0.8 by codeboy
[KillFeed] Failed ILoadConfig (Error converting value "Bear" to type 'System.Collections.Generic.Dictionary`2[System.String,System.String]'. Path '['Entity -> Name'].bear', line 84, position 18.)
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, object value, CultureInfo culture, JsonContract contract, Type targetType)
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, object existingValue)
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary(IDictionary dictionary, JsonReader reader, JsonDictionaryContract contract, JsonProperty containerProperty, string id)
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, object existingValue)
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, object existingValue)
at bool Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, object target)
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, string id)
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, object existingValue)
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, object existingValue)
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, bool checkAdditionalContent)
at object Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at object Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type objectType)
at object Newtonsoft.Json.JsonConvert.DeserializeObject(string value, Type type, JsonSerializerSettings settings)
at ConfigData Newtonsoft.Json.JsonConvert.DeserializeObject<ConfigData>(string value, JsonSerializerSettings settings)
at ConfigData Oxide.Core.Configuration.DynamicConfigFile.ReadObject<ConfigData>(string filename) in /home/runner/work/Carbon/Carbon/Carbon.Core/Carbon.Components/Carbon.Common/src/Oxide/Configuration/DynamicConfigFile.cs:line 30
at void Oxide.Plugins.KillFeed.LoadConfig() in /home/container/carbon/plugins/KillFeed.cs:line 4063
at void Oxide.Plugins.RustPlugin.ILoadConfig() in /home/runner/work/Carbon/Carbon/Carbon.Core/Carbon.Components/Carbon.Common/src/Oxide/RustPlugin.cs:line 235
Inner exception:
System.ArgumentException: Could not cast or convert from System.String to System.Collections.Generic.Dictionary`2[System.String,System.String].
at object Newtonsoft.Json.Utilities.ConvertUtils.EnsureTypeAssignable(object value, Type initialType, Type targetType)
at object Newtonsoft.Json.Utilities.ConvertUtils.ConvertOrCast(object initialValue, CultureInfo culture, Type targetType)
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, object value, CultureInfo culture, JsonContract contract, Type targetType)
Loaded plugin KillFeed v1.1.0 by codeboy [136ms]
Failed to execute OnFrame callback (Object reference not set to an instance of an object)
at void Oxide.Plugins.TreePlanter.TryPlantSeed(BasePlayer player, Item item, GrowableEntity entity) in /home/container/carbon/plugins/TreePlanter.cs:line 326
at void Oxide.Plugins.TreePlanter.OnEntityBuilt(Planner plan, GameObject gameObject)+() => { } in /home/container/carbon/plugins/TreePlanter.cs:line 290
at void Carbon.Managers.CarbonProcessor.Update() in /home/runner/work/Carbon/Carbon/Carbon.Core/Carbon/src/Processors/CarbonProcessor.cs:line 63
Timer of 2s has failed in 'KillFeed v1.1.0 by codeboy' [callback] (Object reference not set to an instance of an object)
at void Oxide.Plugins.KillFeed.DownloadImage(ImageSettings settings, Action callback) in /home/container/carbon/plugins/KillFeed.cs:line 865
at void Oxide.Plugins.KillFeed.OnServerInitialized()+() => { } in /home/container/carbon/plugins/KillFeed.cs:line 520
at Timer Oxide.Plugins.Timers.In(float time, Action action)+() => { } in /home/runner/work/Carbon/Carbon/Carbon.Core/Carbon.Components/Carbon.Common/src/Oxide/Libraries/Timer.cs:line 50
Failed to call internal hook 'OnEntityDeath' on plugin 'KillFeed v1.1.0' [1779071345] (Object reference not set to an instance of an object)
at void Oxide.Plugins.KillFeed.OnEntityDeath(BaseAnimalNPC animal, HitInfo info) in /home/container/carbon/plugins/KillFeed.cs:line 350
at object Oxide.Plugins.KillFeed.InternalCallHook(uint hook, object[] args) in KillFeed.cs/Internal:line 202
Failed to call internal hook 'OnEntityDeath' on plugin 'KillFeed v1.1.0' [1779071345] (Object reference not set to an instance of an object)
at void Oxide.Plugins.KillFeed.OnEntityDeath(BaseAnimalNPC animal, HitInfo info) in /home/container/carbon/plugins/KillFeed.cs:line 350
at object Oxide.Plugins.KillFeed.InternalCallHook(uint hook, object[] args) in KillFeed.cs/Internal:line 202
Failed to call internal hook 'OnEntityDeath' on plugin 'KillFeed v1.1.0' [1779071345] (Object reference not set to an instance of an object)
at void Oxide.Plugins.KillFeed.OnEntityDeath(BaseAnimalNPC animal, HitInfo info) in /home/container/carbon/plugins/KillFeed.cs:line 350
at object Oxide.Plugins.KillFeed.InternalCallHook(uint hook, object[] args) in KillFeed.cs/Internal:line 202

 

Hi! Please, save u config file and generate new, then insert values from old config. 

dustyhansen

Posted

24 minutes ago, codeboy said:

Hi! Please, save u config file and generate new, then insert values from old config. 

Do you know how big of a pain this is with all the custom entities we have added? 

codeboy

Posted

13 minutes ago, dustyhansen said:

Do you know how big of a pain this is with all the custom entities we have added? 

Np, send me in DM your config, ill transfer all ur data to new config

dustyhansen

Posted

No it's ok, I did it, just was frustrated at the time that's all.

  • Like 1
codeboy

Posted

Changed Status from Pending to Closed

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.3k

Files Sold

Total number of files sold.

2.3m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.