Skip to content

Commit

Permalink
Updated .base file structures, added .aux file structures
Browse files Browse the repository at this point in the history
  • Loading branch information
dariowouters committed Aug 3, 2019
1 parent 8689170 commit aaec1cd
Show file tree
Hide file tree
Showing 33 changed files with 801 additions and 153 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//------------------------------------------------
//--- 010 Editor v7.0.2 Binary Template
//
// File:
// File:
// Authors: Dario Wouters
// Version:
// Purpose:
// Category:
// History:
// Version:
// Purpose:
// Category:
// History:
//------------------------------------------------

typedef struct
Expand All @@ -16,4 +16,4 @@ typedef struct
byte padding[4];
u64 m_prefab_uid <format=hex>;
u64 m_node_uid <format=hex>;
} base_bus_stop_t;
} base_bus_stop_t;
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//------------------------------------------------
//--- 010 Editor v7.0.2 Binary Template
//
// File:
// File:
// Authors: Dario Wouters
// Version:
// Purpose:
// Category:
// History:
// Version:
// Purpose:
// Category:
// History:
//------------------------------------------------

typedef struct
Expand All @@ -16,4 +16,4 @@ typedef struct
float m_width;
float m_height;
u64 m_node_uid <format=hex>;
} base_city_t;
} base_city_t;
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
//------------------------------------------------
//--- 010 Editor v7.0.2 Binary Template
//
// File:
// File:
// Authors: Dario Wouters
// Version:
// Purpose:
// Category:
// History:
// Version:
// Purpose:
// Category:
// History:
//------------------------------------------------

typedef struct
{
byte m_flags[5];
u64 m_overlay_uid <format=hex>;
u64 m_overlay_uid <read=token_to_string>;
u64 m_uid[3];
u32 m_count;
u64 m_uid2[m_count];
Expand All @@ -26,4 +26,4 @@ typedef struct
u64 m_uid6[m_count5];
u32 m_count6; // 1.33
u64 m_uid7[m_count6]; // 1.33
} base_company_t;
} base_company_t;
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
//------------------------------------------------
//--- 010 Editor v7.0.2 Binary Template
//
// File:
// File:
// Authors: Dario Wouters
// Version:
// Purpose:
// Category:
// History:
// Version:
// Purpose:
// Category:
// History:
//------------------------------------------------

typedef struct
{
byte m_flags[5];
u32 m_node_count;
u64 m_uid[m_node_count];
} base_cutplane_t;
} base_cutplane_t;
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//------------------------------------------------
//--- 010 Editor v7.0.2 Binary Template
//
// File:
// File:
// Authors: Dario Wouters
// Version:
// Purpose:
// Category:
// History:
// Version:
// Purpose:
// Category:
// History:
//------------------------------------------------

typedef struct
Expand All @@ -16,4 +16,4 @@ typedef struct
u64 m_prefab_uid <format=hex>;
u64 m_node_uid <format=hex>;
float3 m_unload_offset;
} base_ferry_t;
} base_ferry_t;
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//------------------------------------------------
//--- 010 Editor v7.0.2 Binary Template
//
// File:
// File:
// Authors: Dario Wouters
// Version:
// Purpose:
// Category:
// History:
// Version:
// Purpose:
// Category:
// History:
//------------------------------------------------

typedef struct
Expand All @@ -16,4 +16,4 @@ typedef struct
u64 m_prefab_uid <format=hex>;
u32 m_some_uid_count; // 1.32
u64 m_some_uids[m_some_uid_count]; // 1.32
} base_fuel_t;
} base_fuel_t;
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//------------------------------------------------
//--- 010 Editor v7.0.2 Binary Template
//
// File:
// File:
// Authors: Dario Wouters
// Version:
// Purpose:
// Category:
// History:
// Version:
// Purpose:
// Category:
// History:
//------------------------------------------------

typedef struct
Expand All @@ -17,4 +17,4 @@ typedef struct
u64 m_uids[2] <format=hex>;
u32 m_some_uid_count; // 1.32
u64 m_some_uids[m_some_uid_count]; // 1.32
} base_garage_t;
} base_garage_t;
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//------------------------------------------------
//--- 010 Editor v7.0.2 Binary Template
//
// File:
// File:
// Authors: Dario Wouters
// Version:
// Purpose:
// Category:
// History:
// Version:
// Purpose:
// Category:
// History:
//------------------------------------------------

typedef struct
Expand All @@ -22,10 +22,10 @@ typedef struct
// 0 => visual
// 1 => Draw over
// 2 => Draw outline
// 8 => navigation
// 8 => navigation

