Combine Workshop addon and fix prison startup

Merge owned systems into one addon while preserving resource identities. Gate player admission on the replicated prison scene, restore the original framed door, and hold enemy AI until escape. Correct scenario branding and author metadata, include publishing assets, and retain regression and native verification evidence.
This commit is contained in:
2026-09-20 16:42:52 +02:00
parent 7d94953b53
commit cab998fb64
513 changed files with 18940 additions and 862 deletions
+7 -2
View File
@@ -3,15 +3,20 @@
from pathlib import Path
import json,re,subprocess,sys
from external_addons import policy, ALLOWED, direct_for, resource_allowed
from prefab_identity import check_prefabs
ROOT=Path(__file__).resolve().parents[1]
BASE='58D0FB3206B6F859'
def check():
print(f'PASS: {check_prefabs((ROOT/"addons").rglob("*.et"))} prefabs have unique saved root entity IDs')
subprocess.run([sys.executable,str(ROOT/'tests/test_prefab_identity.py')],check=True)
subprocess.run([sys.executable,str(ROOT/'tests/test_spawn_scene.py')],check=True)
subprocess.run([sys.executable,str(ROOT/'tests/test_prison_ai.py')],check=True)
ids={};graph={};resources={};paths={};owners={}
for p in sorted((ROOT/'addons').glob('*/addon.gproj')):
text=p.read_text();g=re.search(r'GUID "([A-F0-9]{16})"',text)[1]
assert g not in ids,f'Duplicate addon GUID: {p}'
ids[g]=p.parent.name;graph[g]=re.findall(r'"([A-F0-9]{16})"',re.search(r'\bDependencies\s*\{([^{}]*)\}',text)[1])
assert len(ids)==5,'Expected five addon projects'
assert ids == {'2528466DE220D91C': 'core'}, 'Expected one combined addon project'
external=policy(ROOT)
for guid,name in ids.items():
assert (set(graph[guid]) & set(ALLOWED)) == direct_for(name), f'Unreviewed direct external dependency scope: {name}'
@@ -37,7 +42,7 @@ def check():
if dep!=BASE:result.update(visible(dep))
return result
visibility={ids[g]:visible(g) for g in ids}
assert not (visibility['core'] & set(ALLOWED)), 'Core must remain vanilla-only'
assert set(ALLOWED) <= visibility['core'], 'Combined addon requires the authorized external closure'
vanilla=json.loads((ROOT/'docs/vanilla-resources.json').read_text())
for p in (ROOT/'addons').rglob('*'):
if not p.is_file() or p.suffix not in ['.c','.et','.conf','.ent','.layer','.layout','.emat']:continue