Repository navigation
fix: move to SourceMod 1.12 for SteamWorks, refresh the cache when a link URL changes - #11
Merged
Merged
Conversation
SteamWorks 1.2.167 is only built for SourceMod 1.12+ and fails to load on 1.11 ("Could not find interface: IPlayerManager"). The pinned SourceMod 1.11 build (git6906) also returns 404 now.
The cache was keyed by link name only, so an old valid archive was reused after its URL changed in the config. Each archive now stores its source URL next to it. A failed HTTP download (404...) is now reported as a failed download instead of saving the error page as the archive.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #10.
SteamWorks needs SourceMod 1.12. Tested on a CS:S Linux server (32-bit, clean
addons/) withsm exts load SteamWorks.ext:sm1.12failed to load: Could not find interface: IPlayerManagerSteamWorks Extension (1.2.167)So
config.ymlandconfig.example.ymlnow pin MM1.12.0-git1229and SM1.12.0-git7260. The previous SourceMod pin (1.11.0-git6906) also returns 404 on smdrop now, so a fresh install was already failing.Cache keyed by URL (the optional point):
<link>.tar.gz.url); if the URL in the config changed, it is downloaded again. Caches from before this change have no.urlfile, so they are refreshed once.requests.getdidn't check the HTTP status, so a 404 page was saved as the archive and the link then failed at extraction (silently skipped withskipFailedDownload: true).raise_for_status()now reports it as a failed download, and nothing is written to the cache.Tested
download_dependencywith real downloads: dead URL → not cached; 1.11 archive cached → switching the URL to 1.12 downloads again; same URL again → cache reused.Version 0.1.1 → 0.1.2.