feat: Workshop page and art

Preview in the shared Blax Gaming layout, mod icon with the layers badge, six Steam section headers, the Workshop description and a shot list for in-game clips.
This commit is contained in:
Fabian @ Blax Software 2026-11-29 20:49:46 +01:00
parent a1ffdddae1
commit 620ac8dbf3
21 changed files with 314 additions and 90 deletions

1
.gitignore vendored
View File

@ -7,3 +7,4 @@ Tests/**/bin/
Tests/**/obj/ Tests/**/obj/
Tools/**/bin/ Tools/**/bin/
Tools/**/obj/ Tools/**/obj/
docs/media/raw/

View File

@ -18,23 +18,34 @@
<loadAfter> <loadAfter>
<li>brrainz.harmony</li> <li>brrainz.harmony</li>
</loadAfter> </loadAfter>
<description>Policy bundles and join defaults. Works with any combination of DLCs, or none. <description>Policy bundles and join defaults. A caste sets a pawn's policies, schedule and work priorities in one step, and every pawn that joins or changes status goes into the right caste. Works with any DLC combination, core only included; the parts that need a DLC say so.
- A caste bundles an apparel, food, drug and reading policy, a medical care level, a daily schedule and work priorities. Putting a pawn in a caste sets every slot the caste manages in one step. &lt;color=#19C63C&gt;Castes&lt;/color&gt;
- Work priorities: set only the work types you pick, such as Firefighting 1 for everyone or Growing 1 for field slaves. Work a pawn cannot do is skipped. Off while an automatic work manager (Work Tab, Free Will, Work Manager, AutoPriorities, WorkRoles) is active. - Up to eight settings per caste: apparel, food, drug and reading policy, medical care, schedule, work priorities and, with [1001] Weapons Tab Reborn, the weapon loadout. Each is set or left alone.
- With [1001] Weapons Tab Reborn, a caste can also set the weapon loadout.
- Change a caste's setting and its members follow, except pawns you changed by hand. - Change a caste's setting and its members follow, except pawns you changed by hand.
- Ready-made Colonist, Slave (Ideology) and Prisoner castes, already picked for the ways pawns join. Colonist copies your default policies, so in a new game colonists see no change. An existing save gets them too, and nobody moves until you click "Assign by status". - Schedule: paint the caste's 24 hours like in the Schedule tab, or copy them from a pawn. Meditate hours need Royalty.
- Every status change uses its join row: bought, recruited, enslaved or freed (Ideology), arrested, released or captured. A pawn you buy arrives with its caste's outfit and food policy already set, and a message names the caste. - Work priorities: set only the work types you pick (1 to 4 or off), such as Firefighting 1 for everyone or Growing 1 for field slaves. "Start from nothing" turns all other work off, except Patient and Bed rest.
- A colonist or slave that comes back within 60 days (released, bought back) gets its old caste back, with the changes you made by hand.
- Prisoners in a caste get its food policy and medical care only. - Prisoners in a caste get its food policy and medical care only.
- Assign, Schedule and Work tabs: a Caste column (click a cell, or drag down the column to give several pawns the same caste), with a "Manage castes" button above it and, in the Assign and Schedule tabs, "Defaults". The caste manager works like the vanilla policy windows, with a schedule painted like the Schedule tab, a member count, "Apply to all members" and "Assign by status".
- A pawn that leaves your faction leaves its caste.
- Covers Automatic Slave Outfit, PrisonerDefaults and the join, schedule and work defaults of Better Pawn Control and 1trickPwnyta's Defaults, and warns while one of them is active.
- DLCs: Meditate hours need Royalty, slaves Ideology, babies and Childcare Biotech, mutants and Dark study Anomaly, Fishing and gravships Odyssey. Without a DLC its part switches off and everything else keeps working. When a DLC is turned off for a save, Castes keeps its Meditate hours and work priorities from that DLC and uses them again once the DLC is back.
- Turn it off in the mod settings and castes stop changing pawns. Removing the mod leaves every pawn on its last settings.
Multiplayer: not supported yet. &lt;color=#19C63C&gt;Join defaults&lt;/color&gt;
- Five join rows (bought as slave, bought as colonist, new colonist, new slave, new prisoner) pick the caste for every status change: buying, recruiting, arresting, releasing and capturing, plus enslaving, freeing and imprisoning a slave (Ideology). A slave you buy arrives with its caste's outfit and food policy already set.
- Starter castes: Colonist (your default policies), Slave (Ideology: Slave outfit, Simple food, No drugs) and Prisoner (Simple food), already picked in the join rows. An existing save gets them once, and nobody moves until you click "Assign by status".
- A colonist or slave that comes back within 60 days with the same status (released, bought back) gets its old caste back, with your hand changes.
- A pawn that leaves your faction leaves its caste. Caravans, pods, shuttles and kidnapped pawns keep theirs.
&lt;color=#19C63C&gt;Caste column&lt;/color&gt;
- A Caste column in the Assign, Schedule and Work tabs: click a cell, or drag down the column to give several pawns the same caste.
- "Manage castes" above the column opens the caste manager, built on the vanilla policy window. "Defaults" (Assign and Schedule tabs) picks the join rows.
&lt;color=#19C63C&gt;Other mods&lt;/color&gt;
- Covers Automatic Slave Outfit and PrisonerDefaults, and the join defaults of Better Pawn Control (and its fork) and 1trickPwnyta's Defaults. Warns while one of them is active.
- Blax Slaves and Trade as Slave or Colonist: a pawn bought as slave or colonist lands in the matching row.
- Work Tab replaces the vanilla work priorities, and Free Will, Work Manager, AutoPriorities and WorkRoles set them automatically, so the work priorities slot is off while one of them is active.
- Multiplayer: not supported.
DLCs: slaves need Ideology, Meditate hours Royalty, Childcare Biotech, Dark study Anomaly, Fishing Odyssey. Without a DLC its part switches off and everything else keeps working.
The mod settings switch each part off: work priorities, the loadout, join defaults, the old caste on return, starter castes, warnings and the Caste column. With "Castes set policies" off, castes stop changing pawns. Removing the mod leaves every pawn on its last settings.
&lt;color=#19C63C&gt;Made by Blax&lt;/color&gt; &lt;color=#19C63C&gt;Made by Blax&lt;/color&gt;
Blax Gaming is a project of Blax Software, 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. www.blax.at</description> Blax Gaming is a project of Blax Software, 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. www.blax.at</description>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 88 KiB

View File

