[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Changing the default "send to"

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Changing the default "send to"
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Pages: 1 2  

Posted by Nick Gammon   Australia  (18,800 posts)  [Biography] bio   Forum Administrator
Date Sun 18 Jul 2010 10:42 AM (UTC)  quote  ]
Message
Some of my plugins remember if you had them disabled and automatically disable themselves next time they are loaded.

And I think there is a key you can hit which disables loading plugins. Can't remember what it is right now. If there isn't, there should be. ;)

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Caelen   (81 posts)  [Biography] bio
Date Sun 18 Jul 2010 10:28 AM (UTC)  quote  ]
Message
Actually, I'd really like to have an option to -not- load some, or even all, plugins at startup, and let me open the world first then hit one button or something to load them before connecting. My client hangs up on me every time I open my Achaea worlds, because of the map plugin I use (Nitro's map that grabs the actual IRE maps that nexus and the flash client use). It hangs up because of the plugin, because of how it caches the maps, so it'd be nice to tell it not to load on opening the world. It's a bit annoying to try and open all three of my Achaea worlds to copy triggers when each one hangs up the client XD I like the map too much to give it up though.

Maybe there could be an option for each plugin on the list that flags it for not loading right away, and then a new button added in somewhere up top (or a new command-line script?) that loads all those flagged plugins?
[Go to top] top

Posted by WillFa   USA  (517 posts)  [Biography] bio
Date Sat 17 Jul 2010 07:21 PM (UTC)  quote  ]

Amended on Sat 17 Jul 2010 07:22 PM (UTC) by WillFa

Message
Even if plugin A specifies a font and output, those parameters aren't removed from the world file's attributes. Plugins are still plugins, and not required libraries, right? Firefox can run and function if AdBlock's not loaded... It's not like Adblock becomes a required DLL...

I don't think there's anything that a plugin can do that will require you to close the world and reopen it fresh when it is installed. They can be installed at any point in the session. If you're playing for an hour, and then get plugin A, you don't have to close and reopen the world... the font just changes. You may need to click the reinstall button for plugin B, but plugin A is not a core dependency. Even an ATCP/Telnet 102 plugin may require you to disconnect and reconnect, at most; not destroy the MDI window.


And I won't argue the principle about putting user preferences (the font) into a plugin - a modular piece of code intended for easy distribution.

I'd posit that the one fringe case... "a plugin may change the font and cause a flicker" is not enough to have a custom error handling routine that overrides the user's preference that errors get Noted to the world window.

So, I'm not saying this design is wrong. I'm just saying that it is counter to the rest of the plugin and general UI experience.
[Go to top] top

Posted by Nick Gammon   Australia  (18,800 posts)  [Biography] bio   Forum Administrator
Date Sat 17 Jul 2010 08:52 AM (UTC)  quote  ]
Message
Probably a deeper question is, when is "everything set up"?

On the one hand, you could say the world file should be loaded first so that plugins know things like the world file font, on the other hand you might argue that plugins are setting up the world parameters, and that the "everything is set up" once the plugins are loaded.

Imagine for a moment that Plugin A changes the world font. Then plugin B makes a decision based on what the font size is. The overall result will change depending on whether Plugin A or Plugin B is loaded first. And who is to say which should be first. Alphabetic order?

In fact I think what happens is that loading the world is like this:


  • Load main world file
  • Load plugins
  • Create output window based on what is now the established font, font size, width etc.


Thus a plugin loaded during startup can't write to the output window because it doesn't exist yet.

You may argue that you don't like that design, but it isn't necessarily "wrong", and an alternative design may have other flaws.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Twisol   USA  (2,230 posts)  [Biography] bio
Date Sat 17 Jul 2010 06:21 AM (UTC)  quote  ]
Message
Remind me again why plugins are just not loaded until everything's set up? Was it because it's done as soon as each <plugin> tag is read from the XML file?

(I think I just answered my own question there...)

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Nick Gammon   Australia  (18,800 posts)  [Biography] bio   Forum Administrator
Date Sat 17 Jul 2010 06:11 AM (UTC)  quote  ]

Amended on Sat 17 Jul 2010 06:12 AM (UTC) by Nick Gammon

Message
Well here's the problem. The loading sequence is such that IIRC plugins are loaded early on - certainly into a world document, but before the document is fully established. There is a point in world creation where the output font, font size, window size, wrap column etc. are established (that is, they are read from the world file). Before that it isn't possible to do notes to the output window.

