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.

Separate the Lebanese original token from persistent starting forces (#1978)

Eyal Golanf49c9dba6c39
diff --git a/ASSETS.yaml b/ASSETS.yaml
index eb8cce984..927608d4c 100644
--- a/ASSETS.yaml
+++ b/ASSETS.yaml
@@ -1035,98 +1035,98 @@ rules:
source: "Tripo Studio Smart Mesh P2.0, generated 22 October 2026 by Tal Heuberger. Exact provider GLB and embedded 4096px JPEG are retained byte-identical in asset-sources/generated-1948/<id>/. Unity FBX is a documented full-geometry compatibility export, not a provider FBX. Source rigged GLBs contain zero animation clips; both existing locally retargeted idle/walk actions are exported at every frame with no simplification. No decimated copy, texture resize, Crunch or Unity mesh/animation compression. Per-character provenance records source and export hashes."
status: verified
artist: "Tal Heuberger"
- note: "New models by Tal Heuberger under CC BY-NC-ND 4.0, per the adopted 23 October brief; attribution Tal Heuberger. Existing asset grants are unchanged. Two review-only characters are editor-only; the Syrian, Iraqi and Egyptian infantry stand on their own formations' tokens, the ALA infantry is the ALA token's third figure and the Bedouin civilian stands at the Bedouin camp areas (the owner signed off all 19 generated models on 27 October 2026, #756). No archival uniform-colour claim."
+ note: "New models by Tal Heuberger under CC BY-NC-ND 4.0, per the adopted 23 October brief; attribution Tal Heuberger. Existing asset grants are unchanged. One review-only character is editor-only; the Syrian, Iraqi and Egyptian infantry stand on their own formations' tokens, the ALA infantry is the ALA token's third figure, the Lebanese regular stands on the Lebanese army's map-only token and the Bedouin civilian stands at the Bedouin camp areas (the owner signed off all 19 generated models on 27 October 2026, #756). No archival uniform-colour claim."
- glob: "unity/Assets/Art/Collection/figure-syrian-infantry-1948-v1/*_basecolor.jpg"
licence: CC-BY-NC-ND-4.0
ai_generated: true
source: "Tripo Studio Smart Mesh P2.0, generated 22 October 2026 by Tal Heuberger. Exact provider GLB and embedded 4096px JPEG are retained byte-identical in asset-sources/generated-1948/<id>/. Unity FBX is a documented full-geometry compatibility export, not a provider FBX. Source rigged GLBs contain zero animation clips; both existing locally retargeted idle/walk actions are exported at every frame with no simplification. No decimated copy, texture resize, Crunch or Unity mesh/animation compression. Per-character provenance records source and export hashes."
status: verified
artist: "Tal Heuberger"
- note: "New models by Tal Heuberger under CC BY-NC-ND 4.0, per the adopted 23 October brief; attribution Tal Heuberger. Existing asset grants are unchanged. Two review-only characters are editor-only; the Syrian, Iraqi and Egyptian infantry stand on their own formations' tokens, the ALA infantry is the ALA token's third figure and the Bedouin civilian stands at the Bedouin camp areas (the owner signed off all 19 generated models on 27 October 2026, #756). No archival uniform-colour claim."
+ note: "New models by Tal Heuberger under CC BY-NC-ND 4.0, per the adopted 23 October brief; attribution Tal Heuberger. Existing asset grants are unchanged. One review-only character is editor-only; the Syrian, Iraqi and Egyptian infantry stand on their own formations' tokens, the ALA infantry is the ALA token's third figure, the Lebanese regular stands on the Lebanese army's map-only token and the Bedouin civilian stands at the Bedouin camp areas (the owner signed off all 19 generated models on 27 October 2026, #756). No archival uniform-colour claim."
- glob: "unity/Assets/Art/Collection/figure-ala-infantry-1948-v1/*.fbx"
licence: CC-BY-NC-ND-4.0
ai_generated: true
source: "Tripo Studio Smart Mesh P2.0, generated 22 October 2026 by Tal Heuberger. Exact provider GLB and embedded 4096px JPEG are retained byte-identical in asset-sources/generated-1948/<id>/. Unity FBX is a documented full-geometry compatibility export, not a provider FBX. Source rigged GLBs contain zero animation clips; both existing locally retargeted idle/walk actions are exported at every frame with no simplification. No decimated copy, texture resize, Crunch or Unity mesh/animation compression. Per-character provenance records source and export hashes."
status: verified
artist: "Tal Heuberger"
- note: "New models by Tal Heuberger under CC BY-NC-ND 4.0, per the adopted 23 October brief; attribution Tal Heuberger. Existing asset grants are unchanged. Two review-only characters are editor-only; the Syrian, Iraqi and Egyptian infantry stand on their own formations' tokens, the ALA infantry is the ALA token's third figure and the Bedouin civilian stands at the Bedouin camp areas (the owner signed off all 19 generated models on 27 October 2026, #756). No archival uniform-colour claim."
+ note: "New models by Tal Heuberger under CC BY-NC-ND 4.0, per the adopted 23 October brief; attribution Tal Heuberger. Existing asset grants are unchanged. One review-only character is editor-only; the Syrian, Iraqi and Egyptian infantry stand on their own formations' tokens, the ALA infantry is the ALA token's third figure, the Lebanese regular stands on the Lebanese army's map-only token and the Bedouin civilian stands at the Bedouin camp areas (the owner signed off all 19 generated models on 27 October 2026, #756). No archival uniform-colour claim."
- glob: "unity/Assets/Art/Collection/figure-ala-infantry-1948-v1/*_basecolor.jpg"
licence: CC-BY-NC-ND-4.0
ai_generated: true
source: "Tripo Studio Smart Mesh P2.0, generated 22 October 2026 by Tal Heuberger. Exact provider GLB and embedded 4096px JPEG are retained byte-identical in asset-sources/generated-1948/<id>/. Unity FBX is a documented full-geometry compatibility export, not a provider FBX. Source rigged GLBs contain zero animation clips; both existing locally retargeted idle/walk actions are exported at every frame with no simplification. No decimated copy, texture resize, Crunch or Unity mesh/animation compression. Per-character provenance records source and export hashes."
status: verified
artist: "Tal Heuberger"
- note: "New models by Tal Heuberger under CC BY-NC-ND 4.0, per the adopted 23 October brief; attribution Tal Heuberger. Existing asset grants are unchanged. Two review-only characters are editor-only; the Syrian, Iraqi and Egyptian infantry stand on their own formations' tokens, the ALA infantry is the ALA token's third figure and the Bedouin civilian stands at the Bedouin camp areas (the owner signed off all 19 generated models on 27 October 2026, #756). No archival uniform-colour claim."
+ note: "New models by Tal Heuberger under CC BY-NC-ND 4.0, per the adopted 23 October brief; attribution Tal Heuberger. Existing asset grants are unchanged. One review-only character is editor-only; the Syrian, Iraqi and Egyptian infantry stand on their own formations' tokens, the ALA infantry is the ALA token's third figure, the Lebanese regular stands on the Lebanese army's map-only token and the Bedouin civilian stands at the Bedouin camp areas (the owner signed off all 19 generated models on 27 October 2026, #756). No archival uniform-colour claim."
- glob: "unity/Assets/Art/Collection/figure-iraqi-infantry-1948-v1/*.fbx"
licence: CC-BY-NC-ND-4.0
ai_generated: true
source: "Tripo Studio Smart Mesh P2.0, generated 22 October 2026 by Tal Heuberger. Exact provider GLB and embedded 4096px JPEG are retained byte-identical in asset-sources/generated-1948/<id>/. Unity FBX is a documented full-geometry compatibility export, not a provider FBX. Source rigged GLBs contain zero animation clips; both existing locally retargeted idle/walk actions are exported at every frame with no simplification. No decimated copy, texture resize, Crunch or Unity mesh/animation compression. Per-character provenance records source and export hashes."
status: verified
artist: "Tal Heuberger"
- note: "New models by Tal Heuberger under CC BY-NC-ND 4.0, per the adopted 23 October brief; attribution Tal Heuberger. Existing asset grants are unchanged. Two review-only characters are editor-only; the Syrian, Iraqi and Egyptian infantry stand on their own formations' tokens, the ALA infantry is the ALA token's third figure and the Bedouin civilian stands at the Bedouin camp areas (the owner signed off all 19 generated models on 27 October 2026, #756). No archival uniform-colour claim."
+ note: "New models by Tal Heuberger under CC BY-NC-ND 4.0, per the adopted 23 October brief; attribution Tal Heuberger. Existing asset grants are unchanged. One review-only character is editor-only; the Syrian, Iraqi and Egyptian infantry stand on their own formations' tokens, the ALA infantry is the ALA token's third figure, the Lebanese regular stands on the Lebanese army's map-only token and the Bedouin civilian stands at the Bedouin camp areas (the owner signed off all 19 generated models on 27 October 2026, #756). No archival uniform-colour claim."
- glob: "unity/Assets/Art/Collection/figure-iraqi-infantry-1948-v1/*_basecolor.jpg"
licence: CC-BY-NC-ND-4.0
ai_generated: true
source: "Tripo Studio Smart Mesh P2.0, generated 22 October 2026 by Tal Heuberger. Exact provider GLB and embedded 4096px JPEG are retained byte-identical in asset-sources/generated-1948/<id>/. Unity FBX is a documented full-geometry compatibility export, not a provider FBX. Source rigged GLBs contain zero animation clips; both existing locally retargeted idle/walk actions are exported at every frame with no simplification. No decimated copy, texture resize, Crunch or Unity mesh/animation compression. Per-character provenance records source and export hashes."
status: verified
artist: "Tal Heuberger"
- note: "New models by Tal Heuberger under CC BY-NC-ND 4.0, per the adopted 23 October brief; attribution Tal Heuberger. Existing asset grants are unchanged. Two review-only characters are editor-only; the Syrian, Iraqi and Egyptian infantry stand on their own formations' tokens, the ALA infantry is the ALA token's third figure and the Bedouin civilian stands at the Bedouin camp areas (the owner signed off all 19 generated models on 27 October 2026, #756). No archival uniform-colour claim."
+ note: "New models by Tal Heuberger under CC BY-NC-ND 4.0, per the adopted 23 October brief; attribution Tal Heuberger. Existing asset grants are unchanged. One review-only character is editor-only; the Syrian, Iraqi and Egyptian infantry stand on their own formations' tokens, the ALA infantry is the ALA token's third figure, the Lebanese regular stands on the Lebanese army's map-only token and the Bedouin civilian stands at the Bedouin camp areas (the owner signed off all 19 generated models on 27 October 2026, #756). No archival uniform-colour claim."
- glob: "unity/Assets/Art/Collection/figure-egyptian-infantry-1948-v1/*.fbx"
licence: CC-BY-NC-ND-4.0
ai_generated: true
artist: "Tal Heuberger"
source: "Tripo Studio Smart Mesh P2.0, generated 22 October 2026 by Tal Heuberger. Exact provider GLB and embedded 4096px JPEG are retained byte-identical in asset-sources/generated-1948/<id>/. Unity FBX is a documented full-geometry compatibility export, not a provider FBX. Source rigged GLBs contain zero animation clips; both existing locally retargeted idle/walk actions are exported at every frame with no simplification. No decimated copy, texture resize, Crunch or Unity mesh/animation compression. Per-character provenance records source and export hashes."
status: verified
- note: "New models by Tal Heuberger under CC BY-NC-ND 4.0, per the adopted 23 October brief; attribution Tal Heuberger. Existing asset grants are unchanged. Two review-only characters are editor-only; the Syrian, Iraqi and Egyptian infantry stand on their own formations' tokens, the ALA infantry is the ALA token's third figure and the Bedouin civilian stands at the Bedouin camp areas (the owner signed off all 19 generated models on 27 October 2026, #756). No archival uniform-colour claim."
+ note: "New models by Tal Heuberger under CC BY-NC-ND 4.0, per the adopted 23 October brief; attribution Tal Heuberger. Existing asset grants are unchanged. One review-only character is editor-only; the Syrian, Iraqi and Egyptian infantry stand on their own formations' tokens, the ALA infantry is the ALA token's third figure, the Lebanese regular stands on the Lebanese army's map-only token and the Bedouin civilian stands at the Bedouin camp areas (the owner signed off all 19 generated models on 27 October 2026, #756). No archival uniform-colour claim."
- glob: "unity/Assets/Art/Collection/figure-egyptian-infantry-1948-v1/*_basecolor.jpg"
licence: CC-BY-NC-ND-4.0
ai_generated: true
artist: "Tal Heuberger"
source: "Tripo Studio Smart Mesh P2.0, generated 22 October 2026 by Tal Heuberger. Exact provider GLB and embedded 4096px JPEG are retained byte-identical in asset-sources/generated-1948/<id>/. Unity FBX is a documented full-geometry compatibility export, not a provider FBX. Source rigged GLBs contain zero animation clips; both existing locally retargeted idle/walk actions are exported at every frame with no simplification. No decimated copy, texture resize, Crunch or Unity mesh/animation compression. Per-character provenance records source and export hashes."
status: verified
- note: "New models by Tal Heuberger under CC BY-NC-ND 4.0, per the adopted 23 October brief; attribution Tal Heuberger. Existing asset grants are unchanged. Two review-only characters are editor-only; the Syrian, Iraqi and Egyptian infantry stand on their own formations' tokens, the ALA infantry is the ALA token's third figure and the Bedouin civilian stands at the Bedouin camp areas (the owner signed off all 19 generated models on 27 October 2026, #756). No archival uniform-colour claim."
- - glob: "unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1/*.fbx"
+ note: "New models by Tal Heuberger under CC BY-NC-ND 4.0, per the adopted 23 October brief; attribution Tal Heuberger. Existing asset grants are unchanged. One review-only character is editor-only; the Syrian, Iraqi and Egyptian infantry stand on their own formations' tokens, the ALA infantry is the ALA token's third figure, the Lebanese regular stands on the Lebanese army's map-only token and the Bedouin civilian stands at the Bedouin camp areas (the owner signed off all 19 generated models on 27 October 2026, #756). No archival uniform-colour claim."
+ - glob: "unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1/*.fbx"
licence: CC-BY-NC-ND-4.0
ai_generated: true
artist: "Tal Heuberger"
source: "Tripo Studio Smart Mesh P2.0, generated 22 October 2026 by Tal Heuberger. Exact provider GLB and embedded 4096px JPEG are retained byte-identical in asset-sources/generated-1948/<id>/. Unity FBX is a documented full-geometry compatibility export, not a provider FBX. Source rigged GLBs contain zero animation clips; both existing locally retargeted idle/walk actions are exported at every frame with no simplification. No decimated copy, texture resize, Crunch or Unity mesh/animation compression. Per-character provenance records source and export hashes."
status: verified
- note: "New models by Tal Heuberger under CC BY-NC-ND 4.0, per the adopted 23 October brief; attribution Tal Heuberger. Existing asset grants are unchanged. Two review-only characters are editor-only; the Syrian, Iraqi and Egyptian infantry stand on their own formations' tokens, the ALA infantry is the ALA token's third figure and the Bedouin civilian stands at the Bedouin camp areas (the owner signed off all 19 generated models on 27 October 2026, #756). No archival uniform-colour claim."
- - glob: "unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1/*_basecolor.jpg"
+ note: "New models by Tal Heuberger under CC BY-NC-ND 4.0, per the adopted 23 October brief; attribution Tal Heuberger. Existing asset grants are unchanged. One review-only character is editor-only; the Syrian, Iraqi and Egyptian infantry stand on their own formations' tokens, the ALA infantry is the ALA token's third figure, the Lebanese regular stands on the Lebanese army's map-only token and the Bedouin civilian stands at the Bedouin camp areas (the owner signed off all 19 generated models on 27 October 2026, #756). No archival uniform-colour claim."
+ - glob: "unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1/*_basecolor.jpg"
licence: CC-BY-NC-ND-4.0
ai_generated: true
artist: "Tal Heuberger"
source: "Tripo Studio Smart Mesh P2.0, generated 22 October 2026 by Tal Heuberger. Exact provider GLB and embedded 4096px JPEG are retained byte-identical in asset-sources/generated-1948/<id>/. Unity FBX is a documented full-geometry compatibility export, not a provider FBX. Source rigged GLBs contain zero animation clips; both existing locally retargeted idle/walk actions are exported at every frame with no simplification. No decimated copy, texture resize, Crunch or Unity mesh/animation compression. Per-character provenance records source and export hashes."
status: verified
- note: "New models by Tal Heuberger under CC BY-NC-ND 4.0, per the adopted 23 October brief; attribution Tal Heuberger. Existing asset grants are unchanged. Two review-only characters are editor-only; the Syrian, Iraqi and Egyptian infantry stand on their own formations' tokens, the ALA infantry is the ALA token's third figure and the Bedouin civilian stands at the Bedouin camp areas (the owner signed off all 19 generated models on 27 October 2026, #756). No archival uniform-colour claim."
+ note: "New models by Tal Heuberger under CC BY-NC-ND 4.0, per the adopted 23 October brief; attribution Tal Heuberger. Existing asset grants are unchanged. One review-only character is editor-only; the Syrian, Iraqi and Egyptian infantry stand on their own formations' tokens, the ALA infantry is the ALA token's third figure, the Lebanese regular stands on the Lebanese army's map-only token and the Bedouin civilian stands at the Bedouin camp areas (the owner signed off all 19 generated models on 27 October 2026, #756). No archival uniform-colour claim."
- glob: "unity/Assets/Art/Collection/figure-bedouin-civilian-1948-v1/*.fbx"
licence: CC-BY-NC-ND-4.0
ai_generated: true
artist: "Tal Heuberger"
source: "Tripo Studio Smart Mesh P2.0, generated 22 October 2026 by Tal Heuberger. Exact provider GLB and embedded 4096px JPEG are retained byte-identical in asset-sources/generated-1948/<id>/. Unity FBX is a documented full-geometry compatibility export, not a provider FBX. Source rigged GLBs contain zero animation clips; both existing locally retargeted idle/walk actions are exported at every frame with no simplification. No decimated copy, texture resize, Crunch or Unity mesh/animation compression. Per-character provenance records source and export hashes."
status: verified
- note: "New models by Tal Heuberger under CC BY-NC-ND 4.0, per the adopted 23 October brief; attribution Tal Heuberger. Existing asset grants are unchanged. Two review-only characters are editor-only; the Syrian, Iraqi and Egyptian infantry stand on their own formations' tokens, the ALA infantry is the ALA token's third figure and the Bedouin civilian stands at the Bedouin camp areas (the owner signed off all 19 generated models on 27 October 2026, #756). No archival uniform-colour claim."
+ note: "New models by Tal Heuberger under CC BY-NC-ND 4.0, per the adopted 23 October brief; attribution Tal Heuberger. Existing asset grants are unchanged. One review-only character is editor-only; the Syrian, Iraqi and Egyptian infantry stand on their own formations' tokens, the ALA infantry is the ALA token's third figure, the Lebanese regular stands on the Lebanese army's map-only token and the Bedouin civilian stands at the Bedouin camp areas (the owner signed off all 19 generated models on 27 October 2026, #756). No archival uniform-colour claim."
- glob: "unity/Assets/Art/Collection/figure-bedouin-civilian-1948-v1/*_basecolor.jpg"
licence: CC-BY-NC-ND-4.0
ai_generated: true
artist: "Tal Heuberger"
source: "Tripo Studio Smart Mesh P2.0, generated 22 October 2026 by Tal Heuberger. Exact provider GLB and embedded 4096px JPEG are retained byte-identical in asset-sources/generated-1948/<id>/. Unity FBX is a documented full-geometry compatibility export, not a provider FBX. Source rigged GLBs contain zero animation clips; both existing locally retargeted idle/walk actions are exported at every frame with no simplification. No decimated copy, texture resize, Crunch or Unity mesh/animation compression. Per-character provenance records source and export hashes."
status: verified
- note: "New models by Tal Heuberger under CC BY-NC-ND 4.0, per the adopted 23 October brief; attribution Tal Heuberger. Existing asset grants are unchanged. Two review-only characters are editor-only; the Syrian, Iraqi and Egyptian infantry stand on their own formations' tokens, the ALA infantry is the ALA token's third figure and the Bedouin civilian stands at the Bedouin camp areas (the owner signed off all 19 generated models on 27 October 2026, #756). No archival uniform-colour claim."
+ note: "New models by Tal Heuberger under CC BY-NC-ND 4.0, per the adopted 23 October brief; attribution Tal Heuberger. Existing asset grants are unchanged. One review-only character is editor-only; the Syrian, Iraqi and Egyptian infantry stand on their own formations' tokens, the ALA infantry is the ALA token's third figure, the Lebanese regular stands on the Lebanese army's map-only token and the Bedouin civilian stands at the Bedouin camp areas (the owner signed off all 19 generated models on 27 October 2026, #756). No archival uniform-colour claim."
- glob: "unity/Assets/Editor/Generated1948Review/figure-local-arab-irregular-1948-v1/*.fbx"
licence: CC-BY-NC-ND-4.0
ai_generated: true
artist: "Tal Heuberger"
source: "Tripo Studio Smart Mesh P2.0, generated 22 October 2026 by Tal Heuberger. Exact provider GLB and embedded 4096px JPEG are retained byte-identical in asset-sources/generated-1948/<id>/. Unity FBX is a documented full-geometry compatibility export, not a provider FBX. Source rigged GLBs contain zero animation clips; both existing locally retargeted idle/walk actions are exported at every frame with no simplification. No decimated copy, texture resize, Crunch or Unity mesh/animation compression. Per-character provenance records source and export hashes."
status: verified
- note: "New models by Tal Heuberger under CC BY-NC-ND 4.0, per the adopted 23 October brief; attribution Tal Heuberger. Existing asset grants are unchanged. Two review-only characters are editor-only; the Syrian, Iraqi and Egyptian infantry stand on their own formations' tokens, the ALA infantry is the ALA token's third figure and the Bedouin civilian stands at the Bedouin camp areas (the owner signed off all 19 generated models on 27 October 2026, #756). No archival uniform-colour claim."
+ note: "New models by Tal Heuberger under CC BY-NC-ND 4.0, per the adopted 23 October brief; attribution Tal Heuberger. Existing asset grants are unchanged. One review-only character is editor-only; the Syrian, Iraqi and Egyptian infantry stand on their own formations' tokens, the ALA infantry is the ALA token's third figure, the Lebanese regular stands on the Lebanese army's map-only token and the Bedouin civilian stands at the Bedouin camp areas (the owner signed off all 19 generated models on 27 October 2026, #756). No archival uniform-colour claim."
- glob: "unity/Assets/Editor/Generated1948Review/figure-local-arab-irregular-1948-v1/*_basecolor.jpg"
licence: CC-BY-NC-ND-4.0
ai_generated: true
artist: "Tal Heuberger"
source: "Tripo Studio Smart Mesh P2.0, generated 22 October 2026 by Tal Heuberger. Exact provider GLB and embedded 4096px JPEG are retained byte-identical in asset-sources/generated-1948/<id>/. Unity FBX is a documented full-geometry compatibility export, not a provider FBX. Source rigged GLBs contain zero animation clips; both existing locally retargeted idle/walk actions are exported at every frame with no simplification. No decimated copy, texture resize, Crunch or Unity mesh/animation compression. Per-character provenance records source and export hashes."
status: verified
- note: "New models by Tal Heuberger under CC BY-NC-ND 4.0, per the adopted 23 October brief; attribution Tal Heuberger. Existing asset grants are unchanged. Two review-only characters are editor-only; the Syrian, Iraqi and Egyptian infantry stand on their own formations' tokens, the ALA infantry is the ALA token's third figure and the Bedouin civilian stands at the Bedouin camp areas (the owner signed off all 19 generated models on 27 October 2026, #756). No archival uniform-colour claim."
+ note: "New models by Tal Heuberger under CC BY-NC-ND 4.0, per the adopted 23 October brief; attribution Tal Heuberger. Existing asset grants are unchanged. One review-only character is editor-only; the Syrian, Iraqi and Egyptian infantry stand on their own formations' tokens, the ALA infantry is the ALA token's third figure, the Lebanese regular stands on the Lebanese army's map-only token and the Bedouin civilian stands at the Bedouin camp areas (the owner signed off all 19 generated models on 27 October 2026, #756). No archival uniform-colour claim."
- glob: "asset-sources/generated-1948/figure-*/original.glb"
licence: CC-BY-NC-ND-4.0
ai_generated: true
diff --git a/LICENSING.md b/LICENSING.md
index f2ca7036d..796f1dce1 100644
--- a/LICENSING.md
+++ b/LICENSING.md
@@ -22,7 +22,7 @@ Different parts of this repository are under different licences. Where a file is
| Event-card photographs | `unity/Assets/UI/EventImages/*.jpg` | Archival photographs from Wikimedia Commons, each under its own licence: CC BY 4.0 (Meitar Collection, National Library of Israel; credits in [NOTICE](NOTICE)), CC0 1.0 (Nationaal Archief) or public domain (US National Archives). All are adapted (graded and cropped). Per-file records in `ASSETS.yaml`; the mapping `event-images.yaml` beside them is CC BY 4.0 like the other UI assets. |
| Ben-Gurion's 1948 recording | `unity/Assets/StreamingAssets/audio/declaration-1948-isa-00113hj.wav` | An excerpt of the recording of the ceremony of 14 May 1948, Israel State Archives item ISA-Collections-Recordings-00113hj, under the Israel State Archives terms of use. It is a stream-copy cut of the archive's upload, decoded to PCM WAV with no other processing. Credit "Recording: Ralph Hellinger, Israel State Archives" ([NOTICE](NOTICE)). Its open questions are decision D-R in `docs/oss/DECISIONS.md` (`ASSETS.yaml`, owner-verify). |
| Decision-card and outcome clips | `unity/Assets/StreamingAssets/video/*.mp4` | AI-generated (Veo 3.1 through ElevenLabs; Seedance 2.0 through Dreamina), cut and re-encoded, with no burned-in caption (owner ruling of 14 October 2026); CC0 1.0 under decision D1, used under the owner's ruling D-V in `docs/oss/DECISIONS.md`. Per-file records in `ASSETS.yaml` and `docs/ai-disclosure.md`; the mapping `unity/Assets/Resources/EventVideos/event-videos.yaml` is CC BY 4.0 like the other UI assets. |
-| New generated 1948 characters by Tal Heuberger | Only `unity/Assets/Art/Collection/figure-syrian-infantry-1948-v1/`, `figure-iraqi-infantry-1948-v1/`, `figure-egyptian-infantry-1948-v1/`, `figure-ala-infantry-1948-v1/`, `figure-bedouin-civilian-1948-v1/`, the two character folders under `unity/Assets/Editor/Generated1948Review/`, and `asset-sources/generated-1948/figure-*/original.glb`, `asset-sources/generated-1948/figure-*/original_basecolor.jpg`, `asset-sources/generated-1948/figure-*/*-local-actions.json.gz` and `docs/images/generated-1948-character-*.jpg` (models, colour maps, new retarget payloads and five character captures only; code, materials, prefabs, controllers and metadata retain their existing path licences) | [CC BY-NC-ND 4.0](LICENSES/CC-BY-NC-ND-4.0.txt), credit **Tal Heuberger**, per the adopted 23 October 2026 brief (#1177, #1377). Full provider sources and exact colour maps retained; compatibility conversion and both local animation clips documented in per-model provenance. No grant for older models is changed here. |
+| New generated 1948 characters by Tal Heuberger | Only `unity/Assets/Art/Collection/figure-syrian-infantry-1948-v1/`, `figure-iraqi-infantry-1948-v1/`, `figure-egyptian-infantry-1948-v1/`, `figure-ala-infantry-1948-v1/`, `figure-lebanese-regular-1948-v1/`, `figure-bedouin-civilian-1948-v1/`, the character folder under `unity/Assets/Editor/Generated1948Review/`, and `asset-sources/generated-1948/figure-*/original.glb`, `asset-sources/generated-1948/figure-*/original_basecolor.jpg`, `asset-sources/generated-1948/figure-*/*-local-actions.json.gz` and `docs/images/generated-1948-character-*.jpg` (models, colour maps, new retarget payloads and five character captures only; code, materials, prefabs, controllers and metadata retain their existing path licences) | [CC BY-NC-ND 4.0](LICENSES/CC-BY-NC-ND-4.0.txt), credit **Tal Heuberger**, per the adopted 23 October 2026 brief (#1177, #1377). Full provider sources and exact colour maps retained; compatibility conversion and both local animation clips documented in per-model provenance. No grant for older models is changed here. |
| Retained historical slim derivatives | Only retained `*-far.fbx` and `*-near.fbx` model versions covered by the historical slim-derivative records in `ASSETS.yaml` under the Collection and Prototype Models folders; excludes all 146 current originals, the 311 generated manifest entries and independently granted newer models. | Existing [CC0 1.0](LICENSES/CC0-1.0.txt) / no-rights-claimed historical records remain as recorded; their provenance describes historical processing, not the current originals. |
| 3D models (hex-tile props, streamed) | `unity/Assets/Art/HexTiles/Props/` (20 props by Tal Heuberger for the opt-in hex-tile map, slimmed in Blender, with their colour maps; the prefabs in `unity/Assets/Art/HexTiles/<tile>/` and the materials beside the models are under the code row) | CC BY-NC-ND 4.0, credit "Tal Heuberger", by the owner's ruling of 22 October 2026 on all of Tal Heuberger's models (#1177; [licence text](LICENSES/CC-BY-NC-ND-4.0.txt)). AI-generated on Higgsfield (Tripo H3.1 image to 3D from Nano Banana Pro and GPT Image 2.5 concept images); per-file records in `ASSETS.yaml` |
| Fonts | `unity/Assets/UI/Fonts/` | EB Garamond, [SIL Open Font License 1.1](unity/Assets/UI/Fonts/OFL.txt); Frank Ruhl Libre (`FrankRuhlLibre/`), [SIL Open Font License 1.1](unity/Assets/UI/Fonts/FrankRuhlLibre/OFL.txt) |
diff --git a/changelog.d/flag-render-callback.md b/changelog.d/flag-render-callback.md
new file mode 100644
index 000000000..161ce0023
--- /dev/null
+++ b/changelog.d/flag-render-callback.md
@@ -0,0 +1 @@
+Ignore a camera-render callback retained after its unit flag has been destroyed.
diff --git a/changelog.d/tal-lebanon-on-map.md b/changelog.d/tal-lebanon-on-map.md
new file mode 100644
index 000000000..9e91345dc
--- /dev/null
+++ b/changelog.d/tal-lebanon-on-map.md
@@ -0,0 +1,4 @@
+- The Lebanese army is on the map at al-Malikiyya from 6 June to 8 July 1948, drawn with Tal Heuberger's Lebanese regular
+ (owner, 28 October 2026: "6 Jun to 8 Jul (Recommended)"; sources: Dupuy p. 47 and the JTA bulletins of 7 and 8 June).
+ It has no sim unit: its token is map-only in both loops (owner, 27 October 2026: "Map-only token (Recommended)") and
+ never moves or fights. The figure streams after the first frame in a bundle of its own. Goldens did not move.
diff --git a/changelog.d/tal-lebanon-unit-card-copy.md b/changelog.d/tal-lebanon-unit-card-copy.md
new file mode 100644
index 000000000..5137eff47
--- /dev/null
+++ b/changelog.d/tal-lebanon-unit-card-copy.md
@@ -0,0 +1 @@
+- Keep internal decision references out of the Lebanese unit card in English and Hebrew; retain the source and unresolved checks in its data record.
diff --git a/changelog.d/unit-figure-residency-bounds.md b/changelog.d/unit-figure-residency-bounds.md
new file mode 100644
index 000000000..aedbe0c67
--- /dev/null
+++ b/changelog.d/unit-figure-residency-bounds.md
@@ -0,0 +1 @@
+- Refresh unit figure keep-clear bounds after model streaming or retirement, including when the camera stays still, and avoid reading retired mesh components.
diff --git a/content/map/unit_anchor_hexes.yaml b/content/map/unit_anchor_hexes.yaml
index 8688efd0e..62a425513 100644
--- a/content/map/unit_anchor_hexes.yaml
+++ b/content/map/unit_anchor_hexes.yaml
@@ -28,4 +28,5 @@ anchors:
- { id: syrian_army, anchor: 1, q: 13, r: 5 }
- { id: iraqi_expeditionary_force, anchor: 0, q: 9, r: 11 }
- { id: iraqi_expeditionary_force, anchor: 1, q: 6, r: 13 }
+ - { id: lebanese_army, anchor: 0, q: 12, r: 4 }
- { id: arab_liberation_army, anchor: 0, q: 12, r: 4 }
diff --git a/content/map/units_1948.yaml b/content/map/units_1948.yaml
index f03724a10..dc81660c8 100644
--- a/content/map/units_1948.yaml
+++ b/content/map/units_1948.yaml
@@ -1312,14 +1312,15 @@ units:
service: army
side: lebanon
echelon: force
- sector: "Lebanon's army. On 15 May 1948 it stood at the frontier (the CIA's summary for the week to 26 May: on the frontier and in no hurry to attack). The fighting at al-Malikiyya on 15 May was the Arab Liberation Army's (owner ruling, #226). On 5-6 June its 3rd Battalion, with the ALA and a Syrian battalion, retook al-Malikiyya and Qadas."
- sector_he: "הצבא של לבנון. ב-15 במאי 1948 עמד על הגבול (הסיכום של ה-CIA לשבוע שעד 26 במאי: על הגבול ובלי חיפזון לתקוף). הלחימה באל-מאלכיה ב-15 במאי הייתה של צבא ההצלה (פסיקת הבעלים, #226). ב-5-6 ביוני כבש הגדוד השלישי שלו מחדש, עם צבא ההצלה וגדוד סורי, את אל-מאלכיה ואת קדס."
+ sector: "Lebanon's army. On 15 May 1948 it stood at the frontier (the CIA's summary for the week to 26 May: on the frontier and in no hurry to attack). The fighting at al-Malikiyya on 15 May was the Arab Liberation Army's. On 5-6 June its 3rd Battalion, with the ALA and a Syrian battalion, retook al-Malikiyya and Qadas."
+ sector_he: "הצבא של לבנון. ב-15 במאי 1948 עמד על הגבול (הסיכום של ה-CIA לשבוע שעד 26 במאי: על הגבול ובלי חיפזון לתקוף). הלחימה באל-מאלכיה ב-15 במאי הייתה של צבא ההצלה. ב-5-6 ביוני כבש הגדוד השלישי שלו מחדש, עם צבא ההצלה וגדוד סורי, את אל-מאלכיה ואת קדס."
sector_he_review: agent-checked
sector_he_sources: [{url: 'https://he.wikipedia.org/wiki/%D7%A6%D7%91%D7%90_%D7%9C%D7%91%D7%A0%D7%95%D7%9F', checked: '2026-10-22'}, {url: 'https://he.wikipedia.org/wiki/CIA', checked: '2026-10-22'}, {url: 'https://he.wikipedia.org/wiki/%D7%9E%D7%9C%D7%9B%D7%99%D7%94', checked: '2026-10-22'}, {url: 'https://he.wikipedia.org/wiki/%D7%A6%D7%91%D7%90_%D7%94%D7%94%D7%A6%D7%9C%D7%94', checked: '2026-10-22'}, {url: 'https://he.wikipedia.org/wiki/%D7%A9%D7%91%D7%A2%D7%AA_%D7%94%D7%9B%D7%A4%D7%A8%D7%99%D7%9D', checked: '2026-10-22'}]
- hidden: "No place two sources agree on for 15 May or 11 June 1948: on 15 May the sources put it only at the frontier, and who held al-Malikiyya on 11 June is contested (the note, section 8, item 12)."
wikipedia_only: false
status: draft
to_verify:
+ - "The al-Malikiyya window, 6 June to 8 July 1948, is the owner's ruling of 28 October 2026 (\"6 Jun to 8 Jul (Recommended)\"), on Dupuy p. 47 and the JTA bulletins of 7 June (p. 1) and 8 June (p. 3). Dupuy names the Lebanese; the JTA items name Syrian units (7 June) and \"the Arabs\" opening \"an offensive from Lebanon\" (8 June), not the Lebanese army. Who held al-Malikiyya on 11 June stays contested in the sources (the note, section 8, item 13; research_notes/Map/lebanese-army-15-may-1948-1871.md). The JTA pages were agent-read on 28 October 2026 for that note; a person's check of the page images is pending."
+ - "No source places the army on 15 May beyond \"the frontier\" (the CIA's week to 26 May; the JTA of 17 May, \"approximately one mile\" inside the border, no place), so the row has no window before 6 June, and the sim has no Lebanese unit: the map draws the row's dated token only (owner, 27 October 2026: \"Map-only token (Recommended)\")."
- "The 15 May strength rests on two full-text search snippets that give the same figures, Glubb (1957) and Rogan and Shlaim (2007, chapter not identified), and the second reproduces Glubb's figures and total (review of #860), so the figure rests on Glubb alone, merged as data only (owner, 17 October 2026, on #860). O'Ballance (p. 82) and Morris (p. 258, carried) count the whole army instead, in a larger figure. Check the printed pages (the note, section 9)."
strength:
value: 1000
@@ -1330,7 +1331,27 @@ units:
- {url: 'https://archive.org/details/soldierwitharabs0000glub', checked: '2026-10-13'}
# Rogan and Shlaim (eds., 2007), snippet: "... and 1,000 Lebanese".
- {url: 'https://archive.org/details/warforpalestiner0000unse_t0u0', checked: '2026-10-13'}
- anchors: []
+ anchors:
+ - place: al-Malikiyya
+ place_he: "אל-מאלכיה"
+ place_he_review: agent-checked
+ place_he_sources: [{url: 'https://he.wikipedia.org/wiki/%D7%9E%D7%9C%D7%9B%D7%99%D7%94', checked: '2026-10-22'}]
+ lon: 35.50806
+ lat: 33.10528
+ from: '1948-06-06'
+ to: '1948-07-08'
+ end_basis: source
+ end_note: "en.wiki 1948 Arab-Israeli War: the Lebanese 3rd Battalion handed the villages over to the ALA and withdrew on 8 July (citing Hughes, 2005, and Morris, 2008, p. 260)."
+ note: "Owner, 28 October 2026 (\"6 Jun to 8 Jul (Recommended)\"). Dupuy p. 47: a combined Lebanese, ALA and Syrian attack retook al-Malikiyya, the Lebanese capturing it by the evening of 6 June. JTA, 7 June p. 1 (dateline 6 June): Syrian units attacked \"the Jewish-held Arab village of Malakieh\". JTA, 8 June p. 3 (dateline 7 June): \"the Arabs\" opened \"an offensive from Lebanon\" forcing the Israelis out of Malakieh. The point is the ALA row's al-Malikiyya (en.wiki Al-Malkiyya)."
+ sources:
+ # Dupuy, Elusive Victory (1978), p. 47.
+ - {url: 'https://web.stanford.edu/group/tomzgroup/pmwiki/uploads/1793-1978-Dupuy-a-CLH.pdf', checked: '2026-10-13'}
+ # JTA Daily News Bulletin, 7 June 1948, p. 1 (as read in research_notes/Map/lebanese-army-15-may-1948-1871.md).
+ - {url: 'https://pdfs.jta.org/1948/1948-06-07_131.pdf', checked: '2026-10-28'}
+ # JTA Daily News Bulletin, 8 June 1948, p. 3 (as read in the same note).
+ - {url: 'https://pdfs.jta.org/1948/1948-06-08_132.pdf', checked: '2026-10-28'}
+ # en.wiki: the 8 July withdrawal (citing Hughes 2005; Morris 2008, p. 260).
+ - {url: 'https://en.wikipedia.org/wiki/1948_Arab%E2%80%93Israeli_War', checked: '2026-10-28'}
sources:
# CIA Intelligence Summary, week ending 26 May 1948.
- {url: 'https://archive.org/details/cia-readingroom-document-cia-rdp78-01617a004700010004-5', checked: '2026-10-13'}
diff --git a/docs/ai-disclosure.md b/docs/ai-disclosure.md
index a092f23ae..b50daab91 100644
--- a/docs/ai-disclosure.md
+++ b/docs/ai-disclosure.md
@@ -43,6 +43,7 @@ This is not a licence clearance or a completed store content survey. owner-verif
| unity/Assets/Art/Collection/figure-immigrant-woman-v1/figure-immigrant-woman-v1_basecolor.jpg | ASSETS.yaml | Tal Heuberger original offered in PR #336 at 1a5482a5864e812c1f5afdf0b31464ac92cbc7fa, unity/Assets/Art/CommandModels/Models/figure-immigrant-woman-v1/figure-immigrant-woman-v1_basecolor.jpg. Raw and shipped SHA-256 in docs/original-models.json. Copied source byte for byte, including original geometry/clips or JPEG bytes. | verified |
| unity/Assets/Art/Collection/figure-iraqi-infantry-1948-v1/*_basecolor.jpg | ASSETS.yaml | Tripo Studio Smart Mesh P2.0, generated 22 October 2026 by Tal Heuberger. Exact provider GLB and embedded 4096px JPEG are retained byte-identical in asset-sources/generated-1948/<id>/. Unity FBX is a documented full-geometry compatibility export, not a provider FBX. Source rigged GLBs contain zero animation clips; both existing locally retargeted idle/walk actions are exported at every frame with no simplification. No decimated copy, texture resize, Crunch or Unity mesh/animation compression. Per-character provenance records source and export hashes. | verified |
| unity/Assets/Art/Collection/figure-kibbutz-woman-v1/figure-kibbutz-woman-v1_basecolor.jpg | ASSETS.yaml | Tal Heuberger original offered in PR #336 at 1a5482a5864e812c1f5afdf0b31464ac92cbc7fa, unity/Assets/Art/CommandModels/Models/figure-kibbutz-woman-v1/figure-kibbutz-woman-v1_basecolor.jpg. Raw and shipped SHA-256 in docs/original-models.json. Copied source byte for byte, including original geometry/clips or JPEG bytes. | verified |
+| unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1/*_basecolor.jpg | ASSETS.yaml | Tripo Studio Smart Mesh P2.0, generated 22 October 2026 by Tal Heuberger. Exact provider GLB and embedded 4096px JPEG are retained byte-identical in asset-sources/generated-1948/<id>/. Unity FBX is a documented full-geometry compatibility export, not a provider FBX. Source rigged GLBs contain zero animation clips; both existing locally retargeted idle/walk actions are exported at every frame with no simplification. No decimated copy, texture resize, Crunch or Unity mesh/animation compression. Per-character provenance records source and export hashes. | verified |
| unity/Assets/Art/Collection/figure-nubian-ibex-1948-v1/figure-nubian-ibex-1948-v1_basecolor.jpg | ASSETS.yaml | Tal Heuberger original offered in PR #507 at 3ef0a7a5a36887aee7a24fd11ddf722507695f3c, unity/Assets/Art/Settlements/Prototype/Models/figure-nubian-ibex-1948-v1/figure-nubian-ibex-1948-v1_basecolor.jpg. Raw and shipped SHA-256 in docs/original-models.json. Copied source byte for byte, including original geometry/clips or JPEG bytes. | verified |
| unity/Assets/Art/Collection/figure-pioneer-farmer-v1-tpose/figure-pioneer-farmer-v1-tpose_basecolor.jpg | ASSETS.yaml | Tal Heuberger original offered in PR #336 at 1a5482a5864e812c1f5afdf0b31464ac92cbc7fa, unity/Assets/Art/CommandModels/Models/figure-pioneer-farmer-v1-tpose/figure-pioneer-farmer-v1-tpose_basecolor.jpg. Raw and shipped SHA-256 in docs/original-models.json. Copied source byte for byte, including original geometry/clips or JPEG bytes. | verified |
| unity/Assets/Art/Collection/figure-sheep-idle-1948-v1/figure-sheep-idle-1948-v1_basecolor.jpg | ASSETS.yaml | Tal Heuberger original offered in PR #507 at 3ef0a7a5a36887aee7a24fd11ddf722507695f3c, unity/Assets/Art/Settlements/Prototype/Models/figure-sheep-idle-1948-v1/figure-sheep-idle-1948-v1_basecolor.jpg. Raw and shipped SHA-256 in docs/original-models.json. Copied source byte for byte, including original geometry/clips or JPEG bytes. | verified |
@@ -97,7 +98,6 @@ This is not a licence clearance or a completed store content survey. owner-verif
| unity/Assets/Art/Settlements/Prototype/Models/b24-agricultural-barn-v2/b24-agricultural-barn-v2_basecolor.jpg | ASSETS.yaml | Tal Heuberger original offered in PR #507 at 3ef0a7a5a36887aee7a24fd11ddf722507695f3c, unity/Assets/Art/Settlements/Prototype/Models/b24-agricultural-barn-v2/b24-agricultural-barn-v2_basecolor.jpg. Raw and shipped SHA-256 in docs/original-models.json. Copied source byte for byte, including original geometry/clips or JPEG bytes. | verified |
| unity/Assets/Art/Settlements/Prototype/Models/b28-water-tower-v2/b28-water-tower-v2_basecolor.jpg | ASSETS.yaml | Tal Heuberger original offered in PR #507 at 3ef0a7a5a36887aee7a24fd11ddf722507695f3c, unity/Assets/Art/Settlements/Prototype/Models/b28-water-tower-v2/b28-water-tower-v2_basecolor.jpg. Raw and shipped SHA-256 in docs/original-models.json. Copied source byte for byte, including original geometry/clips or JPEG bytes. | verified |
| unity/Assets/Art/Settlements/Prototype/Models/b32-port-cargo-shed-v2/b32-port-cargo-shed-v2_basecolor.jpg | ASSETS.yaml | Tal Heuberger original offered in PR #507 at 3ef0a7a5a36887aee7a24fd11ddf722507695f3c, unity/Assets/Art/Settlements/Prototype/Models/b32-port-cargo-shed-v2/b32-port-cargo-shed-v2_basecolor.jpg. Raw and shipped SHA-256 in docs/original-models.json. Copied source byte for byte, including original geometry/clips or JPEG bytes. | verified |
-| unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1/*_basecolor.jpg | ASSETS.yaml | Tripo Studio Smart Mesh P2.0, generated 22 October 2026 by Tal Heuberger. Exact provider GLB and embedded 4096px JPEG are retained byte-identical in asset-sources/generated-1948/<id>/. Unity FBX is a documented full-geometry compatibility export, not a provider FBX. Source rigged GLBs contain zero animation clips; both existing locally retargeted idle/walk actions are exported at every frame with no simplification. No decimated copy, texture resize, Crunch or Unity mesh/animation compression. Per-character provenance records source and export hashes. | verified |
| unity/Assets/Editor/Generated1948Review/figure-local-arab-irregular-1948-v1/*_basecolor.jpg | ASSETS.yaml | Tripo Studio Smart Mesh P2.0, generated 22 October 2026 by Tal Heuberger. Exact provider GLB and embedded 4096px JPEG are retained byte-identical in asset-sources/generated-1948/<id>/. Unity FBX is a documented full-geometry compatibility export, not a provider FBX. Source rigged GLBs contain zero animation clips; both existing locally retargeted idle/walk actions are exported at every frame with no simplification. No decimated copy, texture resize, Crunch or Unity mesh/animation compression. Per-character provenance records source and export hashes. | verified |
| unity/Assets/Editor/Generated1948Review/generated-1948-01-netanya-tiled-house-original/*_basecolor.jpg | ASSETS.yaml | Tal Heuberger, Tripo Studio generated source, regenerated 24 October 2026 (#1379). Provider-original GLB and exact embedded 4096px colour-map bytes preserved; provenance.json records hashes. FBX is a local compatibility conversion with no decimation, repair or atlas; verified source triangle positions/connectivity, UVs and stored normals. This is not a provider-original FBX. | verified |
| unity/Assets/Editor/Generated1948Review/generated-1948-02-netanya-two-storey-balcony-house/*_basecolor.jpg | ASSETS.yaml | Tal Heuberger, Tripo Studio generated source, 22 October 2026. Provider-original GLB and exact embedded 4096px colour-map bytes preserved; provenance.json records hashes. FBX is a local compatibility conversion with no decimation, repair or atlas; verified source triangle positions/connectivity, UVs and stored normals. This is not a provider-original FBX. | verified |
@@ -247,6 +247,7 @@ This is not a licence clearance or a completed store content survey. owner-verif
| unity/Assets/Art/Collection/figure-kibbutz-woman-v1/figure-kibbutz-woman-v1-far.fbx | ASSETS.yaml | Historical slim-derivative record (retained files only; current full-original provenance is docs/original-models.json): Tripo Studio (tripo3d.ai), Smart Mesh P2.0, paid plan, made 11 October 2026 from an AI-generated concept image (not in the repository), by Tal Heuberger; offered only in PR #336 at 1a5482a5864e812c1f5afdf0b31464ac92cbc7fa, whose docs/command-models.json records the generator, date and plan. One of the eight figures of issue #708. Slimmed for the repository by tools/slim_collection.py (Blender 5.2.2) with the settings of the 1948 Collection's people: a far mesh of at most 1,500 triangles and a near mesh of at most 8,000, the near mesh keeping its rig and only its idle clip, every other clip dropped; colour map 2048 px resized to 512 px. #336's full-detail FBX files were kept outside the repository at the time of the historical import; current originals and their raw/shipped hashes are now recorded in docs/original-models.json. Imported, not yet placed (#666). | verified |
| unity/Assets/Art/Collection/figure-kibbutz-woman-v1/figure-kibbutz-woman-v1-near.fbx | ASSETS.yaml | Historical slim-derivative record (retained files only; current full-original provenance is docs/original-models.json): Tripo Studio (tripo3d.ai), Smart Mesh P2.0, paid plan, made 11 October 2026 from an AI-generated concept image (not in the repository), by Tal Heuberger; offered only in PR #336 at 1a5482a5864e812c1f5afdf0b31464ac92cbc7fa, whose docs/command-models.json records the generator, date and plan. One of the eight figures of issue #708. Slimmed for the repository by tools/slim_collection.py (Blender 5.2.2) with the settings of the 1948 Collection's people: a far mesh of at most 1,500 triangles and a near mesh of at most 8,000, the near mesh keeping its rig and only its idle clip, every other clip dropped; colour map 2048 px resized to 512 px. #336's full-detail FBX files were kept outside the repository at the time of the historical import; current originals and their raw/shipped hashes are now recorded in docs/original-models.json. Imported, not yet placed (#666). | verified |
| unity/Assets/Art/Collection/figure-kibbutz-woman-v1/figure-kibbutz-woman-v1.fbx | ASSETS.yaml | Tal Heuberger original offered in PR #336 at 1a5482a5864e812c1f5afdf0b31464ac92cbc7fa, unity/Assets/Art/CommandModels/Models/figure-kibbutz-woman-v1/figure-kibbutz-woman-v1.fbx. Raw and shipped SHA-256 in docs/original-models.json. Copied source byte for byte, including original geometry/clips or JPEG bytes. | verified |
+| unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1/*.fbx | ASSETS.yaml | Tripo Studio Smart Mesh P2.0, generated 22 October 2026 by Tal Heuberger. Exact provider GLB and embedded 4096px JPEG are retained byte-identical in asset-sources/generated-1948/<id>/. Unity FBX is a documented full-geometry compatibility export, not a provider FBX. Source rigged GLBs contain zero animation clips; both existing locally retargeted idle/walk actions are exported at every frame with no simplification. No decimated copy, texture resize, Crunch or Unity mesh/animation compression. Per-character provenance records source and export hashes. | verified |
| unity/Assets/Art/Collection/figure-nubian-ibex-1948-v1/figure-nubian-ibex-1948-v1-far.fbx | ASSETS.yaml | Historical slim-derivative record (retained files only; current full-original provenance is docs/original-models.json): Tripo Studio (tripo3d.ai), paid Max plan, made 10-13 October 2026 from concept images generated in the same studio, by Tal Heuberger (PR #507 at 3ef0a7a5a36887aee7a24fd11ddf722507695f3c): the 31 non-building models of The 1948 Collection (12 people, 9 road and rail vehicles, 4 ships and aircraft, 6 animals), and its nine whole-town models (issue #663: tel-aviv-white-city-v1, jerusalem-stone-city-v1, haifa-port-city-v1, moshava-town-v1, nahalal-moshav-v1, kibbutz-compound-v2, stone-village-v1, maabara-camp-v1, shikun-housing-v1; byte-identical to the same files in #336). Slimmed for the repository by tools/slim_collection.py (Blender 5.2.2, issue #664): a far mesh of at most 1,500 triangles (4,500 for vehicles, ships, aircraft and whole towns) and a near mesh of at most 8,000 per model, the near mesh keeping its rig and only the idle clip on the 13 models that have one, every other clip dropped (C05, which has no idle clip, has both static meshes posed at the first frame of his walk instead of his T-pose rest, issue #665); colour maps 1024 px resized to 512 px. The masters, #507's full-detail FBX files and the per-model records (prompts, task ids, credits) were kept outside the repository at the time of the historical import; current originals and their raw/shipped hashes are now recorded in docs/original-models.json. | verified |
| unity/Assets/Art/Collection/figure-nubian-ibex-1948-v1/figure-nubian-ibex-1948-v1-near.fbx | ASSETS.yaml | Historical slim-derivative record (retained files only; current full-original provenance is docs/original-models.json): Tripo Studio (tripo3d.ai), paid Max plan, made 10-13 October 2026 from concept images generated in the same studio, by Tal Heuberger (PR #507 at 3ef0a7a5a36887aee7a24fd11ddf722507695f3c): the 31 non-building models of The 1948 Collection (12 people, 9 road and rail vehicles, 4 ships and aircraft, 6 animals), and its nine whole-town models (issue #663: tel-aviv-white-city-v1, jerusalem-stone-city-v1, haifa-port-city-v1, moshava-town-v1, nahalal-moshav-v1, kibbutz-compound-v2, stone-village-v1, maabara-camp-v1, shikun-housing-v1; byte-identical to the same files in #336). Slimmed for the repository by tools/slim_collection.py (Blender 5.2.2, issue #664): a far mesh of at most 1,500 triangles (4,500 for vehicles, ships, aircraft and whole towns) and a near mesh of at most 8,000 per model, the near mesh keeping its rig and only the idle clip on the 13 models that have one, every other clip dropped (C05, which has no idle clip, has both static meshes posed at the first frame of his walk instead of his T-pose rest, issue #665); colour maps 1024 px resized to 512 px. The masters, #507's full-detail FBX files and the per-model records (prompts, task ids, credits) were kept outside the repository at the time of the historical import; current originals and their raw/shipped hashes are now recorded in docs/original-models.json. | verified |
| unity/Assets/Art/Collection/figure-nubian-ibex-1948-v1/figure-nubian-ibex-1948-v1.fbx | ASSETS.yaml | Tal Heuberger original offered in PR #507 at 3ef0a7a5a36887aee7a24fd11ddf722507695f3c, unity/Assets/Art/Settlements/Prototype/Models/figure-nubian-ibex-1948-v1/figure-nubian-ibex-1948-v1.fbx. Raw and shipped SHA-256 in docs/original-models.json. Only same-length author-path text blanking, per #1273 owner decisions1-2; geometry, clips and all other bytes unchanged. | verified |
@@ -361,7 +362,6 @@ This is not a licence clearance or a completed store content survey. owner-verif
| unity/Assets/Art/Settlements/Prototype/Models/b24-agricultural-barn-v2/b24-agricultural-barn-v2.fbx | ASSETS.yaml | Tal Heuberger original offered in PR #507 at 3ef0a7a5a36887aee7a24fd11ddf722507695f3c, unity/Assets/Art/Settlements/Prototype/Models/b24-agricultural-barn-v2/b24-agricultural-barn-v2.fbx. Raw and shipped SHA-256 in docs/original-models.json. Only same-length author-path text blanking, per #1273 owner decisions1-2; geometry, clips and all other bytes unchanged. | verified |
| unity/Assets/Art/Settlements/Prototype/Models/b28-water-tower-v2/b28-water-tower-v2.fbx | ASSETS.yaml | Tal Heuberger original offered in PR #507 at 3ef0a7a5a36887aee7a24fd11ddf722507695f3c, unity/Assets/Art/Settlements/Prototype/Models/b28-water-tower-v2/b28-water-tower-v2.fbx. Raw and shipped SHA-256 in docs/original-models.json. Only same-length author-path text blanking, per #1273 owner decisions1-2; geometry, clips and all other bytes unchanged. | verified |
| unity/Assets/Art/Settlements/Prototype/Models/b32-port-cargo-shed-v2/b32-port-cargo-shed-v2.fbx | ASSETS.yaml | Tal Heuberger original offered in PR #507 at 3ef0a7a5a36887aee7a24fd11ddf722507695f3c, unity/Assets/Art/Settlements/Prototype/Models/b32-port-cargo-shed-v2/b32-port-cargo-shed-v2.fbx. Raw and shipped SHA-256 in docs/original-models.json. Only same-length author-path text blanking, per #1273 owner decisions1-2; geometry, clips and all other bytes unchanged. | verified |
-| unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1/*.fbx | ASSETS.yaml | Tripo Studio Smart Mesh P2.0, generated 22 October 2026 by Tal Heuberger. Exact provider GLB and embedded 4096px JPEG are retained byte-identical in asset-sources/generated-1948/<id>/. Unity FBX is a documented full-geometry compatibility export, not a provider FBX. Source rigged GLBs contain zero animation clips; both existing locally retargeted idle/walk actions are exported at every frame with no simplification. No decimated copy, texture resize, Crunch or Unity mesh/animation compression. Per-character provenance records source and export hashes. | verified |
| unity/Assets/Editor/Generated1948Review/figure-local-arab-irregular-1948-v1/*.fbx | ASSETS.yaml | Tripo Studio Smart Mesh P2.0, generated 22 October 2026 by Tal Heuberger. Exact provider GLB and embedded 4096px JPEG are retained byte-identical in asset-sources/generated-1948/<id>/. Unity FBX is a documented full-geometry compatibility export, not a provider FBX. Source rigged GLBs contain zero animation clips; both existing locally retargeted idle/walk actions are exported at every frame with no simplification. No decimated copy, texture resize, Crunch or Unity mesh/animation compression. Per-character provenance records source and export hashes. | verified |
| unity/Assets/Editor/Generated1948Review/generated-1948-01-netanya-tiled-house-original/*.fbx | ASSETS.yaml | Tal Heuberger, Tripo Studio generated source, regenerated 24 October 2026 (#1379). Provider-original GLB and exact embedded 4096px colour-map bytes preserved; provenance.json records hashes. FBX is a local compatibility conversion with no decimation, repair or atlas; verified source triangle positions/connectivity, UVs and stored normals. This is not a provider-original FBX. | verified |
| unity/Assets/Editor/Generated1948Review/generated-1948-02-netanya-two-storey-balcony-house/*.fbx | ASSETS.yaml | Tal Heuberger, Tripo Studio generated source, 22 October 2026. Provider-original GLB and exact embedded 4096px colour-map bytes preserved; provenance.json records hashes. FBX is a local compatibility conversion with no decimation, repair or atlas; verified source triangle positions/connectivity, UVs and stored normals. This is not a provider-original FBX. | verified |
diff --git a/docs/generated-1948-characters.md b/docs/generated-1948-characters.md
index f1cdeb121..585824f7b 100644
--- a/docs/generated-1948-characters.md
+++ b/docs/generated-1948-characters.md
@@ -4,15 +4,15 @@ Seven characters generated by Tal Heuberger on 22 October 2026, credited under C
## Placement and loading
-The owner signed off all of Tal Heuberger's generated models on 27 October 2026 (#756, "Sign off all 19"). Syrian and Iraqi infantry keep their existing sourced formation mappings. The Egyptian infantry stand on the Egyptian Expeditionary Force's token, drawn as one token (owner, 27 October 2026, "One token"; docs/units.md), and stream in a bundle of their own, `collection-figure-egyptian-infantry-1948-v1`, opened after the people's. The original C09 remains on campaign ALA tokens, and the new ALA infantry stands as their third figure (owner, 27 October 2026, "Third figure (Recommended)"), in a bundle of its own, `collection-figure-ala-infantry-1948-v1`, opened after the people's. The Bedouin civilian stands at up to three served Bedouin camp areas, those of the camels (CivilianPeople), in its own bundle opened after the people's. The Lebanese regular and recreated local irregular are still editor-only review art under `Assets/Editor/Generated1948Review/`, until each has its own sourced placement. They are absent from People and Animated catalogs, Resources, all build scenes and runtime dependencies.
+The owner signed off all of Tal Heuberger's generated models on 27 October 2026 (#756, "Sign off all 19"). Syrian and Iraqi infantry keep their existing sourced formation mappings. The Egyptian infantry stand on the Egyptian Expeditionary Force's token, drawn as one token (owner, 27 October 2026, "One token"; docs/units.md), and stream in a bundle of their own, `collection-figure-egyptian-infantry-1948-v1`, opened after the people's. The original C09 remains on campaign ALA tokens, and the new ALA infantry stands as their third figure (owner, 27 October 2026, "Third figure (Recommended)"), in a bundle of its own, `collection-figure-ala-infantry-1948-v1`, opened after the people's. The Lebanese regular stands on the Lebanese army's map-only token at al-Malikiyya from 6 June to 8 July 1948 (owner, 27 October 2026, "Map-only token (Recommended)"; 28 October 2026, "6 Jun to 8 Jul (Recommended)"), in a bundle of its own, `collection-figure-lebanese-regular-1948-v1`, opened after the people's. The Bedouin civilian stands at up to three served Bedouin camp areas, those of the camels (CivilianPeople), in its own bundle opened after the people's. The recreated local irregular is still editor-only review art under `Assets/Editor/Generated1948Review/`, until it has its own sourced placement. It is absent from People and Animated catalogs, Resources, all build scenes and runtime dependencies.
-The Syrian and Iraqi characters share their own bundle after the first frame; the Egyptian and ALA infantry, the Bedouin civilian and the enclosed Bedouin tent each have their own. Both zoom levels use the same full model; there is no decimated far copy or automatic reduction. The older collection and its import path remain the maintainer’s #1273 lane. The catalog now holds 79 models in 78 bundles, including 26 animated models: Tal Heuberger's 73 originals, five runtime generated characters and the static Bedouin tent. Player first-download growth and People bundle bytes require actual build measurement; no estimate is called a measurement.
+The Syrian and Iraqi characters share their own bundle after the first frame; the Egyptian and ALA infantry, the Lebanese regular, the Bedouin civilian and the enclosed Bedouin tent each have their own. Both zoom levels use the same full model; there is no decimated far copy or automatic reduction. The older collection and its import path remain the maintainer’s #1273 lane. The catalog now holds 80 models in 79 bundles, including 27 animated models: Tal Heuberger's 73 originals, six runtime generated characters and the static Bedouin tent. Player first-download growth and People bundle bytes require actual build measurement; no estimate is called a measurement.
## Import and review
-`Generated1948Characters.Run` explicitly imports the seven named characters with mesh and animation compression Off, no Crunch, original-size maps and all available clips. Runtime prefabs use idle only; walk is available for review. `CollectionImport` delegates the five runtime generated characters to this full-quality importer and preserves older import settings. Original C09 model files and metadata remain unchanged.
+`Generated1948Characters.Run` explicitly imports the seven named characters with mesh and animation compression Off, no Crunch, original-size maps and all available clips. Runtime prefabs use idle only; walk is available for review. `CollectionImport` delegates the six runtime generated characters to this full-quality importer and preserves older import settings. Original C09 model files and metadata remain unchanged.
-Open `Assets/Editor/Generated1948CharacterReview.unity`, or use Statecraft → Character review → Play seven generated characters. The stage is isolated, not a historical map or player capture. Camera angle, idle/walk, orientation and floor-contact checks remain available. The two review-only characters cannot become build dependencies merely by opening this scene.
+Open `Assets/Editor/Generated1948CharacterReview.unity`, or use Statecraft → Character review → Play seven generated characters. The stage is isolated, not a historical map or player capture. Camera angle, idle/walk, orientation and floor-contact checks remain available. The one review-only character cannot become a build dependency merely by opening this scene.
## Evidence
diff --git a/docs/map-model-residency.md b/docs/map-model-residency.md
index 7907e13f1..d5f886a81 100644
--- a/docs/map-model-residency.md
+++ b/docs/map-model-residency.md
@@ -23,4 +23,4 @@ The complete-geometry fixture intentionally admits every original town, unlike p
The 73 original FBX files and their 73 colour JPEGs are pinned in `docs/original-models.json` against Tal Heuberger's #507 and #336 commits. Of these, 54 FBX have only the author's absolute-path text blanked to ASCII spaces of the same byte length, as the owner ruled on #1273; the remaining 19 FBX and all 73 JPEGs are source-byte-identical. No geometry, clip, compression or image bytes were otherwise changed. The manifest records every unequal byte offset and only redacted path patterns. Stream prefabs, import metadata, controllers/materials and TownModels.asset are generated repository artifacts, not Tal's original files. ASSETS.yaml has exact current original-file CC BY-NC-ND 4.0 rows; retained historical slim-derivative records keep their historical basis.
-Fresh main's independently generated Syrian and Iraqi figures keep their own shared bundle, rig, clips and source art unchanged. Tal Heuberger's 73 originals each use an independent bundle; the five runtime generated characters and the static Bedouin tent bring the catalogue to 79 models in 78 bundles, including 26 animated models. The shared Arab bundle still waits for every queued people request to settle, including when people are spread across independent original bundles. Far Tal originals sample frame zero; the generated rigs remain animated at both placement details. The Egyptian and ALA infantry and the Bedouin civilian and tent are runtime models, each in its own bundle; current formation mappings are preserved.
+Fresh main's independently generated Syrian and Iraqi figures keep their own shared bundle, rig, clips and source art unchanged. Tal Heuberger's 73 originals each use an independent bundle; the six runtime generated characters and the static Bedouin tent bring the catalogue to 80 models in 79 bundles, including 27 animated models. The shared Arab bundle still waits for every queued people request to settle, including when people are spread across independent original bundles. Far Tal originals sample frame zero; the generated rigs remain animated at both placement details. The Egyptian and ALA infantry, the Lebanese regular and the Bedouin civilian and tent are runtime models, each in its own bundle; current formation mappings are preserved.
diff --git a/docs/units.md b/docs/units.md
index d0162e0be..5f118f5c7 100644
--- a/docs/units.md
+++ b/docs/units.md
@@ -130,7 +130,7 @@ ruled (al-Malikiyya on 15 May is the ALA's, #226 ruling 2).
| Arab Legion | jordan | Ramallah (to 11 June) | Latrun | 5,000 |
| Syrian Army | syria | south of Lake Tiberias, before Samakh (to 18 May) | the Mishmar HaYarden bridgehead | 3,000 |
| Iraqi Expeditionary Force | iraq | the high ground over Gesher (15 May only, by the owner's decision) | Jenin | 3,000 |
-| Lebanese Army | lebanon | hidden: no place two sources agree on | | 1,000 |
+| Lebanese Army | lebanon | no place two sources agree on: no window | al-Malikiyya, 6 June to 8 July (owner, 28 October 2026: "6 Jun to 8 Jul (Recommended)"); a map-only token | 1,000 |
| Arab Liberation Army | ala | al-Malikiyya (to 29 May) | | 4,000 |
- **One value per strength** (CONTENT_POLICY section 1; Q-START-3): from an Israeli source where one gives it, else the
@@ -150,8 +150,10 @@ ruled (al-Malikiyya on 15 May is the ALA's, #226 ruling 2).
those two are drawn (issue #665; see "The 1948 Collection on the tokens"): the Arab Legion and the Arab Liberation
Army. `UnitRoster.OnMap` (not hidden, and `side: israel` or a side with a figure) keeps the roster and the placer to
those rows. Tal Heuberger's generated figures have since joined them (owner, 27 October 2026, #756: "Sign off all 19"):
- the Syrian, Iraqi and Egyptian infantry on their forces' tokens. The Lebanese row (hidden) gives no token, takes no spot
- and clears no ground for the kits.
+ the Syrian, Iraqi and Egyptian infantry on their forces' tokens, and the Lebanese regular on the Lebanese army's token.
+ The Lebanese army has no sim unit, so its token is map-only (owner, 27 October 2026: "Map-only token (Recommended)"):
+ in both loops it stands at its dated anchor, al-Malikiyya from 6 June to 8 July 1948, and never moves or fights
+ (`UnitRoster.MapOnly`; it is the only Arab army row with no starting force).
A drawn force's token has no code-built figure: it is drawn only once its figure has arrived, so a missing or damaged
bundle draws nothing. In the legacy loop, three figures (Q-UI-3 at full strength: the rows give only the sourced 15 May
strength; owner, 17 October 2026, #226); in the GDD loop, Q-UI-3 by the sim unit's strength ("Tokens from the state"); under the neutral pennant (Q-ART-1). Its spot never stands on ground Israel held on its
@@ -159,8 +161,9 @@ ruled (al-Malikiyya on 15 May is the ALA's, #226 ruling 2).
goldens do not move. Tests: `UnitsInPlayTests.OnlyTheForcesWithAFigureAreDrawnAndOnlyOnceItHasArrived`,
`UnitFiguresTests.TheArabForcesAreDrawnOnlyWithTheirOwnFiguresOnceTheyArrive`.
- **Not in the file yet:** the local Arab forces (the note places them only beside places its "Conventions" lists as
- sensitive and does not describe), the Legion's Jerusalem battalions, the Egyptian eastern force, the ALA and
- the Lebanese Army on 11 June (al-Malikiyya's holder is contested), and the Saudi, Sudanese and Yemeni contingents (not
+ sensitive and does not describe), the Legion's Jerusalem battalions, the Egyptian eastern force, the ALA on
+ 11 June (al-Malikiyya's holder is contested; the Lebanese row stands there from 6 June by the owner's ruling of 28
+ October 2026), and the Saudi, Sudanese and Yemeni contingents (not
units of their own, Q-START-4). The side `local_arab_forces` is known to the loader for them.
- The Python tests check the same rules in CI (`tools/tests/test_units_1948.py`: `test_every_side_is_known`,
`test_strength_has_one_value_and_a_source`, `test_no_anchor_rests_on_one_source_where_the_note_says_contested`,
@@ -216,7 +219,7 @@ defaults"). The unit stands on the hex holding the anchor's coordinates, by the
- **Strength** is the row's people in 1,000-person population units, the nearest unit with a half up, never below 1.
- **Who starts:** Golani 4, Carmeli 2 (at Haifa, its sector seat), Alexandroni 4, Kiryati 3, Givati 3, Harel 1,
Etzioni 3 (Jerusalem), Negev 1 (#1240, #1241); Egypt 10, the Arab Legion 5, Syria 3, Iraq 3, the ALA 4. Nothing starts
- for Yiftach (no window on 15 May), Oded, the 8th and the Lebanese row (hidden), or the squadron and the two ships
+ for Yiftach (no window on 15 May), Oded, the 8th and the Lebanese row (no window on 15 May; a map-only token), or the squadron and the two ships
(tokens only, Q-UNIT-5).
- **Arrivals (R-UNIT-009, #1241):** a row whose strength is dated after 15 May, with an anchor window covering that day,
arrives on that day: in the resolution of the monthly turn that reaches it, on that anchor's hex, with that strength. Its
@@ -325,6 +328,13 @@ own root rotation kept (the FBX axis turn, -90 degrees about X), so the camera's
**Placement** (`UnitPlacer.PlaceAll`). Every anchor is placed once, from the data alone, so a token never moves because
another unit appears. Its spot is at most one hex step from the sourced place (about 8.7 km between hex centres on 5 km
hexes). It is the nearest such spot to the place, or to the anchor's sourced `toward` point when it has one (see below).
+In the GDD loop a simulated starting force can persist after its source anchor's window ends. A map-only army whose
+cached spot overlaps that starting spot gets a fixed display override, computed once from the same data before date or
+model-arrival filtering. It follows the same one-hex, source-offset, land and road constraints and must clear other cached
+spots. Overrides cannot stand in a town: the map's original spots and kit clearings stay unchanged. Only relocated display
+spots are reserved against later moved-token placement. Source anchors, their dates, sim units and legacy placement do not
+change. If no safe override exists, the token remains drawn at its original spot with an overlap warning.
+
The candidates are tried in three rounds:
1. The centres of the anchor's own hex and its six neighbours, with the token at full size.
2. If none is clear, those centres plus six points inside each hex, with the token **compact**: half the ring and half
diff --git a/tools/tests/test_slim_collection.py b/tools/tests/test_slim_collection.py
index 1139b98b4..852f00bbc 100644
--- a/tools/tests/test_slim_collection.py
+++ b/tools/tests/test_slim_collection.py
@@ -22,6 +22,7 @@ GENERATED_FIGURES = [
"figure-egyptian-infantry-1948-v1",
"figure-ala-infantry-1948-v1",
"figure-bedouin-civilian-1948-v1",
+ "figure-lebanese-regular-1948-v1",
]
GENERATED_PROPS = [
"generated-1948-06-bedouin-b-enclosed-striped-tent",
diff --git a/tools/tests/test_units_1948.py b/tools/tests/test_units_1948.py
index 0ba839055..843ecde32 100644
--- a/tools/tests/test_units_1948.py
+++ b/tools/tests/test_units_1948.py
@@ -7,6 +7,7 @@ from pathlib import Path
from urllib.parse import urlparse
import yaml12
+import pytest
ROOT = Path(__file__).resolve().parents[2]
UNITS = yaml12.load((ROOT / 'content/map/units_1948.yaml').read_text(encoding='utf-8'))['units']
@@ -267,8 +268,11 @@ def test_no_anchor_rests_on_one_source_where_the_note_says_contested():
"""arab-forces-1948.md section 8 and section 10. Latrun on 15 May rests on al-Tall alone (item 1), so no Legion
anchor holds Latrun before 17 May; the Legion in Jerusalem on 15 May is contested (item 2), so none stands there.
al-Malikiyya on 15 May is contested and ruled the ALA's (item 12; #226 ruling 2): an ALA anchor stands there and no
- Lebanese one does; who held it on 11 June is contested, so no row stands there then. Every other anchor of an Arab
- row cites at least two sources."""
+ Lebanese one does then. Who held it on 11 June is contested in the sources (item 13), so the ALA's anchor ends before
+ 11 June. The one anchor there in that time is the Lebanese row's, from 6 June to 8 July 1948, by the owner's ruling of
+ 28 October 2026 ("6 Jun to 8 Jul (Recommended)"), on Dupuy p. 47 and the JTA bulletins of 7 June (p. 1) and 8 June
+ (p. 3); it replaces, for that window only, ruling 2's "no row stands there then". Every other anchor of an Arab row
+ cites at least two sources."""
rows = arab_rows()
anchors = [(u, a) for u in rows for a in u['anchors']]
assert anchors, 'the Arab forces have anchors (#740)'
@@ -277,9 +281,13 @@ def test_no_anchor_rests_on_one_source_where_the_note_says_contested():
if u['side'] == 'jordan':
assert not (near(a, *LATRUN) and day(a['from']) < date(1948, 5, 17)), f'{where}: Latrun on 15 May rests on al-Tall alone'
assert not (near(a, *JERUSALEM_OLD_CITY, km=5) and covers(a, GAME_START)), f'{where}: the Legion in Jerusalem on 15 May is contested'
- if near(a, *MALIKIYYA):
+ if near(a, *MALIKIYYA) and u['side'] == 'lebanon':
+ # The owner's ruling of 28 October 2026 ("6 Jun to 8 Jul (Recommended)"): exactly this window, on two sources.
+ assert (a['from'], a['to']) == ('1948-06-06', '1948-07-08'), f'{where}: the ruled window is 6 June to 8 July 1948'
+ assert len(books(a['sources'])) >= 2, f'{where}: rests on one source'
+ elif near(a, *MALIKIYYA):
assert u['side'] == 'ala' and covers(a, GAME_START) and not covers(a, date(1948, 6, 11)), \
- f'{where}: al-Malikiyya is the ALA\'s on 15 May (ruling) and nobody\'s row on 11 June (contested)'
+ f'{where}: al-Malikiyya is the ALA\'s on 15 May (ruling) and, but for the ruled Lebanese window, nobody\'s row on 11 June (contested)'
else:
assert len(books(a['sources'])) >= 2, f'{where}: rests on one source (a Wikipedia or Wikidata page for the coordinates does not count)'
assert any(u['side'] == 'ala' and near(a, *MALIKIYYA) and covers(a, GAME_START) for u, a in anchors), 'the ALA at al-Malikiyya on 15 May'
@@ -328,3 +336,10 @@ def test_the_egyptian_force_has_its_forward_and_its_rear_base_at_the_truce():
if u['side'] == 'israel':
ends = [(day(a['from']), day(a['to'])) for a in u['anchors']]
assert all(ends[i - 1][1] <= ends[i][0] for i in range(1, len(ends))), f"{u['id']}: an Israeli row is at one place at a time"
+
+
[email protected]("field", ["sector", "sector_he"])
+def test_lebanese_unit_card_sector_keeps_workflow_references_out_of_player_text(field):
+ # UnitCard displays these fields directly; authority belongs in sources/to_verify.
+ row = next(u for u in UNITS if u['id'] == 'lebanese_army')
+ assert not re.search(r"owner ruling|פסיקת הבעלים|#\d+", row[field]), field
diff --git a/unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1.meta b/unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1.meta
similarity index 100%
rename from unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1.meta
rename to unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1.meta
diff --git a/unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.controller b/unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.controller
similarity index 100%
rename from unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.controller
rename to unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.controller
diff --git a/unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.controller.meta b/unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.controller.meta
similarity index 100%
rename from unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.controller.meta
rename to unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.controller.meta
diff --git a/unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.fbx b/unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.fbx
similarity index 100%
rename from unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.fbx
rename to unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.fbx
diff --git a/unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.fbx.meta b/unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.fbx.meta
similarity index 100%
rename from unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.fbx.meta
rename to unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.fbx.meta
diff --git a/unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.mat b/unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.mat
similarity index 100%
rename from unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.mat
rename to unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.mat
diff --git a/unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.mat.meta b/unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.mat.meta
similarity index 100%
rename from unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.mat.meta
rename to unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.mat.meta
diff --git a/unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.prefab b/unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.prefab
similarity index 100%
rename from unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.prefab
rename to unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.prefab
diff --git a/unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.prefab.meta b/unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.prefab.meta
similarity index 100%
rename from unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.prefab.meta
rename to unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1.prefab.meta
diff --git a/unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1_basecolor.jpg b/unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1_basecolor.jpg
similarity index 100%
rename from unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1_basecolor.jpg
rename to unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1_basecolor.jpg
diff --git a/unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1_basecolor.jpg.meta b/unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1_basecolor.jpg.meta
similarity index 100%
rename from unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1_basecolor.jpg.meta
rename to unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1/figure-lebanese-regular-1948-v1_basecolor.jpg.meta
diff --git a/unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1/provenance.json b/unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1/provenance.json
similarity index 86%
rename from unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1/provenance.json
rename to unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1/provenance.json
index 983a7476a..4321f7698 100644
--- a/unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1/provenance.json
+++ b/unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1/provenance.json
@@ -7,7 +7,7 @@
"source_sha256": "b84b4e45e954fdf9bcdd568caf761bb763f7a5b4945957fe54ec9bde8bde8748",
"local_processing": "Full geometry/UVs/skin retained; compatibility FBX with both local idle/walk takes, bake step 1, simplify 0. Mesh/animation import compression Off; exact embedded provider 4096px JPEG, no Crunch. FBX animation interpolation conversion is not mathematically lossless; see source validation.",
"animation_source": "Existing figure-c09-irregular-v2, original source at repository commit 3ef0a7a5a36887aee7a24fd11ddf722507695f3c; source licence unchanged.",
- "runtime_placement": "editor-only review; not in runtime catalogs/build dependencies",
+ "runtime_placement": "the Lebanese army's map-only token at al-Malikiyya, 6 June to 8 July 1948 (owner, 27 October 2026, \"Map-only token (Recommended)\"; 28 October 2026, \"6 Jun to 8 Jul (Recommended)\"), signed off by the owner 27 October 2026 (#756)",
"files": {
"figure-lebanese-regular-1948-v1.fbx": "53472487650c6a7009a9f399ea0dad0a294a611224d8492895cc850ffbf54ce5",
"figure-lebanese-regular-1948-v1_basecolor.jpg": "b629a5dabcf0959265e335b8192c4b4499758d26744de486c9294b4aa07254e4"
diff --git a/unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1/provenance.json.meta b/unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1/provenance.json.meta
similarity index 100%
rename from unity/Assets/Editor/Generated1948Review/figure-lebanese-regular-1948-v1/provenance.json.meta
rename to unity/Assets/Art/Collection/figure-lebanese-regular-1948-v1/provenance.json.meta
diff --git a/unity/Assets/Editor/Generated1948CharacterReview.unity b/unity/Assets/Editor/Generated1948CharacterReview.unity
index 37ae722d5..fe8683c55 100644
--- a/unity/Assets/Editor/Generated1948CharacterReview.unity
+++ b/unity/Assets/Editor/Generated1948CharacterReview.unity
@@ -199,8 +199,8 @@ MonoBehaviour:
Walk: {fileID: 7606915860368782285, guid: 0e876e2b7720d4a3ab301e85d36455ba, type: 3}
- Id: figure-lebanese-regular-1948-v1
Label: Lebanese regular
- Status: Review only - no sourced map anchor
- Campaign: 0
+ Status: Campaign formation, map-only token
+ Campaign: 1
Model: {fileID: 919132149155446097, guid: 3fd125e677ca247f8bd5934b0655de55, type: 3}
Material: {fileID: 2100000, guid: 88c6bf6fdba2e45709e0df33108fb0c3, type: 2}
Idle: {fileID: -2711213294437986769, guid: 3fd125e677ca247f8bd5934b0655de55, type: 3}
diff --git a/unity/Assets/Scripts/Map/Collection/CollectionCatalog.cs b/unity/Assets/Scripts/Map/Collection/CollectionCatalog.cs
index 1ba4258f3..d8d380dae 100644
--- a/unity/Assets/Scripts/Map/Collection/CollectionCatalog.cs
+++ b/unity/Assets/Scripts/Map/Collection/CollectionCatalog.cs
@@ -10,7 +10,7 @@ namespace Statecraft.Game.Map.Collection
/// <summary>Tal Heuberger's 73 originals from #507 and #336, pinned by docs/original-models.json.
/// The independently generated Syrian and Iraqi infantry retain their own shared bundle, full-quality rigs and clips;
- /// each later generated model (the Egyptian and ALA infantry, the Bedouin civilian and tent) streams in a bundle of its own.
+ /// each later generated model (the Egyptian and ALA infantry, the Lebanese regular, the Bedouin civilian and tent) streams in a bundle of its own.
/// Each has one CRC/SHA-checked bundle and one full-quality prefab outside Resources. Map requests wait
/// for a drawable view; the shared loader waits until the first game frame has rendered (#1273).</summary>
public static class CollectionCatalog
@@ -81,6 +81,9 @@ namespace Statecraft.Game.Map.Collection
/// <summary>Tal Heuberger's Bedouin civilian and enclosed striped Bedouin tent, at the Bedouin camp areas (owner, 27 October
/// 2026, #756: "Sign off all 19").</summary>
public const string BedouinCivilian = "figure-bedouin-civilian-1948-v1", BedouinTent = "generated-1948-06-bedouin-b-enclosed-striped-tent";
+ /// <summary>Tal Heuberger's Lebanese regular, the figure of the Lebanese army's map-only token at al-Malikiyya (owner, 27
+ /// October 2026: "Sign off all 19" and "Map-only token (Recommended)"; 28 October 2026: "6 Jun to 8 Jul (Recommended)").</summary>
+ public const string LebaneseRegular = "figure-lebanese-regular-1948-v1";
/// <summary>Every bundle, with its models in a fixed order.</summary>
public static readonly IReadOnlyList<(string Bundle, string[] Ids)> Groups = new (string, string[])[]
@@ -135,6 +138,7 @@ namespace Statecraft.Game.Map.Collection
"figure-egyptian-infantry-1948-v1",
"figure-ala-infantry-1948-v1",
"figure-bedouin-civilian-1948-v1",
+ "figure-lebanese-regular-1948-v1",
}),
(GeneratedProps, new[]
{
@@ -151,6 +155,7 @@ namespace Statecraft.Game.Map.Collection
["collection-" + EgyptianInfantry] = People,
["collection-" + AlaInfantry] = People,
["collection-" + BedouinCivilian] = People,
+ ["collection-" + LebaneseRegular] = People,
};
/// <summary>The models whose near prefab is skinned and plays its idle clip: every person but C05 (his only idle is
@@ -168,13 +173,14 @@ namespace Statecraft.Game.Map.Collection
EgyptianInfantry,
AlaInfantry,
BedouinCivilian,
+ LebaneseRegular,
};
/// <summary>The generated figures (#1377 and later): full-quality rigs that keep playing their idle at every zoom, each
/// with one prefab beside its FBX.</summary>
public static bool IsFullQualityGeneratedInfantry(string id) =>
id == "figure-syrian-infantry-1948-v1" || id == "figure-iraqi-infantry-1948-v1" || id == EgyptianInfantry || id == AlaInfantry
- || id == BedouinCivilian;
+ || id == BedouinCivilian || id == LebaneseRegular;
/// <summary>The generated static props: full-quality originals with one prefab beside the FBX, like the generated figures.</summary>
public static bool IsGeneratedProp(string id) => id == BedouinTent;
diff --git a/unity/Assets/Scripts/Map/Units/UnitFigureDetail.cs b/unity/Assets/Scripts/Map/Units/UnitFigureDetail.cs
index e9fadf731..53ada3147 100644
--- a/unity/Assets/Scripts/Map/Units/UnitFigureDetail.cs
+++ b/unity/Assets/Scripts/Map/Units/UnitFigureDetail.cs
@@ -131,6 +131,7 @@ namespace Statecraft.Game.Map.Units
r.lightProbeUsage = LightProbeUsage.Off; r.reflectionProbeUsage = ReflectionProbeUsage.Off;
}
f.Animators = near.GetComponentsInChildren<Animator>(true);
+ UnitFigures.GeometryChanged();
if (!logged && Application.isPlaying) { logged = true; Debug.Log("UNITS figures: the skinned near figures streamed in (close zoom)"); }
}
diff --git a/unity/Assets/Scripts/Map/Units/UnitFigureResidency.cs b/unity/Assets/Scripts/Map/Units/UnitFigureResidency.cs
index 36ba09727..9cf6111ad 100644
--- a/unity/Assets/Scripts/Map/Units/UnitFigureResidency.cs
+++ b/unity/Assets/Scripts/Map/Units/UnitFigureResidency.cs
@@ -55,7 +55,7 @@ namespace Statecraft.Game.Map.Units
bool observed;
internal void Choose(ScriptableRenderContext _, Camera camera)
{
- if (!initialized || view == null || camera.cameraType == CameraType.Preview || camera.cameraType == CameraType.Reflection) return;
+ if (this == null || !initialized || view == null || camera.cameraType == CameraType.Preview || camera.cameraType == CameraType.Reflection) return;
bool first = !observed; observed = true; var before = view.Keys;
view.Observe(camera, new[] { (id, transform.position, 0f) }, Time.frameCount);
if (first || !before.SetEquals(view.Keys)) Schedule(view.Keys.Contains(id));
@@ -74,6 +74,7 @@ namespace Statecraft.Game.Map.Units
UnitFigureDetail.Of(transform).Remove(holder);
var original = holder.gameObject; gone.Add(original);
if (Application.isPlaying) { holder.SetParent(null); Destroy(original); } else DestroyImmediate(original);
+ UnitFigures.GeometryChanged();
}
// The mesh, plate, badge, flag and every other child are owned by the token, never by this source lease.
if (TryGetComponent<MeshRenderer>(out var code)) code.enabled = true;
diff --git a/unity/Assets/Scripts/Map/Units/UnitFigures.cs b/unity/Assets/Scripts/Map/Units/UnitFigures.cs
index 0b2257aad..ab78e1382 100644
--- a/unity/Assets/Scripts/Map/Units/UnitFigures.cs
+++ b/unity/Assets/Scripts/Map/Units/UnitFigures.cs
@@ -34,7 +34,7 @@ namespace Statecraft.Game.Map.Units
public const string SyrianInfantry = "figure-syrian-infantry-1948-v1",
AlaInfantry = CollectionCatalog.AlaInfantry, IraqiInfantry = "figure-iraqi-infantry-1948-v1",
- EgyptianInfantry = CollectionCatalog.EgyptianInfantry;
+ EgyptianInfantry = CollectionCatalog.EgyptianInfantry, LebaneseRegular = CollectionCatalog.LebaneseRegular;
/// <summary>An Israeli rifleman's figure by his headgear (the sourced <see cref="UnitEntry.Headgear"/>, or the uniform
/// default), as Tal Heuberger's figures wear them and #507 paired them: the bush (slouch) hat is the sabra pioneer (C04), the
@@ -70,8 +70,9 @@ namespace Statecraft.Game.Map.Units
/// <summary>An Arab force's own figure, by side. The generated 1948 infantry have separate Syrian, Egyptian, ALA and
/// Iraqi identities; C08 stays with Jordan and C09 stays on the existing ALA tokens, with the new ALA infantry as their third figure
- /// (<see cref="ThirdBySide"/>). No local-force row is authored here. Lebanon's hidden row remains off the map
- /// (<see cref="UnitRoster.OnMap"/>).
+ /// (<see cref="ThirdBySide"/>). No local-force row is authored here. Lebanon's army is drawn with Tal Heuberger's Lebanese
+ /// regular as a map-only token at al-Malikiyya from 6 June to 8 July 1948 (owner, 27 October 2026: "Map-only token
+ /// (Recommended)"; 28 October 2026: "6 Jun to 8 Jul (Recommended)"); it has no sim unit (<see cref="UnitRoster.MapOnly"/>).
/// Egypt is drawn as one token (owner, 27 October 2026: "One token"): in the GDD loop the one sim unit of its row,
/// in the legacy loop its row's first anchor whose window holds the date (<see cref="UnitRoster.AnchorAt"/>), so at
/// the first truce the forward base at Isdud; the rear base at Majdal stays in the row and on the unit card.
@@ -80,7 +81,7 @@ namespace Statecraft.Game.Map.Units
public static readonly IReadOnlyDictionary<string, string> BySide = new Dictionary<string, string>(StringComparer.Ordinal)
{
["jordan"] = ArabLegion, ["ala"] = Irregular,
- ["syria"] = SyrianInfantry, ["iraq"] = IraqiInfantry, ["egypt"] = EgyptianInfantry,
+ ["syria"] = SyrianInfantry, ["iraq"] = IraqiInfantry, ["egypt"] = EgyptianInfantry, ["lebanon"] = LebaneseRegular,
};
/// <summary>The third figure of an Arab force's token, by side, in place of its side figure: the ALA's is Tal Heuberger's ALA
@@ -147,6 +148,9 @@ namespace Statecraft.Game.Map.Units
public static event Action<string>? ModelArrived;
internal static int AvailabilityVersion { get; private set; }
+ // Per-consumer model children can change while the roster and shared availability stay the same.
+ internal static int GeometryVersion { get; private set; }
+ internal static void GeometryChanged() => GeometryVersion++;
static readonly Dictionary<string, int> owned = new Dictionary<string, int>(StringComparer.Ordinal);
static readonly HashSet<string> legacyPinned = new HashSet<string>(StringComparer.Ordinal);
internal static CollectionResidencyMetrics.Category ResidencyCaches() => CollectionResidencyMetrics.Row("units", 0, 0,
@@ -337,6 +341,7 @@ namespace Statecraft.Game.Map.Units
}
if (code != null) code.enabled = false;
if (CollectionCatalog.Animated.Contains(id) && !CollectionCatalog.IsFullQualityGeneratedInfantry(id)) UnitFigureDetail.Of(piece).Add(holder, id); // C05 has no idle: he stays far
+ GeometryChanged();
}
/// <summary>The box of <paramref name="model"/>'s meshes in <paramref name="frame"/>'s space, from each mesh's own
diff --git a/unity/Assets/Scripts/Map/Units/UnitFlagFacing.cs b/unity/Assets/Scripts/Map/Units/UnitFlagFacing.cs
index bdac7392d..3abce9166 100644
--- a/unity/Assets/Scripts/Map/Units/UnitFlagFacing.cs
+++ b/unity/Assets/Scripts/Map/Units/UnitFlagFacing.cs
@@ -28,7 +28,7 @@ namespace Statecraft.Game.Map.Units
void Turn(ScriptableRenderContext _, Camera cam)
{
- if (cam == null) return;
+ if (this == null || cam == null) return;
var at = cam.transform.position;
if (at == lastCamera) return;
lastCamera = at;
diff --git a/unity/Assets/Scripts/Map/Units/UnitLayer.cs b/unity/Assets/Scripts/Map/Units/UnitLayer.cs
index e064bc59f..1f4f9371b 100644
--- a/unity/Assets/Scripts/Map/Units/UnitLayer.cs
+++ b/unity/Assets/Scripts/Map/Units/UnitLayer.cs
@@ -44,6 +44,8 @@ namespace Statecraft.Game.Map.Units
readonly Dictionary<string, UnitFigureResidency> figurePrefetch = new Dictionary<string, UnitFigureResidency>();
bool updatingPrefetch;
int seenAvailability = -1;
+ int seenGeometry = -1;
+ static readonly Predicate<MeshFilter> MissingMesh = mesh => mesh == null;
void PrefetchFigures(IReadOnlyList<UnitToken> candidates)
{
updatingPrefetch = true;
@@ -121,6 +123,11 @@ namespace Statecraft.Game.Map.Units
/// <summary>Moved anchors made since the last placement (each is placed once, spot or not).</summary>
readonly HashSet<UnitAnchor> movedNew = new HashSet<UnitAnchor>();
Dictionary<UnitAnchor, AnchorSpot>? drawSpots;
+ Dictionary<UnitAnchor, AnchorSpot>? fixedGddSpots;
+ readonly List<AnchorSpot> reservedMapOnlySpots = new List<AnchorSpot>();
+ IReadOnlyDictionary<UnitAnchor, AnchorSpot> DisplaySpots =>
+ shownContent?.IsGdd == true && fixedGddSpots != null ? fixedGddSpots : spots;
+
/// <summary>How many moved units' anchors the layer has placed (each once; the tests read it).</summary>
public int MovedSpotsPlaced { get; private set; }
@@ -219,11 +226,23 @@ namespace Statecraft.Game.Map.Units
/// <summary>As the render callback does: for a still render (the editor's promo captures, the tests), and for the map's
/// names before they are placed (GameRoot), so the keep-clear boxes hold each badge and flag where this camera draws
/// them: the badge's box is its own cube, not a box round every place the camera's yaw could take it (that box, about
- /// 3.7 km across, pushed Tel Aviv's name off its kit at gameplay03). No allocation.</summary>
+ /// 3.7 km across, pushed Tel Aviv's name off its kit at gameplay03). No allocation while model geometry is unchanged.</summary>
public void FaceCamera(Camera cam)
{
if (seenAvailability != UnitFigures.AvailabilityVersion && shownContent != null && shownState != null) Show(shownContent, shownState);
if (cam == null) return;
+ bool geometryChanged = seenGeometry != UnitFigures.GeometryVersion;
+ seenGeometry = UnitFigures.GeometryVersion;
+ for (int i = 0; i < trios.Count; i++)
+ {
+ var trio = trios[i];
+ if (!geometryChanged && !Array.Exists(trio.meshes, MissingMesh)) continue;
+ // The holder survives residency; its imported children do not. Never retain their old filters.
+ trio.meshes = trio.figures.Where(f => f.figure != null)
+ .SelectMany(f => f.figure.GetComponentsInChildren<MeshFilter>(true)).ToArray();
+ trios[i] = trio;
+ facedFor = null;
+ }
var eye = cam.transform.position; var rotation = cam.transform.rotation;
if (facedFor is { } last && last.eye == eye && last.rotation == rotation) return; // nothing moved since the last turn
facedFor = (eye, rotation);
@@ -276,7 +295,7 @@ namespace Statecraft.Game.Map.Units
UnitFlagFacing.Face(flag.transform, eye); // as it will turn for this camera
s.Encapsulate(WorldBox(flag));
}
- foreach (var m in meshes) s.Encapsulate(WorldBox(m)); // the figures as turned
+ foreach (var m in meshes) if (m != null && m.sharedMesh != null) s.Encapsulate(WorldBox(m)); // the figures as turned
boxes[1] = s;
}
}
@@ -287,6 +306,7 @@ namespace Statecraft.Game.Map.Units
public bool Show(Content content, GameState state)
{
shownContent = content; shownState = state;
+ PrepareMapOnlySpots(content);
// The GDD loop draws the army from the sim's units (GDD Phase 5 PR 14); the legacy loop keeps the rows and the call-up.
var now = content.IsGdd
? UnitRoster.FromState(units, content, state, _ => true, (row, start, q, r) => MovedAnchor(content, row, start, q, r))
@@ -296,13 +316,67 @@ namespace Statecraft.Game.Map.Units
if (roster != null && roster.SequenceEqual(now)) { seenAvailability = UnitFigures.AvailabilityVersion; return false; }
roster = now;
PlaceMoved(now);
- placed = UnitPlacer.Place(now, drawSpots ?? spots);
+ placed = UnitPlacer.Place(now, drawSpots ?? DisplaySpots);
Rebuild();
if (Selected != null && !placed.Any(p => p.Token.Unit.Id == Selected)) Select(null); else Select(Selected);
seenAvailability = UnitFigures.AvailabilityVersion;
return true;
}
+ float DisplayReach(AnchorSpot spot) => Mathf.Max(ground.RingRadius(spot.Compact),
+ UnitPlinth.Radius(UnitPlinth.TrioWidth(UnitShowcase.FigureOffsets(3),
+ UnitShowcase.DrawSpread * ground.HexSizeM * Scale(spot))) * UnitPlinth.RimOuter);
+
+ bool DisplayOverlap(AnchorSpot a, AnchorSpot b)
+ {
+ double dx = a.X - b.X, dz = a.Z - b.Z;
+ return a.Q == b.Q && a.R == b.R || Math.Sqrt(dx * dx + dz * dz) < DisplayReach(a) + DisplayReach(b);
+ }
+
+ /// <summary>GDD starting forces keep their starting anchors after the source windows end. Reserve a fixed,
+ /// clear display spot for a map-only army that would otherwise share one. Computed once from data, before
+ /// date/model filtering: appearance never moves another token. The map's kit clearings and sourced spots stay intact.</summary>
+ void PrepareMapOnlySpots(Content content)
+ {
+ if (!content.IsGdd || fixedGddSpots != null) return;
+ fixedGddSpots = new Dictionary<UnitAnchor, AnchorSpot>();
+ foreach (var kv in spots) fixedGddSpots[kv.Key] = kv.Value;
+ var simRows = new HashSet<string>(content.StartingForces.Select(f => f.Row), StringComparer.Ordinal);
+ var starts = new List<AnchorSpot>();
+ foreach (var force in content.StartingForces)
+ {
+ var row = units.FirstOrDefault(u => u.Id == force.Row);
+ if (row == null || !UnitRoster.OnMap(row) || row.Service != UnitData.Army) continue;
+ var anchor = UnitRoster.AnchorAt(row, force.Arrives ?? content.Rules.Start);
+ if (anchor != null && spots.TryGetValue(anchor, out var start)) starts.Add(start);
+ }
+ foreach (var row in units.Where(u => UnitRoster.OnMap(u) && UnitRoster.MapOnly(u, simRows)))
+ foreach (var anchor in row.Anchors)
+ {
+ if (!spots.TryGetValue(anchor, out var original)) continue;
+ if (starts.Any(start => DisplayOverlap(original, start)))
+ {
+ var others = fixedGddSpots.Where(kv => !ReferenceEquals(kv.Key, anchor)).Select(kv => kv.Value).ToList();
+ var taken = fixedGddSpots.Values.Select(s => (s.Q, s.R)).Distinct().ToList();
+ var entry = new UnitEntry { Id = row.Id, Side = row.Side, Service = row.Service,
+ Anchors = new List<UnitAnchor> { anchor } };
+ bool found = false;
+ int neighbourhood = 1 + 3 * UnitPlacer.MaxShift * (UnitPlacer.MaxShift + 1);
+ for (int attempt = 0; attempt < neighbourhood; attempt++)
+ {
+ var candidates = ground.Place(new[] { entry }, XZ(map), null, taken);
+ if (!candidates.TryGetValue(anchor, out var candidate)) break;
+ if (!candidate.InTown && !others.Any(other => DisplayOverlap(candidate, other)))
+ {
+ fixedGddSpots[anchor] = candidate; reservedMapOnlySpots.Add(candidate); found = true; break;
+ }
+ taken.Add((candidate.Q, candidate.R));
+ }
+ if (!found) Debug.LogWarning($"UNITS {row.Id}: no safe fixed map-only display spot; overlapping source spot retained");
+ }
+ }
+ }
+
/// <summary>Dims the listed unit rows' badges for this turn (each badge renderer at <see cref="DimShade"/> of its
/// material's colour); every other badge has no property override.</summary>
public void Dim(IReadOnlyCollection<string> rowIds)
@@ -344,15 +418,17 @@ namespace Statecraft.Game.Map.Units
{
var fresh = tokens.Where(t => movedNew.Remove(t.Anchor)).ToList();
if (fresh.Count == 0) return;
- var taken = tokens.Select(t => spots.TryGetValue(t.Anchor, out var s) ? s : movedSpots.TryGetValue(t.Anchor, out s) ? s : (AnchorSpot?)null)
- .Where(s => s != null).Select(s => (s!.Value.Q, s.Value.R)).ToList();
+ var taken = tokens.Select(t => DisplaySpots.TryGetValue(t.Anchor, out var s) ? s : movedSpots.TryGetValue(t.Anchor, out s) ? s : (AnchorSpot?)null)
+ .Where(s => s != null).Select(s => (s!.Value.Q, s.Value.R))
+ .Concat(reservedMapOnlySpots.Select(s => (s.Q, s.R))).ToList();
var entries = fresh.Select(t => new UnitEntry { Id = t.Unit.Id, Side = t.Unit.Side, Service = t.Unit.Service, Anchors = new List<UnitAnchor> { t.Anchor } }).ToList();
foreach (var kv in ground.Place(entries, XZ(map), Debug.LogWarning, taken)) movedSpots[kv.Key] = kv.Value;
// A sim unit with no clear spot within a hex is still drawn, compact on its own sim hex: left out, it could not
// be seen or selected, and End turn waits for it (UnitPlacer.OnOwnHex). The spots are placed in token order.
var toXZ = XZ(map);
- var used = tokens.Select(t => spots.TryGetValue(t.Anchor, out var s) ? s : movedSpots.TryGetValue(t.Anchor, out s) ? s : (AnchorSpot?)null)
- .Where(s => s != null).Select(s => (s!.Value.X, s.Value.Z)).ToList();
+ var used = tokens.Select(t => DisplaySpots.TryGetValue(t.Anchor, out var s) ? s : movedSpots.TryGetValue(t.Anchor, out s) ? s : (AnchorSpot?)null)
+ .Where(s => s != null).Select(s => (s!.Value.X, s.Value.Z))
+ .Concat(reservedMapOnlySpots.Select(s => (s.X, s.Z))).ToList();
foreach (var t in fresh)
{
if (movedSpots.ContainsKey(t.Anchor) || t.StateUnit == null || !(shownContent?.HexAt(t.StateUnit.Q, t.StateUnit.R) is MapHex hex)) continue;
@@ -364,8 +440,8 @@ namespace Statecraft.Game.Map.Units
Debug.Log($"UNITS {t.Unit.Id} (unit {t.StateUnit.Id}) drawn compact on its own hex ({hex.Q},{hex.R})");
}
MovedSpotsPlaced += fresh.Count;
- drawSpots = new Dictionary<UnitAnchor, AnchorSpot>(spots.Count + movedSpots.Count);
- foreach (var kv in spots) drawSpots[kv.Key] = kv.Value;
+ drawSpots = new Dictionary<UnitAnchor, AnchorSpot>(DisplaySpots.Count + movedSpots.Count);
+ foreach (var kv in DisplaySpots) drawSpots[kv.Key] = kv.Value;
foreach (var kv in movedSpots) drawSpots[kv.Key] = kv.Value;
}
@@ -585,7 +661,7 @@ namespace Statecraft.Game.Map.Units
AddRenderer(badge.transform, "Glyph", MeshFor("badge-" + t.Unit.Service, () => UnitBadge.GlyphMesh(t.Unit.Service)), badgeGlyph, -UnitBadge.GlyphLift);
// The badge's cube and the pieces (the flag and the figures as they stand now); FaceCamera moves both with the camera.
var pieces = standing;
- if (pieces is Bounds s) { if (flag != null) s.Encapsulate(WorldBox(flag)); foreach (var m in meshes) s.Encapsulate(WorldBox(m)); pieces = s; }
+ if (pieces is Bounds s) { if (flag != null) s.Encapsulate(WorldBox(flag)); foreach (var m in meshes) if (m != null && m.sharedMesh != null) s.Encapsulate(WorldBox(m)); pieces = s; }
keepClear.Add(pieces is Bounds p2 ? new[] { new Bounds(badge.transform.position, Vector3.one * UnitBadge.SizeM), p2 }
: new[] { new Bounds(badge.transform.position, Vector3.one * UnitBadge.SizeM) });
}
diff --git a/unity/Assets/Scripts/Map/Units/UnitRoster.cs b/unity/Assets/Scripts/Map/Units/UnitRoster.cs
index cbab9751d..35c3cb4c3 100644
--- a/unity/Assets/Scripts/Map/Units/UnitRoster.cs
+++ b/unity/Assets/Scripts/Map/Units/UnitRoster.cs
@@ -163,10 +163,19 @@ namespace Statecraft.Game.Map.Units
var hats = (row.Headgear ?? (IReadOnlyList<string>)UnitData.DefaultHeadgear).Take(figures).ToList();
list.Add(new UnitToken(row, anchor, figures, RiflemanType(hats[0]), false, hats, UnitFigures.VehiclesAt(row, state.Date), unit));
}
- list.AddRange(Build(units, content, state, arrived).Where(t => t.Unit.Service != UnitData.Army));
+ // The squadron and the ships, as tokens only (Q-UNIT-5), and an Arab army row with no starting force, drawn as a
+ // map-only token at its dated anchor (owner, 27 October 2026, for the Lebanese army: "Map-only token (Recommended)"):
+ // the sim has no unit for it, so it never moves or fights.
+ var simRows = new HashSet<string>(content.StartingForces.Select(f => f.Row), StringComparer.Ordinal);
+ list.AddRange(Build(units, content, state, arrived).Where(t => t.Unit.Service != UnitData.Army || MapOnly(t.Unit, simRows)));
return list;
}
+ /// <summary>Whether <paramref name="u"/> is drawn as a map-only token in the GDD loop: an Arab army row with no starting
+ /// force (<paramref name="simRows"/>: the rows the sim's units start from), which the sim never moves.</summary>
+ public static bool MapOnly(UnitEntry u, ISet<string> simRows) =>
+ u.Service == UnitData.Army && u.Side != UnitData.Israel && !simRows.Contains(u.Id);
+
/// <summary>A raised Israeli military unit's presentation-only token. The first Israeli starting army row is the
/// existing neutral figure default and its sourced strength (currently four) is Q-UI-3's full-strength denominator.
/// Type changes only the already shipped figure set/vehicle. The synthetic row and anchor never enter sim state.</summary>
diff --git a/unity/Assets/Tests/EditMode/CollectionImportTests.cs b/unity/Assets/Tests/EditMode/CollectionImportTests.cs
index 51a6b7fb2..ccdefe4c6 100644
--- a/unity/Assets/Tests/EditMode/CollectionImportTests.cs
+++ b/unity/Assets/Tests/EditMode/CollectionImportTests.cs
@@ -62,15 +62,15 @@ public class CollectionImportTests
public void TheCatalogKeeps73IndependentOriginalsAndTheGeneratedInfantryBundle()
{
var ids = CollectionCatalog.Ids.ToList();
- Assert.AreEqual(79, ids.Count);
+ Assert.AreEqual(80, ids.Count);
Assert.AreEqual(ids.Count, ids.Distinct().Count(), "an id in two bundles");
- Assert.AreEqual(78, CollectionCatalog.Bundles.Count,
+ Assert.AreEqual(79, CollectionCatalog.Bundles.Count,
"73 independent originals, #1763's shared generated bundle and one bundle for each later generated model");
Assert.IsTrue(CollectionCatalog.Bundles.Where(b => b.Bundle != CollectionCatalog.ArabArmies)
.All(b => b.Ids.Length == 1 && b.Bundle == "collection-" + b.Ids[0]));
- CollectionAssert.AreEqual(new[] { 21, 13, 6, 10, 5, 2, 3, 1 }, CollectionCatalog.Groups.Select(g => g.Ids.Length));
+ CollectionAssert.AreEqual(new[] { 21, 13, 6, 10, 5, 2, 4, 1 }, CollectionCatalog.Groups.Select(g => g.Ids.Length));
CollectionAssert.AreEqual(GeneratedInfantry, CollectionCatalog.Bundles.Single(b => b.Bundle == CollectionCatalog.ArabArmies).Ids);
- Assert.AreEqual(26, CollectionCatalog.Animated.Count);
+ Assert.AreEqual(27, CollectionCatalog.Animated.Count);
CollectionAssert.IsSubsetOf(CollectionCatalog.Animated, ids);
CollectionAssert.DoesNotContain(CollectionCatalog.Animated, "figure-c05-pioneer-veteran-v2", "C05's only idle is a walk");
Assert.AreEqual("collection-vehicle-altalena-lst-1948-v2wl", CollectionCatalog.BundleOf("vehicle-altalena-lst-1948-v2wl"));
diff --git a/unity/Assets/Tests/EditMode/Generated1948CharacterReviewTests.cs b/unity/Assets/Tests/EditMode/Generated1948CharacterReviewTests.cs
index d4db2561c..8257d07fe 100644
--- a/unity/Assets/Tests/EditMode/Generated1948CharacterReviewTests.cs
+++ b/unity/Assets/Tests/EditMode/Generated1948CharacterReviewTests.cs
@@ -32,7 +32,7 @@ public class Generated1948CharacterReviewTests
Assert.AreEqual(scene, review.ReviewCamera.gameObject.scene);
StringAssert.Contains("No historical positions", review.Notice);
CollectionAssert.AreEqual(Expected, review.Characters.Select(c => c.Id));
- CollectionAssert.AreEqual(new[] { true, true, true, true, false, true, false }, review.Characters.Select(c => c.Campaign));
+ CollectionAssert.AreEqual(new[] { true, true, true, true, true, true, false }, review.Characters.Select(c => c.Campaign));
foreach (var entry in review.Characters)
{
Assert.IsNotNull(entry.Model, entry.Id);
diff --git a/unity/Assets/Tests/EditMode/Generated1948CharacterTests.cs b/unity/Assets/Tests/EditMode/Generated1948CharacterTests.cs
index 3101ffce7..037126534 100644
--- a/unity/Assets/Tests/EditMode/Generated1948CharacterTests.cs
+++ b/unity/Assets/Tests/EditMode/Generated1948CharacterTests.cs
@@ -72,6 +72,7 @@ public class Generated1948CharacterTests
[TestCase("figure-egyptian-infantry-1948-v1")]
[TestCase("figure-ala-infantry-1948-v1")]
[TestCase("figure-bedouin-civilian-1948-v1")]
+ [TestCase("figure-lebanese-regular-1948-v1")]
public void FullQualityFigureKeepsOneModelWithoutTheLegacyLodSwitcher(string id)
{
var root = new GameObject("Full quality figure fixture");
@@ -157,13 +158,9 @@ public class Generated1948CharacterTests
Assert.AreEqual("figure-c08-arab-legion-v2", UnitFigures.SideFigure("jordan"));
Assert.IsNull(UnitFigures.SideFigure("local_arab_forces"), "no undeployed alias masks loss of the original campaign role");
Assert.AreEqual("figure-c09-irregular-v2", UnitFigures.SideFigure("ala"));
- Assert.IsNull(UnitFigures.SideFigure("lebanon"), "the Lebanese row is hidden and has no figure yet");
var rows = Units;
Assert.IsFalse(rows.Any(r => r.Side == "local_arab_forces"), "art does not author a local-force deployment");
- var lebanon = rows.Single(r => r.Id == "lebanese_army");
- Assert.IsNotNull(lebanon.Hidden);
- Assert.IsEmpty(lebanon.Anchors);
- Assert.IsFalse(UnitRoster.OnMap(lebanon));
+ // The Lebanese row is a map-only token (LebanonIsAMapOnlyTokenAtAlMalikiyya): still no sim unit for it, nor for local forces.
CollectionAssert.IsEmpty(C.StartingForces.Where(f => f.Side == "lebanon" || f.Side == "local_arab_forces"));
}
@@ -203,11 +200,50 @@ public class Generated1948CharacterTests
"no sourced anchor after the truce: no token");
}
+ /// <summary>Owner, 27 October 2026: "Sign off all 19" and, for Lebanon, "Map-only token (Recommended)"; 28 October 2026:
+ /// "6 Jun to 8 Jul (Recommended)". The Lebanese army has no sim unit; its row is drawn with Tal Heuberger's Lebanese regular as a
+ /// map-only token at al-Malikiyya from 6 June to 8 July 1948, in both loops, and it is the only Arab army row drawn so.</summary>
+ [Test]
+ public void LebanonIsAMapOnlyTokenAtAlMalikiyyaFrom6JuneTo8July()
+ {
+ const string id = "figure-lebanese-regular-1948-v1", rowId = "lebanese_army";
+ Assert.AreEqual(id, UnitFigures.SideFigure("lebanon"));
+ Assert.AreEqual("collection-" + id, CollectionCatalog.BundleOf(id), "its own bundle");
+ Assert.AreEqual(CollectionCatalog.People, CollectionCatalog.After["collection-" + id], "opened after the people's");
+ CollectionAssert.Contains(CollectionCatalog.Animated, id);
+ var rows = Units;
+ var lebanon = rows.Single(r => r.Id == rowId);
+ Assert.IsNull(lebanon.Hidden);
+ Assert.IsTrue(UnitRoster.OnMap(lebanon));
+ var simRows = new HashSet<string>(C.StartingForces.Select(f => f.Row), StringComparer.Ordinal);
+ CollectionAssert.AreEqual(new[] { rowId }, rows.Where(r => UnitRoster.OnMap(r) && UnitRoster.MapOnly(r, simRows)).Select(r => r.Id),
+ "the only map-only army row");
+ UnitAnchor Unmoved(UnitEntry row, UnitAnchor start, int q, int r) => start;
+ var legacy = SimBridgeGddTests.Legacy;
+ foreach (var (day, shown) in new[] { (new DateTime(1948, 6, 5), false), (new DateTime(1948, 6, 6), true), (new DateTime(1948, 7, 7), true), (new DateTime(1948, 7, 8), false) })
+ {
+ var state = Simulation.NewGame(C, GoldenRun.Seed, Mode.Historical); state.Date = day;
+ var gdd = UnitRoster.FromState(rows, C, state, _ => true, Unmoved).Where(t => t.Unit.Id == rowId).ToList();
+ var old = UnitRoster.Build(rows, legacy.Rules, day, 5, 0.8, _ => true).Where(t => t.Unit.Id == rowId).ToList();
+ foreach (var (loop, tokens) in new[] { ("GDD", gdd), ("legacy", old) })
+ {
+ Assert.AreEqual(shown ? 1 : 0, tokens.Count, $"{loop} {day:yyyy-MM-dd}");
+ if (!shown) continue;
+ Assert.AreEqual("al-Malikiyya", tokens[0].Anchor.Place, $"{loop} {day:yyyy-MM-dd}");
+ Assert.AreEqual(id, tokens[0].ArtType); Assert.AreEqual(UnitRoster.SideFigures, tokens[0].Figures);
+ Assert.IsNull(tokens[0].StateUnit, $"{loop}: no sim unit, never moved or fought");
+ }
+ var waiting = UnitRoster.FromState(rows, C, state, f => f != id, Unmoved);
+ Assert.IsFalse(waiting.Any(t => t.Unit.Id == rowId), $"{day:yyyy-MM-dd}: it waits for its own figure");
+ }
+ }
+
[TestCase("figure-syrian-infantry-1948-v1", CollectionCatalog.ArabArmies)]
[TestCase("figure-iraqi-infantry-1948-v1", CollectionCatalog.ArabArmies)]
[TestCase("figure-egyptian-infantry-1948-v1", "collection-figure-egyptian-infantry-1948-v1")]
[TestCase("figure-ala-infantry-1948-v1", "collection-figure-ala-infantry-1948-v1")]
[TestCase("figure-bedouin-civilian-1948-v1", "collection-figure-bedouin-civilian-1948-v1")]
+ [TestCase("figure-lebanese-regular-1948-v1", "collection-figure-lebanese-regular-1948-v1")]
public void NearPrefabUsesItsOwnSkinnedMeshAndIdleClip(string id, string bundle)
{
Assert.AreEqual(bundle, CollectionCatalog.BundleOf(id), "a bundle of its own, not the opening people's (#1763)");
diff --git a/unity/Assets/Tests/EditMode/TalModelsShots.cs b/unity/Assets/Tests/EditMode/TalModelsShots.cs
index d050e4064..10512a017 100644
--- a/unity/Assets/Tests/EditMode/TalModelsShots.cs
+++ b/unity/Assets/Tests/EditMode/TalModelsShots.cs
@@ -7,6 +7,7 @@ using System.Linq;
using NUnit.Framework;
using Statecraft.Game.Map;
using Statecraft.Game.Map.Collection;
+using Statecraft.Game.Map.Units;
using Statecraft.Game.UI;
using Statecraft.Sim;
using UnityEditor;
@@ -27,20 +28,20 @@ public class TalModelsShots
string saveDir = "";
RenderTexture? rt; PanelSettings? ps;
GameRoot root = null!;
- Action<string, CollectionDetail, Action<GameObject?>>? savedRural, savedPeople;
+ Action<string, CollectionDetail, Action<GameObject?>>? savedRural, savedPeople, savedUnits;
[SetUp]
public void Prepare()
{
saveDir = Path.Combine(Path.GetTempPath(), "statecraft-tal-shots-" + Guid.NewGuid().ToString("N"));
Directory.CreateDirectory(ShotDir); Directory.CreateDirectory(CivMovementShots.ShotDir);
- savedRural = RuralLife.Request; savedPeople = CivilianPeople.Request;
+ savedRural = RuralLife.Request; savedPeople = CivilianPeople.Request; savedUnits = UnitFigures.Source;
}
[TearDown]
public void DiscardScene()
{
- RuralLife.Request = savedRural!; CivilianPeople.Request = savedPeople!;
+ RuralLife.Request = savedRural!; CivilianPeople.Request = savedPeople!; UnitFigures.Source = savedUnits;
EditorSceneManager.NewScene(NewSceneSetup.EmptyScene, NewSceneMode.Single);
if (ps != null) Object.DestroyImmediate(ps);
if (rt != null) { rt.Release(); Object.DestroyImmediate(rt); }
@@ -122,6 +123,173 @@ public class TalModelsShots
}
}
+ /// <summary>The Lebanese token's actual placed spot near Al-Malikiyya after the first turn (15 June
+ /// 1948, inside the token's 6 June to 8 July window), from the unit zoom and from the closest zoom. The unit figures are
+ /// answered with the editor's prefabs, as the player's stream would answer them. The admitted frame is a candidate-only diagnostic; a matched before requires this identical fixture and state.</summary>
+ static void ObserveSubject(MapScene map, UnitLayer units, string stage, Vector3 target)
+ {
+ var camera = Camera.main;
+ var policy = map.Residency.Units;
+ bool ground = CollectionResidencyView.TryGroundFocus(camera, out var focus);
+ var token = map.Terrain.transform.Find(UnitLayer.RootName + "/Tokens/lebanese_army");
+ Debug.Log($"MODEL-OBS {stage} frame={Time.frameCount} token={token != null} active={units.gameObject.activeInHierarchy} arrived={UnitFigures.Arrived(UnitFigures.LebaneseRegular)} version={UnitFigures.AvailabilityVersion} targetVP={camera.WorldToViewportPoint(target).ToString("R")} ground={ground}:{focus.ToString("R")} view={Statecraft.Game.Map.Kits.TownModelLayer.ViewDistance(camera)} policy={policy.EnterM}/{policy.ExitM}/{policy.ViewEnterM}/{policy.ViewExitM} mask={camera.cullingMask} clip={camera.nearClipPlane}/{camera.farClipPlane}");
+ foreach (var demand in units.GetComponentsInChildren<UnitFigureResidency>(true).Where(o => o.name.StartsWith("Original demand lebanese_army|", StringComparison.Ordinal)))
+ Debug.Log($"MODEL-OBS {stage} prefetch={demand.name} position={demand.transform.position.ToString("R")} focusDistance={Vector2.Distance(new Vector2(focus.x, focus.z), new Vector2(demand.transform.position.x, demand.transform.position.z))} snapshot={JsonUtility.ToJson(demand.ResidencySnapshot())}");
+ if (token == null) return;
+ var planes = GeometryUtility.CalculateFrustumPlanes(camera);
+ foreach (var owner in token.GetComponentsInChildren<UnitFigureResidency>(true))
+ {
+ var piece = owner.transform;
+ var model = piece.Find(UnitFigures.ModelName);
+ Debug.Log($"MODEL-OBS {stage} piece={piece.name} position={piece.position.ToString("R")} scale={piece.lossyScale.ToString("R")} dressed={UnitFigures.Dressed(piece)} model={model != null}");
+ if (model == null) continue;
+ foreach (var renderer in model.GetComponentsInChildren<Renderer>(true))
+ Debug.Log($"MODEL-OBS {stage} renderer={renderer.name} enabled={renderer.enabled} off={renderer.forceRenderingOff} active={renderer.gameObject.activeInHierarchy} layer={renderer.gameObject.layer} inMask={(camera.cullingMask & (1 << renderer.gameObject.layer)) != 0} bounds={renderer.bounds.center.ToString("R")}/{renderer.bounds.size.ToString("R")} frustum={GeometryUtility.TestPlanesAABB(planes, renderer.bounds)} visible={renderer.isVisible} materials={string.Join(",", renderer.sharedMaterials.Select(m => m == null ? "null" : m.name + ":" + m.shader.name))}");
+ }
+ }
+
+ IEnumerator Malikiyya(bool hebrew)
+ {
+ UnitFigures.Source = (id, detail, done) => done(Prefab(id, detail));
+ yield return Boot(hebrew);
+ // Keep the real rig's projection and the saved RenderTexture on the same aspect throughout these frames.
+ Camera.main.aspect = (float)CivMovementShots.Width / CivMovementShots.Height;
+ root.Bridge!.EndTurn();
+ for (int i = 0; i < 3; i++) yield return null;
+ var ui = Object.FindFirstObjectByType<UIDocument>().rootVisualElement;
+ var close = ui.Q<Button>("turn-report-close");
+ if (close != null && close.resolvedStyle.display == DisplayStyle.Flex) UiTestKit.Press(close);
+ // The new turn opens a decision card over the map; the player's Hide button puts it away, and the card shrinks away.
+ var card = ui.Q("event-card");
+ Assert.IsNotNull(card, "the event card");
+ if (card.resolvedStyle.display == DisplayStyle.Flex) UiTestKit.Press(ui.Q<Button>("event-hide"));
+ for (int i = 0; i < 120 && card.resolvedStyle.display != DisplayStyle.None; i++) yield return null;
+ Assert.AreEqual(DisplayStyle.None, card.resolvedStyle.display, "the decision card is hidden before the frame");
+ var subjects = root.Units!.Tokens.Where(t => t.Token.Unit.Id == "lebanese_army").ToArray();
+ Assert.AreEqual(1, subjects.Length, "capture precondition: exactly one actual Lebanese army token");
+ Assert.IsTrue(UnitFigures.Arrived(UnitFigures.LebaneseRegular), "capture precondition: the Lebanese original has arrived");
+ var subject = subjects[0];
+ int q = subject.Q, r = subject.R;
+ var map = Object.FindFirstObjectByType<MapScene>();
+ var target = new Vector3((float)subject.Spot.X, 0f, (float)subject.Spot.Z);
+ target.y = map.Terrain.SampleHeight(target) + map.Terrain.transform.position.y;
+ var demands = root.Units!.GetComponentsInChildren<UnitFigureResidency>(true)
+ .Where(o => o.name.StartsWith("Original demand lebanese_army|", StringComparison.Ordinal)).ToArray();
+ Assert.AreEqual(1, demands.Length, "capture precondition: one real Lebanese source-prefetch holder");
+ var prefetch = demands[0];
+ var here = root.Units!.Tokens.Where(t => t.Q == q && t.R == r).Select(t => $"{t.Token.Unit.Id} ({t.Token.ArtType})").ToList();
+ foreach (var (what, distance) in new[] { ("unit", 40000f), ("admitted", 24000f), ("close", CameraController.MinDistance) })
+ {
+ if (what == "admitted")
+ {
+ var anchor = prefetch.transform.position;
+ Assert.Less(Vector2.Distance(new Vector2(anchor.x, anchor.z), new Vector2(target.x, target.z)),
+ 2f * map.Residency.Units.EnterM, "one real focus must be able to admit both anchors");
+ var middle = new Vector3((anchor.x + target.x) * .5f, 0f, (anchor.z + target.z) * .5f);
+ Look(middle, distance);
+ // This south-facing admitted frame is checked against all original figure corners below the top bar.
+ Camera.main.GetComponent<CameraRig>().Yaw = 180f;
+ Camera.main.GetComponent<CameraRig>().Apply();
+ Assert.IsTrue(CollectionResidencyView.TryGroundFocus(Camera.main, out var measured));
+ var rig = Camera.main.GetComponent<CameraRig>();
+ // The UI inset shifts the centre ray. Pan the real rig so its ground focus, not just LookAt, is the midpoint.
+ rig.LookAt += new Vector3(middle.x - measured.x, 0f, middle.z - measured.z);
+ rig.Apply();
+ }
+ else Look(target, distance);
+ for (int i = 0; i < 5; i++) yield return null;
+ if (what == "admitted")
+ {
+ Assert.Less(Statecraft.Game.Map.Kits.TownModelLayer.ViewDistance(Camera.main), map.Residency.Units.ViewEnterM,
+ "capture control requires a view inside the approved enter band");
+ Assert.IsTrue(CollectionResidencyView.TryGroundFocus(Camera.main, out var focus));
+ Assert.Less(Vector2.Distance(new Vector2(focus.x, focus.z), new Vector2(target.x, target.z)), map.Residency.Units.EnterM,
+ "capture control requires the actual placed subject inside the approved enter radius");
+ Assert.Less(Vector2.Distance(new Vector2(focus.x, focus.z), new Vector2(prefetch.transform.position.x, prefetch.transform.position.z)), map.Residency.Units.EnterM,
+ "capture control requires the source-prefetch anchor inside the approved enter radius");
+ var camera = Camera.main;
+ var frame = new RenderTexture(CivMovementShots.Width, CivMovementShots.Height, 24, RenderTextureFormat.ARGB32);
+ var previous = camera.targetTexture;
+ bool Ready() => prefetch != null && prefetch.ResidencySnapshot().ownedLeases > 0
+ && UnitFigures.Arrived(UnitFigures.LebaneseRegular)
+ && map.Terrain.transform.Find(UnitLayer.RootName + "/Tokens/lebanese_army") != null;
+ int renders = 0;
+ try
+ {
+ // Use the real render callbacks to re-admit the original after the deliberately out-of-band frame.
+ for (; renders < 30; renders++)
+ {
+ camera.targetTexture = frame; camera.Render(); camera.targetTexture = previous;
+ yield return null;
+ if (Ready()) break;
+ }
+ ObserveSubject(map, root.Units, "admitted primed", target);
+ Assert.IsTrue(Ready(), $"source, lease and token must be ready after at most 30 real renders ({renders + 1})");
+ camera.targetTexture = frame; camera.Render(); camera.targetTexture = previous;
+ yield return null;
+ Assert.IsTrue(Ready(), "admitted readiness must survive another real render");
+ }
+ finally { camera.targetTexture = previous; frame.Release(); Object.DestroyImmediate(frame); }
+ var viewport = camera.WorldToViewportPoint(target);
+ Assert.IsTrue(viewport.z > 0f && viewport.x > 0f && viewport.x < 1f && viewport.y > 0f
+ && viewport.y < 1f - Mathf.Clamp(camera.GetComponent<CameraRig>().TopInset, 0f, CameraRig.MaxTopInset),
+ "the admitted subject is inside the map viewport below the top bar");
+ Assert.AreEqual((float)CivMovementShots.Width / CivMovementShots.Height, camera.aspect, 0.0001f,
+ "viewport checks and saved capture must use the same aspect ratio");
+ var live = map.Terrain.transform.Find(UnitLayer.RootName + "/Tokens/lebanese_army");
+ Assert.IsNotNull(live, "the admitted token remains live before whole-model projection");
+ var owners = live.GetComponentsInChildren<UnitFigureResidency>(true);
+ Assert.GreaterOrEqual(owners.Length, 3, "three distinct original figure owners must be framed");
+ foreach (var owner in owners)
+ {
+ Assert.Greater(owner.ResidencySnapshot().ownedLeases, 0, "each visible figure owns its admitted original lease");
+ var model = owner.transform.Find(UnitFigures.ModelName);
+ Assert.IsNotNull(model, "each original is dressed");
+ Assert.Greater(model.childCount, 0);
+ StringAssert.StartsWith(UnitFigures.LebaneseRegular, model.GetChild(0).name, "the actual Lebanese original");
+ Assert.IsTrue(model.GetComponentsInChildren<Renderer>(true)
+ .Any(r => r.enabled && !r.forceRenderingOff && r.gameObject.activeInHierarchy),
+ "each distinct figure has a live visible original renderer");
+ }
+ var visible = owners.Select(o => o.transform.Find(UnitFigures.ModelName))
+ .SelectMany(m => m.GetComponentsInChildren<Renderer>(true))
+ .Where(r => r.enabled && !r.forceRenderingOff && r.gameObject.activeInHierarchy).ToArray();
+ foreach (var renderer in visible)
+ {
+ var box = renderer.bounds;
+ for (int corner = 0; corner < 8; corner++)
+ {
+ var point = camera.WorldToViewportPoint(new Vector3((corner & 1) == 0 ? box.min.x : box.max.x,
+ (corner & 2) == 0 ? box.min.y : box.max.y, (corner & 4) == 0 ? box.min.z : box.max.z));
+ Assert.IsTrue(point.z > 0f && point.x > 0f && point.x < 1f && point.y > 0f
+ && point.y < 1f - Mathf.Clamp(camera.GetComponent<CameraRig>().TopInset, 0f, CameraRig.MaxTopInset),
+ $"whole original figure {renderer.name} corner {corner} must be visible below the top bar: {point}");
+ }
+ }
+ Debug.Log($"MODEL-OBS admitted readiness renders={renders + 2} viewport={viewport.ToString("R")}");
+ Assert.IsTrue(UnitFigures.Arrived(UnitFigures.LebaneseRegular), "the admitted source is ready before the frame");
+ Assert.Greater(prefetch.ResidencySnapshot().ownedLeases, 0, "the source-prefetch holder owns its admitted lease");
+ Assert.IsNotNull(map.Terrain.transform.Find(UnitLayer.RootName + "/Tokens/lebanese_army"),
+ "the admitted token exists before the frame");
+ }
+ ObserveSubject(map, root.Units, what + " before", target);
+ CivMovementShots.Shot(rt!, Path.Combine("..", "tal-models-shots", $"malikiyya-{what}-{(hebrew ? "he" : "en")}"));
+ ObserveSubject(map, root.Units, what + " after", target);
+ if (what == "admitted")
+ {
+ var live = map.Terrain.transform.Find(UnitLayer.RootName + "/Tokens/lebanese_army");
+ Assert.IsNotNull(live, "admitted model capture must retain its actual Lebanese token after render");
+ var models = live!.GetComponentsInChildren<UnitFigureResidency>(true)
+ .Where(o => o.transform.Find(UnitFigures.ModelName) != null).ToArray();
+ Assert.GreaterOrEqual(models.Length, 3, "admitted model capture must retain all three original figures after render");
+ }
+ Debug.Log($"SHOT malikiyya {what} on {root.Bridge.State.Date:yyyy-MM-dd} hex {q},{r} from {distance:F0} m, target {target.ToString("R")} camera {Camera.main.transform.position.ToString("R")} rotation {Camera.main.transform.rotation.ToString("R")}, event card display {card.resolvedStyle.display}: tokens [{string.Join(", ", here)}]");
+ }
+ }
+
+ [UnityTest] public IEnumerator MalikiyyaEnglish() { yield return Malikiyya(false); }
+ [UnityTest] public IEnumerator MalikiyyaHebrew() { yield return Malikiyya(true); }
+
[UnityTest] public IEnumerator BedouinBeforeEnglish() { yield return Bedouin(false, false); }
[UnityTest] public IEnumerator BedouinAfterEnglish() { yield return Bedouin(false, true); }
[UnityTest] public IEnumerator BedouinBeforeHebrew() { yield return Bedouin(true, false); }
diff --git a/unity/Assets/Tests/EditMode/UnitFiguresTests.cs b/unity/Assets/Tests/EditMode/UnitFiguresTests.cs
index 06cc0d8db..eec4bd01f 100644
--- a/unity/Assets/Tests/EditMode/UnitFiguresTests.cs
+++ b/unity/Assets/Tests/EditMode/UnitFiguresTests.cs
@@ -39,12 +39,48 @@ public class UnitFiguresTests
"figure-c04-sabra-pioneer-v3", "figure-c05-pioneer-veteran-v2", "figure-c06-young-recruit-v2", "figure-c07-veteran-fighter-v2",
"figure-c12f-palmach-scout-v2", "figure-c08-arab-legion-v2",
"figure-syrian-infantry-1948-v1", "figure-c09-irregular-v2", "figure-iraqi-infantry-1948-v1", "figure-egyptian-infantry-1948-v1",
- "figure-ala-infantry-1948-v1",
+ "figure-ala-infantry-1948-v1", "figure-lebanese-regular-1948-v1",
"figure-vehicle-napoleonchik-65mm-1948-v2", "figure-vehicle-willys-jeep-1948-v2",
"figure-vehicle-sandwich-convoy-1948-v2",
"figure-soldier-1948-v1",
};
+ [Test]
+ public void SwapAndResidencyClearRefreshBoundsAtTheSameCameraPose()
+ {
+ var map = BuildMap();
+ var prefab = GameObject.CreatePrimitive(PrimitiveType.Cube);
+ prefab.transform.position = Vector3.down * 1000000f;
+ prefab.transform.localScale = new Vector3(50f, 1f, 1f);
+ try
+ {
+ var layer = UnitLayer.Create(map, Units, C.Hexes, still: true);
+ layer.Show(C, StateAt(May20, 0.8));
+ var figure = Tokens(map).Find("kiryati").Find("Rifleman0");
+ Assert.IsNull(figure.Find(UnitFigures.ModelName), "no original before the actual Swap");
+ var owner = figure.GetComponent<UnitFigureResidency>();
+ Assert.IsNotNull(owner, "actual per-consumer residency owns the model child");
+ int index = layer.Tokens.ToList().FindIndex(p => p.Token.Unit.Id == "kiryati");
+ Assert.GreaterOrEqual(index, 0);
+ Assert.AreEqual(2, layer.KeepClear[index].Length);
+ var camera = Camera.main;
+ layer.FaceCamera(camera);
+ var before = layer.KeepClear[index][1];
+ UnitFigures.Swap(figure, UnitFigures.PioneerVeteran, prefab);
+ var model = figure.Find(UnitFigures.ModelName).GetComponentInChildren<MeshRenderer>();
+ Assert.IsNotNull(model, "actual Swap instantiates the replacement");
+ var tip = model.bounds.center + Vector3.right * model.bounds.extents.x * 0.9f;
+ Assert.IsFalse(before.Contains(tip), "replacement extends past the old keep-clear box");
+ layer.FaceCamera(camera);
+ Assert.IsTrue(layer.KeepClear[index][1].Contains(tip), "same-pose Swap refreshes bounds without a dead cached filter");
+ owner.enabled = false; // actual OnDisable -> Refresh(false) -> Clear
+ Assert.IsNull(figure.Find(UnitFigures.ModelName), "actual residency Clear retires the model");
+ layer.FaceCamera(camera);
+ Assert.IsFalse(layer.KeepClear[index][1].Contains(tip), "same-pose retirement removes the old bounds");
+ }
+ finally { UnityEngine.Object.DestroyImmediate(map.gameObject); UnityEngine.Object.DestroyImmediate(prefab); }
+ }
+
[SetUp] public void Fresh() { UnitFigures.Source = null; UnitFigures.Forget(); }
[TearDown] public void Restore() { UnitFigures.Source = null; UnitFigures.Forget(); }
@@ -170,7 +206,8 @@ public class UnitFiguresTests
CollectionAssert.AreEqual(Enumerable.Repeat(UnitFigures.ArabLegion, 3), Trio("arab_legion"));
CollectionAssert.AreEqual(new[] { UnitFigures.Irregular, UnitFigures.Irregular, UnitFigures.AlaInfantry }, Trio("arab_liberation_army"),
"two C09 and Tal Heuberger's ALA infantry third (owner, 27 October 2026: \"Third figure (Recommended)\")");
- Assert.IsNull(UnitFigures.SideFigure("lebanon"), "Lebanese art remains review-only and its row stays hidden");
+ CollectionAssert.AreEqual(Enumerable.Repeat(UnitFigures.LebaneseRegular, 3), Trio("lebanese_army"),
+ "Tal Heuberger's Lebanese regular, three of it (owner, 27 October 2026: \"Map-only token (Recommended)\")");
// The vehicles from their sourced days.
CollectionAssert.IsEmpty(UnitFigures.VehiclesAt(units["harel"], new DateTime(1948, 5, 31)));
CollectionAssert.AreEqual(new[] { UnitFigures.WillysJeep }, UnitFigures.VehiclesAt(units["harel"], new DateTime(1948, 6, 1)), "the Burma Road jeeps");
diff --git a/unity/Assets/Tests/EditMode/UnitPlinthTests.cs b/unity/Assets/Tests/EditMode/UnitPlinthTests.cs
index 26d88912a..97b229a42 100644
--- a/unity/Assets/Tests/EditMode/UnitPlinthTests.cs
+++ b/unity/Assets/Tests/EditMode/UnitPlinthTests.cs
@@ -6,6 +6,7 @@ using NUnit.Framework;
using Statecraft.Game;
using Statecraft.Game.Map;
using Statecraft.Game.Map.Units;
+using Statecraft.Game.Map.Collection;
using Statecraft.Sim;
using UnityEditor;
using UnityEditor.SceneManagement;
@@ -25,6 +26,62 @@ public class UnitPlinthTests
[SetUp] public void Readable() => UnitPlinth.KeepMeshesReadable = true; // the tests read the built meshes back
[TearDown] public void Released() => UnitPlinth.KeepMeshesReadable = false;
+ // Simulates a retained render entry; it does not establish why OnDisable missed unsubscription.
+ [Test]
+ public void DestroyedFlagDoesNotRunACapturedCameraCallback()
+ {
+ var flagObject = new GameObject("flag");
+ var cameraObject = new GameObject("camera");
+ try
+ {
+ var flag = flagObject.AddComponent<UnitFlagFacing>();
+ var camera = cameraObject.AddComponent<Camera>();
+ camera.transform.position = new Vector3(8f, 3f, 11f);
+ var method = typeof(UnitFlagFacing).GetMethod("Turn", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);
+ Assert.IsNotNull(method);
+ var callback = (Action<UnityEngine.Rendering.ScriptableRenderContext, Camera>)Delegate.CreateDelegate(
+ typeof(Action<UnityEngine.Rendering.ScriptableRenderContext, Camera>), flag, method!);
+ UnityEngine.Object.DestroyImmediate(flagObject);
+ Assert.IsTrue(flag == null, "precondition: DestroyImmediate should leave the component Unity-null");
+ Assert.DoesNotThrow(() => callback(default, camera));
+ }
+ finally
+ {
+ if (flagObject != null) UnityEngine.Object.DestroyImmediate(flagObject);
+ UnityEngine.Object.DestroyImmediate(cameraObject);
+ }
+ }
+
+ // A retained render entry can outlive unsubscription; exercise the initialized branch without artwork fetches.
+ [Test]
+ public void DestroyedFigureDoesNotRunACapturedCameraCallback()
+ {
+ var holder = new GameObject("figure holder");
+ var cameraObject = new GameObject("camera");
+ try
+ {
+ var owner = holder.AddComponent<UnitFigureResidency>();
+ holder.SetActive(false);
+ owner.Initialize("proto:figure-palmach-scout-c12f-1948-v2", ProductionResidency.Approved().Units, null, draw: false);
+ var initialized = typeof(UnitFigureResidency).GetField("initialized", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);
+ Assert.IsNotNull(initialized);
+ Assert.IsTrue((bool)initialized!.GetValue(owner), "precondition: the callback must exercise initialized residency");
+ var camera = cameraObject.AddComponent<Camera>();
+ var method = typeof(UnitFigureResidency).GetMethod("Choose", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);
+ Assert.IsNotNull(method);
+ var callback = (Action<UnityEngine.Rendering.ScriptableRenderContext, Camera>)Delegate.CreateDelegate(
+ typeof(Action<UnityEngine.Rendering.ScriptableRenderContext, Camera>), owner, method!);
+ UnityEngine.Object.DestroyImmediate(holder);
+ Assert.IsTrue(owner == null, "precondition: destroyed residency must be Unity-null");
+ Assert.DoesNotThrow(() => callback(default, camera));
+ }
+ finally
+ {
+ if (holder != null) UnityEngine.Object.DestroyImmediate(holder);
+ UnityEngine.Object.DestroyImmediate(cameraObject);
+ }
+ }
+
static GameState StateAt(DateTime date)
{
var s = Simulation.NewGame(C, GoldenRun.Seed, Mode.Historical).Clone();
diff --git a/unity/Assets/Tests/EditMode/UnitsFromStateTests.cs b/unity/Assets/Tests/EditMode/UnitsFromStateTests.cs
index 0da76f41f..8e3f86931 100644
--- a/unity/Assets/Tests/EditMode/UnitsFromStateTests.cs
+++ b/unity/Assets/Tests/EditMode/UnitsFromStateTests.cs
@@ -314,5 +314,77 @@ public class UnitsFromStateTests
finally { UnityEngine.Object.DestroyImmediate(map.gameObject); }
}
+ [TestCase(false)]
+ [TestCase(true)]
+ public void MapOnlyArmyKeepsADistinctFixedSpotBesidePersistentStartingForces(bool delayedOriginal)
+ {
+ var savedSource = UnitFigures.Source;
+ EditorSceneManager.NewScene(NewSceneSetup.DefaultGameObjects, NewSceneMode.Single);
+ UnitFigures.ResetSession();
+ Action answerLebanese = null!;
+ bool holdLebanese = delayedOriginal;
+ var map = new GameObject("MapScene").AddComponent<MapScene>();
+ try
+ {
+ UnitFigures.Source = (id, detail, done) =>
+ {
+ Action answer = () => done(AssetDatabase.LoadAssetAtPath<GameObject>(
+ Statecraft.Game.Map.Collection.CollectionCatalog.PrefabPath(id, detail)));
+ if (holdLebanese && id == UnitFigures.LebaneseRegular) answerLebanese = answer;
+ else answer();
+ };
+ map.Configure(Load("Terrain"), Load("SettlementMarker"), Load("HexSelection"), Load("Sea"), Load("MapFrame"));
+ Statecraft.Game.Map.Kits.KitPopulation.Use(Statecraft.Game.Map.Kits.KitPopulation.Parse(
+ File.ReadAllText(Path.Combine(Paths.Content, "map", Statecraft.Game.Map.Kits.KitPopulation.FileName))));
+ map.Build();
+ var rows = map.UnitEntries;
+ var sourceSpots = map.UnitSpots.ToDictionary(kv => kv.Key, kv => kv.Value);
+ var windows = rows.SelectMany(u => u.Anchors.Select(a => (u.Id, a.From, a.To))).ToArray();
+ var game = GameSession.New(C, GoldenRun.Seed, Mode.Historical);
+ game.EndTurn(Array.Empty<Command>());
+ Assert.AreEqual(new DateTime(1948, 6, 15), game.State.Date);
+ var hash = game.State.Hash();
+ var layer = UnitLayer.Create(map, rows, C.Hexes, still: true);
+ Assert.IsTrue(layer.Show(C, NewGame()));
+ Assert.IsFalse(layer.Tokens.Any(t => t.Token.Unit.Id == "lebanese_army"), "first Show precedes the dated window");
+ layer.Show(C, game.State);
+ if (delayedOriginal)
+ {
+ Assert.IsNotNull(answerLebanese, "the actual Lebanese original was requested");
+ Assert.IsFalse(layer.Tokens.Any(t => t.Token.Unit.Id == "lebanese_army"), "no placeholder before the delayed original");
+ holdLebanese = false; // Only the first arrival is delayed; later lease reacquisitions answer normally.
+ answerLebanese!();
+ layer.Show(C, game.State);
+ }
+ var ala = layer.Tokens.Single(t => t.Token.Unit.Id == "arab_liberation_army");
+ var lebanese = layer.Tokens.Single(t => t.Token.Unit.Id == "lebanese_army");
+ Assert.Less(UnitData.Day(ala.Token.Anchor.To), game.State.Date, "the ALA persists past its sourced display window");
+ Assert.IsNotNull(ala.Token.StateUnit, "the existing ALA remains a real sim unit");
+ Assert.IsNull(lebanese.Token.StateUnit, "the Lebanese token remains map-only");
+ var alaPlinth = layer.transform.Find("Tokens/arab_liberation_army/Plinth").GetComponent<Renderer>();
+ var lebanesePlinth = layer.transform.Find("Tokens/lebanese_army/Plinth").GetComponent<Renderer>();
+ Assert.IsTrue(alaPlinth.enabled && alaPlinth.gameObject.activeInHierarchy && !alaPlinth.forceRenderingOff);
+ Assert.IsTrue(lebanesePlinth.enabled && lebanesePlinth.gameObject.activeInHierarchy && !lebanesePlinth.forceRenderingOff);
+ float separation = Vector2.Distance(new Vector2(alaPlinth.bounds.center.x, alaPlinth.bounds.center.z),
+ new Vector2(lebanesePlinth.bounds.center.x, lebanesePlinth.bounds.center.z));
+ float required = Mathf.Max(alaPlinth.bounds.extents.x, alaPlinth.bounds.extents.z)
+ + Mathf.Max(lebanesePlinth.bounds.extents.x, lebanesePlinth.bounds.extents.z);
+ Assert.GreaterOrEqual(separation, required, "Lebanese map-only token must not overlay the persistent ALA display token");
+ Assert.AreEqual(layer.Spots[ala.Token.Anchor], ala.Spot, "the simulated starting force never shifts");
+ Assert.AreNotEqual(layer.Spots[lebanese.Token.Anchor], lebanese.Spot, "the Lebanese token uses a separate display spot");
+ Assert.IsFalse(layer.Show(C, game.State), "unchanged roster does not rebuild");
+ layer.Show(C, NewGame());
+ Assert.IsFalse(layer.Tokens.Any(t => t.Token.Unit.Id == "lebanese_army"), "dated map-only token is absent before its window");
+ layer.Show(C, game.State);
+ Assert.AreEqual(lebanese.Spot, layer.Tokens.Single(t => t.Token.Unit.Id == "lebanese_army").Spot,
+ "reappearing dated token keeps its fixed display spot");
+ foreach (var kv in sourceSpots) Assert.AreEqual(kv.Value, map.UnitSpots[kv.Key], "cached source spot unchanged");
+ Assert.AreEqual(hash, game.State.Hash(), "presentation does not change the sim state");
+ CollectionAssert.AreEqual(windows, rows.SelectMany(u => u.Anchors.Select(a => (u.Id, a.From, a.To))).ToArray(),
+ "source windows remain unchanged");
+ }
+ finally { UnityEngine.Object.DestroyImmediate(map.gameObject); UnitFigures.Source = savedSource; }
+ }
+
static Material Load(string name) => AssetDatabase.LoadAssetAtPath<Material>($"Assets/Materials/{name}.mat");
}
diff --git a/unity/Assets/Tests/EditMode/UnitsInPlayTests.cs b/unity/Assets/Tests/EditMode/UnitsInPlayTests.cs
index eb39bcdad..1ee3dee18 100644
--- a/unity/Assets/Tests/EditMode/UnitsInPlayTests.cs
+++ b/unity/Assets/Tests/EditMode/UnitsInPlayTests.cs
@@ -276,7 +276,7 @@ public class UnitsInPlayTests
/// <summary>Owner, 17 October 2026 (#740): "Data only. PR 1 adds the sourced Arab rows to units_1948.yaml and filters
/// them off the map in UnitRoster until Phase 5 PR 17's figures land ... Nothing is drawn with IDF figures, and there is
- /// no placeholder art." Each deployed force has its own figure (Egypt's as one token: owner, 27 October 2026); Lebanon's hidden row and local forces without a row
+ /// no placeholder art." Each deployed force has its own figure (Egypt's as one token, Lebanon's as a map-only token: owner, 27 October 2026); local forces without a row
/// stay off the map. The forces are drawn only once their own figure has arrived, with three of it and nothing else: until then the
/// 15 May roster is exactly Israel's tokens.</summary>
[Test]
@@ -285,7 +285,7 @@ public class UnitsInPlayTests
var units = Units;
var others = units.Where(u => u.Side != UnitData.Israel).ToList();
Assert.IsNotEmpty(others.Where(u => u.Hidden == null && u.Anchors.Count > 0), "the file holds Arab rows with anchors (#740)");
- var drawn = new[] { "arab_legion", "arab_liberation_army", "syrian_army", "iraqi_expeditionary_force", "egyptian_expeditionary_force" };
+ var drawn = new[] { "arab_legion", "arab_liberation_army", "syrian_army", "iraqi_expeditionary_force", "egyptian_expeditionary_force", "lebanese_army" };
CollectionAssert.AreEquivalent(drawn, others.Where(UnitRoster.OnMap).Select(u => u.Id), "the forces with a Collection figure");
var israelOnly = units.Where(u => u.Side == UnitData.Israel).ToList();
var s = Simulation.NewGame(C, GoldenRun.Seed, Mode.Historical);
@@ -308,7 +308,7 @@ public class UnitsInPlayTests
var legionOnly = UnitRoster.Build(units, C.Rules, d, 5, 0.8, id => id == UnitFigures.ArabLegion);
Assert.IsFalse(legionOnly.Any(t => t.Unit.Id == "arab_liberation_army"), $"{d:yyyy-MM-dd}: the ALA waits for its own figure");
}
- CollectionAssert.AreEquivalent(drawn, seen, "the five forces stand on the map on their sourced days");
+ CollectionAssert.AreEquivalent(drawn, seen, "the six forces stand on the map on their sourced days");
var hexes = C.Hexes;
var spots = UnitPlacer.PlaceAll(units, hexes, 5000, (lon, lat) => (lon * 1e5, lat * 1e5), (sv, x, z, c, t, ax, az) => true, (x, z) => 0.0);
var dataOnly = others.Where(u => !drawn.Contains(u.Id)).ToList();
@@ -820,6 +820,47 @@ public class UnitsInPlayTests
finally { UnityEngine.Object.DestroyImmediate(other.gameObject); UnityEngine.Object.DestroyImmediate(map.gameObject); }
}
+ [TestCase(false)]
+ [TestCase(true)]
+ public void RetiredFigureMeshesRefreshKeepClearEvenAtTheSameCameraPose(bool moveCamera)
+ {
+ var map = BuildMap();
+ var originalCamera = Camera.main;
+ var originalPosition = originalCamera.transform.position;
+ var originalRotation = originalCamera.transform.rotation;
+ var replacement = new Mesh { name = "Replacement figure bounds" };
+ try
+ {
+ var layer = UnitLayer.Create(map, Units, C.Hexes, still: true);
+ layer.Show(C, Simulation.NewGame(C, GoldenRun.Seed, Mode.Historical));
+ var tokens = map.Terrain.transform.Find(UnitLayer.RootName).Find("Tokens");
+ var token = tokens.Find("kiryati");
+ var figure = token.Find("Rifleman0");
+ Assert.IsNotNull(figure, "a real token figure holder");
+ var retired = figure.GetComponentsInChildren<MeshFilter>(true);
+ Assert.Greater(retired.Length, 0, "the layer cached a real figure mesh");
+ var cam = Camera.main;
+ layer.FaceCamera(cam); // establish the cached pose before the residency child changes
+ UnityEngine.Object.DestroyImmediate(retired[0]);
+ replacement.bounds = new Bounds(Vector3.one * 100000f, Vector3.one * 100f);
+ var child = new GameObject("Replacement figure");
+ child.transform.SetParent(figure, false);
+ child.AddComponent<MeshFilter>().sharedMesh = replacement;
+ if (moveCamera) cam.transform.position += Vector3.right * 100f;
+ Assert.DoesNotThrow(() => layer.FaceCamera(cam), "retired meshes are no longer live bounds sources");
+ int index = layer.Tokens.ToList().FindIndex(p => p.Token.Unit.Id == "kiryati");
+ Assert.GreaterOrEqual(index, 0);
+ Assert.AreEqual(2, layer.KeepClear[index].Length);
+ Assert.IsTrue(layer.KeepClear[index][1].Contains(child.transform.TransformPoint(replacement.bounds.center)),
+ "keep-clear must include the live replacement, including when the camera did not move");
+ }
+ finally
+ {
+ if (originalCamera != null) originalCamera.transform.SetPositionAndRotation(originalPosition, originalRotation);
+ UnityEngine.Object.DestroyImmediate(map.gameObject); UnityEngine.Object.DestroyImmediate(replacement);
+ }
+ }
+
[Test]
public void ScreenshotsShowUnitsOnlyWhenAsked()
{