Repository navigation
fix: five defects from the VMCT review of develop (FIX-VMCT-REVIEW-FINDINGS, #322-#326) - #330
Merged
Merged
Conversation
…322) parachuteTroops read template.units[1].type, a field troop templates do not carry, so every parachuted group landed as 'Soldier AK'. Build the units from the template's own list, resolving unitType for the group's coalition as CTLDObjectRegistry.spawnObject does for a landed unload; mortar servants are included and the JTAC slot mapping skips them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(data.active ~= nil) and data.active or true turned active = false into true, so troopZones / wpZones entries marked "no" were active from load. Use data.active ~= false in CTLDTroopZone:init and CTLDLogisticZone:init. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The single-crate menu path looked the crate up by unit type; the six '... Repair' crates have a weight and no unit and answered 'Request failed'. Pass the entry's weight and look it up with findDescriptorByWeight, as the crate sets do. A spec walks every single crate of the default catalogue. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The group was named <type>_CTLD_AA_<second>: two systems of the same type spawned in the same second shared it and DCS replaced the first. Use the groupUid already given to the unit names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
'%1 started building a FOB' and the three AA deployed/rearmed/repaired messages showed the unit name. Add ctld.utils.getPlayerNameOrType (v1's ctld.getPlayerNameOrType: player name, else type name) and use it in the four messages. Event payloads are unchanged; the unpackFOBCrates doc now says the player argument is the unit name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Compact each lot of the Active lots table merged before 2026-11-20 into .backlog/archive/<LOT-ID>.md (index description, ticket table, PRD) and move its line to the Archived lots table. Ticket links of the compacted PRDs become plain text; the Fat Cow spike scenario points to the archive file. CHANGELOG: the FIX-CREATE-BEFORE-DESTROY live check passed on 2026-11-09. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-05 and 07 done Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… prefix (#322 review) A field pickup recognises a servant by ^SVNT (_isServantUnitName) and a JTAC by ^JTAC (BUG-03/05). Parachuted units were all named <group>-<i>, so once the drop spawned real servants a pickup counted them as troops. Also treat an empty player name as no player in getPlayerNameOrType, as _callsign does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ing, live check pending) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t 06) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…W-FINDINGS # Conflicts: # .backlog/FEAT-VMCT-V1-PARITY/PRD.md # .backlog/FEAT-VMCT-V1-PARITY/tickets/01-spawned-units-player-can-drive.md # .backlog/FEAT-VMCT-V1-PARITY/tickets/02-link-crates-and-groups-in-events.md # .backlog/FEAT-VMCT-V1-PARITY/tickets/03-live-check.md # .backlog/FIX-VMCT-REVIEW-FINDINGS/PRD.md # .backlog/FIX-VMCT-REVIEW-FINDINGS/tickets/01-parachuted-troops-keep-their-template.md # .backlog/FIX-VMCT-REVIEW-FINDINGS/tickets/02-inactive-zones-stay-inactive.md # .backlog/FIX-VMCT-REVIEW-FINDINGS/tickets/03-repair-crates-from-the-menu.md # .backlog/FIX-VMCT-REVIEW-FINDINGS/tickets/04-unique-aa-group-name.md # .backlog/FIX-VMCT-REVIEW-FINDINGS/tickets/05-player-name-in-coalition-messages.md # .backlog/FIX-VMCT-REVIEW-FINDINGS/tickets/06-live-check.md # .backlog/FIX-VMCT-REVIEW-FINDINGS/tickets/07-backlog-housekeeping.md # .backlog/README.md # CHANGELOG.md
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
FIX-VMCT-REVIEW-FINDINGS: the five defects VMCT found readingdevelopat1dfea2c(issues #322 to #326), plus the backlog housekeeping of ticket 07.Closes #322, closes #323, closes #324, closes #325, closes #326.
What changes
parachuteTroopsbuilds the group from the template's own units (CTLDObjectRegistry._db[key].units), resolvingunitTypefor the group's coalition asspawnObjectdoes for a landed unload. Same types and order as on the ground,componentTypeshonoured, mortar servants included (landed 1 m beside their mortar). The JTAC slot mapping (_u<idx>) now skips the servants, so a JTAC behind a mortar still lases. "Soldier AK" only as a logged fallback for an unknown template.self.active = data.active ~= falseinCTLDTroopZone:initandCTLDLogisticZone:init.weight; the request looks it up withfindDescriptorByWeight, as the sets do. No catalogue change.<type>_CTLD_AA_<groupUid>, the uid its unit names already carried.ctld.utils.getPlayerNameOrType(v1's rule: player name, else type name) in the four messages. Event payloads unchanged; theplayerdoc line ofunpackFOBCratessays it is the unit name..backlog/archive/, their lines moved to the Archived lots table (the register the previous compaction, #259, used; the ticket's "Delivered" table is the program's bootstrap list). CHANGELOG: "to be confirmed on the live check" dropped from FIX-CREATE-BEFORE-DESTROY (passed 2026-11-09).Decisions applied, and where the code led further
svntOf), which shift the positions: the JTAC wiring by position would then lase the wrong unit. Fixed by mapping the logical slot to the spawned position. For a group re-embarked from the field with fewer survivors (unitTotalbelow the template's count), the firstunitTotallogical slots are kept, each with its servant.legacy-parity-checkerconfirmed the four messages usectld.getPlayerNameOrTypein v1 (l.9693, 9853, 10133, 10218).Checks
parachute_spec(6),zone_manager_spec(5),crate_request_repair_spec(new, 5),aasystem_spec(3),player_name_messages_spec(new, 9). Two existing fakes gainedgetPlayerName/getTypeName(a DCS unit always has them).is_near,is_not,truthy), identical before and after. CI busted is the gate.lua51-compliance-reviewer: clean.legacy-parity-checker: CTLD 2: parachuted troop templates all land as "Soldier AK" #322 is a deliberate v2 behaviour aligned with v1 (v1 always lands the group's real types), CTLD 2: the FOB and SAM coalition messages name the transport unit, not the player #326 at parity.merge_CTLD.ps1OK,CTLD.luaparses under Lua 5.1.scenario_vmct_review_findings.luaPASS 10/10 onTest_CTLDNEXT_01.miz(2026-11-23): parachuted Standard Group and Mortar Squad land with their template's types, HAWK Repair brought out through the real menu callback, two HAWKs spawned in the same second under two names. Nothing left in the mission afterwards. Details in ticket 06.Review (
pr-code-review, full)<group>-<i>, so a field pickup counted them as troops (_isServantUnitNamematches^SVNT); JTACs lacked the^JTACprefix the pickup and death paths look for. Fixed: servantsSVNT-…, JTACsJTAC-…, with a test on the names.getPlayerNameOrTypenow also treats an empty player name as no player, asCTLDTroopManager:_callsigndoes (a small deviation from v1, which would print "").truein the zone active field now loads inactive), the parachute comment andOnTroopsParachuteLanded.positionsdoc (EN + FR) updated.Follow-up, not in this lot
The smoke message (
src/CTLD_crate.lua~3469) is the same class as #326: it goes to the coalition with the unit name, and untranslated, where v1 usedctld.getPlayerNameOrTypeand i18n. Fixing it needs a new i18n key, which this lot's PRD rules out.🤖 Generated with Claude Code