Open borzaka opened 5 years ago
From what I remember there was no way to track the versions of the mods to only update when required. But that might of changed since. This issue will need to be investigated
FLAX, an ARMA mod/server tool checks the changelog and/or the last update time to determine if a mod has been updated. This would require a way to keep track when a mod was last updated. This could be done by a simple text/config file in which is written what Workshop id was updated for the last time:
id.time = actual workshop version --> do nothing id.time = not available --> download and install (as new mod being added) id.time = older than last workshop version --> download and update
The issue is about that any source based game server should be stopped during mods update/install/remove and restarted after the update/install/remove is finished (if it was stopped before).
BTW, you can check the latest version filename:
Maybe storing these filenames, and compare it could help not running an update on an already up to date mod.
Will update to stop the server when a mods update is started
From the SourceMod Wiki: Upgrading SourceMod
Running:
./csgoserver mods-update
Expected behaviour A server should be stopped during mods-update, and restart after it's finished.
Additional context
mods-update
is updating the mods regardless the version installed. It's updating even an updated version as well.