3.2 KiB
3.2 KiB
TH1-CI-2026-07-01-002 Hakurei Statue Obsolete Asset Family
- Status: Fixed in assets; guardrail added; Unity validation pending
- First recorded date: 2026-07-01
- Severity: Critical
Raw Symptom
User report: Hakurei empire statue buildings and build actions still used wrong icons, including the horse statue build action. The five ReimuForces_Norway_Statue_* PNGs were not just assigned to the wrong rows; they were invalid assets that should not exist in the game.
Affected files:
Unity/Assets/BundleResources/ArtResources/TH1Buildings/TH1BuildingsReimuForces/Norway/ReimuForces_Norway_Statue_*.pngUnity/Assets/BundleResources/DataAssets/ActionDataAssets.assetUnity/Assets/BundleResources/DataAssets/GridAndResourceDataAssets.assetUnity/Assets/BundleResources/DataAssets/CultureCardDataAssets.asset- Matching
Unity/Assets/BundleResources/Export/*runtime assets
Why This Recurs
The prior fix treated newly introduced statue PNGs as the expected Hakurei/Reimu art instead of comparing against existing civilization temple/statue rows. That also caused the guardrail script to encode the wrong GUIDs as expected values, so future checks would have preserved the bad assets instead of rejecting them.
Root Cause
Two mistakes compounded:
- The asset family
TH1BuildingsReimuForces/Norway/ReimuForces_Norway_Statue_*was introduced even though Hakurei/Reimu already has the correct temple/statue sprite family underTH1BuildingsCommon/Temple/Hakurei. - The 1-based enum value
CivEnum.Norway = 5/ForceEnum.Reimu = 5was confused with DataAsset ids, pollutingCivId: 5/ForceId: 5rows even though Hakurei/Reimu isCivId: 4/ForceId: 4.
Root-Cause Fix
- Removed the invalid
ReimuForces_Norway_Statue_Horse/Queen/Chariot/Minister/KingPNGs and their.metafiles. - Repointed Hakurei/Reimu
CivId: 4/ForceId: 4action, map-resource, and culture-card sprite references to the existingTH1BuildingsCommon/Temple/Hakureiseries:- Horse statue:
NorwayAunn_Temple1..5 - Queen statue:
NorwaySumireko_Temple1..5 - Chariot statue:
NorwaySuika_Temple1..5 - Minister statue:
NorwayKasen_Temple1..5 - King statue:
NorwayReimu_Temple1..5
- Horse statue:
- Removed the erroneous
CivId: 5/ForceId: 5Hakurei temple rows from grid/resource data.
Guardrail Added
Tools/CheckHakureiStatueActionIcons.ps1 now fails if:
- Any obsolete
ReimuForces_Norway_Statue_*file exists. - Any DataAssets or Export asset still references the obsolete GUIDs.
- Hakurei/Reimu statue action, map-resource, or culture-card rows for
CivId: 4/ForceId: 4do not use the existingTH1BuildingsCommon/Temple/HakureiGUIDs. - Any Hakurei temple GUID leaks into
CivId: 5/ForceId: 5. - The hero action hint UI bypasses
ActionInfo.GetIcon.
Verification Performed
Tools/CheckHakureiStatueActionIcons.ps1Tools/CheckUnityAssetReferenceIntegrity.ps1rgscan for obsolete GUIDs underUnity/Assets/BundleResourcesgit diff --check
Remaining Validation Gaps
- Unity Editor visual validation is still required to confirm all five Hakurei/Reimu statue build actions, culture-card icons, and completed map resources render with the intended Aunn/Sumireko/Suika/Kasen/Reimu temple series.