Compare commits

..

No commits in common. "bf2e08098f4670666e6a0a525e7a42d3a6764dd6" and "dfe40ecb6880cfa5731e17fc862195e354356de1" have entirely different histories.

3 changed files with 3 additions and 10 deletions

View File

@ -3,7 +3,6 @@
# Blax Castes # Blax Castes
[![RimWorld 1.7](https://img.shields.io/badge/RimWorld-1.7-19C63C)](https://rimworldgame.com) [![RimWorld 1.7](https://img.shields.io/badge/RimWorld-1.7-19C63C)](https://rimworldgame.com)
[![Steam Workshop](https://img.shields.io/badge/Steam_Workshop-subscribe-1b2838?logo=steam)](https://steamcommunity.com/sharedfiles/filedetails/?id=3848261054)
[![Needs Harmony](https://img.shields.io/badge/needs-Harmony-050805)](https://steamcommunity.com/sharedfiles/filedetails/?id=2009463077) [![Needs Harmony](https://img.shields.io/badge/needs-Harmony-050805)](https://steamcommunity.com/sharedfiles/filedetails/?id=2009463077)
[![Any DLC combination](https://img.shields.io/badge/DLCs-any_combination-5a6b5d)](#dlc-support) [![Any DLC combination](https://img.shields.io/badge/DLCs-any_combination-5a6b5d)](#dlc-support)
[![Status: 1.0](https://img.shields.io/badge/status-1.0-CDCDCD)](CHANGELOG.md) [![Status: 1.0](https://img.shields.io/badge/status-1.0-CDCDCD)](CHANGELOG.md)
@ -126,7 +125,7 @@ Works with the other Blax mods: Castes has no hard dependency on Blax Slaves or
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. The title comes from About.xml and the preview is `About/Preview.png`. `-Publish` refuses unless the shipped files are committed and pushed, the top CHANGELOG entry matches `modVersion`, and two test runs passed after the last build: one with every installed DLC and one with `-NoDlc` (`Tests/run-tests.ps1` keeps both results as the "all" and "nodlc" copies). It also refuses while a `forgejo.blax.at` link in the description needs a login, so the repo has to be public before the first upload. 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. The title comes from About.xml and the preview is `About/Preview.png`. `-Publish` refuses unless the shipped files are committed and pushed, the top CHANGELOG entry matches `modVersion`, and two test runs passed after the last build: one with every installed DLC and one with `-NoDlc` (`Tests/run-tests.ps1` keeps both results as the "all" and "nodlc" copies). It also refuses while a `forgejo.blax.at` link in the description needs a login, so the repo has to be public before the first upload.
The Workshop item is [3848261054](https://steamcommunity.com/sharedfiles/filedetails/?id=3848261054) (`About/PublishedFileId.txt`), so `-Publish` updates it. Without that file the first `-Publish` creates a new Workshop item, Public unless you pass `-Visibility private` (Steam's own default for a new item is Private), and uses `docs/workshop-description.txt` as its description. It writes the new id to `About/PublishedFileId.txt` before the content upload, so a failed upload is retried as an update and never makes a second item, and writes `Tools/workshop-published.txt` after a successful one. Commit both files. From then on `-Publish` updates that item. The in-game route still works: `Tools/workshop-stage.ps1` swaps the junction for a clean copy, upload from Mods > Blax Castes > Advanced... > Upload to Steam Workshop (dev mode), then `workshop-stage.ps1 -Done` copies the new id back into the repo. There is no `About/PublishedFileId.txt` yet, so the first `-Publish` creates a new Workshop item and uses `docs/workshop-description.txt` as its description. It writes the new id to `About/PublishedFileId.txt` before the content upload, so a failed upload is retried as an update and never makes a second item, and writes `Tools/workshop-published.txt` after a successful one. Commit both files. From then on `-Publish` updates that item. The in-game route still works: `Tools/workshop-stage.ps1` swaps the junction for a clean copy, upload from Mods > Blax Castes > Advanced... > Upload to Steam Workshop (dev mode), then `workshop-stage.ps1 -Done` copies the new id back into the repo.
`-DescriptionOnly -DescriptionFile docs\workshop-description.txt` replaces just the text of an existing item, 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. `-DescriptionOnly -DescriptionFile docs\workshop-description.txt` replaces just the text of an existing item, 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.

View File

@ -17,10 +17,8 @@ Without About\PublishedFileId.txt it creates a new Workshop item; with it, it up
published from here yet (no Tools\workshop-published.txt). A new item needs one. published from here yet (no Tools\workshop-published.txt). A new item needs one.
-DescriptionOnly with -DescriptionFile: replaces only the description. No build, no -DescriptionOnly with -DescriptionFile: replaces only the description. No build, no
content upload, no change note, no title or preview. content upload, no change note, no title or preview.
-Visibility public|friends|private|unlisted who sees the item. Left out, an existing item keeps its -Visibility public|friends|private|unlisted who sees the item. Left out, the item keeps its visibility, and a
visibility and a new item is created Public (Steam's own default new item gets Steam's default, as with the in-game uploader.
for a new item is Private). Pass -Visibility private to review a
new item before anyone else sees it.
The title is About.xml's name and the preview is About\Preview.png (under 1 MB), set on every upload like the The title is About.xml's name and the preview is About\Preview.png (under 1 MB), set on every upload like the
in-game uploader does. in-game uploader does.
@ -295,8 +293,6 @@ else {
if ($Publish -or (Test-Path -LiteralPath $previewFile)) { $toolArgs += @('--preview', $previewFile) } if ($Publish -or (Test-Path -LiteralPath $previewFile)) { $toolArgs += @('--preview', $previewFile) }
if ($DescriptionFile) { $toolArgs += @('--description-file', $DescriptionFile) } if ($DescriptionFile) { $toolArgs += @('--description-file', $DescriptionFile) }
} }
# Steam creates new items Private; a release is meant to be seen, so a new item is Public unless told otherwise.
if (-not $Visibility -and $create) { $Visibility = 'public' }
if ($Visibility) { $toolArgs += @('--visibility', $Visibility) } if ($Visibility) { $toolArgs += @('--visibility', $Visibility) }
if ($Publish) { $toolArgs += '--publish' } if ($Publish) { $toolArgs += '--publish' }

View File

@ -61,8 +61,6 @@ Blax Castes sets what these mods set when a pawn joins. While one of them is act
📦 Load after Harmony. 🐛 Source code and issues: [url=https://forgejo.blax.at/blax-software/rimworld-blax-castes]forgejo.blax.at/blax-software/rimworld-blax-castes[/url] 📦 Load after Harmony. 🐛 Source code and issues: [url=https://forgejo.blax.at/blax-software/rimworld-blax-castes]forgejo.blax.at/blax-software/rimworld-blax-castes[/url]
🎮 [b]More Blax Gaming mods:[/b] [url=https://steamcommunity.com/sharedfiles/filedetails/?id=3847282171]Blax Slaves[/url] (slavers, brands and runaways), [url=https://steamcommunity.com/sharedfiles/filedetails/?id=3848261160]Blax Zones[/url] (delivery zones and caravan camps), [url=https://steamcommunity.com/sharedfiles/filedetails/?id=3848261264]Blax Defaults[/url] (starting settings for storage and bills). Each works on its own and with the others.
[hr][/hr] [hr][/hr]
[url=https://www.blax.at][img]https://cdn.blax.at/blax-gaming/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]