Changes for page Mission Director Guide
Last modified by Klaus Meyer on 2025/03/31 16:39
From version 32970.14
edited by Heinrich Unrau
on 2024/10/17 12:59
on 2024/10/17 12:59
Change comment:
There is no comment for this version
To version 32970.15
edited by Heinrich Unrau
on 2024/10/17 13:00
on 2024/10/17 13:00
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1007,7 +1007,7 @@ 1007 1007 1008 1008 * MD scripts and cues are identified by their names. So a script can only be refreshed if it has the same script name as before (file name is irrelevant). 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 -** 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. If the Cue is deleted and years later a new cue with the same name appears, the old save will consider the new cue as already completed without executing its actions. The Cue PrintValue will fail to find a variable set up in its parent.1010 +** 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. 1011 1011 {{code language="xml"}}<cue name="Deprecated_Test1" namespace="this"> 1012 1012 <actions> 1013 1013 <set_value name="$val_1" exact="'old value'"/> ... ... @@ -1031,6 +1031,33 @@ 1031 1031 1032 1032 <!-- Deprecated Cues, kept to not duplicate names in future cues --> 1033 1033 <cue name="Deprecated_Test1" comment="deprecated"></cue>{{/code}} 1034 +\\If the Cue is deleted and years later a new cue with the same name appears, the old save will consider the new cue as already completed without executing its actions. The Cue PrintValue will fail to find a variable set up in its parent. 1035 +{{code language="xml"}}<cue name="Deprecated_Test1" namespace="this"> 1036 + <actions> 1037 + <set_value name="$val_1" exact="'old value'"/> 1038 + <debug_text text="$val_1"/> 1039 + </actions> 1040 +</cue> 1041 + 1042 +<cue name="Deprecated_Test1" namespace="this"> 1043 + <actions> 1044 + <set_value name="$val_2" exact="'new value'"/> 1045 + <debug_text text="$val_2"/> 1046 + </actions> 1047 + <cues> 1048 + <cue name="PrintValue"> 1049 + <actions> 1050 + <debug_text text="parent.$val_2"/> 1051 + </actions> 1052 + </cue> 1053 + </cues> 1054 +</cue> 1055 + 1056 +<!-- Deprecated Cues, kept to not duplicate names in future cues --> 1057 +<cue name="Deprecated_Test1" comment="deprecated"></cue>{{/code}} 1058 +To avoid this 1059 +{{code language="xml"}}<!-- Deprecated Cues, kept to not duplicate names in future cues --> 1060 +<cue name="Deprecated_Test1" comment="deprecated"></cue>{{/code}} 1034 1034 * 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. 1035 1035 * You CANNOT change a <cue> to a <library> or vice versa. 1036 1036 * You CANNOT add, remove, or change the "ref" attribute of a cue. But it is possible to remove the whole cue. (If all references to a library are removed you can also remove the library itself.)