I'm running 2.0.2404 of oxide, which according to the changelog is the current version, and I'm still getting the errors and a clean install won't compile.
ServerRewards
Moved
Total Downloads: 14,033 - First Release: Mar 2, 2016 - Last Update: Jun 9, 2018
- 5/5, 61 likes
-
I've backed up all of the data, done a clean install, reset the NPCs and still can't get ServerRewards to function.
09/17/2016 23:44:29] [Oxide] 23:44 [Debug] at Oxide.Plugins.ServerRewards.DisplayPoints (.BasePlayer player) [0x00000] in <filename unknown>:0
at Oxide.Plugins.ServerRewards.OpenNavMenu (.BasePlayer player, System.String npcid) [0x00000] in <filename unknown>:0
at Oxide.Plugins.ServerRewards.OpenStore (.BasePlayer player, System.String npcid) [0x00000] in <filename unknown>:0
at Oxide.Plugins.ServerRewards.OnUseNPC (.BasePlayer npc, .BasePlayer player) [0x00000] in <filename unknown>:0
at Oxide.Plugins.ServerRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 -
Updated Rust, Updated Oxide. Backed up ServerRewards data to separate foldername. Deleted everything related to ServerRewards. Ran through "Restore" process line-by-line as stated by K1llYoU a couple of pages back. Installed newest version of ServerRewards, everything seems to be working fine, however, I still lack the ability to see how many RPs I have, they are also not displayed at the Vendor Menu, and /sr check playername; returns the following error:
Failed to call hook 'cmdSR' on plugin ServerRewards. Object reference not set to instance of an object.... etc. etc. -
Keep getting these errors...
Code:13:44 [Error] Failed to call hook 'OnServerInitialized' on plugin 'ServerRewards v0.3.21' (NullReferenceException: Object reference not set to an instance of an object) 13:44 [Debug] at Oxide.Plugins.ServerRewards.OnPlayerInit (.BasePlayer player) [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 name, System.Object[] args) [0x00000] in <filename unknown>:0 13:44 [Info] [ServerRewards] Saved reward data 13:44 [Error] Failed to call hook 'cmdRewards' on plugin 'ServerRewards v0.3.21' (NullReferenceException: Object reference not set to an instance of an object) 13:44 [Debug] at Oxide.Plugins.ServerRewards.cmdRewards (.BasePlayer player, System.String command, System.String[] args) [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 name, System.Object[] args) [0x00000] in <filename unknown>:0
-
For me works fine, maybe if you all have error try to unload ServerRewards, then backup and delete serverrewards_rewards.json in data folder, and reload ServerRewards. If you will have no errors, that means you have something wrong with this serverrewards_rewards.json file.
Maybe for someone help.. -
I got ServerRewards back up and running. Basically you have to delete all references to ServerRewards from your server and reinstall. New problem that seems to be happening to a few server admins I know is that once you enter the server rewards store interface, close out of the interface, it remains in the tray and you can no longer play the game until an admin unloads the plugin from the server. Logging out of server or game does not fix the issue as the previous SR Tray is still displayed when logging back in.
Attached Files:
-
-
How do I make it to give 1 point per hour?
-
Anyone know if there's any premade ServerRewards rewards config file or anywhere where i can get the list of ids of the items?
-
I was only able to get this working by 100% deleting everything from server-rewards. Then I installed, ran it, let it create its new config and data folder. then the only thing i restored was the store list, so items and commands i had for sale. I was only able to restore by copying and pasting the json file text from the backup to the new file and then reloading the Mod. This works. I have yet to try it with player/permission data etc.
[DOUBLEPOST=1474253758][/DOUBLEPOST]Is there a way to give an NPC a custom "command" table alongside custom loot? Or is this not feasible? -
Ok so even after a clean install I'm getting the following error. This is what happens: you go up to a vendor, you click on them, the menu opens up, when you close out of the menu, the time and RP points info bar on the bottom does not go away, and you are stuck in a non-existant menu, with only the info bar floating in front of you. you can move around but you cant quit the menu, or do anything else. Just run left, right, forward backward. Obviously the Server Reward menu is not destroying itself properly.
Code:[Error] Failed to call hook 'Unload' on plugin 'ServerRewards v0.3.21' (KeyNotFoundException: The given key was not present in the dictionary.) (21:50:25) | [Oxide] 21:47 [Debug] at System.Collections.Generic.Dictionary`2[System.String,System.Collections.Generic.Dictionary`2[Oxide.Plugins.ServerRewards+ElementType,Oxide.Game.Rust.Cui.CuiElementContainer[]]].get_Item (System.String key) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ServerRewards+UIElements.DestroyNav (.BasePlayer player, Oxide.Plugins.OUIData data) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ServerRewards.DestroyUI (.BasePlayer player) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ServerRewards.Unload () [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 name, System.Object[] args) [0x00000] in <filename unknown>:0
-
reorganized and example added
Attached Files:
-
-
I'm getting this error after every join of a person on the server
Code:(13:03:06) | [Oxide] 13:03 [Error] Failed to call hook 'OnPlayerInit' on plugin 'ServerRewards v0.3.21' (NullReferenceException: Object reference not set to an instance of an object) (13:03:06) | [Oxide] 13:03 [Debug] at Oxide.Plugins.ServerRewards.OnPlayerInit (.BasePlayer player) [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 name, System.Object[] args) [0x00000] in <filename unknown>:0 (13:03:06) | 77.251.213.110:65254/76561197999286293/Riddle joined [windows/76561197999286293]
Last edited by a moderator: Sep 20, 2016 -
Version 0.3.21 -
Can someone give me some help getting rid of the default message when the plugin is loaded? I modified it as it references using /s which I turned off to use NPC's only but the plugin has a message about using /s when you reload it. Tried allsorts of ways, can't figure out where its still cached to not use my new message that I edited in the .cs file. Really should be able to turn it off in config.
-
When trying to add a Command to an npc Dealer
Code:[Oxide] 14:01 [Error] Failed to call hook 'cmdChangeElement' on plugin 'ServerRewards v0.3.2' (KeyNotFoundException: The given key was not present in the dictionary.) [Oxide] 14:01 [Debug] at System.Collections.Generic.Dictionary`2[Oxide.Plugins.ServerRewards+ElementType,Oxide.Game.Rust.Cui.CuiElementContainer[]].get_Item (ElementType key) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ServerRewards.GetElement (ElementType type, Int32 page, System.String npcid) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ServerRewards.SwitchElement (.BasePlayer player, ElementType type, Int32 page, System.String npcid) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ServerRewards.cmdChangeElement (.Arg arg) [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 name, System.Object[] args) [0x00000] in <filename unknown>:0
-
is it possible to turn of RP so players can just use the economics amout they have ?
-
Probably better for you is the lang-file (.json in folder 'lang'): its the very first line in mine, i changed it already to match my server.
"msgOutRewards1": "You currently have {0} unspent reward tokens! Spend them in the Shop -> /town",
Btw. for me, the "NPCs only"-config never disabled the /s, i had to change the command into some kind of code in the .cs file, so nobody would know it ^^
"Points_Time": 1, -> set to ': 0,' = no RP over time
"Use_Referrals": true -> set to ':false' = no RP for inviting othersLast edited by a moderator: Sep 21, 2016 -
-
Try checking under oxide/lang/ServerRewards.en.json[/QUOTE]
Worked! Thanks