[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]  Suggestions
. . -> [Subject]  Quick World Address Change

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Quick World Address Change

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


Posted by Jcet   USA  (25 posts)  [Biography] bio
Date Tue 06 Jan 2004 04:59 AM (UTC)  quote  ]
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!
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Reply #1 on Tue 06 Jan 2004 07:53 PM (UTC)  quote  ]
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.
[Go to top] top

Posted by Nick Gammon   Australia  (18,800 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Tue 06 Jan 2004 08:17 PM (UTC)  quote  ]
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
[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.


1,317 views.

[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]