Skip to content

fix: move to SourceMod 1.12 for SteamWorks, refresh the cache when a link URL changes - #11

Merged
Rushaway merged 3 commits into
srcdslab:masterfrom
WareZ57:fix/sm112-cache-url
Nov 3, 2026
Merged

Rushaway merged 3 commits into
srcdslab:masterfrom
WareZ57:fix/sm112-cache-url

Conversation

@WareZ57

@WareZ57 WareZ57 commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Fixes #10.

SteamWorks needs SourceMod 1.12. Tested on a CS:S Linux server (32-bit, clean addons/) with sm exts load SteamWorks.ext:

Metamod / SourceMod SteamWorks 1.2.167 sm1.12
MM 1.11.0-git1148 / SM 1.11.0.6970 ❌ failed to load: Could not find interface: IPlayerManager
MM 1.12.0-git1229 / SM 1.12.0.7260 ✅ SteamWorks Extension (1.2.167)

So config.yml and config.example.yml now pin MM 1.12.0-git1229 and SM 1.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):

  • each cached archive stores its source URL next to it (<link>.tar.gz.url); if the URL in the config changed, it is downloaded again. Caches from before this change have no .url file, so they are refreshed once.
  • requests.get didn't check the HTTP status, so a 404 page was saved as the archive and the link then failed at extraction (silently skipped with skipFailedDownload: true). raise_for_status() now reports it as a failed download, and nothing is written to the cache.

Tested download_dependency with 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.

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.
@Rushaway
Rushaway merged commit 37ad5e4 into srcdslab:master Nov 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SteamWorks sm1.12 build vs SourceMod/Metamod 1.11 pinned in config

2 participants