ArgumentException: TimeSpan does not accept floating point Not-a-Number valuesFixed

Got this after Halloween Update.

Failed to call hook 'OnServerInitialized' on plugin 'Tides v0.1.6' (ArgumentException: TimeSpan does not accept floating point Not-a-Number values.)
at System.TimeSpan.Interval (System.Double value, System.Int32 scale) [0x00012] in :0
at System.TimeSpan.FromHours (System.Double value) [0x00000] in :0
at Oxide.Plugins.Tides.OnServerInitialized () [0x00214] in <3ceac49d604d4de2bd9b68ac0ac2cf8d>:0
at Oxide.Plugins.Tides.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x001dd] in <3ceac49d604d4de2bd9b68ac0ac2cf8d>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in :0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0
Can you post your config here too in full?

Merged post

I can't reproduce this on my end, if I see your config I can help figure out what's wrong. Looks like the refresh setting is wrong, but I'm not sure.
Thanks for the reply

Hmm, ok here's what I have currently.

(All that are in bold are orange and the ones in italics are just black. Ive played around with the language's in N++ before and some changed the colors of the text. Not sure if that means anything but I felt that should be said, never seen a .lua file displayed this way.)

{
"1 - Tides": {
"1 - Height. How many meters (1m = 3ft) high do you want High Tide? 2 is natural and default, 5 is high, higher than 10 may have unintended consequences": 2,
"2 - Hours between high and low tide. 6 is natural and mimics real life, giving a high tide every 30 minutes (12 in-game hours)": 6,
"3 - Refresh rate, so 0.1 happens 10 times per second": 0.01,
"4 - Offset. Don't change this unless you know what you're doing, 2 makes low tide start at midnight and -2 makes high tide start at midnight": 2
},
"2 - Variance": {
"Defines the amount of variance between high tides. Options are None, Low, Medium, High": "low"
},
"3 - Storms": {
"1 - If this is enabled you'll get a chance of storms": true,
"2 - Set the maximum height of tides during a storm event. Default is 10 for a 10 meter high tide": 8,
"3 - Set the chance of a storm occuring when storms are enabled. 0 means never 100 means always. Default is 10 for a 10% chance of storms": 10
},
"4 - Debug": {
"This will output messages to your console to help diagnose problems": true
}
}

PS. Oh and from what I remember, it displayed the error a few moments after it loaded on server start.
When I load the plugin after its finished it looks like it doesn't and everything runs smoothly.
regr3tti
Can you post your config here too in full?

Merged post

I can't reproduce this on my end, if I see your config I can help figure out what's wrong. Looks like the refresh setting is wrong, but I'm not sure.

I had the same error when I changed the tides from 2 to 5

Ok checking again...

Edit: Thanks for posting your config, it's an issue with the variance setting (mine was default as "none" so I didn't see the issue). Working on a fix now.
Awesome, thanks for the fix.

Much appreciated:)
Locked automatically