Action2

From GRFSpecs
Revision as of 19:18, 8 May 2004 by eis_os (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Define graphics set IDs

Action 2

Defining graphics set IDs.

-=Introduction=-

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.

-=Format=-

In general, the data looks as follows:

 -+<Sprite-number> * <Length> 02 <feature> <set-id> <num-ent> <data>+-

||Byte|Description

<Sprite-number>|A sequential sprite number

<length>|The total number of bytes used in this action

02|Defines action 02

<feature>|For what type of vehicle/station should the following sprites be used?

<set-id>|What set number this action 2 defines

<num-ent>|Number of entries, depends on feature

<data>|Data of the definition, depends on the feature||

-=Filling in the terms=-

Sprite-number

This is just the number you are at.

Length

Count the number of bytes in this action.

feature

This 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

-=Notes=-

Do not skip an action 2 using either action 7 or 9 (unless those skip the whole file). Action 2 must not be skipped or the patch will most likely crash. Skip or modify action 3 instead.

-=Example=-

Something to go here