XML file format attribute names

Posted by Nick Gammon on Fri 17 May 2002 11:53 PM — 2 posts, 10,402 views.

Australia Forum Administrator #0
If you are playing with version 3.21 of MUSHclient, that writes world files in XML format, you may be wondering what the exact names of all the options are. For the <world> options (ie. the general options, not related to triggers, aliases and so on) the names are exactly the same as the ones you can find from either using world.GetOptionList, or simply typing:


/world.debug "options"


Here is an example from one of my worlds, this is what I see when typing the above (in part):

                alternative_inverse = 0
          alt_arrow_recalls_partial = 0
              arrows_change_history = 1
                    arrow_keys_wrap = 0
              arrow_recalls_partial = 0
             autosay_exclude_macros = 0
          autosay_exclude_non_alpha = 0
                         auto_pause = 1
                        auto_repeat = 0
             auto_wrap_window_width = 0
    confirm_before_replacing_typing = 1
                   confirm_on_paste = 1
                    confirm_on_send = 1
                     connect_method = 3
        ctrl_n_goes_to_next_command = 0
    ctrl_p_goes_to_previous_command = 0
       ctrl_z_goes_to_end_of_buffer = 0
        custom_16_is_default_colour = 0
                      detect_pueblo = 1


And, here is the equivalent part of the world file:


   arrows_change_history="y"
   auto_pause="y"
   confirm_before_replacing_typing="y"
   confirm_on_paste="y"
   confirm_on_send="y"
   connect_method="3"
   detect_pueblo="y"


Notice how the names are the same? The difference is that the "world.debug" output shows all options, whereas only the ones that are set (true, or checked), are written to the world file. Thus, you may be wondering what name to use to set (say) auto-repeat. Using the output from world.debug "options", you can have a pretty good idea.
Australia Forum Administrator #1
The meanings of all the world file general attributes are now described on MUSHclient world file attributes.