Exiled-Team / EXILED

A high-level plugin framework for SCP: Secret Laboratory servers. It offers an event system for developers to hook in order to manipulate or change game code, or implement their own functions.
https://www.exiled.to/
Other
278 stars 176 forks source link

[FEATURE REQUEST] Allow use of non-default paths #2371

Closed Greelan closed 11 months ago

Greelan commented 11 months ago

I'm using ahoster_policy.txt file to force SCP:SL to create an AppData directory alongside the server binary, and look for configs, plugins etc there. This was recommended by Northwood as a way of consolidating files for the purpose of using a hosting panel.

EXILED does not honour it tho. If I install the files manually in AppData, it runs from there fine, but creates its configs still (plus reinstalls its deps) in %AppData%\Roamingor ~/.config.

I see that Paths.cs hardwires the location. Is it possible to introduce some flexibility here to specify an alternative path for EXILED to use, say through an environment variable?

joker-119 commented 11 months ago

You see Paths.cs hardwires the locations, but you failed to see the config value for Exiled.Loader that allows you to change the directory path to something else.

Greelan commented 11 months ago

OK, useful to know, thanks. I assume you are referring to ExiledDirectoryPath?

Now, how to use it? Do I need to use the installers for this to be configured, or can I do it with manual installation?

VALERA771 commented 11 months ago

You can manually install, change path and then move everything from /EXILED to your new path. In config it's just a path from which EXILED will be loaded

Greelan commented 11 months ago

Yeah, I've figured it out.

In AppData/SCP Secret Laboratory/PluginAPI/plugins/global/Exiled Loader/config.yml, I can change exiled_directory_path to AppData/EXILED