docs: serve the Workshop page images from the Blax CDN

This commit is contained in:
Fabian @ Blax Software 2026-11-29 11:59:53 +01:00
parent be2d3d9c63
commit bca7045f6b
4 changed files with 9 additions and 7 deletions

View File

@ -76,7 +76,7 @@ RimWorld 1.7 no longer runs on Unity/Mono. It runs on .NET 10 (CoreCLR) with Lud
It stages only what players need (About, 1.7, Defs, Patches, Languages) in `%TEMP%`, sets the tags the game would (Mod plus the supported versions), and writes every CHANGELOG.md entry since the version in `Tools/workshop-published.txt` as the change note. `-Publish` refuses unless the shipped files are committed and pushed, the top CHANGELOG entry matches `modVersion`, and the last test run passed after the last build. It leaves the title and preview alone; the game's uploader resets the title from About.xml and never updates the description. The in-game route still works: `Tools/workshop-stage.ps1` swaps the junction for a clean copy, upload from Mods > Blax Slaves > More actions (dev mode), then `workshop-stage.ps1 -Done`. It stages only what players need (About, 1.7, Defs, Patches, Languages) in `%TEMP%`, sets the tags the game would (Mod plus the supported versions), and writes every CHANGELOG.md entry since the version in `Tools/workshop-published.txt` as the change note. `-Publish` refuses unless the shipped files are committed and pushed, the top CHANGELOG entry matches `modVersion`, and the last test run passed after the last build. It leaves the title and preview alone; the game's uploader resets the title from About.xml and never updates the description. The in-game route still works: `Tools/workshop-stage.ps1` swaps the junction for a clean copy, upload from Mods > Blax Slaves > More actions (dev mode), then `workshop-stage.ps1 -Done`.
The Workshop description is `docs/workshop-description.txt` (Steam BBCode); `-DescriptionOnly -DescriptionFile docs\workshop-description.txt` replaces just the text, with no build, no content upload and no change note. Steam loads description images as cross-origin requests, so every `[img]` host must send an `Access-Control-Allow-Origin` header or the image shows broken; the script checks each one and `-Publish` refuses otherwise. Forgejo's raw URLs send no such header. `Source/Art/README.md` has the render commands for the art in `docs/art/`. The Workshop description is `docs/workshop-description.txt` (Steam BBCode); `-DescriptionOnly -DescriptionFile docs\workshop-description.txt` replaces just the text, with no build, no content upload and no change note. Steam loads description images as cross-origin requests, so every `[img]` host must send an `Access-Control-Allow-Origin` header or the image shows broken; the script checks each one and `-Publish` refuses otherwise. Forgejo's raw URLs send no such header, so the Steam images are served from `cdn.blax.at/blax-gaming/`, which does. `Source/Art/README.md` has the render and upload commands.
### Tests ### Tests

View File

@ -22,3 +22,5 @@ The Steam description (`docs/workshop-description.txt`) shows section headers fr
``` ```
The other headers: `slaves` (Slaves, "Brands, runaways and calm colonists", flame), `replaces` (Replaces, "Mods you can unsubscribe", replace), `compatibility` (Compatibility, "Plays well with these", puzzle). The other headers: `slaves` (Slaves, "Brands, runaways and calm colonists", flame), `replaces` (Replaces, "Mods you can unsubscribe", replace), `compatibility` (Compatibility, "Plays well with these", puzzle).
The Steam page loads these images from the Blax CDN (`https://cdn.blax.at/blax-gaming/`), not from Forgejo: Steam requests description images cross-origin, and only the CDN answers with `Access-Control-Allow-Origin`. After re-rendering, copy the PNGs to the same paths on the CDN (`blax-gaming/blax-oss-banner.png`, `blax-gaming/slaves/<name>.png`); the upload steps are in Blax's internal infrastructure docs.

View File

