Skip to content

A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.

Towns: new-generation houses only where Tal's houses cover the town (Refs #2007) (#2259)

Eyal Goland1beceea370b
diff --git a/changelog.d/towns-new-gen.md b/changelog.d/towns-new-gen.md
new file mode 100644
index 000000000..ca56360cb
--- /dev/null
+++ b/changelog.d/towns-new-gen.md
@@ -0,0 +1,7 @@
+### Changed
+
+- Up close, the towns that have Tal Heuberger's newer houses now show only those (owner, 2 November 2026: "we need
+ everything to be in the new generation"; Refs #2007). Netanya's houses are houses 01 to 03, without #507's b13a
+ two-storey house. The Arab towns and villages, Safed, Acre, Jaffa and Jerusalem's village plots use the plastered
+ courtyard house (05) alone, without #507's b17 courtyard house. Tel Aviv, Haifa, Jerusalem's city blocks and the
+ moshavot keep their models, as nothing newer exists for them yet.
diff --git a/docs/generated-buildings-props.md b/docs/generated-buildings-props.md
index a75088d37..bb8cbc525 100644
--- a/docs/generated-buildings-props.md
+++ b/docs/generated-buildings-props.md
@@ -22,7 +22,7 @@ Mesh and animation import compression are Off. Every source clip is kept; all el
## Loading and placement dependency
-Update, 27 October 2026: the tent (06) now streams after the first frame in its own bundle from `Assets/Art/Collection/`, placed by `RuralLife` at the Bedouin camp areas. The five houses (01 to 05) stream after the first frame, each in its own bundle from `Assets/Art/Settlements/Prototype/Models/`, asked for by `TownModelLayer` only for towns a camera is close to: 01 to 03 in Netanya only, 04 on Tiberias's plots, 05 among the courtyard houses of the stone villages and Arab towns (Jerusalem's village plots included). The Tiberias hex board draws the lighter level of 04 in the editor (`HexModels.HouseLevels`, #1901); a player keeps the board's basalt stand-ins, since the houses' bundles carry only their full `-stream` prefabs. No player scene and no Resources asset depends on the tent or the houses (`CollectionImportTests.PlacedGeneratedModelsReachThePlayerOnlyThroughTheirOwnBundles`). The khaki tent (08) streams after the first frame in its own bundle from `Assets/Art/Collection/`, owned by `CampTentModels` only while a camera is close to a transit camp, in place of that camp's khaki ridge tents. The rest of this section describes the other four, as delivered.
+Update, 27 October 2026: the tent (06) now streams after the first frame in its own bundle from `Assets/Art/Collection/`, placed by `RuralLife` at the Bedouin camp areas. The five houses (01 to 05) stream after the first frame, each in its own bundle from `Assets/Art/Settlements/Prototype/Models/`, asked for by `TownModelLayer` only for towns a camera is close to: 01 to 03 in Netanya only, 04 on Tiberias's plots, 05 on the stone-village plots of the Arab towns and villages, Safed and Jerusalem's village plots. Since 2 November 2026 (owner: "we need everything to be in the new generation") these houses stand alone there: #507's b13a two-storey house no longer stands in Netanya, and #507's b17 courtyard house no longer stands beside 05. The Tiberias hex board draws the lighter level of 04 in the editor (`HexModels.HouseLevels`, #1901); a player keeps the board's basalt stand-ins, since the houses' bundles carry only their full `-stream` prefabs. No player scene and no Resources asset depends on the tent or the houses (`CollectionImportTests.PlacedGeneratedModelsReachThePlayerOnlyThroughTheirOwnBundles`). The khaki tent (08) streams after the first frame in its own bundle from `Assets/Art/Collection/`, owned by `CampTentModels` only while a camera is close to a transit camp, in place of that camp's khaki ridge tents. The rest of this section describes the other four, as delivered.
As delivered on #1379 (24 October 2026), before #1273's town-building streaming: Eyal's [23 October rulings](https://github.com/eyalgolan/statecraft-israel/pull/1379#issuecomment-6358297184) require own streamed bundles after the first frame, or the houses may use #1273's town-building streaming once it lands. Current main `703d87cf` has no compatible town-stream interface. This branch does not build that system: it removes its new campaign/catalog references, leaves existing towns/camps unchanged and records only [prepared mappings](generated-buildings-props-mapping.json) outside runtime code. Nothing new enters Resources, the 1948 Collection or the initial player art dependency graph. No WebGL download measurement is claimed.
diff --git a/unity/Assets/Scripts/Map/Kits/TownModels.cs b/unity/Assets/Scripts/Map/Kits/TownModels.cs
index 6327b9adc..20597571f 100644
--- a/unity/Assets/Scripts/Map/Kits/TownModels.cs
+++ b/unity/Assets/Scripts/Map/Kits/TownModels.cs
@@ -62,16 +62,18 @@ namespace Statecraft.Game.Map.Kits
internal static readonly TownModel[] WhiteCity = { TownModel.B01WhiteCity, TownModel.B02aCornerBlock };
internal static readonly TownModel[] Haifa = { TownModel.B04aStoneBalconies, TownModel.B04bLoadingDoors };
internal static readonly TownModel[] Jerusalem = { TownModel.B03aArches, TownModel.B03bExternalStair, TownModel.B03cPlain };
- /// <summary>The stone-village house: #507's courtyard house, and Tal Heuberger's plastered courtyard house (05) as a
- /// variation (the prepared role in docs/generated-buildings-props-mapping.json).</summary>
- internal static readonly TownModel[] Stone = { TownModel.B17CourtyardHouse, TownModel.G05CourtyardHouse };
+ /// <summary>The stone-village house (the Arab towns and villages, Safed, Acre, Jaffa and Jerusalem's village plots): Tal
+ /// Heuberger's plastered courtyard house (05) alone. #507's b17 courtyard house was dropped on 2 November 2026 (owner: "we
+ /// need everything to be in the new generation").</summary>
+ internal static readonly TownModel[] Stone = { TownModel.G05CourtyardHouse };
/// <summary>A town centre's houses (the large moshavot's TownBlock plots): #507's two-storey house.</summary>
internal static readonly TownModel[] TownBlock = { TownModel.B13aTwoStorey };
- /// <summary>Netanya's houses: #507's two-storey house and Tal Heuberger's three Netanya houses (01 to 03) as variations
- /// (the prepared roles in docs/generated-buildings-props-mapping.json), in Netanya only.</summary>
+ /// <summary>Netanya's houses: Tal Heuberger's three Netanya houses (01 to 03), in Netanya only. #507's b13a two-storey house
+ /// was dropped here on 2 November 2026 (owner: "we need everything to be in the new generation"); the other town centres
+ /// keep it (<see cref="TownBlock"/>), as no newer model replaces it there.</summary>
internal static readonly TownModel[] Netanya =
{
- TownModel.B13aTwoStorey, TownModel.G01NetanyaTiledHouse, TownModel.G02NetanyaBalconyHouse, TownModel.G03NetanyaPorchHouse,
+ TownModel.G01NetanyaTiledHouse, TownModel.G02NetanyaBalconyHouse, TownModel.G03NetanyaPorchHouse,
};
/// <summary>Tiberias's houses: Tal Heuberger's basalt house (04). The old town "was built of basalt blocks" (en.wiki
/// Tiberias, checked 2026-10-19, as cited in HexTiles/Prototypes/TiberiasTown.cs).</summary>
diff --git a/unity/Assets/Tests/EditMode/TalModelsShots.cs b/unity/Assets/Tests/EditMode/TalModelsShots.cs
index fda5f6b82..7a7f422f7 100644
--- a/unity/Assets/Tests/EditMode/TalModelsShots.cs
+++ b/unity/Assets/Tests/EditMode/TalModelsShots.cs
@@ -199,6 +199,12 @@ public class TalModelsShots
[UnityTest] public IEnumerator HousesNetanyaHebrew() { yield return Houses(true, "netanya"); }
[UnityTest] public IEnumerator HousesTiberiasEnglish() { yield return Houses(false, "tiberias"); }
[UnityTest] public IEnumerator HousesTiberiasHebrew() { yield return Houses(true, "tiberias"); }
+ // Safed and Acre: the stone-village set at a named town, so the before and after frames are the same town (the village
+ // picked by Houses(null) depends on the set).
+ [UnityTest] public IEnumerator HousesSafedEnglish() { yield return Houses(false, "safed"); }
+ [UnityTest] public IEnumerator HousesSafedHebrew() { yield return Houses(true, "safed"); }
+ [UnityTest] public IEnumerator HousesAcreEnglish() { yield return Houses(false, "acre"); }
+ [UnityTest] public IEnumerator HousesAcreHebrew() { yield return Houses(true, "acre"); }
[UnityTest] public IEnumerator HousesVillageEnglish() { yield return Houses(false, null); }
[UnityTest] public IEnumerator HousesVillageHebrew() { yield return Houses(true, null); }
diff --git a/unity/Assets/Tests/EditMode/TownModelScaleTests.cs b/unity/Assets/Tests/EditMode/TownModelScaleTests.cs
index f471dcbbe..a4d663cd1 100644
--- a/unity/Assets/Tests/EditMode/TownModelScaleTests.cs
+++ b/unity/Assets/Tests/EditMode/TownModelScaleTests.cs
@@ -126,7 +126,7 @@ public class TownModelScaleTests
}
/// <summary>"jaffa's buildings be over tel avivs buildings": Jaffa (an Arab town in May 1948) keeps its stone houses
- /// (b17 and g05) and Tel Aviv its White City blocks, at one scale: Jaffa's tallest house stands lower than the locomotive's car is
+ /// (g05 only, 2 November 2026) and Tel Aviv its White City blocks, at one scale: Jaffa's tallest house stands lower than the locomotive's car is
/// long and lower than Tel Aviv's typical block. On v0.1.1 Jaffa's 100x houses rose up to about 490 m, in front of Tel
/// Aviv's blocks from the camera's side (it looks north), so they covered them.</summary>
[Test]
@@ -136,7 +136,7 @@ public class TownModelScaleTests
bool Port(SettlementKits.ModelInstance m) => m.Model == M.B32CargoShed || m.Model == M.B28WaterTower; // a port's sheds, a water tower
var jaffa = models.Where(m => m.Id == "jaffa" && !Port(m)).ToList(); var tel = models.Where(m => m.Id == "tel_aviv" && !Port(m)).ToList();
Assert.Greater(jaffa.Count, 10); Assert.Greater(tel.Count, 20);
- Assert.IsTrue(jaffa.All(m => m.Model == M.B17CourtyardHouse || m.Model == M.G05CourtyardHouse), "Jaffa's stone houses (b17 and g05)");
+ Assert.IsTrue(jaffa.All(m => m.Model == M.G05CourtyardHouse), "Jaffa's stone houses (g05 only)");
Assert.IsTrue(tel.All(m => m.Model == M.B01WhiteCity || m.Model == M.B02aCornerBlock || m.Model == M.B02bNarrowBlock), "the White City");
var th = tel.Select(m => Box(m).height).OrderBy(x => x).ToList();
float jaffaMax = jaffa.Max(m => Box(m).height), telMedian = th[th.Count / 2];
diff --git a/unity/Assets/Tests/EditMode/TownModelTests.cs b/unity/Assets/Tests/EditMode/TownModelTests.cs
index bab868e3e..24be8d0e0 100644
--- a/unity/Assets/Tests/EditMode/TownModelTests.cs
+++ b/unity/Assets/Tests/EditMode/TownModelTests.cs
@@ -54,9 +54,12 @@ public class TownModelTests
{
case "tel_aviv": return new HashSet<M> { M.B01WhiteCity, M.B02aCornerBlock, M.B02bNarrowBlock, M.B32CargoShed };
case "haifa": return new HashSet<M> { M.B04aStoneBalconies, M.B04bLoadingDoors, M.B32CargoShed, M.B05aMoshavaHouse };
- case "jerusalem": return new HashSet<M> { M.B03aArches, M.B03bExternalStair, M.B03cPlain, M.B17CourtyardHouse, M.G05CourtyardHouse };
- // Tal Heuberger's Netanya houses (01 to 03) in Netanya only, and the basalt house (04) in Tiberias only (#756).
- case "netanya": return new HashSet<M> { M.B13aTwoStorey, M.G01NetanyaTiledHouse, M.G02NetanyaBalconyHouse, M.G03NetanyaPorchHouse, M.B28WaterTower };
+ // Jerusalem's village plots are stone-village plots: house 05 only (owner, 2 November 2026: "we need everything to be
+ // in the new generation"); its city blocks keep #507's b03 models, which no newer model replaces yet.
+ case "jerusalem": return new HashSet<M> { M.B03aArches, M.B03bExternalStair, M.B03cPlain, M.G05CourtyardHouse };
+ // Tal Heuberger's Netanya houses (01 to 03) in Netanya only, without #507's b13a (owner, 2 November 2026), and the
+ // basalt house (04) in Tiberias only (#756).
+ case "netanya": return new HashSet<M> { M.G01NetanyaTiledHouse, M.G02NetanyaBalconyHouse, M.G03NetanyaPorchHouse, M.B28WaterTower };
case "tiberias": return new HashSet<M> { M.G04BasaltHouse };
}
switch (s.Type)
@@ -67,7 +70,7 @@ public class TownModelTests
var h = new HashSet<M>(moshava) { M.B13aTwoStorey };
if (TownModels.WineMoshava(s.Id)) h.Add(M.B23Winery);
return h;
- default: return new HashSet<M> { M.B17CourtyardHouse, M.G05CourtyardHouse }; // the old towns and the Arab towns: the courtyard houses
+ default: return new HashSet<M> { M.G05CourtyardHouse }; // the old towns and the Arab towns (Safed too): house 05 only, no b17
}
}
@@ -97,21 +100,25 @@ public class TownModelTests
}
// The cities' own models are there (not only a fallback).
foreach (var (id, model) in new[] { ("tel_aviv", M.B01WhiteCity), ("tel_aviv", M.B02bNarrowBlock), ("haifa", M.B04aStoneBalconies),
- ("haifa", M.B32CargoShed), ("jerusalem", M.B03cPlain), ("jaffa", M.B17CourtyardHouse), ("netanya", M.B13aTwoStorey),
- ("netanya", M.G01NetanyaTiledHouse), ("netanya", M.G02NetanyaBalconyHouse), ("netanya", M.G03NetanyaPorchHouse),
+ ("haifa", M.B32CargoShed), ("jerusalem", M.B03cPlain), ("jaffa", M.G05CourtyardHouse), ("safed", M.G05CourtyardHouse),
+ ("acre", M.G05CourtyardHouse), ("netanya", M.G01NetanyaTiledHouse), ("netanya", M.G02NetanyaBalconyHouse), ("netanya", M.G03NetanyaPorchHouse),
("tiberias", M.G04BasaltHouse) })
if (!built.Models.Any(m => m.Id == id && m.Model == model)) bad.Add($"{id} has no {model}");
// The generated houses stand only where they were placed: 01 to 03 in Netanya, 04 in Tiberias (game settlements and
- // 1948 localities alike).
+ // 1948 localities alike). And the owner, 2 November 2026: "we need everything to be in the new generation": no game
+ // settlement or locality (the mixed ones included) draws #507's b17 courtyard house, and #507's b13a two-storey house
+ // stands only on the game towns' TownBlock plots that no newer model replaces (never in Netanya).
+ var townCentres = map.Settlements.Where(s => s.Type == "town" && s.Id != "netanya").Select(s => s.Id).ToHashSet();
foreach (var m in built.Models)
{
if ((m.Model == M.G01NetanyaTiledHouse || m.Model == M.G02NetanyaBalconyHouse || m.Model == M.G03NetanyaPorchHouse) && m.Id != "netanya") bad.Add($"{m.Id} has {m.Model}");
if (m.Model == M.G04BasaltHouse && m.Id != "tiberias") bad.Add($"{m.Id} has {m.Model}");
+ if (m.Model == M.B17CourtyardHouse || (m.Model == M.B13aTwoStorey && !townCentres.Contains(m.Id))) bad.Add($"{m.Id} has {m.Model}");
}
- // A 1948 Arab village is built of courtyard houses.
+ // A 1948 Arab village is built of the plastered courtyard house (05) alone.
var villages = map.Localities.Select(p => p.Settlement).Where(s => s.Type == "village" && !Localities.IsMixed(s.Id)).Select(s => s.Id).ToHashSet();
var villageModels = built.Models.Where(m => villages.Contains(m.Id) && m.Model != M.B28WaterTower).Select(m => m.Model).Distinct().ToList();
- CollectionAssert.AreEquivalent(new[] { M.B17CourtyardHouse, M.G05CourtyardHouse }, villageModels, "the villages' houses: the two courtyard houses");
+ CollectionAssert.AreEquivalent(new[] { M.G05CourtyardHouse }, villageModels, "the villages' houses: house 05 only");
// Every farm shed of every kibbutz (#820: the game settlements' and the localities') is a b24 barn, and no kibbutz
// house is.
var kibbutzim = map.Settlements.Concat(map.Localities.Select(p => p.Settlement)).Where(s => s.Type == "kibbutz").Select(s => s.Id).ToHashSet();