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

Gammon Forum

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

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Suggestions
. . -> [Subject]  A few suggestions
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

A few suggestions

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


Posted by Tsunami   USA  (204 posts)  [Biography] bio
Date Sat 16 Oct 2004 07:48 PM (UTC)
Message
just thought i'd put some of my suggestions all together.

First, I agree with Mrs. Teacup about the frames, that would certainly improve the user interface.
I would also consider a way to link plugins, so that different plugins could share variables, aliases, triggers, etc... For example, I have several plugins that all require a prompt trigger, and for efficiency, although not ease of use, I have combined them into one large plugin with only 1 prompt trigger. It would be nice to be able to keep them separate.
I was also wondering Nick, why you decided not to create a MC specific scripting language, as many other clients have? This would appear to be faster for parsing.
In addition, MC does not let you create an alias with a duplicate match, but it allows you paste one in. Perhaps you could find a way to make this optional? For instance, if I have 100 aliases I want to paste into an existing world, but 50 are duplicates, I simply don't know which ones; it would be nice to paste them, and then not have to go through and delete the 50 duplicates. Another possible solution is to make the world preferences box non-modal, so that I could open the preferences boxes for two worlds side by side, and compare aliases. Thanks.
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Reply #1 on Sat 16 Oct 2004 08:07 PM (UTC)
Message
You can currently do the plugin thing.
Use callplugin, getpluginvariable, and the like.
Create a master plugin, which calls the secondary modules with the info.

He uses standard scripting languages because theyre standard and extensible. You can use them to do anything they can do (such as com objects and such), and they don't require people to learn some new pseudolanguage.

I think the alias pasting thing is a bug. However, you can give them labels and they will collide and not be pasted (because of duplicate labels).

If you need to compare worlds, open them in a text editor.
Or, open two instances of Mushclient and do it that way.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
[Go to top] top

Posted by Nick Gammon   Australia  (21,406 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Sat 16 Oct 2004 09:37 PM (UTC)
Message
Yes indeed. Plugins *can* communicate with each other with CallPlugin, or more recently people have been sending things from one plugin to another by simply making one plugin send an alias that another plugin catches.

As for the scripting language, I *was* thinking of that a while back, but now with things like Jscript, VBscript, Pythin, Perl, TCL and so on, it seems that most "sorts" of script language you might want are catered for, and will continue to be updated and have bugs fixed without any effort on my part. I don't know if the parsing would necessarily be faster, by now language like VBscript or JScript should have their parsers fairly well optimised.

If you want speed, put your scripts into a script file, as MUSHclient calls the script parsing engine once (when the file is loaded or modified) rather than for each script call. Using "send to script" is more convenient, but the scripts have to be parsed each time.

- Nick Gammon

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

Posted by Poromenos   Greece  (1,037 posts)  [Biography] bio
Date Reply #3 on Sat 16 Oct 2004 11:59 PM (UTC)

Amended on Sun 17 Oct 2004 12:02 AM (UTC) by Poromenos

Message
Quote:

MUSHclient calls the script parsing engine once (when the file is loaded or modified) rather than for each script call.

Same goes for plugins, right?

Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it!
[Go to top] top

Posted by Poromenos   Greece  (1,037 posts)  [Biography] bio
Date Reply #4 on Sun 17 Oct 2004 12:01 AM (UTC)
Message
By the way, how can one use include files for his plugin? Which one is possible, using an XML include so the MC parser includes it, using a language "include" statement so that the language does, or both?

Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it!
[Go to top] top

Posted by Nick Gammon   Australia  (21,406 posts)  [Biography] bio   Forum Administrator
Date Reply #5 on Sun 17 Oct 2004 12:37 AM (UTC)
Message
Yes, the same goes for plugins (the script parsing).

Yes, you can have include files inside plugins, the plugin wizard puts one there for you if you want "standard includes" - you could add others.

- Nick Gammon

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

Posted by Jlzink   USA  (15 posts)  [Biography] bio
Date Reply #6 on Sun 17 Oct 2004 04:19 AM (UTC)

Amended on Sun 17 Oct 2004 04:29 AM (UTC) by Jlzink

Message
I for one would like to see PHP support for MC. Being an avid php coder, and using mushclient for making NPCs that handle stuff that are not currently handled by normal game features in the online graphical mmpog I play, PHP support would greatly add to my bots capabilities. It would allow me to more easily manipulate data and store things to my mysql DB that is hosted on my webhost's server for later display on a website. Thus if the bot was offline, people could still view their stats without my computer having to be left plugged into my cable modem all the time since I am planning on doing away with my desktop since it is broken and plan on going with a laptop....anyways, that is my 2 cents for what it is worth.
[Go to top] top

Posted by Nick Gammon   Australia  (21,406 posts)  [Biography] bio   Forum Administrator
Date Reply #7 on Mon 18 Oct 2004 06:23 AM (UTC)
Message
I'm not quite sure why you need PHP to do that. Jscript has a similar C-like syntax. There are examples on the site here under the plugins area that show opening a datatbase from a script, you could use a variation on that to store information about your bots.

- Nick Gammon

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

Posted by Tsunami   USA  (204 posts)  [Biography] bio
Date Reply #8 on Thu 21 Oct 2004 04:15 PM (UTC)
Message
It would also be nice to see more support for groups, ie GetVariablesInGroup "group", etc...
[Go to top] top

Posted by Jlzink   USA  (15 posts)  [Biography] bio
Date Reply #9 on Thu 21 Oct 2004 06:33 PM (UTC)
Message
JavaScript is horrid. I refuse to code anything with it, but on the flip side, I love coding in Java. Plus JavaScript's MySQL functions aren't nearly as well organized as PHP's. Also PHP is much more versital then JavaScript could ever hope to be. Atleast that's my oppinion on all of it. Anyways, just an idea, either it's added or it isn't, no biggy, I'll still use MC cause I despise ZMud, MudMaster, and just about all other mud clients.
[Go to top] top

Posted by Poromenos   Greece  (1,037 posts)  [Biography] bio
Date Reply #10 on Thu 21 Oct 2004 09:02 PM (UTC)
Message
Would PHP be that hard to add? Isn't there already support for it as a scripting language, a la ActivePython and ActivePerl? It could be quite nifty.

Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it!
[Go to top] top

Posted by Nick Gammon   Australia  (21,406 posts)  [Biography] bio   Forum Administrator
Date Reply #11 on Thu 21 Oct 2004 10:00 PM (UTC)
Message
OK, I didn't realise PHP had an ActiveScript interface. That wouldn't be too hard to do, if it works. :)

For my reference:

http://au.php.net/manual/en/install.windows.activescript.php

Added as suggestion #534.

- 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.


6,190 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

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

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]