@ -2,7 +2,7 @@
✅ RimWorld 1.7 🔧 Needs [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2009463077]Harmony[/url] ⛓️ Slaves need Ideology ⚙️ Every feature can be switched off ✅ RimWorld 1.7 🔧 Needs [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2009463077]Harmony[/url] ⛓️ Slaves need Ideology ⚙️ Every feature can be switched off
[img]https://forgejo.blax.at/blax-software/rimworld-blax-slaves/raw/branch/main/docs/art/steam/trade.png[/img] [img]https://cdn.blax.at/blax-gaming/slaves/trade.png[/img]
[list] [list]
[*]🔁 [b]Buy as slave or colonist.[/b] In the trade window, click "Joins as slave / Joins as colonist" on a pawn the trader sells. The price updates (a slave costs 60% of a colonist, as in vanilla). A setting picks what new stock starts as: the vanilla roll, always slave or always colonist. [*]🔁 [b]Buy as slave or colonist.[/b] In the trade window, click "Joins as slave / Joins as colonist" on a pawn the trader sells. The price updates (a slave costs 60% of a colonist, as in vanilla). A setting picks what new stock starts as: the vanilla roll, always slave or always colonist.
[*]🤝 [b]Every trader buys captives,[/b] visitor groups and the Empire's caravans included. Optionally, factions whose ideoligion rejects slavery refuse, except to ransom their own people. [*]🤝 [b]Every trader buys captives,[/b] visitor groups and the Empire's caravans included. Optionally, factions whose ideoligion rejects slavery refuse, except to ransom their own people.
@ -11,7 +11,7 @@
[*]📡 [b]Request a slaver caravan[/b] from allied outlanders and tribes at the comms console. Vanilla hides slavers from that list. [*]📡 [b]Request a slaver caravan[/b] from allied outlanders and tribes at the comms console. Vanilla hides slavers from that list.
[/list] [/list]
[img]https://forgejo.blax.at/blax-software/rimworld-blax-slaves/raw/branch/main/docs/art/steam/slaves.png[/img] [img]https://cdn.blax.at/blax-gaming/slaves/slaves.png[/img]
[list] [list]
[*]🔥 [b]Branding.[/b] A surgery burns your colony's mark into a slave. Branded slaves lose suppression 15% slower. Rebrand a slave who carries another owner's mark. [*]🔥 [b]Branding.[/b] A surgery burns your colony's mark into a slave. Branded slaves lose suppression 15% slower. Rebrand a slave who carries another owner's mark.
[*]🏷️ [b]Trader slaves come branded.[/b] About a third of the slaves you buy carry a previous owner's brand. [*]🏷️ [b]Trader slaves come branded.[/b] About a third of the slaves you buy carry a previous owner's brand.
@ -22,7 +22,7 @@
⚙️ Every feature has its own switch or number in the mod settings, sorted into Trade, General and Compat tabs. ⚙️ Every feature has its own switch or number in the mod settings, sorted into Trade, General and Compat tabs.
[img]https://forgejo.blax.at/blax-software/rimworld-blax-slaves/raw/branch/main/docs/art/steam/replaces.png[/img] [img]https://cdn.blax.at/blax-gaming/slaves/replaces.png[/img]
Blax Slaves does what these mods do, so you can unsubscribe them. The Compat tab in the settings lists the ones you have active. Blax Slaves does what these mods do, so you can unsubscribe them. The Compat tab in the settings lists the ones you have active.
[list] [list]
[*]♻️ Trade as Slave or Colonist (while it's active, Blax Slaves' own button stands down) [*]♻️ Trade as Slave or Colonist (while it's active, Blax Slaves' own button stands down)
@ -30,7 +30,7 @@ Blax Slaves does what these mods do, so you can unsubscribe them. The Compat tab
[*]♻️ [SYR] More Slaves (can stay: its extra slaves stack on top) [*]♻️ [SYR] More Slaves (can stay: its extra slaves stack on top)
[/list] [/list]
[img]https://forgejo.blax.at/blax-software/rimworld-blax-slaves/raw/branch/main/docs/art/steam/compatibility.png[/img] [img]https://cdn.blax.at/blax-gaming/slaves/compatibility.png[/img]
[list] [list]
[*]✔️ War Crimes Expanded 2 torture and Harvest Organs Post Mortem autopsies count as slave harm. [*]✔️ War Crimes Expanded 2 torture and Harvest Organs Post Mortem autopsies count as slave harm.
[*]✔️ Hospitality visitor groups never keep a runaway who is due to be returned. [*]✔️ Hospitality visitor groups never keep a runaway who is due to be returned.
@ -40,5 +40,5 @@ Blax Slaves does what these mods do, so you can unsubscribe them. The Compat tab
📦 Load after Harmony. 🐛 Source code and issues: [url=https://forgejo.blax.at/blax-software/rimworld-blax-slaves]forgejo.blax.at/blax-software/rimworld-blax-slaves[/url] 📦 Load after Harmony. 🐛 Source code and issues: [url=https://forgejo.blax.at/blax-software/rimworld-blax-slaves]forgejo.blax.at/blax-software/rimworld-blax-slaves[/url]
[hr][/hr] [hr][/hr]
[url=https://www.blax.at][img]https://forgejo.blax.at/blax-software/rimworld-blax-slaves/raw/branch/main/docs/art/blax-oss-banner.png[/img][/url] [url=https://www.blax.at][img]https://cdn.blax.at/blax-gaming/blax-oss-banner.png[/img][/url]
🛠️ [b]Blax Gaming is a project of Blax Software[/b], an Austrian software practice. We write Austrian-quality code in many fields: web platforms, mobile apps, backends, infrastructure, and the mods we play in our own colonies. Need something built? 👉 [url=https://www.blax.at]www.blax.at[/url] 🛠️ [b]Blax Gaming is a project of Blax Software[/b], an Austrian software practice. We write Austrian-quality code in many fields: web platforms, mobile apps, backends, infrastructure, and the mods we play in our own colonies. Need something built? 👉 [url=https://www.blax.at]www.blax.at[/url]

View File

@ -18,4 +18,4 @@ Converting to a GIF needs ffmpeg (on the nixos desktop, or a Windows build). 640
ffmpeg -i raw/trade-buy-mode.mp4 -vf "fps=15,scale=640:-1:flags=lanczos,split[a][b];[a]palettegen[p];[b][p]paletteuse" trade-buy-mode.gif ffmpeg -i raw/trade-buy-mode.mp4 -vf "fps=15,scale=640:-1:flags=lanczos,split[a][b];[a]palettegen[p];[b][p]paletteuse" trade-buy-mode.gif
``` ```
The GIFs go to `docs/media/`, then into `docs/workshop-description.txt` under the matching header as `[img]https://forgejo.blax.at/blax-software/rimworld-blax-slaves/raw/branch/main/docs/media/<file>[/img]`. Push before uploading the description. The GIFs go to `docs/media/` and onto the CDN next to the header art (`cdn.blax.at/blax-gaming/slaves/`, see `Source/Art/README.md`), then into `docs/workshop-description.txt` under the matching header as `[img]https://cdn.blax.at/blax-gaming/slaves/<file>[/img]`. Forgejo raw URLs don't work on Steam (no cross-origin header).