config(gen1): activate four simulator city modules and ROBUST weather portal (#345)

* config(gen1): enable NexTraffic NexTransit NexSmartLight OGLWeather on simulator

* config(gen1): enable ROBUST OGLWeatherPortal matching simulator climate

* test(config): verify unique enabled Gen1 modules on correct processes and matched weather

* docs(gen1): document enabled simulator and ROBUST configuration and deployment limits

* test(config): correct Python regex escapes in active INI parser

* config(gen1): align transit and smart-light timezone syntax with module samples

* test(config): allow bounded city-module settings in active compact simulator INI
This commit is contained in:
OpenGenesis (MPL 2.0) authored and GitHub committed 2026-10-28 23:56:26 +01:00
1 parent 1f1d37fdd3
commit deca00f82c
5 files changed
+161 -1

No files matched your search

+55
View File
@@ -285,5 +285,60 @@
[XBakes]
; ============================================================================
; Stadt-NexVerse Generation 1: City Addons (SIMULATOR ONLY)
; Requires the matching OpenGenesisLINK.Addons.*.dll in this simulator's bin/.
; These modules are deliberately enabled for the Stadt-NexVerse deployment.
; They send display state to optional LSL listeners, not physical bus/traffic
; motion. Schedule/junction examples below must be adapted to each city.
; For other installations, set Enabled = false until configured.
; ============================================================================
[NexTraffic]
Enabled = true
LSLChannel = -835421
RefreshSeconds = 5
GreenSeconds = 30
YellowSeconds = 5
AllRedSeconds = 3
; JunctionName:phaseOffsetSeconds; semicolon separates junctions.
Junctions = Hauptstrasse:0;Marktplatz:11
[NexTransit]
Enabled = true
LSLChannel = -835422
RefreshSeconds = 30
TimeZone = Europe/Berlin
MaxDepartures = 5
; Deterministic DEMO timetables, not real-time bus departures.
; line,destination,headwayMinutes,firstMinuteAfterMidnight,stopRegion
; Replace with the actual published timetable before going live.
Routes = 101,Magdeburg,10,0,*;150,Jenseits,20,15,*
[NexSmartLight]
Enabled = true
LSLChannel = -835423
RefreshSeconds = 60
TimeZone = Europe/Berlin
; Uses real Europe/Berlin clock time, not EEP sunrise/sunset.
NightStarts = 18:00
NightEnds = 06:00
[OGLWeather]
Enabled = true
WeatherSeed = 20261028
TimeZone = "Europe/Berlin"
LSLChannel = -835311
CurrentBroadcastSeconds = 60
ForecastBroadcastSeconds = 300
CloudBaseMeters = 200
; Firestorm: temporary, script-free and nonpersistent particle emitters.
LegacyParticleEmitters = true
EmitterHeightMeters = 65
EmitterSpacingMeters = 96
MaxEmittersPerRegion = 16
VisualRefreshSeconds = 60
[Architecture]
Include-Architecture = "config-include/GridHypergrid.ini"
+11
View File
@@ -1057,3 +1057,14 @@
PrivateKeyPath = "config-include/ogl-feature-private.pem"
StorePath = "data/ogl-feature-control.json"
; ============================================================================
; Stadt-NexVerse public OGLWeather forecast (WORLD API / ROBUST ONLY)
; Public, read-only GET /api/v1/weather, subject to World API rate limit.
; Keep seed + timezone identical to all [OGLWeather] simulators.
; No simulator particle emitters run in ROBUST.
; ============================================================================
[OGLWeatherPortal]
Enabled = true
WeatherSeed = 20261028
TimeZone = "Europe/Berlin"
DisplayName = "Stadt-NexVerse"
+21
View File
@@ -7,6 +7,27 @@ kompiliert, nicht automatisch in Inventare geladen und nicht ungefragt in
Bewohnerobjekte eingesetzt. Die vier eigenständigen **.NET8-DLLs** entstehen
weiterhin automatisch bei `bash runprebuild.sh && bash compile.sh`.
## Aktive Stadt-NexVerse-Konfiguration (GitHub)
Für Stadt-NexVerse sind die vier Addons in `bin/OpenSim.ini` jetzt direkt
mit allen benötigten Parametern und `Enabled = true` eingetragen. Die
öffentliche Wetter-API `[OGLWeatherPortal]` ist separat in
`bin/Robust.HG.ini` mit `Enabled = true` konfiguriert. Seed
`20261028` und Zeitzone `Europe/Berlin` sind auf beiden Seiten gleich.
Die `addons/*/*.ini.example` und `bin/Robust.HG.ini.example` bleiben
als konservative, standardmäßig deaktivierte Vorlagen bestehen.
**Der GitHub-Commit ändert keine laufenden Server:** Das tatsächliche
Deployment muss die bereits lokal angepassten INI-Dateien sorgfältig
zusammenführen und die Simulatorprozesse bzw. ROBUST neu starten.
Bei `git pull` mit lokalen Änderungen niemals blind überschreiben.
Die voreingestellten NexTransit-Linien 101/150 enthalten **simulierte
Beispiel-Abfahrtsintervalle**, keine echten aktuellen Buspositionen oder
amtlichen Fahrplandaten. Vor dem öffentlichen Betrieb entsprechende
Haltestellen, Intervalle und Strecken konfigurieren. Die SmartLights
verwenden die lokale Uhrzeit 18–06 Uhr, nicht automatisch die EEP-Sonne.
## Voraussetzungen
1. **Regionssimulator**, nicht ROBUST, aktualisieren und sicherstellen, dass
+67
View File
@@ -88,3 +88,70 @@ print("NexCity + OGLWeather solution bundling: all 4 DLLs checked")
assert "Verify Generation-1 Inworld LSL companion scripts" in workflow
print("NexCity addon contracts PASS: independent plugins, bounded wire, safe disabled defaults")
# Stadt-NexVerse active deployment config is intentionally enabled, while
# reusable addon examples stay disabled for independent installations.
# Catch duplicate INI sections, wrong host placement and protocol drift.
def active_ini_section(path, section):
raw = content(path)
header = re.compile(r"(?m)^[ \t]*\[" + re.escape(section) + r"\][ \t]*$")
matches = list(header.finditer(raw))
assert len(matches) == 1, f"{path}: expected exactly one [{section}]"
remainder = raw[matches[0].end():]
next_header = re.search(r"(?m)^[ \t]*\[[^]\r\n]+\][ \t]*$", remainder)
block = remainder[:next_header.start()] if next_header else remainder
values = {}
for raw_line in block.splitlines():
line = raw_line.strip()
if not line or line.startswith((";", "#")):
continue
assert "=" in line, f"{path} [{section}]: invalid line {line}"
key, value = (item.strip() for item in line.split("=", 1))
assert key not in values, f"{path} [{section}]: duplicate {key}"
values[key] = value.strip('"')
return values
simulator_ini = "bin/OpenSim.ini"
robust_ini = "bin/Robust.HG.ini"
active = {
"NexTraffic": {
"Enabled": "true", "LSLChannel": "-835421", "RefreshSeconds": "5",
"GreenSeconds": "30", "YellowSeconds": "5", "AllRedSeconds": "3",
"Junctions": "Hauptstrasse:0;Marktplatz:11",
},
"NexTransit": {
"Enabled": "true", "LSLChannel": "-835422", "RefreshSeconds": "30",
"TimeZone": "Europe/Berlin", "MaxDepartures": "5",
"Routes": "101,Magdeburg,10,0,*;150,Jenseits,20,15,*",
},
"NexSmartLight": {
"Enabled": "true", "LSLChannel": "-835423", "RefreshSeconds": "60",
"TimeZone": "Europe/Berlin", "NightStarts": "18:00",
"NightEnds": "06:00",
},
"OGLWeather": {
"Enabled": "true", "WeatherSeed": "20261028",
"TimeZone": "Europe/Berlin", "LSLChannel": "-835311",
"CurrentBroadcastSeconds": "60", "ForecastBroadcastSeconds": "300",
"CloudBaseMeters": "200", "LegacyParticleEmitters": "true",
"EmitterHeightMeters": "65", "EmitterSpacingMeters": "96",
"MaxEmittersPerRegion": "16", "VisualRefreshSeconds": "60",
},
}
for section, expected in active.items():
actual = active_ini_section(simulator_ini, section)
assert actual == expected, f"{simulator_ini} [{section}] drift: {actual}"
assert not re.search(r"(?m)^\[" + re.escape(section) + r"\]$", content(robust_ini)), (
f"Simulator-only [{section}] must not appear in ROBUST"
)
portal = active_ini_section(robust_ini, "OGLWeatherPortal")
assert portal == {
"Enabled": "true", "WeatherSeed": active["OGLWeather"]["WeatherSeed"],
"TimeZone": active["OGLWeather"]["TimeZone"],
"DisplayName": "Stadt-NexVerse",
}, "Portal climate or activation mismatches simulator"
assert not re.search(r"(?m)^\[OGLWeatherPortal\]$", content(simulator_ini))
assert active_ini_section(robust_ini, "NexVerseWorldApi")["Enabled"].lower() == "true"
print("Gen1 active INIs PASS: 4 simulator modules + ROBUST portal enabled, unique and synchronized")
+7 -1
View File
@@ -12,7 +12,13 @@ for rel, arch, enabled, http, xmlrpc in (
cfg = ConfigParser(interpolation=None, strict=True)
cfg.optionxform = str
cfg.read_string(src)
assert len(src.splitlines()) < 320, rel
# The active Stadt-NexVerse simulator INI now contains four fully
# configured Generation-1 city modules. Keep the compactness gate for
# the reusable Standalone example and a bounded site-specific allowance
# for the active simulator INI, without dropping the strict INI parser,
# HTTP auto-port checks or disabled-Experiences contract.
max_lines = 380 if rel == "bin/OpenSim.ini" else 320
assert len(src.splitlines()) < max_lines, rel
assert "[Startup] section below." not in src
assert not any(k in cfg.sections() for k in ("OGLPathfinding", "OGLNpcNavigation"))
assert cfg.get("Architecture", "Include-Architecture").strip('"') == arch