Jump to content

2.0 non-legacy mode?

Not a Bug 2.0.1 2.0.2

Somescrub
Somescrub

Posted

I am trying to upgrade from 1.5 to 2.0.1 due to the bug with electric furnace levels getting lost on pickup, but I noticed the config changed quite a bit. Is there still an option to make all upgrades an all at once event and single cost like before? The config now makes it so each type of upgrade is a separate payment. I tried just loading the old way in like below, but it is throwing the json error following. I run a no-wipe server, so I don't want to break everyone's furnaces on the version switch.

 

 [
      {
        "Upgrade cost": 2000,
        "Smelting speed multiplier": 1.2,
        "Resource output multiplier": 1.1,
        "Fuel efficiency (decrease fuel usage per tick)": 0.5,
        "Charcoal multiplier": 1.1
      },
etc.

 

Could not initialize plugin 'FurnaceUpgrades v2.0.1' (JsonSerializationException: Cannot deserialize the current JSON array (e.g

. [1,2,3]) into type 'Oxide.Plugins.FurnaceUpgrades+UpgradeSettings' because the type requires a JSON object (e.g. {"name":"valu

e"}) to deserialize correctly.

To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or

 a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array

. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array.

Path '['Upgrades Settings'].furnace', line 51, position 16.)

  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureArrayContract (Newtonsoft.Json.JsonReader reader, System.T

ype objectType, Newtonsoft.Json.Serialization.JsonContract contract) [0x00058] in <271c58b7a8684db5a2c92be17a81f252>:0

  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList (Newtonsoft.Json.JsonReader reader, System.Type objec

tType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.Object exi

stingValue, System.String id) [0x00012] in <271c58b7a8684db5a2c92be17a81f252>:0

  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.T

ype objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonso

ft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, Syste

m.Object existingValue) [0x0007f] in <271c58b7a8684db5a2c92be17a81f252>:0

  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary (System.Collections.IDictionary dictionary, N

ewtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonDictionaryContract contract, Newtonsoft.Json.Serialization.J

sonProperty containerProperty, System.String id) [0x00262] in <271c58b7a8684db5a2c92be17a81f252>:0

  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type obj

ectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json

.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Objec

t existingValue) [0x002a8] in <271c58b7a8684db5a2c92be17a81f252>:0

  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.T

ype objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonso

ft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, Syste

m.Object existingValue) [0x0006d] in <271c58b7a8684db5a2c92be17a81f252>:0

  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue (Newtonsoft.Json.Serialization.JsonProperty pro

perty, Newtonsoft.Json.JsonConverter propertyConverter, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, N

ewtonsoft.Json.Serialization.JsonProperty containerProperty, Newtonsoft.Json.JsonReader reader, System.Object target) [0x00061]

in <271c58b7a8684db5a2c92be17a81f252>:0

  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject (System.Object newObject, Newtonsoft.Json.JsonRea

der reader, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System

.String id) [0x00267] in <271c58b7a8684db5a2c92be17a81f252>:0

  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type obj

ectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json

.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Objec

t existingValue) [0x0015c] in <271c58b7a8684db5a2c92be17a81f252>:0

  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.T

ype objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonso

ft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, Syste

m.Object existingValue) [0x0006d] in <271c58b7a8684db5a2c92be17a81f252>:0

  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type obje

ctType, System.Boolean checkAdditionalContent) [0x000d9] in <271c58b7a8684db5a2c92be17a81f252>:0

  at Newtonsoft.Json.JsonSerializer.DeserializeInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00053] in

 <271c58b7a8684db5a2c92be17a81f252>:0

  at Newtonsoft.Json.JsonSerializer.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00000] in <271c58

b7a8684db5a2c92be17a81f252>:0

  at Newtonsoft.Json.JsonConvert.DeserializeObject (System.String value, System.Type type, Newtonsoft.Json.JsonSerializerSetting

s settings) [0x0002d] in <271c58b7a8684db5a2c92be17a81f252>:0

  at Newtonsoft.Json.JsonConvert.DeserializeObject[T] (System.String value, Newtonsoft.Json.JsonSerializerSettings settings) [0x

00000] in <271c58b7a8684db5a2c92be17a81f252>:0

  at Oxide.Core.Configuration.DynamicConfigFile.ReadObject[T] (System.String filename) [0x00028] in <18d4f19bbc844191b11ed9e6928

4d09b>:0

  at Oxide.Plugins.FurnaceUpgrades.LoadConfig () [0x0000c] in <c7d90e0f79164058a42e75b9e953a98e>:0

  at Oxide.Core.Plugins.Plugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x0000f] in <18d4f19bbc844191b11

ed9e69284d09b>:0

  at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <18d4f19bbc844191b

11ed9e69284d09b>:0

  at Oxide.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <87ce9ac9776a48658b

c55eae6debe38b>:0

  at Oxide.Plugins.RustPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x0028e] in <64d5c0d6558c45ae8d66

04677c87e599>:0

  at Oxide.Core.Plugins.PluginManager.AddPlugin (Oxide.Core.Plugins.Plugin plugin) [0x00027] in <18d4f19bbc844191b11ed9e69284d09

b>:0

  at Oxide.Core.OxideMod.PluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00035] in <18d4f19bbc844191b11ed9e69284d09b>:0

Yun

Posted

You need to delete your old config to load the new one.

Please read the message at the top of the plugin page, I apologize.

Yun

Posted

Changed Status from Pending to Not a Bug

Changed Fixed In to 2.0.2

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

Files Sold

Total number of files sold.

2m

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.