Changes between Version 2 and Version 3 of Actors


Ignore:
Timestamp:
Jun 26, 2012, 6:43:13 AM (12 years ago)
Author:
historic_bruno
Comment:

Updated example

Legend:

Unmodified
Added
Removed
Modified
  • Actors

    v2 v3  
    22
    33Actor data is stored in XML files, which can be edited by hand, but usually the [wiki:Actor_Editor Actor Editor] is used instead. Actor XML files are located in subdirectories of `art\actors\` for a given mod (see [wiki:Mod_Layout mod layout]).
    4 
    5 == Randomness ==
    6 
    7 To allow some visual variety between otherwise-identical units, actors can contain 'random' elements. (They are not strictly random - a designer can choose a particular variation of the actor.)
    8 
    9 To achieve this, the actor is split into a set of ''groups'', each of which contains several ''variants''. '''TODO: Example with screenshot'''
    10 
    11 The ''frequency'' of each variant controls how likely it is to be chosen. If a variant's frequency is set to 0, it will never be chosen by the randomiser. A zero-frequency variant can still be selected by the game - for example, actors could have 'Summer' and 'Winter' variants, with the default always being Summer, and then the game could change the whole world to Winter.
    124
    135== Terminology ==
     
    1810 * ''Variation'': a set of choices, one from each group, making up a particular version of the actor.
    1911 * ''Selection'': a text string that usually matches a variant name; the chosen variation will use variants which match one of the selections, where possible.
     12
     13== Randomness ==
     14
     15To allow some visual variety between otherwise-identical units, actors can contain 'random' elements. (They are not strictly random - a designer can choose a particular variation of the actor.)
     16
     17To achieve this, the actor is split into a set of ''groups'', each of which contains several ''variants''.
     18
     19The ''frequency'' of each variant controls how likely it is to be chosen. If a variant's frequency is set to 0, it will never be chosen by the randomiser. A zero-frequency variant can still be selected by the game - for example, actors could have 'Summer' and 'Winter' variants, with the default always being Summer, and then the game could change the whole world to Winter.
     20
     21For example here is how an actor might appear in actor editor:[[BR]]
     22
     23[[Image(actoreditor.png, 50%)]]
     24
     25This female citizen has 3 groups: one with a single variant called "Base", a second with variants for model and texture, and a third group for prop variants.
     26
     27 * In the first group, the "Base" variant will always be chosen as there is no other variant and its frequency is 1. This variant defines props and animations common to all the other groups. Note that a prop is also an actor and may be randomized in its own file, as in this case. We only need to reference a single "dudette_head" prop actor which can vary in texture, shape, and other qualities.
     28 * The second group contains different body models and textures. This flexibility means we can have a single mesh with altered appearance due to random texture variants.
     29 * The last group contains prop variants which differ based on the actor's current behavior. If the female is idle, her hands will be empty; if she's woodcutting, she will have an axe in her left hand, etc. She will be idle by default, since that's the only variant in this group with a non-zero frequency. The game's logic will select other variants when appropriate.
    2030
    2131== Actor XML format ==