Nested Crowd Triggers Causes Crash
Posted: Sun Jan 30, 2022 11:34 pm
Hello. Apologies if this issue is known, but I couldn't find any info or help on it anywhere.
Kenshi crashes to desktop if a Dialogue object contains a Crowd Trigger, which itself contains a second Crowd Trigger. For example, Dialogue Object 1 is said by a squad leader, and it contains a Crowd Trigger for Dialogue 2. The whole squad says Dialogue 2, which has a Crowd Trigger for Dialogue 3. On the trigger for Dialogue 3, the game crashes to desktop. I have attached the crash dump, but I don't think it will be necessary. I have included a mod, Crowd Trigger Crash, that adds a squad to The Hub that should demonstrate the bug, triggered upon seeing a neutral squad. You can also look at the Dialogue added by the mod in the FCS to see the specific dialogue flow that causes the crash. There is an odd workaround to this bug. If the second Crowd Trigger is attached to an Interjector's line, the second Crowd Trigger will run as expected. Regardless of the workaround, I expect the crash to desktop to not be intended in cases where this workaround isn't used. I have included a mod, Crowd Trigger No Crash, that behaves as the other mod, except with the Interjector's workaround. Thanks for your time.
---
The following isn't relevant to the crash itself, but I'll include it in case anyone wants to know why I was messing around with this.
I discovered this issue when trying to make a mod with dialogue that alternates between the squad leader and the squad. I was looking to make a dialogue event along the likes of:
For whatever reason, I can't seem to figure out how to make the [speaker | T_WHOLE_SQUAD] work. Nor can I find any info on it or what it actually does. I've seen it used in at least a couple mods where its intended use appears to be that the speaker of the Dialogue line is the entire squad, but I've never seen the effect work in that way.
Kenshi crashes to desktop if a Dialogue object contains a Crowd Trigger, which itself contains a second Crowd Trigger. For example, Dialogue Object 1 is said by a squad leader, and it contains a Crowd Trigger for Dialogue 2. The whole squad says Dialogue 2, which has a Crowd Trigger for Dialogue 3. On the trigger for Dialogue 3, the game crashes to desktop. I have attached the crash dump, but I don't think it will be necessary. I have included a mod, Crowd Trigger Crash, that adds a squad to The Hub that should demonstrate the bug, triggered upon seeing a neutral squad. You can also look at the Dialogue added by the mod in the FCS to see the specific dialogue flow that causes the crash. There is an odd workaround to this bug. If the second Crowd Trigger is attached to an Interjector's line, the second Crowd Trigger will run as expected. Regardless of the workaround, I expect the crash to desktop to not be intended in cases where this workaround isn't used. I have included a mod, Crowd Trigger No Crash, that behaves as the other mod, except with the Interjector's workaround. Thanks for your time.
---
The following isn't relevant to the crash itself, but I'll include it in case anyone wants to know why I was messing around with this.
I discovered this issue when trying to make a mod with dialogue that alternates between the squad leader and the squad. I was looking to make a dialogue event along the likes of:
- Squad Leader: "What do we want?"
- Squad: "Rum!"
- Leader: "When do we want it?"
- Squad: "Now!"
For whatever reason, I can't seem to figure out how to make the [speaker | T_WHOLE_SQUAD] work. Nor can I find any info on it or what it actually does. I've seen it used in at least a couple mods where its intended use appears to be that the speaker of the Dialogue line is the entire squad, but I've never seen the effect work in that way.