Jump to content

Error creating .json

Closed 1.6.6

Gemma
Gemma

Posted

I already have the Skill Tree.cs in the corresponding plugins folder and when I do o.load or o.reload SkillTree it doesn't create the new default .json, how would it be possible to obtain one?

imthenewguy

Posted

10 minutes ago, Gemma said:

I already have the Skill Tree.cs in the corresponding plugins folder and when I do o.load or o.reload SkillTree it doesn't create the new default .json, how would it be possible to obtain one?

Which json are you referring to? The config or data?

Gemma

Posted

The .json from Oxide/config is the one that isn't created automatically when I hit reload. I'm a bit new to server configuration and I'm learning with a "private" server.

imthenewguy

Posted

What does the console say when you run o.reload?

Gemma

Posted

is this:

Could not initialize plugin 'SkillTree v1.6.6' (FileNotFoundException: Could not find file "/home/tcagame/40625/36426/oxide/config/SkillTree.json") at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in :0 at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) [0x00000] in :0 at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions) at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize) [0x00055] in :0 at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks) [0x00000] in :0 at (wrapper remoting-invoke-with-check) System.IO.StreamReader..ctor(string,System.Text.Encoding,bool) at System.IO.File.InternalReadAllText (System.String path, System.Text.Encoding encoding) [0x00000] in :0 at System.IO.File.ReadAllText (System.String path) [0x0002c] in :0 at Oxide.Plugins.SkillTree.LoadConfig () [0x00020] in <0a6f645ac6de4f6bbd9e1b3210abcff4>:0 at Oxide.Core.Plugins.Plugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x0000f] in <8cb2d664f1574f2b96d53f1c1869d96a>:0 at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <8cb2d664f1574f2b96d53f1c1869d96a>:0 at Oxide.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <42f9bedc659b4f4786eb778d3cd58968>:0 at Oxide.Plugins.RustPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x0028e] in <5dfc721ad48a434bad2c1ac31fc7c77d>:0 at Oxide.Core.Plugins.PluginManager.AddPlugin (Oxide.Core.Plugins.Plugin plugin) [0x00027] in <8cb2d664f1574f2b96d53f1c1869d96a>:0 at Oxide.Core.OxideMod.PluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00035] in <8cb2d664f1574f2b96d53f1c1869d96a>:0

 

Gemma

Posted

I suggested to chat gpt to create a .json but it was doing it from previous versions and telling me that the key was not correct

 

 

Gemma

Posted

Perfect, thanks. Is there anything I need to do to make it work? Wait, configure something?

imthenewguy

Posted

Just now, Gemma said:

Perfect, thanks. Is there anything I need to do to make it work? Wait, configure something?

Nah just run it on your server and it should work.

Gemma

Posted

It loaded without errors, thank you. I have a small question. It tells me that there are no permissions for admin or players. What should I do?

imthenewguy

Posted

What do you mean no permissions for admin or players? Have you assigned the relevant perms?

 

Gemma

Posted

No, I've asked chatgpt but apparently it's very outdated and the commands it tells me about aren't there. It tells me that the SkillTree.use command doesn't exist.

 

imthenewguy

Posted

Just now, Gemma said:

No, I've asked chatgpt but apparently it's very outdated and the commands it tells me about aren't there. It tells me that the SkillTree.use command doesn't exist.

 

Oh, the perms are listed on the plugin page.

 

imthenewguy

Posted

skilltree.chat 	- required to use the chat commands to access the skill tree menu.
skilltree.xp 	- required to obtain xp from xp sources.
skilltree.tree 	- required to access and use the skill tree.
skilltree.admin - required to use the admin commands.
skilltree.all - allows user access to all trees.
skilltree.Mining - allows the user to access the mining tree.
skilltree.Woodcutting - allows the user to access the woodcutting tree.
skilltree.Skinning - allows the user to access the skinning tree.
skilltree.Harvesting - allows the user to access the harvesting tree.
skilltree.Combat - allows the user to access the combat tree.
skilltree.Medical - allows the user to access the medical tree.
skilltree.Build_Craft - allows the user to access the build craft tree.
skilltree.Scavenging - allows the user to access the scavenging tree.
skilltree.Vehicles - allows the user to access the vehicles tree.
skilltree.Cooking - allows the user to access the cooking tree.
skilltree.bag.keepondeath - prevents the ExtraPockets bag from dropping on death.
skilltree.notitles - Removes the level title from the player (Requires BetterChat)
skilltree.noxploss - Prevents xp loss.
skilltree.roguelike - If enabled via the config, will be required to participate in the Roguelike system.
skilltree.teabonus - Ignores the config option preventing the yield increases from working with mining and woodcutting teas.
skilltree.noscoreboard - Prevents players with this permission from being added to the scoreboard.
skilltree.respec.bypass - removes the cost for respeccing
skilltree.togglebc - required to toggle BetterChat titles on/off

I recommend using a permission manager if you aren't already. Shows you exactly what perms each plugin has registered.

Gemma

Posted

Oh perfect, thank you very much, you have helped me a lot!! 😄

  • Love 1
imthenewguy

Posted

Changed Status from Pending to Closed

  • Love 1
1.8m

Downloads

Total number of downloads.

8.2k

Customers

Total customers served.

124.2k

Files Sold

Total number of files sold.

2.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.