diff --git a/.gitignore b/.gitignore index 4f1e836..02c2c8c 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ Tests/**/bin/ Tests/**/obj/ Tools/**/bin/ Tools/**/obj/ +docs/media/raw/ diff --git a/About/About.xml b/About/About.xml index 1c4f5c2..fb4a28f 100644 --- a/About/About.xml +++ b/About/About.xml @@ -23,17 +23,23 @@ Slavery as an everyday part of the rim. Needs Ideology for slaves. +<color=#19C63C>Trade</color> - Choose slave or colonist when you buy a pawn from a trader: click "Joins as slave / Joins as colonist" in the trade window. - Every trader buys your slaves and prisoners, visitors included. Optionally, factions that reject slavery refuse, except to ransom their own people. - Price sliders for buying slaves and selling captives (vanilla 60% each), with a cap so buy-low-sell-high doesn't pay. - Slavers (caravans and orbital slave ships) show up far more often and bring more slaves. - Allied outlanders and tribes send a slaver caravan on request (comms console). - Every caravan and orbital trader may have a slave or two for sale, and settlements keep selling slaves however big your colony gets. -- Time as a slave in the Records tab and the slave tab. + +<color=#19C63C>Slaves</color> - Brand your slaves: a burn mark that shows who owns them. Branded slaves' suppression falls slower. - Branded runaways come back: a non-hostile faction that finds one returns them after a few days. Hostile factions keep them. - Some slaves you buy already carry a previous owner's brand. Rebrand them with your own mark. - Harming slaves (execution, organ harvesting, selling, banishing, butchering) doesn't upset your colonists, except pacifists: Kind pawns and those incapable of violence still mind. Family still grieves. +- Time as a slave in the Records tab and the slave tab. -Everything is adjustable in the mod settings. +Everything is adjustable in the mod settings. + +<color=#19C63C>Made by Blax</color> +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 diff --git a/README.md b/README.md index b6b6698..9dfdf6b 100644 --- a/README.md +++ b/README.md @@ -1,26 +1,46 @@ +![Blax Slaves](About/Preview.png) + # Blax Slaves +[![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=3847282171) +[![Needs Harmony](https://img.shields.io/badge/needs-Harmony-050805)](https://steamcommunity.com/sharedfiles/filedetails/?id=2009463077) +[![Slaves need Ideology](https://img.shields.io/badge/slaves_need-Ideology-5a6b5d)](https://store.steampowered.com/app/1392840/) + RimWorld mod (1.7) that makes slavery an everyday part of the rim. First mod under the Blax Gaming label. Needs Harmony; slaves need Ideology. ## Features -- **Slavers are common.** The three vanilla slavers (outlander "slaver" caravan, tribal "slaver" caravan, orbital "slave ship") get commonality 2 instead of 1, and big colonies keep seeing them at half weight instead of zero. They carry more: outlander 5~9, tribal 4~7, slave ship 6~10 (vanilla 2~4). Allied outlanders and tribes send a slaver caravan on request (vanilla hides slavers from the comms console request). Every other caravan and orbital trader has a ~50% chance of 1~2 slaves, settlements stock 1~4. `Patches/BlaxSlaves_Traders.xml` -- **Branding.** "Brand" surgery for colony slaves (adults, Medicine 2, never fails). The brand remembers its owner (shown as "slave brand (Owner)"), slows suppression loss by 15%, gives the slave a -3 "branded" mood and a fresh torso burn. "Rebrand" burns your mark over another owner's. `Defs/BlaxSlaves_Brand.xml`, `Source/BlaxSlaves/Brand.cs` -- **Trader slaves come branded.** 35% of adult slaves in trader stock carry the trader faction's brand (orbital ships: a random faction). -- **Runaways come back.** A slave with your brand who escapes (slave rebellion, or a caravan whose last free member dies) is tracked. If the faction they end up with is hostile, they keep them. Otherwise, after 3~10 days (80% chance) a non-hostile faction returns them as your slave, walking in (tribal/medieval) or by drop pod. `Source/BlaxSlaves/Runaways.cs` -- **Harming slaves doesn't upset colonists.** Executing, harvesting, selling (trade or gift pod), banishing, butchering, blinding, gibbeting a slave gives free colonists no negative thoughts. Deaths only count when the colony caused them: a slave killed by raiders, animals or disease is mourned normally. Branded pawns count too unless they became free colonists. Pacifists (Kind, or incapable of violence) still mind, family still grieves, and the banish dialog shows the reduced cost. `Source/BlaxSlaves/SlaveHarm.cs` -- **Buy as slave or colonist (1.2).** In the trade window, "Joins as slave / Joins as colonist" on a pawn the trader sells is a button: click to switch, and the price updates (a slave costs 60% of the colonist price, as in vanilla). Unwaveringly loyal pawns can only be bought as slaves. A setting picks what new stock starts as: the vanilla 25/75 roll, always slave or always colonist. Stands down while Trade as Slave or Colonist is active. `Source/BlaxSlaves/BuyMode.cs` -- **Every trader buys captives (1.2).** Visitor groups, the Empire's caravans and modded traders without a humanlike stock generator get one, so anyone you trade with buys your slaves and prisoners. Optional: factions whose ideoligion rejects slavery refuse, except their own people (ransom). Slave stock ignores colony size, so settlements keep selling slaves to big colonies. `Source/BlaxSlaves/TraderBuyers.cs` -- **Price sliders (1.2).** What slaves cost and what captives fetch, both vanilla 60% by default (30 to 100%). Above vanilla, a captive's sale price is capped at 90% of what the same trader would charge you for that pawn as a slave, so buy-low-sell-high loops don't pay. `Source/BlaxSlaves/SlavePrices.cs` -- **Time as a slave (1.2).** A Records tab entry, and "Enslaved for ..." in the slave tab (counted from the moment 1.2 is installed). `Source/BlaxSlaves/TimeAsSlave.cs` -- Mod settings for all the numbers and toggles, in tabs (Trade, General, Compat). The Compat tab lists active mods that Blax Slaves replaces, so you know what you can unsubscribe. +### Trade -Compat: War Crimes Expanded 2 torture and Harvest Organs Post Mortem autopsies count as slave harm when their mods are active. Hospitality visitor groups never take a runaway who is due to be returned. No Sympathy For Prisoners already removes slavery and execution precept thoughts for everyone, pacifists included. Everybody Buys Slaves and [SYR] More Slaves can stay installed but aren't needed any more; with More Slaves, its extra 3~5 slaves per trader stack on ours. Blax Castes and Blax Zones (planned, see `docs/`) are optional companions; Blax Slaves binds their APIs by reflection when they are loaded. +- πŸ” **Buy as slave or colonist (1.2).** In the trade window, "Joins as slave / Joins as colonist" on a pawn the trader sells is a button: click to switch, and the price updates (a slave costs 60% of the colonist price, as in vanilla). Unwaveringly loyal pawns can only be bought as slaves. A setting picks what new stock starts as: the vanilla 25/75 roll, always slave or always colonist. Stands down while Trade as Slave or Colonist is active. `Source/BlaxSlaves/BuyMode.cs` +- 🀝 **Every trader buys captives (1.2).** Visitor groups, the Empire's caravans and modded traders without a humanlike stock generator get one, so anyone you trade with buys your slaves and prisoners. Optional: factions whose ideoligion rejects slavery refuse, except their own people (ransom). Slave stock ignores colony size, so settlements keep selling slaves to big colonies. `Source/BlaxSlaves/TraderBuyers.cs` +- πŸ’° **Price sliders (1.2).** What slaves cost and what captives fetch, both vanilla 60% by default (30 to 100%). Above vanilla, a captive's sale price is capped at 90% of what the same trader would charge you for that pawn as a slave, so buy-low-sell-high loops don't pay. `Source/BlaxSlaves/SlavePrices.cs` +- πŸͺ **Slavers are common.** The three vanilla slavers (outlander "slaver" caravan, tribal "slaver" caravan, orbital "slave ship") get commonality 2 instead of 1, and big colonies keep seeing them at half weight instead of zero. They carry more: outlander 5~9, tribal 4~7, slave ship 6~10 (vanilla 2~4). Every other caravan and orbital trader has a ~50% chance of 1~2 slaves, settlements stock 1~4. `Patches/BlaxSlaves_Traders.xml` +- πŸ“‘ **Request a slaver caravan.** Allied outlanders and tribes send one on request at the comms console (vanilla hides slavers from that list). -Roadmap: `docs/roadmap.md`. +### Slaves + +- πŸ”₯ **Branding.** "Brand" surgery for colony slaves (adults, Medicine 2, never fails). The brand remembers its owner (shown as "slave brand (Owner)"), slows suppression loss by 15%, gives the slave a -3 "branded" mood and a fresh torso burn. "Rebrand" burns your mark over another owner's. `Defs/BlaxSlaves_Brand.xml`, `Source/BlaxSlaves/Brand.cs` +- 🏷️ **Trader slaves come branded.** 35% of adult slaves in trader stock carry the trader faction's brand (orbital ships: a random faction). +- πŸƒ **Runaways come back.** A slave with your brand who escapes (slave rebellion, or a caravan whose last free member dies) is tracked. If the faction they end up with is hostile, they keep them. Otherwise, after 3~10 days (80% chance) a non-hostile faction returns them as your slave, walking in (tribal/medieval) or by drop pod. `Source/BlaxSlaves/Runaways.cs` +- 😌 **Harming slaves doesn't upset colonists.** Executing, harvesting, selling (trade or gift pod), banishing, butchering, blinding, gibbeting a slave gives free colonists no negative thoughts. Deaths only count when the colony caused them: a slave killed by raiders, animals or disease is mourned normally. Branded pawns count too unless they became free colonists. Pacifists (Kind, or incapable of violence) still mind, family still grieves, and the banish dialog shows the reduced cost. `Source/BlaxSlaves/SlaveHarm.cs` +- ⏳ **Time as a slave (1.2).** A Records tab entry, and "Enslaved for ..." in the slave tab (counted from the moment 1.2 is installed). `Source/BlaxSlaves/TimeAsSlave.cs` + +βš™οΈ Mod settings for all the numbers and toggles, in tabs (Trade, General, Compat). The Compat tab lists active mods that Blax Slaves replaces, so you know what you can unsubscribe. + +### Compatibility + +- βœ”οΈ War Crimes Expanded 2 torture and Harvest Organs Post Mortem autopsies count as slave harm when their mods are active. +- βœ”οΈ Hospitality visitor groups never take a runaway who is due to be returned. +- βœ”οΈ No Sympathy For Prisoners already removes slavery and execution precept thoughts for everyone, pacifists included. +- ♻️ Everybody Buys Slaves and [SYR] More Slaves can stay installed but aren't needed any more; with More Slaves, its extra 3~5 slaves per trader stack on ours. +- 🧩 Blax Castes and Blax Zones (planned, see `docs/`) are optional companions; Blax Slaves binds their APIs by reflection when they are loaded. Not covered: eating slave meat, slave-leather apparel, slaves lost when a map closes or kidnapped by raiders (vanilla ransom handles those). +πŸ—ΊοΈ Roadmap: `docs/roadmap.md`. + ## Development The repo is the mod folder. Link it into the game with a directory junction, run from the repo root (adjust the RimWorld path): @@ -56,6 +76,8 @@ 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`. +The Workshop description is `docs/workshop-description.txt` (Steam BBCode). Its images load from this repo's `docs/art/` over Forgejo's raw URLs, so push them before you upload a description that uses them. `Source/Art/README.md` has the render commands. + ### Tests `Tests/BlaxSlavesTests` is a separate test mod. `Tests/run-tests.ps1` builds both projects, links the test mod into the game's Mods folder for the run, and starts RimWorld headless (`-headless -quicktest -blaxslavestests`, no window) with its own save data folder in `%TEMP%\BlaxSlavesTest`, so your mod list, saves and settings stay untouched. The suite runs in a quick-test colony, saves and reloads the game, runs the persistence tests, writes `BlaxSlavesTestResults.txt` and quits. It takes about a minute and needs Steam running. @@ -68,4 +90,12 @@ It stages only what players need (About, 1.7, Defs, Patches, Languages) in `%TEM Tests are `public static void` methods marked `[BlaxTest("area: what", phase: 1)]`, using `T` for assertions and `Fixtures` for pawns, ticks and memories. Phase 2 runs after the save and reload; carry ThingIDs through `T.Carry`. -Useful 1.7 switches for manual runs: `-quicktest` (straight into a generated colony), `-headless`, `-savedatafolder=`, `-QuitAfterBoot`, `-NoFileLog`. \ No newline at end of file +Useful 1.7 switches for manual runs: `-quicktest` (straight into a generated colony), `-headless`, `-savedatafolder=`, `-QuitAfterBoot`, `-NoFileLog`. + +--- + +## Made by Blax + +[![Blax Software Open Source Initiative](docs/art/blax-oss-banner.svg)](https://www.blax.at) + +πŸ› οΈ **Blax Gaming** is a project of **[Blax Software](https://www.blax.at)**, 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? πŸ‘‰ [www.blax.at](https://www.blax.at) diff --git a/Source/Art/README.md b/Source/Art/README.md index 4dc4b25..57b2aa0 100644 --- a/Source/Art/README.md +++ b/Source/Art/README.md @@ -11,3 +11,14 @@ $edgeData = "$env:TEMP\blax-art-edge" & $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 ``` + +## Workshop page art + +The Steam description (`docs/workshop-description.txt`) shows section headers from `docs/art/steam/` and Blax Software's Open Source Initiative banner at the end. Steam shows no SVG, so the banner (`docs/art/blax-oss-banner.svg`, the same file as in `blax-software/laravel-workkit` `art/oss-initiative-banner.svg`) is also rendered as a PNG. `header.html` takes the title, subtitle and lucide icon name as query parameters. + +```powershell +& $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 +& $edge --headless=new --disable-gpu --hide-scrollbars --user-data-dir="$edgeData" --virtual-time-budget=3000 --window-size=1270,150 --screenshot="$PWD\..\..\docs\art\steam\trade.png" "file:///$here/header.html?t=Trade&s=Buy%2C%20sell%20and%20call%20in%20slavers&i=coins" | Out-Null +``` + +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). diff --git a/Source/Art/header.html b/Source/Art/header.html new file mode 100644 index 0000000..dce43e0 --- /dev/null +++ b/Source/Art/header.html @@ -0,0 +1,46 @@ + + + + + + + + + +

