Got this on the new update i did /reward (Changed the chatcmd its been fine and never done this before) I went through the pages and while my pictures were loading from white boxes the whoel thing just stopped responding and wouldnt let me do anything had to alt f4Code:[09/12/2016 23:53:35] [Oxide] 23:53 [Error] Failed to call hook 'OnPlayerInit' on plugin 'ServerRewards v0.3.1' (NullReferenceException: Object reference not set to an instance of an object) [09/13/2016 00:00:51] [Oxide] 00:00 [Error] Failed to call hook 'AddPoints' on plugin 'ServerRewards v0.3.1' (NullReferenceException: Object reference not set to an instance of an object) [09/13/2016 00:01:51] [Oxide] 00:01 [Error] Failed to call hook 'AddPoints' on plugin 'ServerRewards v0.3.1' (NullReferenceException: Object reference not set to an instance of an object) [09/13/2016 00:06:17] [Oxide] 00:06 [Error] Failed to call hook 'cmdStore' on plugin 'ServerRewards v0.3.1' (NullReferenceException: Object reference not set to an instance of an object) [09/13/2016 00:06:57] [Oxide] 00:06 [Error] Failed to call hook 'cmdChangeElement' on plugin 'ServerRewards v0.3.1' (KeyNotFoundException: The given key was not present in the dictionary.) [09/13/2016 00:06:58] [Oxide] 00:06 [Error] Failed to call hook 'cmdChangeElement' on plugin 'ServerRewards v0.3.1' (KeyNotFoundException: The given key was not present in the dictionary.) [09/13/2016 00:06:58] [Oxide] 00:06 [Error] Failed to call hook 'cmdChangeElement' on plugin 'ServerRewards v0.3.1' (KeyNotFoundException: The given key was not present in the dictionary.) [09/13/2016 00:06:58] [Oxide] 00:06 [Error] Failed to call hook 'cmdChangeElement' on plugin 'ServerRewards v0.3.1' (KeyNotFoundException: The given key was not present in the dictionary.) [09/13/2016 00:06:59] [Oxide] 00:06 [Error] Failed to call hook 'cmdChangeElement' on plugin 'ServerRewards v0.3.1' (KeyNotFoundException: The given key was not present in the dictionary.) [09/13/2016 00:06:59] [Oxide] 00:06 [Error] Failed to call hook 'cmdChangeElement' on plugin 'ServerRewards v0.3.1' (KeyNotFoundException: The given key was not present in the dictionary.) [09/13/2016 00:06:59] [Oxide] 00:06 [Error] Failed to call hook 'cmdChangeElement' on plugin 'ServerRewards v0.3.1' (KeyNotFoundException: The given key was not present in the dictionary.) [09/13/2016 00:06:59] [Oxide] 00:06 [Error] Failed to call hook 'cmdChangeElement' on plugin 'ServerRewards v0.3.1' (KeyNotFoundException: The given key was not present in the dictionary.) [09/13/2016 00:07:00] [Oxide] 00:07 [Error] Failed to call hook 'cmdChangeElement' on plugin 'ServerRewards v0.3.1' (KeyNotFoundException: The given key was not present in the dictionary.)
ServerRewards
Moved
Total Downloads: 14,033 - First Release: Mar 2, 2016 - Last Update: Jun 9, 2018
- 5/5, 61 likes
-
doesnt work to buy anything on /s
Code:Oxide] 15:11 [Error] Failed to call hook 'GetKitContents' on plugin 'Kits v3.1.11' (NullReferenceException: Object reference not set to an instance of an object) [Oxide] 15:11 [Debug] at Oxide.Plugins.Kits.GetKitContents (System.String kitname) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Kits.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 [Oxide] 15:11 [Warning] [ServerRewards] All UI elements created successfully! [Oxide] 15:11 [Error] Failed to call hook 'OnServerInitialized' on plugin 'ServerRewards v0.3.1' (NullReferenceException: Object reference not set to an instance of an object) [Oxide] 15:11 [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 [Oxide] 15:11 [Info] [ServerRewards] Saved reward data [Oxide] 15:11 [Error] Failed to call hook 'cmdStore' on plugin 'ServerRewards v0.3.1' (NullReferenceException: Object reference not set to an instance of an object) [Oxide] 15:11 [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.cmdStore (.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 [Oxide] 15:12 [Error] Failed to call hook 'cmdBuyItem' on plugin 'ServerRewards v0.3.1' (NullReferenceException: Object reference not set to an instance of an object) [Oxide] 15:12 [Debug] at Oxide.Plugins.ServerRewards.cmdBuyItem (.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 [Oxide] 15:12 [Error] Failed to call hook 'cmdBuyItem' on plugin 'ServerRewards v0.3.1' (NullReferenceException: Object reference not set to an instance of an object) [Oxide] 15:12 [Debug] at Oxide.Plugins.ServerRewards.cmdBuyItem (.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
-
-
and kits isnt updated for months..
-
May not work for /s but I was actually coming here to ask is it possible to NOT make it work with /s forcing the user to have to go to an NPC store?
-
-
Code:
(04:05:13) | [Oxide] 04:06 [Error] Failed to call hook 'AddPoints' on plugin 'ServerRewards v0.3.1' (NullReferenceException: Object reference not set to an instance of an object) (04:05:13) | [Oxide] 04:06 [Debug] at Oxide.Plugins.ServerRewards.AddPoints (UInt64 ID, Int32 amount) [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 (04:05:16) | Saved 26,158 ents, serialization(0.00), write(0.01), disk(0.00) totalstall(0.01). (04:05:16) | Saving complete
-
-
Having an issue with the icons
Tried this
Code:{ "RewardKits": {}, "RewardItems": { "0": { "DisplayName": "Red Semi-Automatic Pistol", "URL": "http://vignette2.wikia.nocookie.net/play-rust/images/5/53/Red_Shine_Pistol_icon.png/revision/latest?cb=20160211200630", "ID": 548699316, "Amount": 1, "Skin": 10073, "Cost": 10, "TargetID": 0 } }, "RewardCommands": {}, "storedImages": { "999999999": { "0": 2940140341 } } }
Code:{ "RewardKits": {}, "RewardItems": { "0": { "DisplayName": "Red Semi-Automatic Pistol", "URL": "http://i.imgur.com/9uJ5JXR.png", "ID": 548699316, "Amount": 1, "Skin": 10073, "Cost": 10, "TargetID": 0 } }, "RewardCommands": {}, "storedImages": { "999999999": { "0": 2940140341 } } }
Code:{ "RewardKits": {}, "RewardItems": { "0": { "DisplayName": "Red Semi-Automatic Pistol", "URL": "Red_Shine_Pistol_icon.png", "ID": 548699316, "Amount": 1, "Skin": 10073, "Cost": 10, "TargetID": 0 } }, "RewardCommands": {}, "storedImages": { "999999999": { "0": 2940140341 } } }
Did all the loadlocalimages, loadimages combo's, etc, to no avail.
One annoying thing I noticed is that any changes to the file get overriden if the plugin is still active, so the instructions on the main page are missing a step to unload the plugin first.Attached Files:
Last edited by a moderator: Sep 12, 2016 -
-
Ok on the 4th or 5th try of doing the same thing, but then replicating it seems to take the same amount of reloads. Anyway, plugin is a bit buggy, regardless of the pictures thing.
When you enter an NPC, and press close, the bar stays at the top until you click a different button like items, and then close. Also seeing this in console at the same time
Code:(21:28:05) | [Oxide] 13:28 [Error] Failed to call hook 'cmdDestroyAll' on plugin 'ServerRewards v0.3.1' (KeyNotFoundException: The given key was not present in the dictionary.) (21:28:05) | [Oxide] 13:28 [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.cmdDestroyAll (.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
-
save the config.
run the loadlocalimages
reload the plugin oxide.reload serverrewards
should work. -
-
-
Nah sorry my mistake it works. with .png
However, so for local files. the order is definitely as follows.
Download data file
edit
unload plugin
upload data file
reload plugin
loadlocalitems
reload plugin
Any less steps and it overwrites with the previous config. Oh, and then there's the thing with the grey bar staying there if you don't click on something before you click cloce. -
Code:
http://vignette2.wikia.nocookie.net/play-rust/images/5/53/Red_Shine_Pistol_icon.png/revision/latest/scale-to-width-down/100?cb=20160211200630
-
Got huge issues since the update. Cannot get it working, even with config file deleted. /s is broken
Code:[Oxide] 13:38 [Info] [ServerRewards] Saved reward data [Oxide] 13:38 [Error] Failed to call hook 'OnPlayerInit' on plugin 'ServerReward s v0.3.1' (NullReferenceException: Object reference not set to an instance of an object) [Oxide] 13:38 [Debug] at Oxide.Plugins.ServerRewards.OnPlayerInit (.BasePlayer player) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ServerRewards.DirectCallHook (System.String name, System.Obje ct& 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[] arg 121.98.137.98:59093/76561197995460663/ikr? joined [windows/76561197995460663] [Oxide] 13:38 [Info] [Notifier] [ReKt] ikr? joined from New Zealand
-
to everyone;
Open your data files in notepad or your preferred text editor, if they just contain the word 'null' that's your problem. Unload the plugin and remove the datafile -
Sweet. Mine was serverrewards_players.json causing the issues. Wiped all the RP though...
-
is there a way to make subcategories within the main ones?
Example:
Kits:
Kits: Weapon Kits
Kits: Builder Kits
Kits: Other
Items:
Items: Weapons
Items: Weapon Attachments
Items: Building Parts
Items: Deployables
Items: Resources
Items: Clothing
Items: Armor
Items: Medical
Items: Tools
Items: Food
Items: Ammo
Items: Traps
Items: Other
Commands:
Commands: Build Grades
Commands: Remove Tool -
i give players points and add kits but they are not showing up in the /s can u help
[DOUBLEPOST=1473753237][/DOUBLEPOST]it is saying its given it out but not showing up