Shoutbox

Plugin Reloader :: The next generation - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Forum: Plug-Ins (/forumdisplay.php?fid=28)
+------ Thread: Plugin Reloader :: The next generation (/showthread.php?tid=24776)

Plugin Reloader :: The next generation by optimism_ on 05-04-2004 at 09:06 PM

Ok so plugin reloader that i made aaaaaaaages ago works ok, but i wanted to make it better, so i did :P

This new version will toast on plugin unload and reload if you set it to, with a customized message for each event \o/

hmmz.. ok i managed to summarize it in like a line and now it doesnt seem as impressive as i thought it was when i started this post.

Ah well, its worth the download for any plugin developer at least :P



Find attached Plugin Reloader.zip
Please refer to readme.txt for installation and usage instructions


RE: Plugin Reloader :: The next generation by MoRiA on 05-04-2004 at 09:19 PM

... And for any plugin user who doesn't want to restart MSN to get new plugins working :)


RE: Plugin Reloader :: The next generation by optimism_ on 05-04-2004 at 09:20 PM

well yeah there is that as well

but imo its an invaluable tool for developers


RE: Plugin Reloader :: The next generation by dotNorma on 05-04-2004 at 09:29 PM

Great , this is a very useful tool for when I am making my plug-in. :grin:

Could it be possible to do....

/xreload <file path here>?

That would add the file designated in the file patch to the Plug-ins folder? (If it was already there replace it automatticlly?)


It would be just simply grand!


RE: Plugin Reloader :: The next generation by optimism_ on 05-04-2004 at 09:32 PM

um... all its doing is whats in the plugin api readme with a bit of fancy stuff to make it look nice :P

seriously tho, i cant force the load or unload of a single plugin, it just sends the message to make plus reload them all


RE: Plugin Reloader :: The next generation by dotNorma on 05-04-2004 at 09:39 PM

Yah thats what you do :grin:

/xreload (DLL Path)

First it unloads them all (Like it would)

*This part has nothing to do with the API or any of that just plain code....

It copys the dll to the folder

It reloads them all

You just use the same code but inbetween unload and reload make it copy the file path the plug-in got to to the plug-ins folder ?

Possible?


RE: Plugin Reloader :: The next generation by optimism_ on 05-04-2004 at 09:45 PM

you can do this with a quicktext i think maybe... you should be able to run the DOS COPY command via run i belive, which takes the form

code:
C:\Documents and Settings\optimism_>copy /?
Copies one or more files to another location.

COPY [/D] [/V] [/N] [/Y | /-Y] [/Z] [/A | /B ] source [/A | /B]
     [+ source [/A | /B] [+ ...]] [destination [/A | /B]]

  source       Specifies the file or files to be copied.
  /A           Indicates an ASCII text file.
  /B           Indicates a binary file.
  /D           Allow the destination file to be created decrypted
  destination  Specifies the directory and/or filename for the new file(s).
  /V           Verifies that new files are written correctly.
  /N           Uses short filename, if available, when copying a file with a
               non-8dot3 name.
  /Y           Suppresses prompting to confirm you want to overwrite an
               existing destination file.
  /-Y          Causes prompting to confirm you want to overwrite an
               existing destination file.
  /Z           Copies networked files in restartable mode.

The switch /Y may be preset in the COPYCMD environment variable.
This may be overridden with /-Y on the command line.  Default is
to prompt on overwrites unless COPY command is being executed from
within a batch script.


hence
code:
/xreload
#/CopyPlugin /run COPY /Y "<source plugin>" "C:\program files\messenger plus! 2\plugins"


should do the trick maybe
RE: Plugin Reloader :: The next generation by Mnjul on 05-05-2004 at 07:45 AM

Nice update (Y) I have been using your Reloader for a long time, optimism ;)


RE: Plugin Reloader :: The next generation by toddy on 06-06-2004 at 11:06 PM

can anyone help me please ?

When i run the PluginReloader, it comes up with a toast saying "Unloading Plugins" but then my msn crashes. any ideas on what is wrong?

here are my details:-
Windows Version: Windows XP, 5.01.2600
Messenger Client Version: 6.2.0133
Messenger Plus! Version: 3.01.0094


RE: Plugin Reloader :: The next generation by optimism_ on 06-07-2004 at 08:03 AM

all it does is tells messenger plus! to reload the plugins using the information in the API.

If messenger crashes it is because one or more of the plugins dies. Therefore, you gotta do try each dll out, see which one causes the error.

rename ALL dlls except pluginreloader.dll to .dl.bak.
then reload
then rename ONE dll at a time back to .dll and reload again

When messenger crashes, the dll that you just renamed is the one that isnt working properly. You should upgrade or delete this plugin.


RE: Plugin Reloader :: The next generation by MoRiA on 06-09-2004 at 01:58 PM

Slight problem in optimism_'s methods there... Plugin dlls will be locked by Messenger. Thus you'll have to be very quick and rename each of them whilst they're being reloaded or rename them all when MSN is closed :D


RE: Plugin Reloader :: The next generation by optimism_ on 06-10-2004 at 11:58 AM

presumably when it crashes itll be no longer running. therefore you can name them all to .bak before you restart it

{
Then rename a .bak to a .dll (they wont be locked at this point will they)
And reload
}//Repeat until the culpret is  found


moria: you gotta think lateral like :P


RE: Plugin Reloader :: The next generation by MoRiA on 06-10-2004 at 12:07 PM

I refuse to read that last line until 'like' is removed from it.
kthx :P


RE: Plugin Reloader :: The next generation by Dane on 07-22-2004 at 05:31 AM

Crashed my MSN :S


RE: Plugin Reloader :: The next generation by Phrive on 07-22-2004 at 07:51 AM

i love the plug-in like the way it works its bril had no probelms so well dun love it


RE: Plugin Reloader :: The next generation by Dempsey on 07-22-2004 at 09:21 AM

quote:
Originally posted by Dane
Crashed my MSN :S
This is propablly because you have a plugin which creates its own messenger object, such as older versions of Screenshot Sender

RE: Plugin Reloader :: The next generation by Dane on 07-23-2004 at 07:58 AM

Plugins Installed:
-Handwriting Enabler
-StuffPlug by DJMystic
-Audiator 3
-StuffPlug NG
-Plugin Reloader
-Network IP
-Shutdown Computer
-Date and Time