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 ➜ Quick World Address Change

Quick World Address Change

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


Posted by Jcet   USA  (25 posts)  Bio
Date Tue 06 Jan 2004 04:59 AM (UTC)
Message
Here's my situation;

I build a MUD, and I constantly have to change the world's Address to connect to my local server or online server. That job gets quite tidieous.

So basically my suggestion is, Make the world Address input box a combo box, that has all previous Addresses used.

OR, simply have it so you may have multiple addresses per world. So that you may, perhaps right-click on a reference to the world(For example: The 1,2,3,4,5,6,7,8,9,10 buttons)
and select the address you wish to connect to.

Thank you for your time.

-Jcet

-Jcet
See no good, hear no good, be no good, kill all good!
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #1 on Tue 06 Jan 2004 07:53 PM (UTC)
Message
These can easily be changed via the SetOption (for port) and SetAlphaOption (for host) commands. You can just make an alias to switch between online and offline versions of the info.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #2 on Tue 06 Jan 2004 08:17 PM (UTC)
Message
Just what I was going to say. Make an alias like this:


<aliases>
  <alias
   match="site1"
   enabled="y"
   send_to="12"
   sequence="100"
  >
  <send>SetAlphaOption "site", "127.0.0.1"
SetOption "port", 5000</send>
  </alias>
</aliases>


That will change the world address (site) and port number (port). Then close and re-open the world.

Another approach is to have two different world files, but use the "include" directive to share things like triggers etc. (or use plugins).

You could make a macro key call the alias, so that F2 might be "site1" (as given above), and have a second alias "site2" that is the other site, and make F3 send "site2". Then changing world addresses is a single keystroke. That is less work than bringing up the world configuration, using a combo-box etc.

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


10,889 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.