Skip to content

Fix Imperial Hoth phase 3 tokens never being awarded#409

Merged
AconiteX merged 1 commit into
SWG-Source:masterfrom
nickk02:fix/387-imperial-hoth-tokens
May 17, 2026
Merged

Fix Imperial Hoth phase 3 tokens never being awarded#409
AconiteX merged 1 commit into
SWG-Source:masterfrom
nickk02:fix/387-imperial-hoth-tokens

Conversation

@nickk02

@nickk02 nickk02 commented May 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Imperial Hoth (Echo Base) players received no tokens upon completion because the imperial_p3_end trigger—which drives the token award sequence—required 5 xport_update task ID events, but destroyed transports never generated them.

Root cause:

imperial_p3_end fires when 5 xport_update events accumulate (waitForComplete). Escaped transports fire takeoff_imperial_N → xport_update. Destroyed transports fired questUpdate p3_transport_destroyed but no xport_update or xport_destroy. This meant:

  • All transports escaped → 5 xport_update → worked correctly
  • Any transport destroyed → xport_update count never reached 5 → imperial_p3_end never fires → conclude_imperial_p3 never runs → zero tokens

The minor/major bonus token logic also depended on xport_destroy accumulating 3 or 5 times, but the individual destruction triggers didn't generate these IDs either.

Fix:

Add taskId:xport_update and taskId:xport_destroy to each of the five xport_destroyed_N trigger blocks so every destroyed transport counts toward both totals, regardless of how many escape.

Fixes #387

The imperial_p3_end trigger waits for 5 xport_update events to fire,
which signals that all transports have been accounted for (escaped or
destroyed). Transport escapes fire takeoff_imperial_N -> xport_update,
but transport destructions only sent questUpdate messages and never
generated xport_update task IDs. This meant:

  - If all transports escaped: xport_update fired 5 times -> worked
  - If any transport was destroyed: xport_update count never reached 5
    -> imperial_p3_end never fired -> conclude_imperial_p3 never ran
    -> no tokens awarded

Similarly, p3_imperial_minor/major trigger tracking (for bonus tokens)
waited for xport_destroy events, but each individual destruction never
generated them - only the all-5-destroyed compound did.

Fix: add taskId:xport_update and taskId:xport_destroy to each
xport_destroyed_N trigger block so every destroyed transport
contributes to both counts, regardless of how many escape.

Fixes #387
@BubbaJoeX

Copy link
Copy Markdown
Member

👍🏻

@AconiteX
AconiteX merged commit 5c8f0ed into SWG-Source:master May 17, 2026
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.

Imperial Hoth does not give tokens

3 participants