uwarp-space
2026-04-03
Four rounds of TWGS Gold parity fixes, parser record-cap, Warp Enhancements gate, provide- rename
259 files · 11,554+ · 8,020-
Code review 44: guard, index, scan, and probe fixes
4 files changed
player.pyadd_to_personal_log guards against player_id <= 0 or out-of-boundsgame_state.pyreload_data includes owner_id=0 planets in _planets_by_owner; _port_by_sector updated after starport constructionscanner.pyDensity scan: spurious organics detection removed_equipment_probes.pyProbe commands extracted; ctx.require() replaces ctx.prompt()
- Code review 44: guard player_id bounds in personal log, include owner_id=0 planets in reload_data, update _port_by_sector after construction, remove spurious organics from density scan, extract probe commands to _equipment_probes.py with ctx.require().
remediate
behavioral
2 files
player.pygame_state.py
TWGS Gold parity rounds 2–4: 31 mechanics fixes
4 files changed
parity_check.pyRound 2: 18 game mechanics and multiplayer fixes — starport requirements, bank deposit interest, corp tax at trade time, transwarp encounters, FedSpace deploy block, PvP alignment calibration, planet conquest notify, holo visited map, corp ceasefire consentbanking.pyRound 3: corp withdrawal, FedSpace gate, playtime enforcement, daily trade limitcombat.pyRound 4: ship cost, attack no-target message, scanner check, sector fighter alignment penaltyengine.pyRound 4: personal log, tournament, jettison keeps 1 unit
- Four rounds of TWGS Gold parity fixes: round 2 applies 18 mechanics and multiplayer fixes (starport requirements display, bank deposit interest, corp tax at trade time, transwarp triggers encounters, FedSpace deploy block, PvP alignment calibration, planet conquest notify, corp ceasefire consent). Round 3 adds corp withdrawal rules, FedSpace gate, playtime enforcement, daily trade limit. Round 4 fixes ship cost, personal log, tournament mode, jettison keeps 1 unit, attack no-target message, scanner check.
remediate
behavioral
2 files
parity_check.pycombat.py
Gate unverified extensions as opt-in Warp Enhancements
1 file changed
config.pyGate extended mechanics as opt-in Warp Enhancements; remove fabricated mechanics that were never in TWGS Gold
- All unverified gameplay extensions gated behind opt-in Warp Enhancement flags in config. Fabricated mechanics (features that were never in TWGS Gold but were added speculatively) removed entirely. getattr-based enhancement checks replaced with explicit config fields.
harden
behavioral
1 file
config.py
Parser record-cap from twcfig.dat, export fixes
4 files changed
sectors.pyparse_sectors reads twcfig.dat to cap at num_sectorsports.pyPorts parser reads twcfig.dat to cap record countplanets.pyPlanets parser reads twcfig.dat to cap record countexport.pyJSON export skips record 0 (off-by-one) and inactive ports (port_class_raw=0)
- All three binary parsers (sectors, ports, planets) now read twcfig.dat to determine actual record count rather than inferring from file size. Prevents reading garbage data past the valid record range. JSON export skips record 0 (off-by-one fix) and inactive port slots (port_class_raw=0).
remediate
behavioral
2 files
sectors.pyexport.py
Rename undef-terminal/undef-telemetry references to provide-*
2 files changed
wrangler.tomlCF Worker references updated to provide-terminalsync_uwarp.pyWorker sync script updated for provide-* package names