+ + + + diff --git a/Source/Art/oss-banner.html b/Source/Art/oss-banner.html new file mode 100644 index 0000000..67202cb --- /dev/null +++ b/Source/Art/oss-banner.html @@ -0,0 +1,13 @@ + + + + + + + + + diff --git a/docs/art/blax-oss-banner.png b/docs/art/blax-oss-banner.png new file mode 100644 index 0000000..6385241 Binary files /dev/null and b/docs/art/blax-oss-banner.png differ diff --git a/docs/art/blax-oss-banner.svg b/docs/art/blax-oss-banner.svg new file mode 100644 index 0000000..5796e28 --- /dev/null +++ b/docs/art/blax-oss-banner.svg @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/art/steam/compatibility.png b/docs/art/steam/compatibility.png new file mode 100644 index 0000000..3a89185 Binary files /dev/null and b/docs/art/steam/compatibility.png differ diff --git a/docs/art/steam/replaces.png b/docs/art/steam/replaces.png new file mode 100644 index 0000000..22b659f Binary files /dev/null and b/docs/art/steam/replaces.png differ diff --git a/docs/art/steam/slaves.png b/docs/art/steam/slaves.png new file mode 100644 index 0000000..f903082 Binary files /dev/null and b/docs/art/steam/slaves.png differ diff --git a/docs/art/steam/trade.png b/docs/art/steam/trade.png new file mode 100644 index 0000000..76075d2 Binary files /dev/null and b/docs/art/steam/trade.png differ diff --git a/docs/workshop-description.txt b/docs/workshop-description.txt index c7349ae..e4ba934 100644 --- a/docs/workshop-description.txt +++ b/docs/workshop-description.txt @@ -1,38 +1,44 @@ -Slavery as an everyday part of the rim. Needs [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2009463077]Harmony[/url], and Ideology for slaves. RimWorld 1.7. +[b]Slavery as an everyday part of the rim.[/b] Buy pawns as slaves or colonists, sell your captives to anyone, brand your slaves and get your runaways back. -[h2]Trade[/h2] +βœ… 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] [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]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]Price sliders[/b] for buying slaves and selling captives (vanilla 60% each), capped so buy-low-sell-high doesn't pay. -[*][b]Slavers are common.[/b] Slaver caravans and orbital slave ships show up twice as often, bring more slaves and keep coming when your colony grows. Other caravans and orbital traders may have a slave or two, and settlements keep selling slaves however big your colony is. -[*][b]Request a slaver caravan[/b] from allied outlanders and tribes at the comms console. Vanilla hides slavers from that 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]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]Price sliders[/b] for buying slaves and selling captives (vanilla 60% each), capped so buy-low-sell-high doesn't pay. +[*]πŸͺ [b]Slavers are common.[/b] Slaver caravans and orbital slave ships show up twice as often, bring more slaves and keep coming when your colony grows. Other caravans and orbital traders may have a slave or two, and settlements keep selling slaves however big your colony is. +[*]πŸ“‘ [b]Request a slaver caravan[/b] from allied outlanders and tribes at the comms console. Vanilla hides slavers from that list. [/list] -[h2]Slaves[/h2] +[img]https://forgejo.blax.at/blax-software/rimworld-blax-slaves/raw/branch/main/docs/art/steam/slaves.png[/img] [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]Trader slaves come branded.[/b] About a third of the slaves you buy carry a previous owner's brand. -[*][b]Branded runaways come back.[/b] A non-hostile faction that finds one returns them after 3 to 10 days. Hostile factions keep them. -[*][b]Harming slaves doesn't upset colonists.[/b] Executing, harvesting, selling, banishing or butchering a slave gives free colonists no bad thoughts. Kind pawns and pacifists still mind, and family still grieves. -[*][b]Time as a slave[/b] in the Records tab and the slave tab. +[*]πŸ”₯ [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]Branded runaways come back.[/b] A non-hostile faction that finds one returns them after 3 to 10 days. Hostile factions keep them. +[*]😌 [b]Harming slaves doesn't upset colonists.[/b] Executing, harvesting, selling, banishing or butchering a slave gives free colonists no bad thoughts. Kind pawns and pacifists still mind, and family still grieves. +[*]⏳ [b]Time as a slave[/b] in the Records tab and the slave tab. [/list] -Every feature has its own switch or number in the mod settings. +βš™οΈ Every feature has its own switch or number in the mod settings, sorted into Trade, General and Compat tabs. -[h2]Replaces[/h2] +[img]https://forgejo.blax.at/blax-software/rimworld-blax-slaves/raw/branch/main/docs/art/steam/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. [list] -[*]Trade as Slave or Colonist (while it's active, Blax Slaves' own button stands down) -[*]Everybody Buys Slaves -[*][SYR] More Slaves (can stay: its extra slaves stack on top) +[*]♻️ Trade as Slave or Colonist (while it's active, Blax Slaves' own button stands down) +[*]♻️ Everybody Buys Slaves +[*]♻️ [SYR] More Slaves (can stay: its extra slaves stack on top) [/list] -[h2]Compatibility[/h2] +[img]https://forgejo.blax.at/blax-software/rimworld-blax-slaves/raw/branch/main/docs/art/steam/compatibility.png[/img] [list] -[*]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. -[*]Multiplayer: not supported. +[*]βœ”οΈ 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. +[*]❌ Multiplayer: not supported. [/list] -Load after Harmony. Source 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] +[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] +πŸ› οΈ [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] diff --git a/docs/workshop-media.md b/docs/workshop-media.md new file mode 100644 index 0000000..a29831b --- /dev/null +++ b/docs/workshop-media.md @@ -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 Slaves on, cropped to the part of the screen that matters. + +| File | Shows | How to set it up | +|---|---|---| +| `trade-buy-mode.gif` | Trade window: click "Joins as slave", it flips to "Joins as colonist" and the price changes | Any trader with a pawn in stock; dev mode can spawn a slaver caravan | +| `brand-surgery.gif` | A doctor brands a slave, then the Health tab shows "slave brand (your faction)" | A colony slave, a doctor with Medicine 2 | +| `comms-request.gif` | Comms console, an allied outlander or tribe, "Request caravan" lists the slaver | An allied faction and a powered comms console | +| `runaway-return.gif` | The "returned" letter and the slave walking back in | Slow to stage; skip if it doesn't happen in normal play | +| `settings.png` | The Trade tab of the mod settings | Options > Mod settings > Blax Slaves | + +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 (on the nixos desktop, or a Windows build). 640 px wide at 15 fps keeps a 6-second clip around 2 to 4 MB: + +```sh +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/[/img]`. Push before uploading the description.