Jump to content

Hard coded Rust location?

Closed 1.1.0 1.2.0

"Failed to initialize plugin 'StaticDispensers v1.1.0' (Exception: Only access to oxide directory!
Path: C:\GameServers\Rust\oxide\config\StaticDispensers.json)
"

I just added StaticDispensers to my test server and it looks like the path to the config json is hardcoded (or it's assuming that the oxide directory is directly under the \Rust\ directory) so the plugin is failing to load. However I use the method where the server locations are set in a sub-directory at \Rust\server\ and the oxide directory is in a sub-directory of each server so that all my servers are together and I only need a single installation of Rust to run them all, like this:-

RustDedicated.exe -batchmode -nographics -logfile output_log.txt ^
+server.identity "PvPTEST" ^
+oxide.directory "\server\{server.identity}\oxide" ^

As you can see in the console output at the bottom of this request it looks like the plugin is assuming that all installations of Rust are in the default path, whereas I know server owners who use the same method as I do so that a single installation of Rust is used. (This makes it easier to update Rust at wipe time, edit server files, do backups and keep everything neat and tidy all from a single installation.) These two images show the directory structure of my single Rust installation, plus all the servers I run underneath it.

pArehFa.jpg

And each server looks like this with \cfg\ and \oxide\ in the same place:-

ggXMUMU.jpg

 

Full console output NRE:-

Quote

Failed to initialize plugin 'StaticDispensers v1.1.0' (Exception: Only access to oxide directory!
Path: C:\GameServers\Rust\oxide\config\StaticDispensers.json)
at Oxide.Core.Configuration.DynamicConfigFile.CheckPath (System.String filename) [0x00029] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
at Oxide.Core.Configuration.DynamicConfigFile.Exists (System.String filename) [0x0000c] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
at Oxide.Plugins.StaticDispensers.Loaded () [0x00006] in <186116a08e054a5291e53ca757c86e4f>:0
at Oxide.Plugins.StaticDispensers.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x001de] in <186116a08e054a5291e53ca757c86e4f>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <3606d2af539c45e4b5c61658e6a8b307>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
at Oxide.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x0006e] in <3606d2af539c45e4b5c61658e6a8b307>:0

 

Edited by PPlank
More detail

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

81.1k

Files Sold

Total number of files sold.

1.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.