@ -4,20 +4,20 @@
[![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)
[![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/DLC-any_combination-5a6b5d)](#dlc-support) [![Any DLC combination](https://img.shields.io/badge/DLCs-any_combination-5a6b5d)](#dlc-support)
[![Status: 1.0 in progress](https://img.shields.io/badge/status-1.0_in_progress-CDCDCD)](docs/design.md) [![Status: 1.0](https://img.shields.io/badge/status-1.0-CDCDCD)](CHANGELOG.md)
RimWorld mod (1.7) by Blax Gaming: policy bundles and join defaults. Every slave you buy needs its apparel, food, drug and reading policy, its schedule and its work priorities set by hand. Blax Castes bundles those settings into castes such as Slave or Miner slave, and puts each pawn into the right caste the moment it joins or changes status. Needs Harmony. Works with any combination of DLCs, or none: see [DLC support](#dlc-support) for what each one adds. RimWorld mod (1.7) by Blax Gaming: policy bundles and join defaults. Every slave you buy needs its apparel, food, drug and reading policy, its schedule and its work priorities set by hand. Blax Castes bundles those settings into castes such as Slave or Miner slave, and puts each pawn into the right caste the moment it joins or changes status. Needs Harmony. Works with any combination of DLCs, or none: see [DLC support](#dlc-support) for what each one adds.
Design and roadmap: `docs/design.md`. Design and roadmap: `docs/design.md`. Planned next: a caste button on selected pawns and new caste from a pawn (1.1), allowed area, hostility, self-tend, carried medicine and fire at will per caste (1.2), a caste for every way a pawn joins, children included (1.3).
## Features (1.0) ## Features (1.0)
- 📦 **Castes.** A caste manages up to eight slots: apparel, food, drug and reading policy, medical care, schedule, work priorities and, with [1001] Weapons Tab Reborn, the weapon loadout. Each slot is set or left alone. Putting a pawn in a caste writes every managed slot through the vanilla setters (and Weapons Tab Reborn's own API for the loadout). `Source/BlaxCastes/Caste.cs`, `CasteUtility.cs` - 📦 **Castes.** A caste manages up to eight slots: apparel, food, drug and reading policy, medical care, schedule, work priorities and, with [1001] Weapons Tab Reborn, the weapon loadout. Each slot is set or left alone. Putting a pawn in a caste writes every managed slot through the vanilla setters (and Weapons Tab Reborn's own API for the loadout). `Source/BlaxCastes/Caste.cs`, `CasteUtility.cs`
- ✅ **Per-slot checks.** Apparel, drugs, reading and the schedule need the pawn's tracker and skip quest lodgers, prisoners and mutants without policies; apparel also skips mutants that wear no apparel, and the schedule skips the mutants the Schedule tab leaves out. Food needs a configurable food tracker and skips babies and mutants without policies. Medical care needs player settings and a flesh pawn. Work priorities and the loadout are for colonists and slaves only. So a prisoner in a caste gets its food policy and medical care only. - ✅ **Per-slot checks.** Apparel, drugs, reading and the schedule need the pawn's tracker and skip quest lodgers, prisoners and mutants without policies; apparel also skips mutants that wear no apparel, and the schedule skips the mutants the Schedule tab leaves out. Food needs a configurable food tracker and skips babies and mutants without policies. Medical care needs player settings and a flesh pawn. Work priorities and the loadout are for colonists and slaves only. So a prisoner in a caste gets its food policy and medical care only.
- 🕒 **Schedule.** A caste can carry a full day: 24 hours of anything, work, recreation, sleep or meditate (Royalty). The manager paints it like the vanilla Schedule tab: pick the activity with the vanilla selector, then click or drag over the hours. A drag paints only when it starts on the hours, so dragging the scrollbar past them never paints. "Copy from pawn" takes the schedule of one of your colonists or slaves, and "Leave alone" stops managing it. While the caste leaves the schedule alone, the first painted hour (or a copy) gives every member the whole day; the tooltips say so. A pawn whose whole day matches the caste follows every change; one hour changed by hand and the pawn keeps its own. Meditate hours need Royalty: without it they act as Anything, the caste keeps them for when Royalty is back, and a note under the grid names them. An hour whose activity came from a removed mod becomes Anything. `Source/BlaxCastes/ScheduleSlot.cs` - 🕒 **Schedule.** A caste can carry a full day: 24 hours of anything, work, recreation, sleep or meditate (Royalty). The manager paints it like the vanilla Schedule tab: pick the activity with the vanilla selector, then click or drag over the hours. A drag paints only when it starts on the hours, so dragging the scrollbar past them never paints. "Copy from pawn" takes the schedule of one of your colonists or slaves, and "Leave alone" stops managing it. While the caste leaves the schedule alone, the first painted hour (or a copy) gives every member the whole day; the tooltips say so. A pawn whose whole day matches the caste follows every change; one hour changed by hand and the pawn keeps its own. Meditate hours need Royalty: without it they act as Anything, the caste keeps them for when Royalty is back, and a note under the grid names them. An hour whose activity came from a removed mod becomes Anything. `Source/BlaxCastes/ScheduleSlot.cs`
- 🛠️ **Work priorities.** A caste sets only the work types you pick, each to 1, 2, 3, 4 or off; the rest stay as they are. So every caste can set Firefighting to 1, and a Field slave caste Growing 1 and Plant cutting 2. Work types a pawn cannot do are skipped. With manual priorities off, any number means on; Castes still stores the caste's number, so turning manual priorities on later leaves every member following its caste. "Start from nothing" turns every other work type off first, for castes that should do only their listed work; Patient and Bed rest stay as they are, because they are how a hurt or sick colonist or slave goes to bed. The Follow rule works per work type. Childcare (Biotech), Dark study (Anomaly) and Fishing (Odyssey) are listed while their DLC is on; while it is off a caste keeps their priorities, skips them and names them in a note with a "Forget these" button for a DLC you dropped for good, "Start from nothing" turns no work off when only such types are listed, and "Apply to all members" hides when they are all the caste manages. The slot turns itself off while Work Tab, Free Will, Work Manager, AutoPriorities or WorkRoles is active, because those set priorities all the time. `Source/BlaxCastes/WorkSlot.cs` - 🛠️ **Work priorities.** A caste sets only the work types you pick, each to 1, 2, 3, 4 or off; the rest stay as they are. So every caste can set Firefighting to 1, and a Field slave caste Growing 1 and Plant cutting 2. Work types a pawn cannot do are skipped. With manual priorities off, any number means on; Castes still stores the caste's number, so turning manual priorities on later leaves every member following its caste. "Start from nothing" turns every other work type off first, for castes that should do only their listed work; Patient and Bed rest stay as they are, because they are how a hurt or sick colonist or slave goes to bed. The Follow rule works per work type. Childcare (Biotech), Dark study (Anomaly) and Fishing (Odyssey) are listed while their DLC is on; while it is off a caste keeps their priorities, skips them and names them in a note with a "Forget these" button for a DLC you dropped for good, "Start from nothing" turns no work off when only such types are listed, and "Apply to all members" hides when they are all the caste manages. The slot turns itself off while one of these is active: Work Tab replaces the vanilla work priorities, and Free Will, Work Manager, AutoPriorities and WorkRoles set them automatically. `Source/BlaxCastes/WorkSlot.cs`
- 🗡️ **Weapon loadout.** With [1001] Weapons Tab Reborn active, a caste can set the pawn's weapon loadout: a Guard caste the rifle loadout, a Slave caste the unarmed one. Without the mod the row is hidden. Castes calls the API Weapons Tab Reborn publishes for Better Pawn Control, found by reflection; if that API is missing or fails, the slot turns itself off with one warning in the log, and a call that fails never counts as a deleted loadout. In a save made without Weapons Tab Reborn, Castes creates the mod's loadout database the way the mod does, so the slot works at once. A loadout deleted in Weapons Tab Reborn becomes unmanaged in the caste, with one warning. `Source/BlaxCastes/WeaponsTab.cs` - 🗡️ **Weapon loadout.** With [1001] Weapons Tab Reborn active, a caste can set the pawn's weapon loadout: a Guard caste a rifle loadout you made, a Slave caste the Pacifist loadout. Without the mod the row is hidden. Castes calls the API Weapons Tab Reborn publishes for Better Pawn Control, found by reflection; if that API is missing or fails, the slot turns itself off with one warning in the log, and a call that fails never counts as a deleted loadout. In a save made without Weapons Tab Reborn, Castes creates the mod's loadout database the way the mod does, so the slot works at once. A loadout deleted in Weapons Tab Reborn becomes unmanaged in the caste, with one warning. `Source/BlaxCastes/WeaponsTab.cs`
- 🔗 **Members follow their caste.** Change a caste's slot and every member still on the old value gets the new one. Members you changed by hand keep theirs. A slot that was left alone and becomes managed reaches every member; a slot that stops being managed changes nobody. Edits inside a policy (the Slave outfit's filter) reach members through the vanilla reference. `Source/BlaxCastes/CasteManager.cs` - 🔗 **Members follow their caste.** Change a caste's slot and every member still on the old value gets the new one. Members you changed by hand keep theirs. A slot that was left alone and becomes managed reaches every member; a slot that stops being managed changes nobody. Edits inside a policy (the Slave outfit's filter) reach members through the vanilla reference. `Source/BlaxCastes/CasteManager.cs`
- 🌱 **Starter castes.** A new game starts with three castes, already picked in the join defaults: Colonist (your current default apparel, food, drug and reading policy, medical care left alone), Slave (the Slave outfit, Simple food, No drugs; reading and medical care left alone) and Prisoner (Simple food). Bought and new colonists use Default caste, which is Colonist; bought and new slaves use Slave; new prisoners use Prisoner. The starting colonists go into Colonist, so their policies do not change. Policies are found by their starting names (No drugs by its source def); one that was renamed or deleted leaves its slot alone. Without Ideology there is no Slave caste and the slave rows stay at No caste; the settings say so under the starter castes option. A save started without Ideology gets the Slave caste on its first load with Ideology, wired to the slave rows that are still at No caste, with one message; such a save has no Slave outfit (the game makes it only in a new game with Ideology), so Castes makes one for that caste, the only policy it creates without a click. A save without castes gets the starter castes once, on load, with one message (it points to the mod settings while the Caste column is off); nobody moves until you click "Assign by status", which gives each pawn its caste's policies in place of its own. `Source/BlaxCastes/StarterCastes.cs` - 🌱 **Starter castes.** A new game starts with three castes, already picked in the join defaults: Colonist (your current default apparel, food, drug and reading policy, medical care left alone), Slave (the Slave outfit, Simple food, No drugs; reading and medical care left alone) and Prisoner (Simple food). Bought and new colonists use Default caste, which is Colonist; bought and new slaves use Slave; new prisoners use Prisoner. The starting colonists go into Colonist, so their policies do not change. Policies are found by their starting names (No drugs by its source def); one that was renamed or deleted leaves its slot alone. Without Ideology there is no Slave caste and the slave rows stay at No caste; the settings say so under the starter castes option. A save started without Ideology gets the Slave caste on its first load with Ideology, wired to the slave rows that are still at No caste, with one message; such a save has no Slave outfit (the game makes it only in a new game with Ideology), so Castes makes one for that caste, the only policy it creates without a click. A save without castes gets the starter castes once, on load, with one message (it points to the mod settings while the Caste column is off); nobody moves until you click "Assign by status", which gives each pawn its caste's policies in place of its own. `Source/BlaxCastes/StarterCastes.cs`
- 🗂️ **Caste manager.** Assign tab > "Manage castes" above the Caste column. It is the vanilla policy manager: the caste list with new, duplicate, rename, delete and make default on the left, and on the right a scrolling list of the slots: one row per policy with a "managed" checkbox, a dropdown and a pencil that opens the vanilla editor for that policy, the weapon loadout row while Weapons Tab Reborn is active, the schedule grid and a cycle button per work type (leave alone, 1, 2, 3, 4, off) with "Start from nothing". Clicking a cycle button several times in a row moves only the members that followed the work type before the first click, so a pawn you set by hand to a value the cycle passes through keeps it; pawns "Assign by status" puts into the caste in between start on the caste's value and follow the next clicks too. Ticking a slot starts it at the game's default policy (or the colonist default medical care, or Weapons Tab Reborn's default loadout). The work priorities are greyed out, with a note, while the setting is off or an automatic work manager is active. Below the slots: the member count and "Apply to all members", which asks first, naming the count, and then sets every managed slot on every member, hand changes included. Next to the close button, "Assign by status (N)" shows while pawns without a caste exist: it asks first, because it replaces those pawns' own policies with their caste's, then puts each into the caste of its new colonist, new slave or new prisoner row, and skips pawns you set to No caste. "Make default" explains the default caste in its tooltip. When the game has no Slave outfit, a "Create Slave outfit" button makes one. A caste using the Slave outfit warns that it has no cold protection. Deleting a caste leaves its members casteless on their current policies, and join rows that pointed at it fall back to No caste. `Source/BlaxCastes/Dialog_ManageCastes.cs` - 🗂️ **Caste manager.** Assign tab > "Manage castes" above the Caste column. It is the vanilla policy manager: the caste list with new, duplicate, rename, delete and make default on the left, and on the right a scrolling list of the slots: one row per policy with a "managed" checkbox, a dropdown and a pencil that opens the vanilla editor for that policy, the weapon loadout row while Weapons Tab Reborn is active, the schedule grid and a cycle button per work type (leave alone, 1, 2, 3, 4, off) with "Start from nothing". Clicking a cycle button several times in a row moves only the members that followed the work type before the first click, so a pawn you set by hand to a value the cycle passes through keeps it; pawns "Assign by status" puts into the caste in between start on the caste's value and follow the next clicks too. Ticking a slot starts it at the game's default policy (or the colonist default medical care, or Weapons Tab Reborn's default loadout). The work priorities are greyed out, with a note, while the setting is off or an automatic work manager is active. Below the slots: the member count and "Apply to all members", which asks first, naming the count, and then sets every managed slot on every member, hand changes included. Next to the close button, "Assign by status (N)" shows while pawns without a caste exist: it asks first, because it replaces those pawns' own policies with their caste's, then puts each into the caste of its new colonist, new slave or new prisoner row, and skips pawns you set to No caste. "Make default" explains the default caste in its tooltip. When the game has no Slave outfit, a "Create Slave outfit" button makes one. A caste using the Slave outfit warns that it has no cold protection. Deleting a caste leaves its members casteless on their current policies, and join rows that pointed at it fall back to No caste. `Source/BlaxCastes/Dialog_ManageCastes.cs`
@ -44,7 +44,7 @@ Compat:
- Trade as Slave or Colonist: same as Blax Slaves' buy mode. Blax Slaves' buy mode stands down while it is active. - Trade as Slave or Colonist: same as Blax Slaves' buy mode. Blax Slaves' buy mode stands down while it is active.
- Better Pawn Control, its fork, 1trickPwnyta's Defaults, Automatic Slave Outfit and PrisonerDefaults set policies of their own when a pawn joins. Castes applies a tick after the join, so its row wins, and it warns while one of them is active. Turn theirs off so two mods don't write the same policies. - Better Pawn Control, its fork, 1trickPwnyta's Defaults, Automatic Slave Outfit and PrisonerDefaults set policies of their own when a pawn joins. Castes applies a tick after the join, so its row wins, and it warns while one of them is active. Turn theirs off so two mods don't write the same policies.
- [1001] Weapons Tab Reborn: the weapon loadout slot. It has no 1.7 build; 1.7 loads its 1.6 assembly, and its loadout API works there. A caste that sets the loadout writes it a tick after a join, so it wins over Weapons Tab Reborn's default loadout; a caste that leaves it alone leaves Weapons Tab Reborn in charge. - [1001] Weapons Tab Reborn: the weapon loadout slot. It has no 1.7 build; 1.7 loads its 1.6 assembly, and its loadout API works there. A caste that sets the loadout writes it a tick after a join, so it wins over Weapons Tab Reborn's default loadout; a caste that leaves it alone leaves Weapons Tab Reborn in charge.
- Work Tab, Free Will, Work Manager, AutoPriorities and WorkRoles set work priorities themselves, so while one of them is active the work priorities slot is off and greyed out in the manager. - Work Tab replaces the vanilla work priorities, and Free Will, Work Manager, AutoPriorities and WorkRoles set them automatically, so while one of them is active the work priorities slot is off and greyed out in the manager.
- Tested next to Hospitality, Custom Prisoner Interactions, Prisoner Realism and Weapons Tab Reborn. - Tested next to Hospitality, Custom Prisoner Interactions, Prisoner Realism and Weapons Tab Reborn.
- Numbers builds its own tables, so the Caste column shows only in the vanilla Assign, Schedule and Work tabs. - Numbers builds its own tables, so the Caste column shows only in the vanilla Assign, Schedule and Work tabs.
@ -104,9 +104,30 @@ RimWorld 1.7 no longer runs on Unity/Mono. It runs on .NET 10 (CoreCLR) with Lud
Every change to castes, memberships, join rows and the default caste goes through `CasteManager`, so the sync rules and the `enabled` switch hold whichever window or hook made the change. Every change to castes, memberships, join rows and the default caste goes through `CasteManager`, so the sync rules and the `enabled` switch hold whichever window or hook made the change.
Works with the other Blax mods: Castes has no hard dependency on Blax Slaves or Blax Zones and calls nothing in them. Load order is Castes, Zones, Slaves; Castes lists no sibling in `loadAfter`. Detection goes through `Compat.IsActive(packageId)`, which matches a local copy next to a Workshop copy. Before 1.3 there is no API. Works with the other Blax mods: Castes has no hard dependency on Blax Slaves or Blax Zones and calls nothing in them. Load order is Castes, Zones, Slaves; Castes lists no sibling in `loadAfter`. Detection goes through `Compat.IsActive(packageId)`, which matches a local copy next to a Workshop copy. 1.0 has no API. 1.1 adds a read-only `CastesApi` for Blax Zones, 1.3 the join API for Blax Slaves.
Workshop art (`About/Preview.png`, `About/ModIcon.png`) is rendered from `Source/Art`; see `Source/Art/README.md`. ### Workshop page
- Art: `About/Preview.png`, `About/ModIcon.png` and the section headers in `docs/art/steam/` are rendered from `Source/Art`; `Source/Art/README.md` has every render command.
- Description: `docs/workshop-description.txt` (Steam BBCode). Its images load from `https://cdn.blax.at/blax-gaming/castes/`, because Steam loads description images cross-origin and Forgejo's raw URLs send no `Access-Control-Allow-Origin` header.
- In-game clips worth recording for the page: `docs/workshop-media.md`.
### Workshop upload
`Tools/workshop-upload.ps1` creates and updates the Workshop item from the command line. A small tool (`Tools/WorkshopUpload`) uses the Steamworks.NET build and `steam_api64.dll` that ship with RimWorld and attaches to the running, logged-in Steam client as RimWorld, so it needs no password, no game window and no dev mode.
```powershell
.\Tools\workshop-upload.ps1 # dry run: build, stage, check the Steam login; uploads nothing
.\Tools\workshop-upload.ps1 -Check # release check: lists every problem -Publish would refuse
.\Tools\workshop-upload.ps1 -Publish # upload
.\Tools\workshop-upload.ps1 -Publish -DescriptionFile docs\workshop-description.txt # also replace the description
```
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.
`-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.
### Tests ### Tests

View File

@ -1,15 +1,65 @@
# Preview art # Workshop art
`preview.html` renders `About/Preview.png` (1280x720) and `icon.html` renders `About/ModIcon.png` (256x256) from `icon.svg`. Both follow the Blax CI from https://www.blax.at/ui-ci and match Blax Slaves' art, so the mods read as one label: Blax black `#050805`, Blax green `#19C63C`, logo gray `#CDCDCD`, Geist for the title and subtitle, Rajdhani for the "Blax Gaming" wordmark. `geist.woff2` and `rajdhani-700.woff2` are the files blax.at self-hosts (SIL Open Font License); icons are lucide (ISC license). Everything here follows the Blax CI from https://www.blax.at/ui-ci and matches Blax Slaves' art, so the mods read as one label: Blax black `#050805`, Blax green `#19C63C`, logo gray `#CDCDCD`, Geist for headings, Inter for body text, Rajdhani only for the "Blax Gaming" wordmark. The fonts are the woff2 files blax.at self-hosts (SIL Open Font License); icons are lucide (ISC license, fetched from `https://api.iconify.design/lucide/<name>.svg`).
The preview's right column shows three join rows (new colonist, bought slave, new prisoner), each pointing at the policy bundle its caste sets: apparel, food, drugs, reading and medical care. Green slots are managed, gray ones are left alone. The icon is the Blax monogram with a green "layers" badge, so it stands apart from Blax Slaves' plain monogram in the mod list. | File | Renders |
|---|---|
| `preview.html` | `About/Preview.png`, 1280x720 (keep it under 1 MB) |
| `icon.html` + `icon.svg` | `About/ModIcon.png`, 256x256, transparent |
| `header.html` | the Workshop section headers in `docs/art/steam/`, 1270x150 (Steam shows them at half size) |
| `oss-banner.html` | `docs/art/blax-oss-banner.png` from `docs/art/blax-oss-banner.svg`, 1600x254 |
| `blax-monogram.svg`, `monogram-centered.svg` | the Blax monogram, used by the preview and the headers |
| `fonts/` | `geist.woff2`, `inter.woff2`, `rajdhani-700.woff2` |
Render with Edge headless from this folder. The separate profile folder keeps the headless run away from an open Edge window, and `| Out-Null` waits for each screenshot. The preview has Slaves' layout: wordmark top left, "Blax Castes" with "for RimWorld 1.7" and a two-line lede on the left, four feature rows on the right (policy bundles, set on join, members follow, caste column). The icon is the Blax monogram with a green "layers" badge, so it stands apart from Blax Slaves' plain monogram in the mod list. The badge glyph is 72 px wide at 256 px, so it still reads at the 32 px RimWorld draws mod icons at in the mod settings list.
## Render
Run from this folder in PowerShell. The separate profile folder keeps the headless run away from an open Edge window and from other renders running at the same time, and `| Out-Null` waits for each screenshot.
```powershell ```powershell
$edge = 'C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe' $edge = 'C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe'
$here = (Get-Location).Path -replace '\\','/' $here = (Get-Location).Path -replace '\\','/'
$edgeData = "$env:TEMP\blax-art-edge" $edgeData = "$env:TEMP\blax-art-edge-castes"
& $edge --headless=new --disable-gpu --hide-scrollbars --user-data-dir="$edgeData" --virtual-time-budget=3000 --window-size=1280,720 --screenshot="$PWD\..\..\About\Preview.png" "file:///$here/preview.html" | Out-Null & $edge --headless=new --disable-gpu --hide-scrollbars --user-data-dir="$edgeData" --virtual-time-budget=3000 --window-size=1280,720 --screenshot="$PWD\..\..\About\Preview.png" "file:///$here/preview.html" | Out-Null
& $edge --headless=new --disable-gpu --hide-scrollbars --user-data-dir="$edgeData" --virtual-time-budget=2000 --window-size=256,256 --default-background-color=00000000 --screenshot="$PWD\..\..\About\ModIcon.png" "file:///$here/icon.html" | Out-Null & $edge --headless=new --disable-gpu --hide-scrollbars --user-data-dir="$edgeData" --virtual-time-budget=2000 --window-size=256,256 --default-background-color=00000000 --screenshot="$PWD\..\..\About\ModIcon.png" "file:///$here/icon.html" | Out-Null
& $edge --headless=new --disable-gpu --hide-scrollbars --user-data-dir="$edgeData" --virtual-time-budget=3000 --window-size=1600,254 --screenshot="$PWD\..\..\docs\art\blax-oss-banner.png" "file:///$here/oss-banner.html" | Out-Null
``` ```
`header.html` takes the title (`t`), subtitle (`s`) and lucide icon name (`i`) as query parameters; the icon has to be in the `icons` map inside the file.
| PNG | `t` | `s` | `i` |
|---|---|---|---|
| `castes.png` | Castes | Policies, schedule and work in one bundle | `layers` |
| `joins.png` | Join defaults | The right caste the moment a pawn joins | `user-plus` |
| `assign.png` | Caste column | In the Assign, Schedule and Work tabs | `table-2` |
| `planned.png` | Planned | Coming in later releases | `milestone` |
| `replaces.png` | Replaces | Mods and options you no longer need | `replace` |
| `compatibility.png` | Compatibility | Plays well with these | `puzzle` |
```powershell
$headers = @(
@('castes', 't=Castes&s=Policies%2C%20schedule%20and%20work%20in%20one%20bundle&i=layers'),
@('joins', 't=Join%20defaults&s=The%20right%20caste%20the%20moment%20a%20pawn%20joins&i=user-plus'),
@('assign', 't=Caste%20column&s=In%20the%20Assign%2C%20Schedule%20and%20Work%20tabs&i=table-2'),
@('planned', 't=Planned&s=Coming%20in%20later%20releases&i=milestone'),
@('replaces', 't=Replaces&s=Mods%20and%20options%20you%20no%20longer%20need&i=replace'),
@('compatibility', 't=Compatibility&s=Plays%20well%20with%20these&i=puzzle')
)
foreach ($h in $headers) {
& $edge --headless=new --disable-gpu --hide-scrollbars --user-data-dir="$edgeData" --virtual-time-budget=3000 --window-size=1270,150 --screenshot="$PWD\..\..\docs\art\steam\$($h[0]).png" "file:///$here/header.html?$($h[1])" | Out-Null
}
```
Check the size and pixel dimensions afterwards:
```powershell
Add-Type -AssemblyName System.Drawing
Get-ChildItem ..\..\About\*.png, ..\..\docs\art\*.png, ..\..\docs\art\steam\*.png | ForEach-Object {
$img = [System.Drawing.Image]::FromFile($_.FullName); "{0} {1}x{2} {3} bytes" -f $_.Name, $img.Width, $img.Height, $_.Length; $img.Dispose()
}
```
## CDN
The Workshop description (`docs/workshop-description.txt`) loads its images from the Blax CDN, `https://cdn.blax.at/blax-gaming/castes/<name>.png`, and the shared banner from `https://cdn.blax.at/blax-gaming/blax-oss-banner.png`. Steam requests description images cross-origin, and only the CDN answers with `Access-Control-Allow-Origin`; Forgejo's raw URLs show as broken images. After re-rendering, copy the PNGs in `docs/art/steam/` to `blax-gaming/castes/` on the CDN; the upload steps are in Blax's internal infrastructure docs. The banner is the same file Blax Slaves uses and is already there.

Binary file not shown.

49
Source/Art/header.html Normal file
View File

@ -0,0 +1,49 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<!-- Section header for the Workshop page, 1270x150 (shown at half size). Parameters: ?t=Title&s=Subtitle&i=icon -->
<style>
@font-face { font-family: Geist; src: url(fonts/geist.woff2) format("woff2"); font-weight: 100 900; }
@font-face { font-family: Inter; src: url(fonts/inter.woff2) format("woff2"); font-weight: 100 900; }
:root {
--background: #050805;
--accent: #19C63C;
--heading: oklch(98% .008 145);
--muted-foreground: oklch(75% .015 145);
--border: oklch(30% .016 145);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 1270px; height: 150px; background: var(--background); overflow: hidden; }
body { font-family: Inter, sans-serif; display: flex; align-items: center; gap: 32px; padding: 0 56px; border-bottom: 4px solid var(--accent); }
svg.icon { width: 64px; height: 64px; flex: none; color: var(--accent); }
h1 { font-family: Geist, sans-serif; font-weight: 600; font-size: 54px; line-height: 1; letter-spacing: -0.035em; color: var(--heading); }
p { margin-top: 10px; font-size: 25px; line-height: 1.2; color: var(--muted-foreground); }
.mark { margin-left: auto; width: 52px; height: 52px; opacity: .35; }
</style>
</head>
<body>
<svg class="icon" viewBox="0 0 24 24" id="icon"></svg>
<div><h1 id="t"></h1><p id="s"></p></div>
<img class="mark" src="blax-monogram.svg" alt="">
<script>
// lucide icons (ISC license), from api.iconify.design/lucide
const icons = {
coins: '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M13.744 17.736a6 6 0 1 1-7.48-7.48M15 6h1v4"/><path d="m6.134 14.768l.866-.5l2 3.464"/><circle cx="16" cy="8" r="6"/></g>',
flame: '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0a5 5 0 0 1 1-3a1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4"/>',
sliders: '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 5H3m9 14H3M14 3v4m2 10v4m5-9h-9m9 7h-5m5-14h-7m-6 5v4m0-2H3"/>',
replace: '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M14 4a1 1 0 0 1 1-1m0 7a1 1 0 0 1-1-1m7-5a1 1 0 0 0-1-1m1 6a1 1 0 0 1-1 1M3 7l3 3l3-3"/><path d="M6 10V5a2 2 0 0 1 2-2h2"/><rect width="7" height="7" x="3" y="14" rx="1"/></g>',
puzzle: '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.39 4.39a1 1 0 0 0 1.68-.474a2.5 2.5 0 1 1 3.014 3.015a1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474a2.5 2.5 0 1 0-3.014 3.015a1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474a2.5 2.5 0 1 1-3.014-3.015a1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474a2.5 2.5 0 1 0 3.014-3.015a1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z"/>',
layers: '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"/><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"/><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"/></g>',
map: '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M18 8c0 3.613-3.869 7.429-5.393 8.795a1 1 0 0 1-1.214 0C9.87 15.429 6 11.613 6 8a6 6 0 0 1 12 0"/><path d="M4.474 15h-.197a1 1 0 0 0-.969.753l-1.097 4.35a1.5 1.5 0 0 0 1.444 1.898L20.344 22a1.5 1.5 0 0 0 1.446-1.897l-1.098-4.35a1 1 0 0 0-.969-.753h-.197"/><circle cx="12" cy="8" r="2"/></g>',
'user-plus': '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M19 8v6m3-3h-6"/></g>',
'table-2': '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 9h18M9 3v18"/><rect width="18" height="18" x="3" y="3" rx="2"/></g>',
milestone: '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 13v8m0-18v3m6.172 0a2 2 0 0 1 1.414.586l2.06 2.06a1.207 1.207 0 0 1 0 1.708l-2.06 2.06a2 2 0 0 1-1.414.586H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1z"/>'
};
const q = new URLSearchParams(location.search);
document.getElementById('t').textContent = q.get('t') || 'Title';
document.getElementById('s').textContent = q.get('s') || '';
document.getElementById('icon').innerHTML = icons[q.get('i')] || '';
</script>
</body>
</html>

View File

@ -20,7 +20,7 @@
</g> </g>
<!-- Castes badge: lucide "layers" (ISC license) on Blax green --> <!-- Castes badge: lucide "layers" (ISC license) on Blax green -->
<circle cx="204" cy="204" r="52" fill="#19C63C"/> <circle cx="204" cy="204" r="52" fill="#19C63C"/>
<g transform="translate(204 204) scale(2.5) translate(-12 -12)" stroke="#050805" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"> <g transform="translate(204 204) scale(3) translate(-12 -12)" stroke="#050805" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round">
<path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"/> <path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"/>
<path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"/> <path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"/>
<path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"/> <path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"/>

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -0,0 +1,16 @@
<svg width="256" height="256" viewBox="0 0 949 949" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_477_24)">
<circle cx="474.5" cy="474.5" r="474.5" fill="#CDCDCD"/>
<circle cx="475" cy="474" r="352" stroke="black" stroke-width="96"/>
<path d="M475 226L405 651.616L474.5 778L545 651.616L475 226Z" fill="black"/>
<path d="M385 226L475 306L565 226H385Z" fill="black"/>
<path d="M875 226H99L131.5 179.542L169.5 139.031L253.5 84.0246L475 45L715 98.1478L875 226Z" fill="#CDCDCD"/>
<rect x="287" y="226" width="13" height="13" fill="#CDCDCD"/>
<rect x="650" y="226" width="13" height="13" fill="#CDCDCD"/>
</g>
<defs>
<clipPath id="clip0_477_24">
<rect width="980" height="980" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 740 B

View File

@ -0,0 +1,13 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<!-- Renders docs/art/blax-oss-banner.svg (Blax Software's Open Source Initiative banner) as a PNG for the Steam page, which shows no SVG. -->
<style>
* { margin: 0; padding: 0; }
html, body { width: 1600px; height: 254px; background: #fff; overflow: hidden; }
img { display: block; width: 1600px; height: 254px; object-fit: cover; }
</style>
</head>
<body><img src="../../docs/art/blax-oss-banner.svg" alt=""></body>
</html>

View File

@ -4,95 +4,71 @@
<meta charset="utf-8"> <meta charset="utf-8">
<style> <style>
@font-face { font-family: Geist; src: url(fonts/geist.woff2) format("woff2"); font-weight: 100 900; } @font-face { font-family: Geist; src: url(fonts/geist.woff2) format("woff2"); font-weight: 100 900; }
@font-face { font-family: Inter; src: url(fonts/inter.woff2) format("woff2"); font-weight: 100 900; }
@font-face { font-family: Rajdhani; src: url(fonts/rajdhani-700.woff2) format("woff2"); font-weight: 700; } @font-face { font-family: Rajdhani; src: url(fonts/rajdhani-700.woff2) format("woff2"); font-weight: 700; }
:root { :root {
--background: #050805; /* Blax black */ --background: #050805; /* Blax black */
--accent: #19C63C; /* Blax green */ --accent: #19C63C; /* Blax green */
--logo-gray: #CDCDCD;
--heading: oklch(98% .008 145); --heading: oklch(98% .008 145);
--foreground: oklch(97% .01 145);
--muted-foreground: oklch(75% .015 145); --muted-foreground: oklch(75% .015 145);
--border: oklch(30% .016 145); --border: oklch(30% .016 145);
--off: oklch(38% .016 145); /* a slot the caste leaves alone */
} }
* { box-sizing: border-box; margin: 0; padding: 0; } * { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 1280px; height: 720px; background: var(--background); overflow: hidden; } html, body { width: 1280px; height: 720px; background: var(--background); overflow: hidden; }
body { font-family: Geist, sans-serif; color: var(--heading); position: relative; } body { font-family: Inter, sans-serif; color: var(--foreground); position: relative; }
.top { position: absolute; left: 72px; top: 52px; display: flex; align-items: center; gap: 16px; } .top { position: absolute; left: 72px; right: 72px; top: 52px; display: flex; align-items: center; justify-content: space-between; }
.top img { display: block; width: 56px; height: 56px; } .brand { display: flex; align-items: center; gap: 16px; }
.brand img { width: 56px; height: 56px; }
.wordmark { font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -0.01em; color: var(--heading); } .wordmark { font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -0.01em; color: var(--heading); }
.wordmark span { color: var(--accent); } .wordmark span { color: var(--accent); }
.hero { position: absolute; left: 72px; top: 158px; width: 640px; } .hero { position: absolute; left: 72px; top: 158px; width: 640px; }
h1 { font-weight: 600; font-size: 178px; line-height: .9; letter-spacing: -0.045em; color: var(--heading); } h1 { font-family: Geist, sans-serif; font-weight: 600; font-size: 178px; line-height: .9; letter-spacing: -0.045em; color: var(--heading); }
.sub { margin-top: 26px; font-weight: 600; font-size: 46px; line-height: 1.04; letter-spacing: -0.03em; color: var(--accent); } .sub { margin-top: 26px; font-family: Geist, sans-serif; font-weight: 600; font-size: 46px; line-height: 1; letter-spacing: -0.03em; color: var(--accent); }
.lede { margin-top: 18px; font-size: 23px; line-height: 1.4; color: var(--muted-foreground); max-width: 560px; }
/* Right column: one row per join reason, each pointing at the bundle its caste sets. */ .features { position: absolute; left: 760px; right: 72px; top: 150px; bottom: 56px; display: flex; flex-direction: column; border-left: 1px solid var(--border); }
.rows { position: absolute; left: 760px; right: 72px; top: 150px; bottom: 56px; display: flex; flex-direction: column; border-left: 1px solid var(--border); } .feature { flex: 1; display: flex; align-items: center; gap: 24px; padding-left: 40px; border-top: 1px solid var(--border); }
.row { flex: 1; display: flex; align-items: center; padding-left: 32px; border-top: 1px solid var(--border); } .feature:first-child { border-top: 0; }
.row:first-child { border-top: 0; } .feature svg { width: 40px; height: 40px; flex: none; color: var(--accent); }
.row svg { flex: none; } .feature h2 { font-family: Geist, sans-serif; font-weight: 600; font-size: 31px; line-height: 1.05; letter-spacing: -0.03em; color: var(--heading); }
.who { width: 44px; height: 44px; color: var(--heading); } .feature p { margin-top: 6px; font-size: 19px; line-height: 1.35; color: var(--muted-foreground); }
.to { width: 24px; height: 24px; margin: 0 14px; color: var(--muted-foreground); }
.bundle { display: flex; gap: 18px; padding: 18px 18px; border: 1px solid var(--border); border-radius: 12px; }
.bundle svg { width: 40px; height: 40px; color: var(--off); }
.bundle svg.on { color: var(--accent); }
</style> </style>
</head> </head>
<body> <body>
<!-- lucide icons (ISC license) --> <div class="top">
<svg width="0" height="0" style="position: absolute"> <div class="brand">
<defs> <img src="blax-monogram.svg" alt="">
<g id="i-shirt"><path d="M20.38 3.46L16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z"/></g> <div class="wordmark">Blax <span>Gaming</span></div>
<g id="i-food"><path d="M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2"/><path d="M7 2v20"/><path d="M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3zm0 0v7"/></g> </div>
<g id="i-pill"><path d="m10.5 20.5l10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7z"/><path d="m8.5 8.5l7 7"/></g> </div>
<g id="i-book"><path d="M12 7v14"/><path d="M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4a4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3a3 3 0 0 0-3-3z"/></g>
<g id="i-med"><path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2c-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7z"/><path d="M3.22 12H9.5l.5-1l2 4.5l2-7l1.5 3.5h5.27"/></g>
</defs>
</svg>
<div class="top"><img src="blax-monogram.svg" alt=""><div class="wordmark">Blax <span>Gaming</span></div></div>
<div class="hero"> <div class="hero">
<h1>Blax<br>Castes</h1> <h1>Blax<br>Castes</h1>
<div class="sub">policy bundles<br>and join defaults</div> <div class="sub">for RimWorld 1.7</div>
<p class="lede">Policies, schedule and work in one caste.<br>Pawns get theirs the moment they join.</p>
</div> </div>
<div class="rows"> <!-- lucide icons (ISC license): layers, user-plus, refresh-cw, table-2 -->
<!-- new colonist: a full bundle --> <div class="features">
<div class="row"> <div class="feature">
<svg class="who" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M19 8v6M22 11h-6"/></svg> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"/><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"/><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"/></svg>
<svg class="to" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M12 5l7 7l-7 7"/></svg> <div><h2>Policy bundles</h2><p>Outfit, food, drugs, schedule, work.</p></div>
<div class="bundle">
<svg class="on" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><use href="#i-shirt"/></svg>
<svg class="on" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><use href="#i-food"/></svg>
<svg class="on" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><use href="#i-pill"/></svg>
<svg class="on" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><use href="#i-book"/></svg>
<svg class="on" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><use href="#i-med"/></svg>
</div> </div>
<div class="feature">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M19 8v6m3-3h-6"/></svg>
<div><h2>Set on join</h2><p>Bought, recruited or captured.</p></div>
</div> </div>
<!-- bought slave: outfit, food and drugs --> <div class="feature">
<div class="row"> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12a9 9 0 0 1 9-9a9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5m5 4a9 9 0 0 1-9 9a9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M8 16H3v5"/></svg>
<svg class="who" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M13.744 17.736a6 6 0 1 1-7.48-7.48M15 6h1v4"/><path d="m6.134 14.768l.866-.5l2 3.464"/><circle cx="16" cy="8" r="6"/></svg> <div><h2>Members follow</h2><p>Edit once. Hand changes stay.</p></div>
<svg class="to" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M12 5l7 7l-7 7"/></svg>
<div class="bundle">
<svg class="on" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><use href="#i-shirt"/></svg>
<svg class="on" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><use href="#i-food"/></svg>
<svg class="on" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><use href="#i-pill"/></svg>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><use href="#i-book"/></svg>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><use href="#i-med"/></svg>
</div>
</div>
<!-- new prisoner: food and medical care only -->
<div class="row">
<svg class="who" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>
<svg class="to" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M12 5l7 7l-7 7"/></svg>
<div class="bundle">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><use href="#i-shirt"/></svg>
<svg class="on" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><use href="#i-food"/></svg>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><use href="#i-pill"/></svg>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><use href="#i-book"/></svg>
<svg class="on" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><use href="#i-med"/></svg>
</div> </div>
<div class="feature">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 9h18M9 3v18"/><rect width="18" height="18" x="3" y="3" rx="2"/></svg>
<div><h2>Caste column</h2><p>Assign, Schedule and Work tabs.</p></div>
</div> </div>
</div> </div>
</body> </body>

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

BIN
docs/art/steam/assign.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
docs/art/steam/castes.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
docs/art/steam/joins.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
docs/art/steam/planned.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
docs/art/steam/replaces.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -0,0 +1,66 @@
[b]Policy bundles and join defaults.[/b] Every slave you buy needs its outfit, food, drugs, schedule and work priorities set by hand. Blax Castes bundles those settings into castes such as Colonist or Miner slave, and puts each pawn into the right caste the moment it joins or changes status.
✅ RimWorld 1.7 🔧 Needs [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2009463077]Harmony[/url] 🧩 Works with any DLC combination 💾 Safe to add to a running save
[img]https://cdn.blax.at/blax-gaming/castes/castes.png[/img]
[list]
[*]📦 [b]Up to eight settings per caste:[/b] apparel, food, drug and reading policy, medical care, schedule, work priorities and, with [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2573988660][1001] Weapons Tab Reborn[/url], the weapon loadout. Each is set or left alone.
[*]🔗 [b]Members follow their caste.[/b] Change a caste's setting and every member still on the old value gets the new one. Pawns you changed by hand keep theirs, marked with a "*" in the Caste column.
[*]🕒 [b]Schedule.[/b] Paint the caste's 24 hours like in the Schedule tab, or use "Copy from pawn". Meditate hours need Royalty.
[*]🛠️ [b]Work priorities.[/b] A caste sets only the work types you pick (1 to 4 or off), so every caste can put Firefighting at 1 and a field slave caste Growing at 1. "Start from nothing" turns all other work off, except Patient and Bed rest.
[*]🗡️ [b]Weapon loadout[/b] with Weapons Tab Reborn: a Guard caste can hand out a rifle loadout you made, a Slave caste the Pacifist loadout.
[*]🔒 [b]Prisoners[/b] in a caste get its food policy and medical care only.
[/list]
[img]https://cdn.blax.at/blax-gaming/castes/joins.png[/img]
[list]
[*]🚪 [b]Five join rows:[/b] Bought as slave, Bought as colonist, New colonist, New slave and New prisoner. Each picks No caste, the default caste or a specific caste. The slave rows need Ideology.
[*]🔄 [b]Every status change counts:[/b] buying, recruiting, arresting, releasing and capturing, plus enslaving, freeing and imprisoning a slave (needs Ideology). A slave you buy arrives with its caste's outfit and food policy already set.
[*]🌱 [b]Starter castes.[/b] A new game starts with Colonist (your default policies), Slave (the Slave outfit, Simple food, No drugs; needs Ideology) and Prisoner (Simple food), already picked in the join rows. An existing save gets them once, and nobody moves until you click "Assign by status".
[*]↩️ [b]The old caste comes back.[/b] A colonist or slave that returns within 60 days with the same status gets its old caste back, with your hand changes. An arrested Miner who is released is a Miner again.
[*]👋 [b]Leaving.[/b] A pawn that leaves your faction leaves its caste and keeps its policies. A pawn away in a caravan, a transport pod or a shuttle, or kidnapped, keeps its caste.
[/list]
[img]https://cdn.blax.at/blax-gaming/castes/assign.png[/img]
[list]
[*]📋 [b]Caste column[/b] in the Assign, Schedule and Work tabs. Click a cell to pick a caste, or drag down the column to give several pawns the same one.
[*]🗂️ [b]Caste manager.[/b] "Manage castes" above the column opens a window built on the vanilla policy window, with the schedule grid, a button per work type, the member count and "Apply to all members".
[*]🧭 [b]Join rows.[/b] "Defaults" above the column (Assign and Schedule tabs) picks the caste for each row.
[/list]
⚙️ The mod settings switch each part off: work priorities, the loadout, join defaults, the old caste on return, starter castes, warnings and the Caste column. With "Castes set policies" off, castes stop changing pawns. Removing the mod leaves every pawn on its last settings; the next load logs two harmless errors, gone once you save.
🧩 [b]Any DLC combination works,[/b] core only included. Slaves and the Slave caste need Ideology, Meditate hours Royalty, the Childcare priority Biotech, Dark study Anomaly and Fishing Odyssey. Without a DLC its part switches off and everything else keeps working.
[img]https://cdn.blax.at/blax-gaming/castes/planned.png[/img]
Not in this version yet. Planned for the next releases:
[list]
[*]🧍 A caste button on selected pawns, a new caste from a pawn, and ideoligion clash warnings (needs Ideology).
[*]🗺️ Castes also set the allowed area, hostility, self-tend, carried medicine and fire at will.
[*]👶 A caste for every way a pawn joins, children included.
[*]🔁 Shift schedules and a default prisoner interaction.
[/list]
[img]https://cdn.blax.at/blax-gaming/castes/replaces.png[/img]
Blax Castes sets what these mods set when a pawn joins. While one of them is active, the mod settings name it and one message per save suggests turning its join options off.
[list]
[*]♻️ Automatic Slave Outfit
[*]♻️ PrisonerDefaults
[*]♻️ Better Pawn Control and Better Pawn Control Forked, partly: the policies they give pawns that join
[*]♻️ 1trickPwnyta's Defaults, partly: its policy, medical care, schedule and work defaults for new colonists, slaves and prisoners
[/list]
[img]https://cdn.blax.at/blax-gaming/castes/compatibility.png[/img]
[list]
[*]✔️ [url=https://steamcommunity.com/sharedfiles/filedetails/?id=3847282171]Blax Slaves[/url] and Trade as Slave or Colonist: a pawn bought with "Joins as slave" or "Joins as colonist" lands in the matching bought row.
[*]✔️ Work Tab replaces the vanilla work priorities, and Free Will, Work Manager, AutoPriorities and WorkRoles set them automatically, so the work priorities slot switches off while one of them is active.
[*]✔️ Tested next to Hospitality, Custom Prisoner Interactions and Prisoner Realism.
[*]⚠️ Numbers: the Caste column shows only in the vanilla tabs.
[*]❌ Multiplayer: not supported.
[/list]
📦 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]
[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]

21
docs/workshop-media.md Normal file
View File

@ -0,0 +1,21 @@
# In-game clips for the Workshop page
The Steam description shows GIFs inline (`[img]`), the same way as the section headers. These are the clips worth having, in order. Each is 4 to 8 seconds of a real game with Blax Castes on, cropped to the part of the screen that matters.
| File | Shows | How to set it up |
|---|---|---|
| `buy-slave.gif` | Buy a slave from a trader, the "joined the Slave caste" message, then the Assign tab with the Slave outfit and Simple food already set | Ideology and a trader with a slave in stock; dev mode can spawn a slaver caravan |
| `members-follow.gif` | Caste manager: change the Slave caste's food policy, close it, and the Assign tab shows every member on the new policy except one changed by hand, which shows "*" | Two or three slaves in the Slave caste, one with its food policy changed by hand |
| `column-drag.gif` | Drag down the Caste column to put three colonists into one caste; their policy columns change at once | Three colonists and a second caste, such as a copy of Colonist with another outfit |
| `schedule-work.gif` | Caste manager: paint a few schedule hours and click a work type's button through 1, 2, 3; the Schedule and Work tabs show the members following | A caste with two members; manual priorities on in the Work tab |
| `join-defaults.png` | The Defaults window with the five join rows | Assign > Defaults, with Ideology so the slave rows show |
Recording: Windows Game Bar (Win+Alt+R) records the game window as MP4 without extra software. Put the raw recordings in `docs/media/raw/` (git-ignored).
Converting to a GIF needs ffmpeg. 640 px wide at 15 fps keeps a 6-second clip around 2 to 4 MB:
```sh
ffmpeg -i raw/buy-slave.mp4 -vf "fps=15,scale=640:-1:flags=lanczos,split[a][b];[a]palettegen[p];[b][p]paletteuse" buy-slave.gif
```
The GIFs go to `docs/media/` and onto the CDN next to the header art (`cdn.blax.at/blax-gaming/castes/`, see `Source/Art/README.md`), then into `docs/workshop-description.txt` under the matching header as `[img]https://cdn.blax.at/blax-gaming/castes/<file>[/img]`. Forgejo raw URLs don't work on Steam (no cross-origin header). Each GIF adds about 80 bytes to the description, which is at 6.3 KB of Steam's 8 KB.