A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
Map: MATKOT's townspeople and wildlife at the 24x train scale (fixes #1033) (#1050)
Beri7333d3ba244f
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex c5094c149..13fc3abbe 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -126,6 +126,10 @@ adds a line under **Unreleased**; CI's `Changelog` job checks this (see `CONTRIBand stream after the first frame (#725).### Fixed+- MATKOT's townspeople (#666) and wildlife (#670) stand at the same 24x train scale as the building models+ (`SettlementKits.ModelScale`, #1030): a man is about 43 m tall, an ibex about 31 m and a striped hyena about 26 m+ long, all smaller than a house and about a fifth of the locomotive's car or less. Before, a man was about 2.5 km and+ an animal about 1.9 km, sized like the unit pieces, which keep their symbolic size (#1033).- Official records for three sourcing calls (owner, 18 October 2026, #457): the Provisional Government keeps its14 May 1948 start (the Knesset position records), Education is vacant from 19 May to 8 October 1951 (no official termfollows Remez's, row 3860), and `education_registration_1951` opens on 12 February 1951, its first cited plenum recorddiff --git a/unity/Assets/Scripts/Map/Collection/CivilianPeople.cs b/unity/Assets/Scripts/Map/Collection/CivilianPeople.csindex 9fc4a3937..9243c0ce6 100644--- a/unity/Assets/Scripts/Map/Collection/CivilianPeople.cs+++ b/unity/Assets/Scripts/Map/Collection/CivilianPeople.cs@@ -34,10 +34,13 @@ namespace Statecraft.Game.Map.Collectionpublic const int SettledGroupSize = 3; // design value: one small, legible group at a permanent settlementpublic const int CampGroupSize = 2; // design value: one arriving pair at a transit camp- public const float FigureScale = UnitShowcase.FigureScale; // design value: reuse the established symbolic figure scale+ // The owner on #1033 ("Train scale for all ambient life"): the building models' world scale, a man about 43 m tall+ // beside the 204 m locomotive car. Only the unit pieces keep their symbolic size (UnitShowcase.FigureScale).+ public const float FigureScale = SettlementKits.ModelScale;public const float FigureHeightM = UnitBadge.FigureHeightM * FigureScale;- public const float FigureSpacingM = 1200f; // design value: separates silhouettes without reading as a crowd- public const float FigureClearanceM = 500f; // design value: conservative half-width/clearance for one symbolic figure+ // Design values (#666), kept in proportion to the figure: 1,200 m and 500 m beside a man drawn at the units' scale.+ public const float FigureSpacingM = 1200f * FigureScale / UnitShowcase.FigureScale; // separates silhouettes without reading as a crowd+ public const float FigureClearanceM = 500f * FigureScale / UnitShowcase.FigureScale; // conservative half-width/clearance for one figurepublic const float LabelClearanceM = 400f; // design value: extra ground outside the labelled settlement footprintpublic const float SearchStepM = 1400f; // design value: outward step when the nearest ring is occupiedpublic const int SearchRings = 8, SearchBearings = 16; // design values: bounded cosmetic placement searchdiff --git a/unity/Assets/Scripts/Map/Collection/WildlifeLayer.cs b/unity/Assets/Scripts/Map/Collection/WildlifeLayer.csindex 6d7e9b6bd..4805336cb 100644--- a/unity/Assets/Scripts/Map/Collection/WildlifeLayer.cs+++ b/unity/Assets/Scripts/Map/Collection/WildlifeLayer.cs@@ -3,7 +3,6 @@ using System;using System.Collections.Generic;using System.Linq;using Statecraft.Game.Map.Kits;-using Statecraft.Game.Map.Units;using UnityEngine;using UnityEngine.Rendering;@@ -36,11 +35,14 @@ namespace Statecraft.Game.Map.Collection// Design values (#670): sparse enough that the whole map contains only a handful.public const int IbexCount = 3, HyenaCount = 3;- /// <summary>An animal's largest ground edge (m): sized against the man, as the units' symbolic scale sizes everything- /// (UnitShowcase.FigureScale: a man about 2.5 km tall), at <see cref="LengthOverMan"/> of his height, about 1.9 km.- /// A real-scale animal would be a speck beside the kits' houses and groves.</summary>- public const float LengthOverMan = 0.75f; // design value: a quadruped's length against a standing man- public const float SizeM = LengthOverMan * UnitBadge.FigureHeightM * UnitShowcase.FigureScale;+ /// <summary>An animal's real length (m), drawn as its largest ground edge at the building models' world scale+ /// (<see cref="SettlementKits.ModelScale"/>, the owner on #1033: "Train scale for all ambient life"): an ibex about+ /// 31 m and a hyena about 26 m, beside the 204 m locomotive car.</summary>+ public const float IbexLengthM = 1.3f, HyenaLengthM = 1.1f;+ public static float LengthM(string model) => (model == Ibex ? IbexLengthM : HyenaLengthM) * SettlementKits.ModelScale;+ /// <summary>The ground edge (m) every animal's spacing, clearance and level ground are measured over: the larger+ /// animal's, the ibex.</summary>+ public const float SizeM = IbexLengthM * SettlementKits.ModelScale;// Design value: no two animals closer than two lengths, so they never overlap or read as a herd.public const float MinSpacingM = 2f * SizeM;/// <summary>The close zoom (view distance, m) they draw at, with hysteresis: in from 40 km, out beyond 45 km, the band@@ -217,7 +219,7 @@ namespace Statecraft.Game.Map.Collectiongo.transform.localRotation = Quaternion.Euler(0f, w.Yaw, 0f) * prefab.transform.localRotation;var bounds = Bounds(go);float edge = Mathf.Max(bounds.size.x, bounds.size.z);- go.transform.localScale *= edge > 1e-3f ? SizeM / edge : 1f;+ go.transform.localScale *= edge > 1e-3f ? LengthM(w.Model) / edge : 1f;var pos = new Vector3(w.At.x, BaseY(ground, w.At), w.At.y);go.transform.position = pos;var placed = Bounds(go);diff --git a/unity/Assets/Tests/EditMode/CivilianPeopleTests.cs b/unity/Assets/Tests/EditMode/CivilianPeopleTests.csindex a2bd651e4..408e8cb9c 100644--- a/unity/Assets/Tests/EditMode/CivilianPeopleTests.cs+++ b/unity/Assets/Tests/EditMode/CivilianPeopleTests.cs@@ -151,11 +151,34 @@ public sealed class CivilianPeopleTestsvar prefab = Prefab(p.Model, CollectionDetail.Far);var expected = layer.transform.rotation * Quaternion.Euler(0f, p.Yaw, 0f) * prefab.transform.localRotation;Assert.Less(Quaternion.Angle(expected, child!.rotation), 0.01f, p.Key + " upright");- Assert.AreEqual(CivilianPeople.FigureHeightM, WorldBounds(child.gameObject).size.y, CivilianPeople.FigureHeightM * 0.02f, p.Key + " symbolic height");+ Assert.AreEqual(CivilianPeople.FigureHeightM, WorldBounds(child.gameObject).size.y, CivilianPeople.FigureHeightM * 0.02f, p.Key + " height at the world scale");Assert.IsTrue(child.GetComponentsInChildren<Renderer>(true).All(r => r.sharedMaterial.enableInstancing), p.Key + " is GPU-instanced");}}+ /// <summary>Issue #1033 (the owner, 18 October 2026: "Train scale for all ambient life"): a townsperson is drawn at+ /// the building models' world scale (SettlementKits.ModelScale), a 1.78 m man about 43 m tall, so he is smaller than+ /// the reference house and a fifth of the steam train's locomotive car (RoadVehicles.LocomotiveCarM, about 204 m),+ /// where before he was about 2.5 km tall, twelve locomotive cars.</summary>+ [Test]+ public void EveryFigureIsSmallerThanAHouseAndMuchSmallerThanTheLocomotiveCar()+ {+ var map = OpenMap();+ var content = ContentLoader.Load(Statecraft.Game.Paths.Content);+ var layer = CivilianPeople.ShowAt(map, new DateTime(1949, 1, 1), Array.Empty<Placement>(), content)!;+ Answer(CollectionDetail.Far);+ Assert.Greater(layer.Placed.Count, 0);+ float house = Statecraft.Game.Map.Kits.SettlementKits.ReferenceHouseM * Statecraft.Game.Map.Kits.SettlementKits.ModelScale;+ float car = Statecraft.Game.Map.Routes.RoadVehicles.LocomotiveCarM;+ foreach (var p in layer.Placed)+ {+ var size = WorldBounds(layer.transform.Find(p.Key + "/Far").gameObject).size;+ float tallest = Mathf.Max(size.x, size.y, size.z);+ Assert.Less(tallest, house, $"{p.Key}: {tallest:0} m against the {house:0} m reference house");+ Assert.That(tallest / car, Is.InRange(0.1f, 0.25f), $"{p.Key}: {tallest:0} m against the {car:0} m locomotive car");+ }+ }+[Test]public void CloseZoomStreamsTheNearIdleFiguresAndKeepsFarFiguresUntilTheyArrive(){diff --git a/unity/Assets/Tests/EditMode/WildlifeLayerTests.cs b/unity/Assets/Tests/EditMode/WildlifeLayerTests.csindex 192e65a9c..057b1f136 100644--- a/unity/Assets/Tests/EditMode/WildlifeLayerTests.cs+++ b/unity/Assets/Tests/EditMode/WildlifeLayerTests.cs@@ -94,7 +94,7 @@ public class WildlifeLayerTestsvar (lo, hi) = WildlifeLayer.GroundSpan(ground, new Vector2(p.At.x, p.At.z));Assert.LessOrEqual(hi - b.min.y, 0.5f * WildlifeLayer.MaxReliefM + 0.5f, p.Key + " is not buried in the ground under it");Assert.LessOrEqual(b.min.y - lo, 0.5f * WildlifeLayer.MaxReliefM + 0.5f, p.Key + " does not float over the ground under it");- Assert.AreEqual(WildlifeLayer.SizeM, Mathf.Max(b.size.x, b.size.z), 0.5f, p.Key + " is its symbolic size");+ Assert.AreEqual(WildlifeLayer.LengthM(p.Model), Mathf.Max(b.size.x, b.size.z), 0.5f, p.Key + " is its size at the world scale");// Standing as the model stands: its height is the prefab's own standing height times the layer's scale (a yaw// about the vertical never changes a height; a model laid on its side would have its width as its height).var rest = Object.Instantiate(prefab);@@ -111,6 +111,29 @@ public class WildlifeLayerTestsAssert.IsFalse(WildlifeLayer.CloseAt(band, false));}+ /// <summary>Issue #1033 (the owner, 18 October 2026: "Train scale for all ambient life"): each animal is drawn at the+ /// building models' world scale (SettlementKits.ModelScale), an ibex of about 1.3 m about 31 m long and a striped hyena+ /// of about 1.1 m about 26 m, smaller than the reference house and a sixth or so of the steam train's locomotive car+ /// (RoadVehicles.LocomotiveCarM, about 204 m), where before each was about 1.9 km.</summary>+ [Test]+ public void EveryAnimalIsSmallerThanAHouseAndMuchSmallerThanTheLocomotiveCar()+ {+ var map = OpenMap();+ var layer = WildlifeLayer.Show(map)!;+ foreach (var (id, _, done) in asked.ToList()) done(Near(id));+ Assert.AreEqual(WildlifeLayer.IbexCount + WildlifeLayer.HyenaCount, layer.Placed.Count);+ float house = Statecraft.Game.Map.Kits.SettlementKits.ReferenceHouseM * Statecraft.Game.Map.Kits.SettlementKits.ModelScale;+ float car = Statecraft.Game.Map.Routes.RoadVehicles.LocomotiveCarM;+ foreach (var p in layer.Placed)+ {+ var rs = layer.transform.Find(p.Key).GetComponentsInChildren<Renderer>();+ var b = rs[0].bounds; foreach (var r in rs) b.Encapsulate(r.bounds);+ float longest = Mathf.Max(b.size.x, b.size.y, b.size.z);+ Assert.Less(longest, house, $"{p.Key}: {longest:0} m against the {house:0} m reference house");+ Assert.That(longest / car, Is.InRange(0.1f, 0.2f), $"{p.Key}: {longest:0} m against the {car:0} m locomotive car");+ }+ }+[Test]public void MissingBundleFailsOpen(){