Zone (.luz)

Note

id:
luz
file-extension:
luz
endian:
le
imports:
  1. ../common/common

Sequence

  1. [u4] file_version

  2. if: file_version >= 36

    [u4] file_revision

  3. [u4] zone_id

  4. if: file_version >= 38

    [common::vector3] player_start_pos

  5. if: file_version >= 38

    [common::quaternion] player_start_rot

  6. [switch-on:file_version >= 37] num_scene_files

    Type Cases
    True u4
    False u1
  7. [scene] scenes

    repeat-expr: num_scene_files
  8. [u1] num_zone_boundary_lines

  9. [boundary_info] boundary_lines

    repeat-expr: num_zone_boundary_lines
  10. [common::u1_str] raw_filename

  11. if: file_version >= 31

    [common::u1_str] zone_name

  12. if: file_version >= 31

    [common::u1_str] zone_description

  13. if: file_version >= 32

    [transition_data] zone_transition_data

  14. if: file_version >= 35

    [u4] path_chunk_size

  15. if: file_version >= 35

    [path_chunk] path_chunk

    Size: path_chunk_size

Type scene

Sequence

  1. [common::u1_str] scene_file_name

  2. if: _root.file_version >= 33 or _root.file_version < 30

    [u4] scene_id

  3. if: _root.file_version >= 33

    [u4] layer_id

  4. if: _root.file_version >= 33

    [common::u1_str] scene_display_name

  5. if: _root.file_version == 33

    [common::vector3] unknown1

  6. if: _root.file_version == 33

    [f4] unknown2

  7. if: _root.file_version >= 33

    [u1] scene_color_r

  8. if: _root.file_version >= 33

    [u1] scene_color_g

  9. if: _root.file_version >= 33

    [u1] scene_color_b

Type boundary_info

Sequence

  1. [common::vector3] normal

  2. [common::vector3] point

  3. [u4] dest_zone_id

  4. [u4] dest_scene_id

  5. [common::vector3] spawn_loc

Type transition_data

Sequence

  1. [u4] num_transitions

  2. [transition_info] transitions

    repeat-expr: num_transitions

Type transition_info

Sequence

  1. if: _root.file_version < 40

    [common::u1_str] unknown1

  2. if: _root.file_version < 40

    [f4] unknown2

  3. [transition_point] transition_points

    repeat-expr: (_root.file_version <= 33 or _root.file_version >= 39) ? 2 : 5

Type transition_point

Sequence

  1. [u4] scene_id

  2. [u4] layer_id

  3. [common::vector3] transition_point

Type path_chunk

Sequence

  1. [u4] path_chunk_version

  2. [u4] num_paths

  3. [path] paths

    repeat-expr: num_paths

Type path

Sequence

  1. [u4] version

  2. [common::u1_wstr] name

  3. if: version <= 2

    [common::u1_wstr] type_name

  4. [u4:path_type] type

  5. [u4] flags

  6. [u4:path_behavior] behavior

  7. [switch-on:type] data

    Type Cases
    path_type::platform platform_data
    path_type::property property_data
    path_type::camera camera_data
    path_type::spawner spawner_data
  8. [u4] num_waypoints

  9. [waypoint] waypoints

    repeat-expr: num_waypoints

Type platform_data

Sequence

  1. if: _parent.version >= 13 and _parent.version < 18

    [common::u1_wstr] traveling_audio_guid

  2. if: _parent.version >= 18

    [common::bool] time_based_movement

Type property_data

Sequence

  1. [u4:property_path_type] property_path_type

  2. [u4] price

  3. [u4] time

  4. [u8] associated_zone

  5. if: _parent.version >= 5

    [common::u1_wstr] name

  6. if: _parent.version >= 5

    [common::u4_wstr] description

  7. if: _parent.version >= 6

    [u4:property_type] property_type

  8. if: _parent.version >= 7

    [u4] clone_limit

  9. if: _parent.version >= 7

    [f4] reputation_multiplier

  10. if: _parent.version >= 7

    [u4] period_type

  11. if: _parent.version >= 8

    [u4] achievement_required

  12. if: _parent.version >= 8

    [common::vector3] zone_position

  13. if: _parent.version >= 8

    [f4] max_build_height

Type camera_data

Sequence

  1. [common::u1_wstr] next_path

  2. if: _parent.version >= 14

    [common::bool] rotate_player

Type spawner_data

Sequence

  1. [common::lot] spawned_lot

  2. [u4] respawn_time

  3. [s4] max_to_spawn

  4. [u4] num_to_maintain

  5. [common::object_id] object_id

  6. if: _parent.version >= 9

    [common::bool] activate_on_load

Type waypoint

Sequence

  1. [common::vector3] position

  2. [switch-on:_parent.type] data

    Type Cases
    path_type::npc npc_waypoint_data
    path_type::platform platform_waypoint_data
    path_type::camera camera_waypoint_data
    path_type::spawner spawner_waypoint_data
    path_type::racing racing_waypoint_data
    path_type::rail rail_waypoint_data

Type npc_waypoint_data

Sequence

  1. [lnv] config

Type platform_waypoint_data

Sequence

  1. [common::quaternion_wxyz] rotation

  2. [common::bool] lock_player

  3. [f4] speed

  4. [f4] wait

  5. if: _parent._parent.version >= 13

    [common::u1_wstr] depart_audio_guid

  6. if: _parent._parent.version >= 13

    [common::u1_wstr] arrive_audio_guid

Type camera_waypoint_data

Sequence

  1. [common::quaternion_wxyz] rotation

  2. [f4] time

  3. [f4] fov

  4. [f4] tension

  5. [f4] continuity

  6. [f4] bias

Type spawner_waypoint_data

Sequence

  1. [common::quaternion_wxyz] rotation

  2. [lnv] config

Type racing_waypoint_data

Sequence

  1. [common::quaternion_wxyz] rotation

  2. [common::bool] is_reset_node

  3. [common::bool] is_non_horizontal_camera

  4. [f4] plane_width

  5. [f4] plane_height

  6. [f4] shortest_distance_to_end

Type rail_waypoint_data

Sequence

  1. [common::quaternion_wxyz] rotation

  2. if: _parent._parent.version > 16

    [f4] speed

  3. [lnv] config

Type lnv

Sequence

  1. [u4] num_entries

  2. [lnv_entry] entries

    repeat-expr: num_entries

Type lnv_entry

Sequence

  1. [common::u1_wstr] name

  2. [common::u1_wstr] type_value

Enum path_type

0:
npc
1:
platform
2:
property
3:
camera
4:
spawner
5:
buildarea
6:
racing
7:
rail

Enum path_behavior

0:
loop
1:
bounce
2:
once

Enum property_path_type

0:
bounded
1:
entire_zone
2:
generated_rectangle

Enum property_type

0:
premiere
1:
prize
2:
lup
3:
headspace