Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Suggestions ➜ Viewing triggers from include files

Viewing triggers from include files

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Poromenos   Greece  (1,037 posts)  Bio
Date Wed 27 Aug 2003 11:28 AM (UTC)
Message
It would be nice if the user could just view a trigger/alias/timer/whatever that was included from a world file. That way we could see custom colors, etc. You could make it so that if a trigger was included from a world file, the OK button would be disabled.

Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it!
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #1 on Thu 28 Aug 2003 06:40 AM (UTC)
Message
Added as suggestion #490.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Shadowfyr   USA  (1,791 posts)  Bio
Date Reply #2 on Thu 28 Aug 2003 07:36 PM (UTC)
Message
Umm. I assume this means plugins?? lol

Just a suggestions, but is there some way to use a tree style list in combo with the existing layout that shows all the bits and pieces? Once you get a large number of triggers and aliases mixed in, things get hard to track down. It occures to me that something like the following would be more organized:
[code]
+-Ungrouped triggers
| |
| ...
|
+-Groups (Main)
| |
| +-First world file group
| | |
| | First trigger
| | Second trigger
| | ...
| |
| ...
|
+-Name of First Plugin
| |
| +-Ungrouped
| | |
| | ...
| |
| +-First of plugin's groups
| | |
| | ...
| |
| ...
|
...[/code]
This would make looking for something a whole heck of a lot easier imho, especially when like me you have 143 triggers (most of them setting custom colors) and 146 aliases. :( Trying to find anything in this mess when I need to change something is a nightmare and it would only get worse when I could suddenly see a mess of triggers from any include files or plugins. Poromenos' idea is definitely a good one, but as the lists for these things currently exist, it would only complicate things more.
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #3 on Thu 28 Aug 2003 09:02 PM (UTC)
Message
Actually no - he means an include file. You can organise your triggers/aliases/timers, however not in plugins, by using include files.

Something like this (add to the world.mcl file) ...

<include name="mytriggers.xml" />


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Poromenos   Greece  (1,037 posts)  Bio
Date Reply #4 on Thu 28 Aug 2003 10:11 PM (UTC)
Message
Yes, I do mean includes, but I have to say that Shadowfyr's idea sounds great too :p Or, at least, a "plugin viewer/editor" would be nice... Hmm, maybe i'll write one in VB!

Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it!
Top

Posted by Poromenos   Greece  (1,037 posts)  Bio
Date Reply #5 on Thu 28 Aug 2003 10:19 PM (UTC)
Message
Actually, if it could be implemented, shadowfyr's idea is great... The way it is now, you have to paste triggers in mushclient and then copy them to plugins if you want to edit them (which is all i do, i create an empty plugin file and edit it in notepad). It would be really convenient, and you could write your plugins directly there, just select "New Plugin", and you could write triggers/aliases/timers/scripts there...
By the way, if you decide to implement it, i think that the preferred format would be:

World
+ Triggers
+ Aliases
+ Timers
+ Scripts

Plugin 1
+ Triggers
+ Aliases
+ Timers
+ Scripts

etc, i.e. top level would be the world or plugin, second level would be triggers/aliases, etc, and so on...

Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it!
Top

Posted by Ked   Russia  (524 posts)  Bio
Date Reply #6 on Fri 29 Aug 2003 03:59 AM (UTC)
Message
What exactly would I put in an include file? Would it just be something like:


<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE muclient >

<muclient>
<triggers>
...
</triggers>
<aliases>
...
</aliases>
<script>
...
</script>
</muclient>


or do I need to add any extra tags (like <plugin> in plugins)?

I also think that Shadowfyr's idea is grand, since although I don't understand how you can get lost in 143 triggers, but when:


Triggers:   421 (0 matched)
              0.000000 seconds
Aliases:    209 (0 used)


getting lost is all you ever do. :P

And oh - when you try to reply to this thread it sends you to the main forum instead, but when you hit the 'Back' button from there, you end up on the page with the reply form. Weird...
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #7 on Fri 29 Aug 2003 05:44 AM (UTC)

Amended on Wed 24 Sep 2003 02:25 AM (UTC) by Nick Gammon

Message
Replying seems to work for me. :)

If you go into the trigger list, and select one trigger and click "save" you get a file like this:


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE muclient>
<!-- Saved on Thursday, August 28, 2003, 4:37 PM -->
<!-- MuClient version 3.42 -->
<!-- Written by Nick Gammon  -->
<!-- Home Page: http://www.muclient.com/ -->
<muclient>

<!-- triggers -->

<triggers
   muclient_version="3.42"
   world_file_version="15"
   date_saved="2003-08-28 16:37:46"
  >
  <trigger
   custom_colour="2"
   enabled="y"
   match="blah"
   sequence="100"
  >
  </trigger>
</triggers>
</muclient>


So, that is the general format.

The minimal stuff would be:


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE muclient>
<muclient>

<!-- your triggers and aliases here -->

</muclient>



- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Shadowfyr   USA  (1,791 posts)  Bio
Date Reply #8 on Fri 29 Aug 2003 08:29 PM (UTC)
Message
Hmm.. I wasn't exactly suggesting a complete redesign on the way things are listed, though having them all buried under different options is a bit less convenient. I just wanted to see the existing system better organized. The reason, Ked, is that I have any number of triggers that match on multiple things and they are often mixed in among ones that are not even related. Unless you shift them around by intentionally giving them unique sequence numbers, currently the one setting they have (groups) that 'should' logically provide some organization doesn't. When I do end up having to change or add to one, I can't just scroll through the like real fast and find it. Due to the length of some of the trigger texts I often have to edit 8-10 of them to find the one I am looking for.

In any case, I am used to working with it the way it is, but I wouldn't mind seeing something significantly more friendly. ;)

With respect to your idea Poromennos, for a purly external editor that sounds like a real nice idea. If you could load the world file and have it automatically load in all includes, installed plugins, etc, then organize the whole mess that way and let you easilly jump around and edit stuff, that would be very nice. Though the most complicated issue is making it highlight code from the various supported script types correctly.
Top

Posted by Magnum   Canada  (580 posts)  Bio
Date Reply #9 on Thu 04 Sep 2003 10:41 PM (UTC)
Message
This subject is something I brought up way back when I first suggested plugins, although I was stumbling for what to name "plugins" at the time.

As an alternative, I offered using a drop-down list box, where one entry would be "World", and there would be addition entries for each plugin. You could modify the alias/trigger/timer lists according to which selection you had made in the dropdown box. (Simply another way of sharing the editing interface for the world, and for plugins).

Personally, I've always had a minor pet peave against windows which contain list windows within them, where the window size is locked. I would like to expand the parent window so I can show more columns, or wider columns, etc.

At some point, I think it would be nice if Nick re-wrote the configuration window for world settings. In the process, he could make the interface usable by plugins as well.

Also, I still feel some world details could be duplicated in plugins (allowing for independant settings for the plugins). For example "Echo my Input In: [Colour]" and "Note Colour: [Colour]".

In past discussions, Nick has said this is more difficult to implement than it might appear on the surface, due to the nature by which the data is stored internally. (It's not simply a GUI re-write). Ah well, it's still on my wish list, even if it's down near the bottom. ;)

Get my plugins here: http://www.magnumsworld.com/muds/

Constantly proving I don't know what I am doing...
Magnum.
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #10 on Sun 07 Sep 2003 11:43 PM (UTC)
Message
Added as suggestion #493.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
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.


23,938 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.