-
Notifications
You must be signed in to change notification settings - Fork 55
war3map.doo Doodads
Stijn Herfst edited this page Dec 20, 2017
·
12 revisions
The file contains the defenitions for all doodads including destructibles.
Here is the file format:
char[4] magic_number
int32 format_version
int32 format_subversion?
int32 doodads_count
And then doodads_count structures of variable length (usually 50 bytes).
char[4] doodad_id
uint32 variation
float x_position
float y_position
float z_position
float angle
float x_scale
float y_scale
float z_scale
uint8 flags
uint8 life
uint32 item_table_pointer
uint32 item_sets_count
ItemSet item_sets
uint32 world_editor_id
The above structure is variable in length due to the ItemSets which are repeated item_sets_count and look like this:
uint32 sets_count
char[4] item_id
uint32 chance
Where item_id and chance are repeated sets_count times.
After the last normal doodad definitions there are special doodads (those which can't be edited once they are placed).
uint32 special_format_version
uint32 special_doodads_count
Then special_doodads_count times a special doodad structure:
char[4]: special_doodad_id
uint32 special_x_position
uint32 special_y_position
uint32 special_z_position
char[4] magic_number
The constant string "W3do" at the start of the war3map.doo used to identify it.