Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, 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.
Entire forum
➜ MUSHclient
➜ Announcements
➜ Version 3.85 no longer supports world files created prior to version 3.21
Version 3.85 no longer supports world files created prior to version 3.21
|
Postings by administrators only.
Refresh page
Posted by
| Nick Gammon
Australia (23,057 posts) Bio
Forum Administrator |
Date
| Tue 06 Mar 2007 04:31 AM (UTC) |
Message
| The MUSHclient XML file format has been around for about 5 years now. Version 3.21, released in May 2002, changed from saving world files (and other MUSHclient-related files such as trigger files, alias files etc.) from a proprietary "binary" format, to industry-standard XML format.
The advantage of the XML format is that it is readily readable, and easily extended, as options (for worlds, triggers, etc.) are simply a line that can be present or omitted, in most cases.
For example, a trigger looks like this:
<triggers>
<trigger
enabled="y"
match="You are hungry."
sequence="100"
>
<send>
get food bag
eat food
</send>
</trigger>
</triggers>
If you want to add another options (eg. the "keep evaluating" flag) you simply add another line, as in this example:
<triggers>
<trigger
enabled="y"
keep_evaluating="y"
match="You are hungry."
sequence="100"
>
<send>
get food bag
eat food
</send>
</trigger>
</triggers>
This is much easier than finding and tweaking some bit inside a binary file.
Also, without much effort you can make batch copies (eg. groups of triggers or variables) from one file to another, simply using a text editor.
The new XML format has had 5 years to "bed down" now, and certainly seems stable. Thus, from version 3.85 onwards we will discontinue support for the old binary world file format. This saves space in the executable code, and clutter in the source code.
If anyone is still using an old world file, created prior to version 3.21, they can still read it in, using any of the intermediate versions (3.21 to 3.84) and then re-save it, which will automatically convert it to XML format. |
- 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.
15,047 views.
Postings by administrators only.
Refresh page
top