the error comes up only when it is first signalled. subsequent signals to the cue doesn't produce the error.
the error occurs on the lines shown in the code below.
Spoiler
Show
Code: Select all
... SNIPPED ...
<cues>
<cue name="MyScript" namespace="this">
<conditions><check_any><event_game_started /><event_game_loaded /></check_any></conditions>
<actions>
... SNIPPED ...
<signal_cue cue="Init" /><!-- ERROR here. This is line 13 as listed by the error message shown at the end of this post. -->
</actions>
<cues>
<cue name="Init" instantiate="true">
<conditions><event_cue_signalled /></conditions>
<actions>
<debug_text text="'inited'" />
... SNIPPED ...
</actions>
</cue>
<cue name="GameRestartedOrReLoaded">
<conditions><check_any><event_game_started /><event_game_loaded /></check_any></conditions>
<actions>
... SNIPPED ...
<signal_cue cue="Init" /><!-- NO ERROR here -->
</actions>
</cue>
... SNIPPED ...
<cue name="CleanUp">
<conditions>... SNIPPED ...</conditions>
<actions>
... SNIPPED ...
<signal_cue cue="Init" /><!-- NO ERROR here -->
</actions>
</cue>
</cues>
</cue>
</cues>
...
note that the signalled cue, Init, still executes AFTER that error message. weird.
Code: Select all
[Scripts] 327863.96 *** Context:md.MyScriptMD.MyScript:
[General] 327863.96 ======================================
[=ERROR=] 327863.96 Error in MD cue md.MyScriptMD.MyScript: Signalled cue md.MyScriptMD.Init has no corresponding listeners
* Expression: Init
* Action: <signal_cue>, line 13
[General] 327863.96 ======================================
[Scripts] 327863.96 *** Context:md.MyScriptMD.Init<inst:871434>: inited