mirror of
https://github.com/rehan-remade/universal-modder.git
synced 2026-11-05 01:37:40 +00:00
[PR #139] [CLOSED] kb: Battle Brothers Squirrel mod via Modern Hooks and MSU (Training Grounds) #155
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
rehan-remade/universal-modder#155
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/rehan-remade/universal-modder/pull/139
Author: @Sekach57
Created: 10/7/2026
Status: ❌ Closed
Base:
main← Head:kb/battle-brothers-squirrel-training📝 Commits (10+)
f888596examples: Battle Brothers Training Grounds mod source, build script, logic testc93fb7aexamples: Battle Brothers Training Grounds README, MODLOG, build test198a03eexamples: drop stray compiled out.cnut from Battle Brothers example394f767examples: Training Grounds: drop world-map EventLog calls (Tactical.EventLog is battle-only)4d01627examples: Training Grounds gets its own building art (day and night, fal-generated)decf588examples: Training Grounds: ship _b image variants the town UI requests; allow clicks at night8f8aba5examples: Training Grounds wizard: max 5 buttons per screen (3 choices, more, leave/back)a682db8examples: Training Grounds wizard: buttons return screen IDs (vanilla rejects tables)ba48aedexamples: Training Grounds only in some towns (stable per-town lottery, MSU percent setting)d81ee32Battle Brothers training: richer wizard screens and completion notice📊 Changes
20 files changed (+1163 additions, -1 deletions)
View changed files
➕
examples/battle-brothers-training/MODLOG.md(+62 -0)➕
examples/battle-brothers-training/README.md(+74 -0)➕
examples/battle-brothers-training/build.py(+44 -0)➕
examples/battle-brothers-training/mod/gfx/ui/settlements/tg_training_grounds.png(+0 -0)➕
examples/battle-brothers-training/mod/gfx/ui/settlements/tg_training_grounds_b.png(+0 -0)➕
examples/battle-brothers-training/mod/gfx/ui/settlements/tg_training_grounds_night.png(+0 -0)➕
examples/battle-brothers-training/mod/gfx/ui/settlements/tg_training_grounds_night_b.png(+0 -0)➕
examples/battle-brothers-training/mod/scripts/!mods_preload/mod_training_grounds.nut(+26 -0)➕
examples/battle-brothers-training/mod/scripts/entity/world/settlements/buildings/tg_training_grounds_building.nut(+24 -0)➕
examples/battle-brothers-training/mod/scripts/mods/tg/tg_notice_event.nut(+42 -0)➕
examples/battle-brothers-training/mod/scripts/mods/tg/tg_wizard_event.nut(+234 -0)➕
examples/battle-brothers-training/mod/scripts/skills/effects_world/tg_training_effect.nut(+99 -0)➕
examples/battle-brothers-training/mod/training_grounds/game.nut(+169 -0)➕
examples/battle-brothers-training/mod/training_grounds/hooks.nut(+53 -0)➕
examples/battle-brothers-training/mod/training_grounds/logic.nut(+90 -0)➕
examples/battle-brothers-training/tests/test_logic.nut(+67 -0)📝
knowledge/INDEX.md(+2 -1)➕
knowledge/games/battle-brothers/squirrel-mod-via-modern-hooks-and-msu-a-training-grounds-tow.md(+113 -0)📝
knowledge/index.json(+35 -0)➕
tests/test_battle_brothers_example.py(+29 -0)📄 Description
What
A field note and a working example mod for Battle Brothers: a "Training Grounds" town building built as a
Squirrel mod on Modern Hooks 0.6.0 and MSU 1.9.0 (game 1.5.2.3).
knowledge/games/battle-brothers/: setup, how town buildings, brother stats, skills and event screens work,and numbered gotchas (symptom, cause, fix). It is the first note for this game and for Squirrel scripting.
examples/battle-brothers-training/: the mod source, build script, offline Squirrel logic test and README.No game files or decompiled code are included. The building art was generated with fal and credited.
tests/test_battle_brothers_example.py: checks the example builds.Status
status: in-progress. Verified in the real game: the mod loads, the building appears, the click and thewizard work (bugs were found and fixed from
log.html). Not verified yet: the stat boost after the trainingdays, the -25% display, save/load mid-training, and the richer screens added last.
Checks
uv run --with pytest pytest -q tests: 78 passed, 1 skipped (the Squirrel test needssq.exe).um kb check --index: pass.um publish check .: 0 failures.Built with Claude Code (Sonnet 5.5) and checked by a human playing the game.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.