@Resistance I was using IDs and urls from ImageLibrary for Rust | Oxide seems some must not be right then, I didnt get to checking the links as the data file kept resetting XD
ServerRewards
Moved
Total Downloads: 14,033 - First Release: Mar 2, 2016 - Last Update: Jun 9, 2018
- 5/5, 61 likes
-
So I added:
"RewardCommands": {
"Make Server Day": {
"Command": "evn.time 10",
"Description": "This command will set the server time to 10:00 making it day",
"Cost": 25
},
"Make Server Night": {
"Command": "evn.time 22",
"Description": "This command will set the server time to 22:00 making it night",
"Cost": 25
}
},
and now I cant get the .json to load again... Unless the config changed and the overview hasnt changed.... -
-
So I added:
"RewardCommands": {
"Make Server Day": {
"Command": "evn.time 10",
"Description": "This command will set the server time to 10:00 making it day",
"Cost": 25
},
"Make Server Night": {
"Command": "evn.time 22",
"Description": "This command will set the server time to 22:00 making it night",
"Cost": 25
}
},
and now I cant get the .json to load again... Unless the config changed and the overview hasnt changed.... -
-
I posted it again becuase I thought maybe you overlooked it... also how am I supposed to know what I need to look for when solving if the config is just always fixed and handed back? I want to learn so I can problem solve my eddits and possibly eventually help others.
Attached Files:
-
-
Ok here is the fix and here is what was changed
Your file
Code:"RewardCommands": { "Make Server Day": { "Command": "evn.time 10", "Description": "This command will set the server time to 10:00 making it day", "Cost": 25 }, "Make Server Night": { "Command": "evn.time 22", "Description": "This command will set the server time to 22:00 making it night", "Cost": 25 } },
Code:"RewardCommands": { "Make Server Day": { "Command": [ "evn.time 10" ], "Description": "This command will set the server time to 10:00 making it day", "Cost": 25 }, "Make Server Night": { "Command": [ "evn.time 22" ], "Description": "This command will set the server time to 22:00 making it night", "Cost": 25 } },
Attached Files:
Last edited by a moderator: Dec 11, 2016 -
-
So if I understand correctly you just put [] around the actual command? Is that because its a console command?
-
If you say wanted it to be something in chat
Code:"RewardCommands": { "chat": { "Command": [ "say RockOn!, $player.name!", "say [I]YeahYeah[/I], $player.name!" ], "Description": "", "Cost": 1 }, "chat2": { "Command": [ "say RockOn!, $player.name!" ], "Description": "", "Cost": 1 } } }
-
so im going to guess that this addon will only reconise chat commands and not console commands?
The addon isnt recognizing "env.time 22" as a command
so then I tried using the Alias system to change the console command to a chat command and it still dosent seem to work...
So the chat command to make it day should be /day and night should be /night and neither seem to work. (replaced env.time XX with the appropiate chat command) I have tried the command both with and without the / infront of the command.Attached Files:
-
-
-
Ummm thats why Im posting in the addon support thread and not mailing you directly.
-
-
k1lly0u updated ServerRewards with a new update entry:
0.3.8
[DOUBLEPOST=1481533321][/DOUBLEPOST]@Razor14150 I just added the command and it worked fine. It runs commands as a server command so doesn't matter whether your a player or admin. Here is exactly what I wrote using chat commands "/rewards add command ChangeTime "env.time 22" 1" -
(04:31:15) | [Oxide] 10:31 [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 -
I have the Same error
-
Just loadimages will fix the problem
Last edited by a moderator: Dec 13, 2016 -
Me too.
-
How do you load the images now that you've changed it?
-