FORGOTTEN TOWNS

FORGOTTEN TOWNS / 改造ドキュメント

改造ウィキ ↗

Java API リファレンス (Javadoc)

MOD API 15

ウィキを閲覧する

現在の Mod API ドキュメント。

技術文書は英語で入手できます。コード名とフィールド名は現在の Mod API に従います。

改造ドキュメント

Town Inspector

Middle-click a visible citizen, soldier, hero, creature, or zone to inspect that subject in a dedicated parchment modal. Middle-drag continues to pan the camera. Blueprint workshop sampling keeps its existing middle-click behavior.

Enable Copy buildable tool in this mod’s settings to middle-click an unlocked wall, roof or stair and select its ordinary construction tool. It defaults to off. Unit inspection takes priority; crafted furniture and terrain are excluded, so middle-clicking an oven still reaches its zone inspector. The normal discovery, workstation and campaign gates apply.

With unit inspection enabled, the roster's information button opens this same modal. Its header uses the civilian, soldier or hero group icon; the Overview shows the actor's south-facing sprite once at the top. Inventory includes empty capacity, the fire-tool slot and specialist medicine slots. Click a necklace, selectable weapon or horse-armour slot to request compatible equipment from storage using the same availability rules as the ordinary roster.

Units have a roomy overview; citizens, soldiers and heroes also have separate Relationships and Happiness tabs. Relationships sort by the selected unit's outgoing feelings, highest first. Both directions remain visible when either side has feelings, including a neutral counterpart.

Zone inspectors list unlocked construction tied to that zone, using the ordinary biome, discovery, and progression checks. Select an item to pick its normal placement tool. Enlarge selects that zone's build tool; Shrink selects Destroy. Destroy cannot remove zone paint beneath a dependent workstation's footprint or work positions, including when a queued removal becomes invalid later. Existing construction costs and placement restrictions still apply.

Stockpiles and stables expose Gate and Fence directly in the inspector. Either tool remains selected across all stockpiles and stables until you right-click or choose another tool. Manage zone opens the same controls as the zone's sign (including stock filters and stable animal management), replacing the inspector so only one of these panels is open at a time. Middle-clicking a sign also inspects its zone. Residence inspectors provide the same management link.

Build with ./gradlew.bat --no-daemon assembleTownInspectorMod or town_inspectorModZip. Install build/mods/town_inspector under the game's mods folder and enable Town Inspector. Requires the Mod API; no other mods are required. Relationship rows appear when an enabled mod supplies affinity data. Disabling this mod removes its inspector opt-in after restart. Zone destruction protection is a shared engine integrity rule and remains active.

The mod registers WorldInspection through the public SDK; it has no rendering hooks, private engine imports, campaign IDs, or persistent per-world state.