Mason.xml question
  • Hello all-

    I had a few questions about the mason.xml file.

    What is the visibility="public"/"private" flag used for? For instance, bounding boxes and mass are often public, but I see other fields that are private.

    What is maxmass?

    How are bounding boxes used? Why do many objects not have them?

    How are op_definition objects used?

    How are scripts used? I see that you can bind an object to a script in the rulesets/mason directory tree, but when are scripts invoked?

    Thanks!

    -Thomas
  • Sorry for the delay. I sometimes go for a while without really getting a chance to read the forums.

    public/private for attribute visibility is not yet implemented in cyphesis. It is anticipated that private attributes will not be visible to players looking at entities in the world.

    maxmass is used on things that grow to define the largest they can possibly get, and this limit their size.

    Bounding boxes are used both for visibility calculations and for collision detection. This is something of a hack, and in the long term they will probably be primarily used for visibility, though they may also be used for very rough collision detection.

    At the moment there is a rough mismatch of boxes around entities, some of which fully enclose the shape of the entity, others are trimmed down for example to the shape of the trunk of the tree so it can be used for collisions.

    Smaller objects don't really need bounding boxes as they are not typically necessary to check for collisions, and they can be assumed to be a default minimum size for the purpose of visibility calculations.

    op_definition objects are templates for operations which are event messages passed around inside the server, and across the network to clients. The most common reason for these being defined in the XML file is so they can be used to pass messages to tools to indicate the type of activity the tool is being used for.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID