NullReferenceException at LoadedFixed
[PoliticalSurvival] Settings doesn't exist, creating default
Failed to initialize plugin 'PoliticalSurvival v0.6.6' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.PoliticalSurvival.Loaded () [0x00024] in <0809d4915b724659b684cf73f1702ce3>:0
  at Oxide.Plugins.PoliticalSurvival.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0009c] in <0809d4915b724659b684cf73f1702ce3>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <efb9a8684e344ecfa065c7b416e6d2fd>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <b0a93b504f034a0db8b1c3d2503c0987>:0
  at Oxide.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x0006e] in <efb9a8684e344ecfa065c7b416e6d2fd>:0
Unloaded plugin PoliticalSurvival v0.6.6 by Pho3niX90
No previous version to rollback plugin: PoliticalSurvival
Hi @tomhud, thanks for reporting this to me.

Was this a new install or an upgrade from a previous version?
New version with no data files
Thank you! Will quickly have a look and release an update. 

Merged post

Fixed in v0.6.7
Got this after I updated to v0.6.7. Tried deleting the config files but got the same, and now the PoliticalSurvivalSettings.json is missing.

(12:04:44) | Loaded plugin PoliticalSurvival v0.6.7 by Pho3niX90

(12:06:44) | Failed to run a 60.00 timer in 'PoliticalSurvival v0.6.7' (ArgumentException: An item with the same key has already been added. Key: RulerPromote)

at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x000c1] in <a8ed250850854b439cedc18931a314fe>:0

at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <a8ed250850854b439cedc18931a314fe>:0

at Oxide.Plugins.PoliticalSurvival.AdviseRulerPosition () [0x00154] in <aad65b6b000e4cf983ad1ac3a2ad871a>:0

at Oxide.Plugins.PoliticalSurvival.<Loaded>m__0 () [0x00000] in <aad65b6b000e4cf983ad1ac3a2ad871a>:0

at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <b0a93b504f034a0db8b1c3d2503c0987>:0

(12:06:44) | [PoliticalSurvival] fnr 1

(12:06:44) | [PoliticalSurvival] fnr 2

(12:06:44) | Failed to run a 60.00 timer in 'PoliticalSurvival v0.6.7' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.PoliticalSurvival.TryForceRuler () [0x0001d] in <aad65b6b000e4cf983ad1ac3a2ad871a>:0

at Oxide.Plugins.PoliticalSurvival.<AdviseRulerPosition>m__2 () [0x00000] in <aad65b6b000e4cf983ad1ac3a2ad871a>:0

at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <b0a93b504f034a0db8b1c3d2503c0987>:0

@HazeyDays

This is strange. How many users were online? Did you run any command? What was your previous version? 

Merged post

@HazeyDays a new version has been pushed, please try it and let me know. 
Pretty sure I updated it yesterday to version 0.6.6, if not I for sure had 0.6.5. No one on the server, lately I have only had one person come on for a few hours each day. Had a server restart due to Rust/Oxide update while I updated to 0.6.7 maybe that has something to do with it? That or the "Failed to run a 60.00 timer" I see nowhere in any config file the option to run a timer. Could that be missing?

Merged post

Ok thanks, I will.

Merged post

Awesome, that worked. Thanks again.

I still see no PoliticalSurvivalSettings.json though, is that supposed to be showing, or was it taken out..?
It was removed :) 

Settings are now correctly saved in config
Oh, perfect:) well thanks for the fix.
PoliticalSurvival was compiled successfully in 2375ms
Failed to initialize plugin 'PoliticalSurvival v0.6.8' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.PoliticalSurvival.Init () [0x0002e] in <34c5fc45fbfa40ed8222c613c30e6476>:0
  at Oxide.Plugins.PoliticalSurvival.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0006a] in <34c5fc45fbfa40ed8222c613c30e6476>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <efb9a8684e344ecfa065c7b416e6d2fd>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <b0a93b504f034a0db8b1c3d2503c0987>:0
  at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00043] in <b0a93b504f034a0db8b1c3d2503c0987>:0
[PoliticalSurvival] ruler loaded
[PoliticalSurvival] Political Survival is starting...
[PoliticalSurvival] Realm name is Land of the cursed
[PoliticalSurvival] Tax level is 0
[PoliticalSurvival] Ruler is 0
[PoliticalSurvival] TaxChest is set False
[PoliticalSurvival] Political Survival: Started
[PoliticalSurvival] Current ruler is null
[PoliticalSurvival] Ruler offline at 0
Unloaded plugin PoliticalSurvival v0.6.8 by Pho3niX90
No previous version to rollback plugin: PoliticalSurvival


Merged post

i fixed the above by removing all files it had created previously
Seems fine now
Locked automatically