rmTriggerAddScriptInclude is incompatible with using rmTriggerAddScriptLine

  • Game Version: Standard

  • Build Number: 606137R

  • Platform: Steam

  • Operating System: Windows 11

Issue: rmTriggerAddScriptInclude is incompatible with using rmTriggerAddScriptLine

When using both of these functions in a random map script, I would expect that both the include statements generated via rmTriggerAddScriptInclude and the lines included via rmTriggerAddScriptLine would end up present in the generated trigtemp.xs, but in fact the prescence of at least one rmTriggerAddScriptInclude seems to cause rmTriggerAddScriptLine to be completely ignored.

Repro Steps:

Create a mod with a random map .xs script.

In that script, attempt to include a trigger script file via rmTriggerAddScriptInclude and some individual trigger script lines via rmTriggerAddScriptLine.

Run the map and examine the generated trigtemp.xs file. The lines added via rmTriggerAddScriptLine will not be included.

N.B. As a workaround, you can use rmTriggerAddScriptLine to just insert the include statement for your trigger script manually - I’m quite surprised that rmTriggerAddScriptInclude isn’t just calling through to rmTriggerAddScriptLine internally already tbh.