fix: Move Update_Receiver to end of installation order

- Update_Receiver now installs LAST to prevent interrupting update process
- Avoids scenario where controlling script gets replaced mid-update
- All other scripts install first, then Update_Receiver replaces itself
- Critical fix for reliable automatic updates
This commit is contained in:
RebeccaNod1 2025-10-02 15:35:42 -05:00
parent ce953629cf
commit eb9dc566e9

View file

@ -47,6 +47,7 @@ list SCRIPT_LINK_MAP = [
]; ];
// Extract unique script names for inventory checking // Extract unique script names for inventory checking
// NOTE: Update_Receiver is listed LAST to avoid interrupting the update process
list REQUIRED_SCRIPTS = [ list REQUIRED_SCRIPTS = [
"Main_Controller_Linkset", "Main_Controller_Linkset",
"Game_Manager", "Game_Manager",
@ -61,11 +62,11 @@ list REQUIRED_SCRIPTS = [
"Game_Calculator", "Game_Calculator",
"Verbose_Logger", "Verbose_Logger",
"System_Debugger", "System_Debugger",
"Update_Receiver",
"Game_Scoreboard_Manager_Linkset", "Game_Scoreboard_Manager_Linkset",
"Leaderboard_Communication_Linkset", "Leaderboard_Communication_Linkset",
"XyzzyText_Dice_Bridge_Linkset", "XyzzyText_Dice_Bridge_Linkset",
"xyzzy_Master_script" "xyzzy_Master_script",
"Update_Receiver" // ALWAYS LAST - don't interrupt update process!
]; ];
// Required objects that should be in updater inventory // Required objects that should be in updater inventory