Error?
Code:(11:52:23) | Failed to call hook 'OnServerInitialized' on plugin 'ServerRewards v0.4.5' (ArgumentException: An element with the same key already exists in the dictionary.) (11:52:23) | at System.Collections.Generic.Dictionary`2[System.String,System.UInt64].Add (System.String key, UInt64 value) [0x00000] in <filename unknown>:0 at System.Linq.Enumerable.ToDictionary[KeyValuePair`2,String,UInt64] (IEnumerable`1 source, System.Func`2 keySelector, System.Func`2 elementSelector, IEqualityComparer`1 comparer) [0x00000] in <filename unknown>:0 at System.Linq.Enumerable.ToDictionary[KeyValuePair`2,String,UInt64] (IEnumerable`1 source, System.Func`2 keySelector, System.Func`2 elementSelector) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ServerRewards.LoadAllImages () [0x00000] in <filename unknown>:0 at Oxide.Plugins.ServerRewards.OnServerInitialized () [0x00000] in <filename unknown>:0 at Oxide.Plugins.ServerRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
ServerRewards
Moved
Total Downloads: 14,033 - First Release: Mar 2, 2016 - Last Update: Jun 9, 2018
- 5/5, 61 likes
-
-
try wiping the data files for ServerRewards and see if that fixes it -
But now I have to redo all of my server rewards again because when I copy that data file in that's the cause of the issue 'reward_data.json' -
Last edited by a moderator: May 13, 2017
-
[DOUBLEPOST=1494651008][/DOUBLEPOST]Ill post them here temporarilyAttached Files:
-
-
-
SR data has nothing to do with IL data, if you were using a version of SR pre 0.4.0 then yes you would have needed to wipe your SR data as described in the patch notes. The error posted above is due to something I didn't consider when I wrote the IL update
-
(22:05:06) | [ImageLibrary] Reloading all images!
(22:05:06) | Failed to call hook 'cmdRefreshAllImages' on plugin 'ImageLibrary v0.1.0' (NullReferenceException: Object reference not set to an instance of an object)
(22:05:06) | at Oxide.Plugins.ImageLibrary.RefreshImagery () [0x00000] in <filename unknown>:0
at Oxide.Plugins.ImageLibrary.cmdRefreshAllImages (.Arg arg) [0x00000] in <filename unknown>:0
at Oxide.Plugins.ImageLibrary.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
[DOUBLEPOST=1494652855][/DOUBLEPOST] -
not sure about the error but the only time you need to use that command is;
1) image urls have changed
2) to gather an updated list of skins from the workshop
3) you have the IL config option "Images - Only download image's when required" set to false and you are downloading every image, which there is little to no need to do anymore
SR will check to see if the images exist, and if they dont it will create a loadorder to download them automatically
[DOUBLEPOST=1494652933][/DOUBLEPOST]by using that command you have just wiped all your stored images and they need to be downloaded again -
-
if you dont have that option in your config then your config is outdated, which would explain your NRE
-
-
thats a rust issue
-
k1lly0u updated ServerRewards with a new update entry:
0.4.51
-
-
Error] Failed to call hook 'OnServerInitialized' on plugin 'ServerRewards v0.4.51' (ArgumentException: An element with the same key already exists in the dictionary.)
21:22 [Stacktrace] at System.Collections.Generic.Dictionary`2[System.String,System.String].Add (System.String key, System.String value) [0x00000] in <filename unknown>:0
at Oxide.Plugins.ServerRewards.LoadAllImages () [0x00000] in <filename unknown>:0
at Oxide.Plugins.ServerRewards.OnServerInitialized () [0x00000] in <filename unknown>:0
at Oxide.Plugins.ServerRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
21:22 [Warning] Calling 'OnServerInitialized' on 'ServerRewards v0.4.51' took 725ms [GARBAGE COLLECT]
for reload -
Looks like pullin the trigger on 'workshopimages' is kickin it into gear
(15:39:57) | ServerRewards storage process at 58% (147/254)
(15:40:18) | ServerRewards storage process at 91% (231/254)
Although I know we got over 300 images so this should be interesting
Alright, working now after an SR load, looks like 'workshopimages' need to be triggered for it to grab the images. although still having issues with it not grabbing ALL the images even though I know the ones its skipping are in the workshop, this for example
Steam Workshop :: Rock Star Shirt
If I search the skinid in the data file it doesnt show so just doesn't seem to want to pull down, weirdly, the ones that weren't working a couple days ago now work and vice versa
.Last edited by a moderator: May 13, 2017 -
-