Changes between Initial Version and Version 1 of XML.Actor


Ignore:
Timestamp:
Feb 23, 2008, 4:18:59 AM (16 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • XML.Actor

    v1 v1  
     1An actor is the 'physical' aspect of an entity.  Each entity that has a 'physical' appearance in the game requires an actor file.  The entire actor is wrapped in <object></object>.
     2
     3The properties of Actors can be randomised for visual variety by defining them as ''variants'' under certain property ''groups'' with a defining ''name'' and certain ''frequency'' of occurrence. For more information, read this document: http://www.wildfiregames.com/users/code/wiki/index.php?title=Actors
     4
     5Conditional variant groups aren't yet implemented at time of writing, but Philip has a plan for linking the variant strings to global and entity events, detailed here: http://www.wildfiregames.com/forum/index.php?showtopic=1799#
     6
     7For simplicity, this document will simply alphabetically list the actor properties in a flat format, all of which can be combined in variants.
     8
     9'''Example:'''
     10
     11{{{
     12        <CastShadow />
     13       
     14        <Colour>248 132 86</Colour>
     15       
     16        <Animations>
     17                <Animation>
     18                        <Name>Idle</Name>
     19                        <File>biped/inf_idle_spear.psa</File>
     20                        <Speed>200</Speed>
     21                </Animation>
     22        </Animations>
     23       
     24        <Material>player_trans.xml</Material>
     25       
     26        <Mesh>skeletal/m_pants_c.pmd</Mesh>
     27       
     28        <Props>
     29                <Prop>
     30                        <AttachPoint>Head</AttachPoint>
     31                        <Actor>props/units/heads/head_celt.xml</Actor>
     32                </Prop>
     33        </Props>
     34       
     35        <Texture>skeletal/celt_isw_b_01.dds</Texture>
     36}}}
     37
     38= !CastShadow =
     39''BRIEF DESCRIPTION ::'' If an actor has this property, it casts a dynamic shadow generated by the rendering engine.
     40
     41= Colour =
     42''BRIEF DESCRIPTION ::'' The RGB colour used for this actor's transparency. It can be used to vary shade within a texture (for example, use the same texture for a horse, but have different variants with chestnut, black, chocolate, etc, coats.
     43
     44= Animations =
     45''BRIEF DESCRIPTION ::'' This contains the multiple animations that this actor uses when performing linked actions.
     46
     47'''object.animations.animation''' is the content of '''object.animations'''. '''actor.animations.animation''' has no content.
     48
     49== Animation ==
     50''BRIEF DESCRIPTION ::'' An animation for an action.
     51
     52=== Name ===
     53''BRIEF DESCRIPTION ::'' The name of this animation.
     54
     55The animation is used when the entity performs this event. Multiple animations can be listed with the same name; in which case, an animation is chosen at random when needed.
     56
     57Here are some names of common animations:
     58
     59 * Attack = Default attack animation.
     60 * Build = Animation used when constructing a building.
     61 * Chop = Animation used when cutting down a tree.
     62 * Death = Default death animation.
     63 * Idle = Default idle animation.
     64 * Ready = Idle animation where actor has noticed an opponent.
     65 * Run = Movement animation when moving at maximum speed.
     66 * Special = Custom animation.
     67 * Pack = Animation of packing or unpacking (if played in forward or reverse).
     68 * Walk = Movement animation when moving at low speed.
     69
     70=== File ===
     71''BRIEF DESCRIPTION ::'' Path under actors/ to the .psa animation file that contains this animation's frame data.
     72
     73=== Speed ===
     74''BRIEF DESCRIPTION ::'' The rate at which the animation is played back.
     75
     76=== Event ===
     77''BRIEF DESCRIPTION ::'' Position in the animation at which an "event" is fired.
     78
     79For example, with a value of "0.5" for an archer's attack animation, an arrow projectile (the prop at the archer's "projectile" attachpoint) is fired towards the target when the archer is halfway through his animation.
     80
     81=== Load ===
     82''BRIEF DESCRIPTION ::'' Position in the animation at which a projectile to be fired is spawned into the actor's "loaded-rhand" attachment point.
     83
     84For example, with a value of "0.16" for an archer's attack animation, an arrow projectile (the prop at the archer's "loaded-r_hand" attachpoint) appears in the archer's hand at the point in the animation where he takes one from his quiver, at 16% of the way through the animation.
     85
     86= Material =
     87''BRIEF DESCRIPTION ::'' Name and location of the material.
     88
     89The material of an actor specifies material attributes the actor has when rendered.  This points to the material file that the actor will use.  These could include: alpha, refection, specular, ambient color, emissive.
     90
     91Common materials are player_trans (for actors that belong to players and therefore need player colour) and basic_trans (for gaia objects).
     92
     93= Mesh =
     94''BRIEF DESCRIPTION ::'' Name and location of the mesh/model.
     95
     96This points to the specific location and name of the mesh used for this actor.  There is only one mesh per actor; if more are needed - use a prop.
     97
     98Meshes are exported from 3dsmax R5 and R6 and their file extension is *.pmd (Pyrogenesis Model Data).
     99
     100This information is specified as the content of the '''object.model''' element.
     101
     102= Props =
     103''BRIEF DESCRIPTION ::'' This contains the multiple actors (props) that are connected at sockets/prop-points/attach-points of this actor.
     104
     105A prop is simply another actor that is located at a prop point.  The type, number, orientation, and locations of a prop point are specified in the *.pmd mesh file.  Only one prop per prop point is allowed.  There may be multiple props for the actors.
     106
     107'''object.props.prop''' is the content of '''object.props'''. '''actor.props.prop''' has no content.
     108
     109== Prop ==
     110''BRIEF DESCRIPTION ::'' A prop attached to this actor.
     111
     112=== !AttachPoint ===
     113''BRIEF DESCRIPTION ::'' The name of the attachment point (defined in the mesh data) where this prop will be connected.
     114
     115Here are some names of common !AttachPoints:
     116
     117 * Back = Object on the actor's back.
     118 * CandyA = Prop point for eyecandy object.
     119 * CandyB = Prop point for eyecandy object.
     120 * CandyC = Prop point for eyecandy object.
     121 * CandyD = Prop point for eyecandy object.
     122 * CandyE = Prop point for eyecandy object.
     123 * Destruct = Rubble from destruction.
     124 * Head = Object on head.
     125 * Head_Extra = An extra prop attached to the head.
     126 * Hip = Object on hip.
     127 * L_Hand = Object in left hand.
     128 * R_Hand = Object in right hand.
     129 * Loaded-R_Hand = Object that appears in the actor's right hand when the "Load" stage of an animation is fired.
     130 * Mast = The mast of a ship.
     131 * Projectile = Projectile fired by the actor during the "Event" stage of an animation.
     132 * Props_Main = The main combination of props used to decorate a building.
     133 * Props_Extra = An additional set of building props.
     134 * Props_Stone = A set of stone building props.
     135 * Props_Donkey = A donkey attached to a mill building.
     136 * Props_Hay = A bale of hay attached to a mill building.
     137 * Rider = The rider of a cavalry mount.
     138 * Snow = Prop for applying a snow texture.
     139 * Torso = Object on chest.
     140 * Tree = The leafy top part attached to a tree's trunk.
     141
     142=== Actor ===
     143''BRIEF DESCRIPTION ::'' Path under actors/ to the .xml actor that defines this prop.
     144
     145= Texture =
     146''BRIEF DESCRIPTION ::'' Name and location of the texture.
     147
     148This points to the specific location and name of the texture used for this actor.  There is only one texture per actor; if more are needed - use a prop.  Textures are saved as dds files (dxt1). 
     149
     150Alternate textures for the seasons may be specified as an attribute of the '''name.texture''' element.  The default texture is 'Summer'.  The other attribute options are:
     151
     152 * Autumn
     153 * Winter
     154 * Spring
     155
     156If unspecified it will use the default that is specified as the content of the '''object.texture''' element.