RGLgg / server-resources-updater

A Sourcemod plugin to update RGL.gg approved server resources(cfgs, plugins, etc)
https://rgl.gg
GNU General Public License v3.0
9 stars 8 forks source link

No support for forked servers, actively breaks them. #35

Closed teeklet closed 6 months ago

teeklet commented 3 years ago

Forked servers are broken as this plugin assumes each installation has only 1 sourcemod install and it's at the default location.

If you actually try to run the plugin from another sm install you will break the default installation as the updater dumps a load of plugins into the default folder even if it's being ran from somewhere else.

https://github.com/RGLgg/server-resources-updater/blob/updater-beta/updatefile.txt https://wiki.alliedmods.net/Multiple_or_Forked_Servers_(SourceMod)

l-Aad-l commented 3 years ago

Since this is both a very unique issue and that I have no real way of actually debugging/testing this myself, we'll have to wait for anyone who is able to provide an adequate solution to this via a pull request.

teeklet commented 3 years ago

You can recreate the issue fairly easily. Just rename the addons/sourcemod folder to something else and then launch a tf2 server with +sm_basepath "new path" as a command line option. It will attempt to update the wrong folder.

The only change needed is to make the paths in the update file relative to the sm_basepath convar rather than absolute.

sapphonie commented 3 years ago

this is an issue with the update file using /addons/sourcemod/ instead of using Path_SM