Skip to content

fix(crate): packing a FARP reports how many crates were created - #268

Merged
FullGas1 merged 1 commit into
developfrom
fix/farp-pack-false-success
Oct 20, 2026
Merged

FullGas1 merged 1 commit into
developfrom
fix/farp-pack-false-success

Conversation

@FullGas1

Copy link
Copy Markdown
Collaborator

Summary

Lot FIX-FARP-PACK-FALSE-SUCCESS, closes #263. The Pack command destroys the FARP first (packScene), then creates the crates, and threw away the count that the creation returns: the pilot always read "FARP packed successfully!", even when DCS refused every object and the FARP was lost with no crate (and the warehouse share of the missing crates with it).

The command now reads the count: none → "Pack failed: the crates could not be created." + ERROR log; only some → "FARP packed: N of M crates created." + WARNING log; all → the existing message. Decided with the maintainer: message only — the order (destroy, then create) is unchanged; creating the crates before destroying the scene stays a separate decision. Two new keys, FR/ES/KO written by me (to review), dictionaries regenerated by merge_CTLD.ps1 (translation_version 1.26 → 1.27).

Test plan

  • 3 new cases in crate_scene_pack_placement_spec (all created = control, none, only some): the two failure cases failed before the change; the 4 existing cases unchanged
  • busted over tests/ci/* — 0 failures; luacheck on src/ — 0 warnings
  • CI

🤖 Generated with Claude Code

Closes #263

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@FullGas1
FullGas1 requested a review from davidp57 as a code owner October 20, 2026 09:34
@FullGas1
FullGas1 merged commit fed57d0 into develop Oct 20, 2026
10 checks passed
@FullGas1
FullGas1 deleted the fix/farp-pack-false-success branch October 20, 2026 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Packing a FARP announces "packed successfully" without checking that a single crate was created

1 participant