Repository navigation
feat: drivable spawned units and crate/group link in events (FEAT-VMCT-V1-PARITY, #327 #328) - #329
Merged
Merged
Conversation
…ayerCanDrive (#327) CTLD v1 created the units of a gesture drivable by a Combined Arms player or a game master; CTLD 2 created them with playerCanDrive = false. The new setting spawnedUnitsPlayerCanDrive (default true, the v1 behaviour) is read by every ground spawn of a gesture: troops from a template, parachuted troops, the transported vehicle (spawn and unload), a vehicle landed by parachute or delivered by an AI transport, the unpacked crate and the AA system. A registry template that sets playerCanDrive = false keeps it (the FARP support trucks and guards). Catalogue 2.5.0 with its shape and oracle. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… CHANGELOG (#327) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ents (#328) OnCrateUnpacked carries groupName, the group the unpack created (absent for a scene); OnAASystemDeployed (crate assembly), OnAASystemRearmed and OnAASystemRepaired carry crateNames, the crates consumed. An AI-delivered AA system has no crate and no crateNames. Additive only. Event reference EN+FR and CHANGELOG updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e crateNames on FAIL, test templates cleaned up Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lot
FEAT-VMCT-V1-PARITY— closes #327, closes #328. Two v1 behaviours VMCT works around today.#327 — spawned units can be driven again (
spawnedUnitsPlayerCanDrive)New setting
spawnedUnitsPlayerCanDrive, defaulttrue(v1:ctld.createUnitsetplayerCanDrive = true). One helper,ctld.utils.spawnedUnitsPlayerCanDrive(), read at every ground spawn of a gesture:CTLDObjectRegistry.spawnObjectCTLDTroopManager:parachuteTroopsCTLDVehicleSpawner:spawnVehicleForTransport,:unloadVehicleCTLDVehicleSpawner:_spawnGroundUnitctld.utils.buildGroupUnitDefCTLDCrateAssemblyManager:_spawnGroupDeviation from the PRD, on purpose: the PRD listed five sites; the code had two more gesture spawns (parachuted troops, and
_spawnGroundUnitfor the parachuted / AI-delivered vehicle). Both created non-drivable units (directcoalition.addGroup, DCS defaultfalse), and v1 created them drivable, so they read the setting too.Open point settled — the hard-coded
falseofsrc/core/CTLD_objectRegistry.lua:203-278are template intentions, kept. They areFuel_Truck,repare_Truck,CS_FARP_Guards,FARP_Security_Guard: the support vehicles and guards of the FARP scenes, CTLD 2-only (v1 built no FARP; the parity checker confirmed it), declared again with the samefalseinsrc/scenes/CTLD_farpAlphaScene.lua,CTLD_countrysideFarpScene.lua(andCTLD_fatCowScene.lua). A player who drives the fuel truck away takes the FARP's service with it. SospawnObjectlets a template's ownplayerCanDrivewin, and the setting decides only when the template says nothing (every troop template).Catalogue
configVersion2.4.0 → 2.5.0,tests/ci/data/catalogue_shapes/2.5.0.jsonand the oracle regenerated with ctld-tools; a 2.4.0 snapshot getstrue(tested). Schema label + description EN/FR, mission maker settings table EN/FR, CHANGELOG Changed.#328 — events link crates and groups
OnCrateUnpacked.groupName: the group the unpack created (one event per consumed crate, all with the same group; absent for a scene)._spawnUnpackednow also returns the group name,unpackCratetakes it.OnAASystemDeployed.crateNames(crate assembly only; the AI delivery has none),OnAASystemRearmed.crateNames,OnAASystemRepaired.crateNames: list of the consumed crates.Additive only.
docs/developer/events.mdEN/FR, CHANGELOG Added.Checks
develop(runner limitations), +23 new tests. CI busted is the gate.CTLD.lualoads under Lua 5.1. Lua 5.1 review of the diff: clean. Legacy parity check: every v1 gesture spawn is drivable again; v1 had no non-drivable gesture unit.tests/dcs/noPlayer/scenario_vmct_v1_parity.lua— result to be recorded after the DCS run.🤖 Generated with Claude Code