// color index
// 0 => road
// 1 => light
// 2 => dark
// 3 => green
// 3 => green
24 changes: 24 additions & 0 deletions docs/structures/base/base-node-template.bt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
//------------------------------------------------
//--- 010 Editor v9.0.1 Binary Template
//
// File:
// Authors: Dario Wouters
// Version:
// Purpose:
// Category:
// File Mask:
// ID Bytes:
// History:
//------------------------------------------------


typedef struct
{
u64 m_node_uid <format=hex>;
int3 m_pos;
float3 m_posR;
u32 padding;
u64 m_backward_node_uid <format=hex>;
u64 m_forward_node_uid <format=hex>;
byte m_node_flags[4] <format=binary>;
} base_node_t;
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//------------------------------------------------
//--- 010 Editor v7.0.2 Binary Template
//
// File:
// File:
// Authors: Dario Wouters
// Version:
// Purpose:
// Category:
// History:
// Version:
// Purpose:
// Category:
// History:
//------------------------------------------------

typedef struct
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//------------------------------------------------
//--- 010 Editor v7.0.2 Binary Template
//
// File:
// File:
// Authors: Dario Wouters
// Version:
// Purpose:
// Category:
// History:
// Version:
// Purpose:
// Category:
// History:
//------------------------------------------------

typedef struct
Expand All @@ -23,7 +23,7 @@ typedef struct
u32 m_additional_item_count;
u64 m_extras[m_additional_item_count] <read=token_to_string>;
u32 m_node_count;
u64 m_node_uids[m_node_count];
u64 m_node_uids[m_node_count] <format=hex>;
u32 m_connected_item_count;
u64 m_connected_item_uid[m_connected_item_count] <format=hex>; // service point UIDs (gas station)
u64 m_some_uid; // Ferry point uid ?
Expand All @@ -34,4 +34,4 @@ typedef struct
u32 m_some_count2; // 1.32
} base_prefab_t;

// m_flags[1] => dlc_guard
// m_flags[1] => dlc_guard
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
//------------------------------------------------
//--- 010 Editor v7.0.2 Binary Template
//
// File:
// File:
// Authors: Dario Wouters
// Version:
// Purpose:
// Category:
// History:
// Version:
// Purpose:
// Category:
// History:
//------------------------------------------------

typedef struct
{
u16 m_sign_type; // 5 -> text
u32 m_count;

if (m_sign_type == 0x5)
{
u32 m_text_length;
Expand Down Expand Up @@ -57,10 +57,10 @@ typedef struct
sign_template_t m_sign_template[3] <optimize=false>;
u32 m_sign_tmpl_text_length;
if (m_sign_tmpl_text_length != 0)
{
{
u32 textPadding;
char sign_tmpl_text[m_sign_tmpl_text_length] <optimize=false>;
}
u32 m_sign_area_count;
sign_area_t m_sign_area[m_sign_area_count] <optimize=false>;
} base_road_side_item_t;
} base_road_side_item_t;
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//------------------------------------------------
//--- 010 Editor v7.0.2 Binary Template
//
// File:
// File:
// Authors: Dario Wouters
// Version:
// Purpose:
// Category:
// History:
// Version:
// Purpose:
// Category:
// History:
//------------------------------------------------

typedef struct
Expand Down Expand Up @@ -39,15 +39,15 @@ typedef struct
float m_road_terrain_r_coef;
u64 m_road_terrain_l <read=token_to_string>;
float m_road_terrain_l_coef;

u64 m_road_look_r <read=token_to_string>;
u64 m_road_look_l <read=token_to_string>;
u64 m_road_material <read=token_to_string>;
railings_t m_railings;
u64 padding3;
u64 m_uids[2];
u64 m_node_uids[2] <format=hex>;
u32 padding4;
} base_road_t;


// m_flags[6] => dlc_guard
// m_flags[6] => dlc_guard
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//------------------------------------------------
//--- 010 Editor v7.0.2 Binary Template
//
// File:
// File:
// Authors: Dario Wouters
// Version:
// Purpose:
// Category:
// History:
// Version:
// Purpose:
// Category:
// History:
//------------------------------------------------

typedef struct
Expand All @@ -16,4 +16,4 @@ typedef struct
u64 m_prefab_uid <format=hex>;
u32 m_some_uid_count; // 1.32
u64 m_some_uids[m_some_uid_count]; // 1.32
} base_service_t;
} base_service_t;
Loading

0 comments on commit aaec1cd

Please sign in to comment.