Jump to content

Is the json error correct?

Pending 1.2.5

hid333
hid333

Posted

All of the monument data under the data directory gives me a JSON linter error.
Is it correct to use this as is?
Should I fix it and use it?

Adem

Posted

Hi, this doesn't affect the plugin's functionality.

hid333

Posted (edited)

I checked because the plugin wouldn't start unless I fixed the linter errors.
If I manually remove all invalid commas, the plugin errors go away and it starts.

If I delete and relocate the data directory and configuration files and then reload the plugin (resetting it to its full default state), I get the following error:

 

Failed to call hook 'OnServerInitialized' on plugin 'DynamicMonuments v1.2.5' (FormatException: Input string was not in a correct format.)

at System.Number.ThrowOverflowOrFormatException (System.Boolean overflow, System.String overflowResourceKey) [0x0001a] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0

at System.Number.ParseUInt64 (System.ReadOnlySpan`1[T] value, System.Globalization.NumberStyles styles, System.Globalization.NumberFormatInfo info) [0x00019] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0

at System.UInt64.Parse (System.String s, System.Globalization.NumberStyles style, System.IFormatProvider provider) [0x0001d] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0

at System.Convert.ToUInt64 (System.String value, System.IFormatProvider provider) [0x00006] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0

at System.String.System.IConvertible.ToUInt64 (System.IFormatProvider provider) [0x00000] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0

at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00128] in <8ce0bd04a7a04b4b9395538239d3fdd8>: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) [0x0007c] in <271c58b7a8684db5a2c92be17a81f252>:0

Edited by hid333
2.1m

Downloads

Total number of downloads.

10k

Customers

Total customers served.

145.6k

Files Sold

Total number of files sold.

3.1m

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.