Compare commits
2 Commits
dfe40ecb68
...
bf2e08098f
| Author | SHA1 | Date |
|---|---|---|
|
|
bf2e08098f | |
|
|
3b6d19082b |
|
|
@ -3,6 +3,7 @@
|
|||
# Blax Castes
|
||||
|
||||
[](https://rimworldgame.com)
|
||||
[](https://steamcommunity.com/sharedfiles/filedetails/?id=3848261054)
|
||||
[](https://steamcommunity.com/sharedfiles/filedetails/?id=2009463077)
|
||||
[](#dlc-support)
|
||||
[](CHANGELOG.md)
|
||||
|
|
@ -125,7 +126,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.
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
`-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.
|
||||
|
||||
|
|
|
|||
|
|
@ -17,8 +17,10 @@ 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.
|
||||
-DescriptionOnly with -DescriptionFile: replaces only the description. No build, no
|
||||
content upload, no change note, no title or preview.
|
||||
-Visibility public|friends|private|unlisted who sees the item. Left out, the item keeps its visibility, and a
|
||||
new item gets Steam's default, as with the in-game uploader.
|
||||
-Visibility public|friends|private|unlisted who sees the item. Left out, an existing item keeps its
|
||||
visibility and a new item is created Public (Steam's own default
|
||||
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
|
||||
in-game uploader does.
|
||||
|
|
@ -293,6 +295,8 @@ else {
|
|||
if ($Publish -or (Test-Path -LiteralPath $previewFile)) { $toolArgs += @('--preview', $previewFile) }
|
||||
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 ($Publish) { $toolArgs += '--publish' }
|
||||
|
||||
|
|
|
|||
|
|
@ -61,6 +61,8 @@ 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]
|
||||
|
||||
🎮 [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]
|
||||
[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]
|
||||
|
|
|
|||
Loading…
Reference in New Issue