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
Adem

Posted

Hi. Have you replaced all the date files with default ones?

hid333

Posted

What do you mean by "date files"?
Are you referring to the files under "data"?
If it's a file under "data", I downloaded and unzipped the latest versions of default, jungle, and Christmas.

Adem

Posted

Yes, you understood correctly — I was talking about the data files.
Please send me the contents of the data/DynamicMonuments folder.

2.1m

Downloads

Total number of downloads.

10k

Customers

Total customers served.

145.7k

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.