|
TTDPatch Site |
Action2
Action 2Defining graphics set IDs.Action 2 is used to group sets of sprites from the previous action 1 together to form a single unit for a single type of cargo. In general, the data looks as follows: <Sprite-number> * <Length> 02 <feature> <set-id> <num-ent1> <num-ent2> <entries...>
Sprite-numberThis is just the number you are at.LengthCount the number of bytes in this action.featureThis sets the type of feature that you wish to change. Set it to:00 for trains 01 for road vehicles 02 for ships 03 for planes 04 for stations 05 for canals/rivers 06 for bridges 07 for houses 09 for industry tiles 0A for industries 0B for cargos 0F for objects 10 for rail types (since OpenTTD r19056) set-idThis defines the ID of the current action 2. This ID will later be referred to by action 3, or a variational/random action 2.You can reuse action 2 IDs, and there's no restriction on the order in which they are defined. num-ent1, num-ent2Each feature has two different graphics ranges, but their exact meaning differs from feature to feature. For example, for vehicles, the first set is used while moving, and the second while loading/unloading in a station.entriesThis is the list of action 1 sets to use, first num-ent1 for the first range, then num-ent2 entries for the second range.Do not skip an action 2 using action 9 (unless it skips the whole file). Action 2 must not be skipped by action 9 or the patch will most likely crash. Skip or modify action 3 instead. Skipping an action 2 with an action 7 has no effect. Some features and/or num-ent1 values have a special format. These are detailed on the pages listed below.
Something to go here Created by: system last modification: Thursday 26 of August, 2010 [18:59:46 UTC] by mb |
Login Search
|