Jump to content

Keep getting errors when trying to load plugin

Fixed 1.0.0 1.0.1

SlayersRust

Posted

I made sure to create the Data Folder myself etc and follow instructions but still does not load. I also made sure to reload all plugins like ZoneManager etc. Could you please fix?

[Zone Leaderboard] Configured Leaderboard with Zone ID of 0210472081
[Zone Leaderboard] Configured Leaderboard Type of Top 10
Failed to initialize plugin 'ZoneLeaderboard v1.0.0' (UnauthorizedAccessException: Access to the path "/home/container/oxide/data/ZoneLeaderboard/76561198199287828.json" is denied.)
  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 <f98723dd4586469db5213ec59da723ca>: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 <f98723dd4586469db5213ec59da723ca>: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.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize) [0x00055] in <f98723dd4586469db5213ec59da723ca>:0 
  at System.IO.StreamWriter..ctor (System.String path) [0x00008] in <f98723dd4586469db5213ec59da723ca>:0 
  at (wrapper remoting-invoke-with-check) System.IO.StreamWriter..ctor(string)
  at System.IO.File.WriteAllText (System.String path, System.String contents) [0x00026] in <f98723dd4586469db5213ec59da723ca>:0 
  at Oxide.Core.Configuration.DynamicConfigFile.WriteObject[T] (T config, System.Boolean sync, System.String filename) [0x0003f] in <d646191a355d43a6b3ab36b7ee14c740>:0 
  at Oxide.Core.DataFileSystem.WriteObject[T] (System.String name, T Object, System.Boolean sync) [0x00007] in <d646191a355d43a6b3ab36b7ee14c740>:0 
  at Oxide.Core.DataFileSystem.ReadObject[T] (System.String name) [0x0000f] in <d646191a355d43a6b3ab36b7ee14c740>:0 
  at Oxide.Plugins.ZoneLeaderboard+PlayerStats.LoadPlayer (BasePlayer player) [0x00028] in <ae980964f32442e787dbac4aca51e329>:0 
  at Oxide.Plugins.ZoneLeaderboard.Init () [0x0010e] in <ae980964f32442e787dbac4aca51e329>:0 
  at Oxide.Plugins.ZoneLeaderboard.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00242] in <ae980964f32442e787dbac4aca51e329>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9c80d821d00a44c9a24497c73ad2d20d>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <d646191a355d43a6b3ab36b7ee14c740>:0 
  at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00043] in <d646191a355d43a6b3ab36b7ee14c740>:0 
Unloaded plugin Zone Leaderboard v1.0.0 by Rustic
No previous version to rollback plugin: ZoneLeaderboard

Rustic

Posted

Hey! Just looked into it! You shouldn't have to create the data folder manually (I'm releasing a fix for this). And because you did, the folder has the wrong permissions.

I have just released a fix that will automatically create the data folder. If that does not work, you'll have to adjust the permissions of the ZoneLeaderboard data directory manually, however this patch should fix any issues.

Rustic

Posted

Changed Status from Pending to Fixed

Changed Fixed In to 1.0.1

SlayersRust

Posted

Okay loaded now. But because I use DynamicPVP for adding PVP Zones they dynamically change the zone ID on plugin reload or server restart. But the Zone Name always stays the same, could the plugin use the Zone Name instead of the Zone ID inside of ZoneManager? Without this I cannot use the plugin because of dynamicPVP Always changing the zone ID

Maybe use the name as it seems to always appear the same 
      "Name": "DynamicPVP",

      "Name": "DynamicPVP",
      "Radius": 230.0,
      "Radiation": 0.0,
      "Comfort": 0.0,
      "Temperature": 0.0,
      "SafeZone": false,
      "Location": "2205.77 13.18 -1149.34",
      "Size": "0 0 0",
      "Rotation": "0 0 0",
      "Id": "0650362328",

Rustic

Posted

releasing a feature for this right now! Please excuse my lateness.

SlayersRust

Posted

2 hours ago, Rustic said:

releasing a feature for this right now! Please excuse my lateness.

Thanks so much! I’ll try it out today 💙

SlayersRust

Posted

Okay I tested and placed the correct name into the ZoneLeaderboard config and it keeps saying this in console when loading. Any idea what I'm doing wrong?

Here is what it looks like in ZoneManager. And here is your config for zoneleaderboard. I didnt use the ID because DynamicPVP plugin changes the ID each time but leaves the name the same.
      "Name": "DynamicPVP",
      "Radius": 230.0,
      "Radiation": 0.0,
      "Comfort": 0.0,
      "Temperature": 0.0,
      "SafeZone": false,
      "Location": "2205.77 13.18 -1149.34",
      "Size": "0 0 0",
      "Rotation": "0 0 0",
      "Id": "0355276249",
      "ParentID": null,
      "EnterMessage": "<color=#D0342C>WARNING</color>: You are now entering a <color=#D0342C>PVP</color> Zone! <color=#D0342C>**Backpacks Drop in PVP Zone and NO Teleport or Trade**</color>",
      "LeaveMessage": "Leaving <color=#D0342C>PVP</color> Zone and Returning to <color=#00c04b>PVE</color> Zone.",
      "Permission": null,
      "EjectSpawns": null,
      "Enabled": true,
      "Flags": ""
    }
  ]
}

{
  "General Options": {
    "Combat Zone ID": "",
    "Combat Zone Name": "DynamicPVP",
    "Leaderboard Type (Top 10 or Top 5)": "Top 10",
    "Sort By (Kills, Deaths, or Ratio)": "Kills",
    "Include Offline Players": "true",
    "Include Suicides": "false"
  }
}

What appears to be the issue is when I do "o.reload ZoneLeaderboard" it also will automatically unload DynamicPVP before your plugin so the zone does not exist yet. When ZoneLeaderboard is loaded already after the fact dynamicpvp is then loaded and creates the zone. I do not know how to make this plugin stop reloading I think its a part of how ZoneManager and DynamicPvp operate. Do you have any idea how to fix this??

1.7m

Downloads

Total number of downloads.

7.8k

Customers

Total customers served.

117.5k

Files Sold

Total number of files sold.

2.4m

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.