ServerMod / SCPDiscord

A ServerMod plugin which adds remote interaction to an SCP:SL server through Discord.
https://karlofduty.com
GNU General Public License v3.0
21 stars 28 forks source link

[BUG] Config [scpdiscord_config_global] doesn't change the config path #204

Closed Cyanox62 closed 5 years ago

Cyanox62 commented 5 years ago

Describe the bug Regardless of the config scpdiscord_config_global being true of false, the plugin uses the global config directory. I looked in the code to see that this config was only used in FileManager.GetAppFolder(scpdiscord_config_global), so I made a test plugin with that parameter set to both true and false. Both lines gave me the same file path, as shown in the attached screenshots. This leads me to believe the config option is getting changed, but the change doesn't seen to affect what file path is gotten. The issue is apparent on both my Arch Linux server and my Windows 10 PC.

Screenshots 1

2

Setup

KarlOfDuty commented 5 years ago

It works for me without issue on 3.4.1, could you test in that version just so I know if it's an smod or scpdiscord issue?

Cyanox62 commented 5 years ago

On my Windows PC running Smod 3.4.1 they still return the same file path regardless of the parameter.

KarlOfDuty commented 5 years ago

Very strange, that returns the local one for me.

In any case, as you have investigated yourself above this does appear to be an smod issue as the function above is returning the wrong path. Could you repost this issue over on the smod repo instead?

KarlOfDuty commented 5 years ago

Actually, check your MA config, I think there is a config option there to force the server to only use the global folder, might be you have that on.