Trait order in counters

I have noticed many messages reporting bugs and module problems that all stem from the same basic misunderstanding about the way that counter traits work.
The Three most important things to remember when setting up traits in a counter are
LOCATION, LOCATION and LOCATION!
The order of traits is VITALLY important. This needs to be engraved on the forehead of every budding VASSAL module designer.
Each trait is only affected by other traits that are BELOW it in the expanded list of traits after taking prototypes into account.
If you want Text Labels to Rotate, then the Text Label trait must be ABOVE the Rotation trait. If you don't want your Text Labels to rotate, then they must be BELOW the Rotation trait. You need to think about each trait, how it affects the counter and whether it should affect, or be affected by other traits that affect the counter.
This is a FEATURE, not a BUG. You can't just blast in the traits you want in any order and expect them to work. You can't move a trait from one prototype to another and expect it work in exactly the same way (though it may). You need to take into account the order of all traits in all prototypes after they have all been expanded.
Cheers,
Brent.
____________________________________________________________
Brent Easton
Analyst/Programmer
University of Western Sydney
Email: b.easton@uws.edu.au
_______________________________________________
Messages mailing list
Messages@forums.vassalengine.org
http://forums.vassalengine.org/mailman/ ... engine.org
Post generated using Mail2Forum (http://www.mail2forum.com)
The Three most important things to remember when setting up traits in a counter are
LOCATION, LOCATION and LOCATION!
The order of traits is VITALLY important. This needs to be engraved on the forehead of every budding VASSAL module designer.
Each trait is only affected by other traits that are BELOW it in the expanded list of traits after taking prototypes into account.
If you want Text Labels to Rotate, then the Text Label trait must be ABOVE the Rotation trait. If you don't want your Text Labels to rotate, then they must be BELOW the Rotation trait. You need to think about each trait, how it affects the counter and whether it should affect, or be affected by other traits that affect the counter.
This is a FEATURE, not a BUG. You can't just blast in the traits you want in any order and expect them to work. You can't move a trait from one prototype to another and expect it work in exactly the same way (though it may). You need to take into account the order of all traits in all prototypes after they have all been expanded.
Cheers,
Brent.
____________________________________________________________
Brent Easton
Analyst/Programmer
University of Western Sydney
Email: b.easton@uws.edu.au
_______________________________________________
Messages mailing list
Messages@forums.vassalengine.org
http://forums.vassalengine.org/mailman/ ... engine.org
Post generated using Mail2Forum (http://www.mail2forum.com)