Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kashyyyk Czerka Landing Port - Crates need to be opened twice to get their loot #626

Closed
ghost opened this issue Jun 20, 2022 · 1 comment
Labels
Low Priority Bottom of the pile Module: Kashyyyk Issue occurs primarily on Kashyyyk Type: Scripting This issue is related specifically to a scripting bug/error Type: Template This issue is related specifically to a template like a UTC. UTI, UTP, etc.

Comments

@ghost
Copy link

ghost commented Jun 20, 2022

You need to open the two crates by the entrance of the Czerka office twice in order to get their loot. I remember this bug from when I would check every footlocker twice in my first runs.

@DarthParametric DarthParametric added Low Priority Bottom of the pile Module: Kashyyyk Issue occurs primarily on Kashyyyk Type: Scripting This issue is related specifically to a scripting bug/error Type: Template This issue is related specifically to a template like a UTC. UTI, UTP, etc. labels Jun 20, 2022
@DarthParametric
Copy link
Contributor

DarthParametric commented Jun 20, 2022

It's not a bug per se, just an artefact of the method they used to generate random loot. It seems they encountered performance issues when using OnHeartbeat scripts to do it (which Obsidian resolved in TSL by creating a new one-shot OnHeartbeat function specifically for lootable containers - RemoveHeartbeat). Instead, Bioware occasionally use an OnOpen script (k_plc_tresmillow / k_plc_tresmilmid in this case). The drawback being that it doesn't fire until the player tries to loot it once. A similar sort of issue can be seen in #172, although interestingly in that case they do use OnHeartbeats but still require looting twice. My guess is due to some sort of deliberate performance-saving measure hardcoded in the engine.

In any event, the most expedient solution would be to push any such examples to the module's OnEnter. But it is not exactly a high priority.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Low Priority Bottom of the pile Module: Kashyyyk Issue occurs primarily on Kashyyyk Type: Scripting This issue is related specifically to a scripting bug/error Type: Template This issue is related specifically to a template like a UTC. UTI, UTP, etc.
Projects
None yet
Development

No branches or pull requests

1 participant