Changes for page Mission Director Guide

Last modified by Klaus Meyer on 2025/03/31 16:39

From version 32972.1
edited by Heinrich Unrau
on 2024/10/17 13:02
Change comment: There is no comment for this version
To version 32973.2
edited by Heinrich Unrau
on 2024/10/17 13:12
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1009,7 +1009,7 @@
1009 1009  * If there are new script files or new cue nodes (i.e. scripts/cues with new names) they are created and added properly. If you remove script files or cue nodes, the corresponding scripts/cues are removed from the game, including instances.
1010 1010  ** (!) Pitfall: Cue Removal
1011 1011  If you remove a cue and then later add another cue with the same name, old save files will not know that the cue has been removed inbetween. In the following example the first cue was created setting $val_1 and the game is saved.
1012 -{{code language="xml"}}<cue name="Deprecated_Test1" namespace="this">
1012 +{{code language="xml"}}<cue name="Deprecated_Test1">
1013 1013   <actions>
1014 1014   <set_value name="$val_1" exact="'old value'"/>
1015 1015   <debug_text text="$val_1"/>
... ... @@ -1029,7 +1029,7 @@
1029 1029   </cue>
1030 1030   </cues>
1031 1031  </cue>{{/code}}
1032 -\\To avoid this, do not delete any cues, but empty them out and mark them as deprecated. This will prevent new cues with the same name in the script.
1032 +\\To avoid this, do not delete any cues (once they are public for save game compatibility), but empty them out and mark them as deprecated. This will prevent new cues with the same name in the script.
1033 1033  {{code language="xml"}}<!-- Deprecated Cues, kept to not duplicate names in future cues -->
1034 1034  <cue name="Deprecated_Test1" comment="deprecated"></cue>{{/code}}
1035 1035  * As a consequence, you CANNOT rename scripts or cues if you want to refresh them. Doing so would remove the old script or cue and add a new one with the new name.