ServerRewards

Moved

Total Downloads: 14,033 - First Release: Mar 2, 2016 - Last Update: Jun 9, 2018

5/5, 61 likes
  1. 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
     
  2. Well, why bother to spoil the plugin and make it dependent on the other?
     

  3. try wiping the data files for ServerRewards and see if that fixes it
     
  4. Thank you it works now...

    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'
     
  5. so you say the reward_data.json is the culprit? 3wait i tried it on mine, you are right. so just wiping the one rewards_data is all thats needed. new update lays it out differently now.
     
    Last edited by a moderator: May 13, 2017
  6. I hope you backed up your data because you wiped it for no reason, the error is due to something I overlooked when i re-wrote ImageLibrary. Need to wait until Absolut can post the IL update so I can post the SR update to match it
    [DOUBLEPOST=1494651008][/DOUBLEPOST]Ill post them here temporarily
     

    Attached Files:

  7. well the errors were being caused by the old Rewards_data. if you read it says under ImageLibrary update that old data would not be useable or something. but if you have the fix, by all means post it and i will try it out. GatherRewards and LustyMap have no problems with the new ImageLibrary. it was just the rewards store data of serverrewards that was not liking it.
     
  8. 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
     
  9. ok i tried your two files and readded the data files that i had backed up. store stuff is back with no errors but now none of the images load. Do i need to wipe the old data for ImageLibrary? I did a refresh all images and saw this:

    (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]
    ok now those two fixes you put up cause even the player image on lustymap not to load anymore. everything in the store is saying no image.
     
  10. 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
     
  11. no option in IL exists for that. well I didnt see one in the config. Iam not sure why it is not updating images in the store now
     
  12. if you dont have that option in your config then your config is outdated, which would explain your NRE
     
  13. ok I did a rm on the old config and have the new one now. some of the images started to load in the store now. heh oh and the dam mouse is always getting recentered while in the store STILL GRRRRRRR
     
  14. thats a rust issue
     
  15. k1lly0u updated ServerRewards with a new update entry:

    0.4.51

     
  16. as far as images loading now, custom skins do not apear and some stuff not load for images in serverrewards store. I do know that after your latest update a lot of resource was free'ed up. I hope the custom skin items will start showing up again.
     
  17. 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
     
  18. Having the same issue, doesnt seem to be creating an image order in IL for the workshop images, probably have to use the download all functionality of the new IL, was hoping to avoid

    upload_2017-5-13_14-16-10.png

    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
  19. Thank you! Worked bro, much appreciated :)
     
  20. When you first open the store hit TAB once - fixed :)