Jump to content

Config Error

Not a Bug 1.1.5

Iron
Iron

Posted

I have tried to update to the latest version but keep getting the error below.  Seems to happen when I try to have a tank automatically spawn.  This config worked in 1.1.2 but now it does not.  The error is;

Failed to call hook 'OnServerInitialized' on plugin 'RoadBradley v1.1.5' (ArgumentException: Could not cast or convert from System.String to System.Collections.Generic.List`1[System.Int32].)

at Newtonsoft.Json.Utilities.ConvertUtils.EnsureTypeAssignable (System.Object value, System.Type initialType, System.Type targetType) [0x00062] in <2ae3f091decd4989b3c4d466e6eb5985>:0

at Newtonsoft.Json.Utilities.ConvertUtils.ConvertOrCast (System.Object initialValue, System.Globalization.CultureInfo culture, System.Type targetType) [0x00031] in <2ae3f091decd4989b3c4d466e6eb5985>:0

at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType (Newtonsoft.Json.JsonReader reader, System.Object value, System.Globalization.CultureInfo culture, Newtonsoft.Json.Serialization.JsonContract contract, System.Type targetType) [0x0008d] in <2ae3f091decd4989b3c4d466e6eb5985>:0

The part of the config that worked before but now gives this error is

"Tank Routes - Spawns Per Maps": {
    "default": [
      "impossible"

"impossible": {
      "Tank Route - Road IDs (Random, if more than one)": ["46"]

Can you please let me know what is wrong with this config that produces the above error? Entire config is attached.

Thanks

RoadBradley (2).json

ThePitereq

Posted

Hey! There was a note in 1 changelog.
image.thumb.png.b16e521b3f122824e2a364c5addaec5b.png
and the value in the list shouldnt be in "" because it is not an string. it is number

Iron

Posted

Awesome that worked perfectly.  Appreciate the very fast response.

  • Love 1
ThePitereq

Posted

Changed Status from Pending to Not a Bug

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.