diff --git a/Peril_Dice_Updater.lsl b/Peril_Dice_Updater.lsl index e11c782..adb66bb 100644 --- a/Peril_Dice_Updater.lsl +++ b/Peril_Dice_Updater.lsl @@ -130,26 +130,21 @@ downloadNextScript() { currentHttpRequest = llHTTPRequest(url, [HTTP_METHOD, "GET"], ""); } -// Install downloaded script - commercial updater approach +// EMERGENCY SAFE MODE - Only add new scripts, don't delete anything installScript(string scriptContent, string scriptName, integer linkNumber) { - llOwnerSay("📥 Installing " + scriptName + " (" + (string)llStringLength(scriptContent) + " chars)"); - llOwnerSay("🎯 Target: " + (string)targetGameKey + " | PIN: " + (string)updatePin); + llOwnerSay("🆘 SAFE MODE: Adding " + scriptName + " as new script"); + llOwnerSay("📊 Size: " + (string)llStringLength(scriptContent) + " characters"); - // Step 1: Tell target to remove old script (if it exists) - llRegionSayTo(targetGameKey, UPDATER_CHANNEL, "REMOVE_SCRIPT|" + scriptName); - - // Step 2: Install new script content with llRemoteLoadScriptPin - // The script will be created with an auto-generated name like "New Script" + // Only create new script - DO NOT DELETE ANYTHING + // This creates a script with auto-generated name containing the new content llRemoteLoadScriptPin(targetGameKey, scriptContent, updatePin, TRUE, 0); - // Step 3: Tell target to rename the new script to correct name - llRegionSayTo(targetGameKey, UPDATER_CHANNEL, "RENAME_SCRIPT|" + scriptName); - - llOwnerSay("✅ Sent " + scriptName + " to target game"); + llOwnerSay("✅ Added new script with updated content"); + llOwnerSay("📝 You can now copy content from the new script to replace your old " + scriptName); // Move to next script currentScriptIndex++; - llSetTimerEvent(3.0); // Longer pause for script processing + llSetTimerEvent(2.0); } // Complete the update process diff --git a/Update_Receiver.lsl b/Update_Receiver.lsl index c2ef66d..fc9e33e 100644 --- a/Update_Receiver.lsl +++ b/Update_Receiver.lsl @@ -299,16 +299,6 @@ default { else if (command == "UPDATE_BUSY") { llOwnerSay("⏳ Updater is busy with another installation"); } - else if (command == "REMOVE_SCRIPT") { - string scriptToRemove = llList2String(parts, 1); - llOwnerSay("🗑️ Removing old script: " + scriptToRemove); - llRemoveInventory(scriptToRemove); - } - else if (command == "RENAME_SCRIPT") { - string targetName = llList2String(parts, 1); - llOwnerSay("🏷️ Looking for new script to rename to: " + targetName); - // Note: LSL doesn't have direct script renaming, this is for future enhancement - } } }