What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! Bug Reports » Debug registry key...

Debug registry key...
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: Debug registry key...
quote:
Originally posted by CookieRevised
This said, I still think it is wrong for a script to reload itself or another script though. It shouldn't be needed. Not even to update (updating should be left to Plus! and its updating system).
True, but sometimes reloading the script is needed. When script files become obsolete in newer versions, you might need to remove those before the updated script is started to prevent duplicate functions definitions. For example, the main script file in Countdown Live 1.0 was named "Countdown Live.js" but I changed this to "Main.js" for 2.0. Therefore, I needed a way to remove this old file. You could argue that I shouldn't have changed the file name but I believe developers should have the possibility to restructure their script.

A slightly better solution could be to keep a "Countdown Live.js" file in the script package and make it completely empty. This way, the obsolete file would be replaced by this empty file and could be safely deleted without restarting the script. The downside is that these obsolete files will still clutter your script package for all versions to come...

I agree that such upgrade procedures should be handled by Plus! but as long as Plus! doesn't provide such support, we're stuck with nasty workarounds. We could really use some sort of <RemoveFiles> block in ScriptInfo.xml for these things. :P

This post was edited on 02-22-2011 at 11:28 PM by Matti.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
02-22-2011 05:45 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Debug registry key... - by whiz on 02-20-2011 at 03:28 PM
RE: Debug registry key... - by pollolibredegrasa on 02-20-2011 at 07:25 PM
RE: Debug registry key... - by whiz on 02-22-2011 at 11:37 AM
RE: Debug registry key... - by Matti on 02-22-2011 at 12:41 PM
RE: Debug registry key... - by CookieRevised on 02-22-2011 at 03:40 PM
RE: Debug registry key... - by Matti on 02-22-2011 at 05:45 PM
RE: Debug registry key... - by Spunky on 02-22-2011 at 09:00 PM
RE: Debug registry key... - by Matti on 02-22-2011 at 11:27 PM
RE: Debug registry key... - by CookieRevised on 02-23-2011 at 01:13 AM
RE: Debug registry key... - by Matti on 02-23-2011 at 02:14 PM
RE: Debug registry key... - by CookieRevised on 02-23-2011 at 02:44 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On