This is why when loading plugins, if they do a note as part of the install process you won't see it. However if you reload the plugin later on, you *do* see it.

So, an error during world loading (including plugin loading) rather than nicely being visible in the output window would totally disappear, possibly causing a lot of confusion.

Still, maybe errors could be batched up. ;)

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by WillFa   USA  (517 posts)  [Biography] bio
Date Sat 17 Jul 2010 05:56 AM (UTC)  quote  ]
Message
Twisol said:
Yes please! Totally unrelated to the topic...


True, but he did ask for other brilliant ideas. :)
[Go to top] top

Posted by Twisol   USA  (2,230 posts)  [Biography] bio
Date Sat 17 Jul 2010 05:51 AM (UTC)  quote  ]

Amended on Sat 17 Jul 2010 05:54 AM (UTC) by Twisol

Message
Yes please! Totally unrelated to the topic, but I really hate how a new notepad-ish window is opened every time something goes wrong with an XML import. Being able to note the XML errors would be great.

I think a case could be made for not opening the editor when a plugin fails to load, too. Normal users don't care about the plugin code, and us developers can just hit Edit (which is, after all, right there on the plugin dialog), open it ourselves, or more likely than not use the editor we already have open.


WillFa said:
Global plugins which might not have a world open.

AFAIK, global plugins are only loaded into a world, just like every other plugin. The only special thing is that they're automatically loaded into every world.

Nick Gammon said:
OK well spotted before I even announced it

Technically, you did, in the post detailing the non-GUI options MUSHclient supports. ;)

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by WillFa   USA  (517 posts)  [Biography] bio
Date Sat 17 Jul 2010 05:48 AM (UTC)  quote  ]
Message
It happens when you load a plugin with a typo in it (leave out a paren somewhere)

[Go to top] top

Posted by Nick Gammon   Australia  (18,800 posts)  [Biography] bio   Forum Administrator
Date Sat 17 Jul 2010 05:44 AM (UTC)  quote  ]

Amended on Sat 17 Jul 2010 05:45 AM (UTC) by Nick Gammon

Message
It does what?

You mean when loading plugins? Or pasting triggers? Or something else?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by WillFa   USA  (517 posts)  [Biography] bio
Date Sat 17 Jul 2010 05:42 AM (UTC)  quote  ]
Message
Oooh!

Could we have XML Import warning go to the world like other scripting errors too?

Basically, make the window just go away unless it's actually needed for the Global plugins which might not have a world open. It's a little annoying to have an XML Import window pop up and cover the error and the whole hitting enter thing in annoyance to clear away a messagebox to move this XML Import window ends up being "edit" despite it just being labeled "OK" so it reopens the file which is usually already open and the cursor sitting at the lines in error, oops not anymore since the file's newly opened dang it, cursor's back at the top of the file and arghhhh. *stops and takes a breath*

Okay, it's very annoying. :)
[Go to top] top

Posted by Nick Gammon   Australia  (18,800 posts)  [Biography] bio   Forum Administrator
Date Sat 17 Jul 2010 05:34 AM (UTC)  quote  ]
Message
Oh, and now is the time to speak if you seriously want to have other defaults (not just because they may vaguely sound good, but because you can make out a good case for it).

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (18,800 posts)  [Biography] bio   Forum Administrator
Date Sat 17 Jul 2010 05:32 AM (UTC)  quote  ]
Message
OK well spotted before I even announced it, and I changed as you suggested Twisol.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Twisol   USA  (2,230 posts)  [Biography] bio
Date Sat 17 Jul 2010 04:52 AM (UTC)  quote  ]
Message
I prefer to always have aliases -not- keep evaluating, but triggers -always- keep evaluating, but I can't really set that default separately with the current setup. Same with case sensitivity (aliases never, triggers always). Any chance it could be improved to allow this?

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Nick Gammon   Australia  (18,800 posts)  [Biography] bio   Forum Administrator
Date Sat 17 Jul 2010 04:43 AM (UTC)  quote  ]
Message
I don't like to release two versions within a day of each other unless some major bug is found. Maybe someone else will have another brilliant idea. :)

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


3,764 views.

This is page 1, subject is 2 pages long: 1 2  [Next page]

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]