Skip to content

Commit 65846ae

Browse files
committed
Added file structure documentation dariowouters#2
1 parent 713c714 commit 65846ae

19 files changed

+754
-0
lines changed
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//------------------------------------------------
2+
//--- 010 Editor v7.0.2 Binary Template
3+
//
4+
// File:
5+
// Authors: Dario Wouters
6+
// Version:
7+
// Purpose:
8+
// Category:
9+
// History:
10+
//------------------------------------------------
11+
12+
typedef struct
13+
{
14+
byte m_flags[5];
15+
u32 m_some_value;
16+
byte padding[4];
17+
u64 m_some_uid[2];
18+
} base_bus_stop_t;

docs/structures/base-city-template.bt

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
//------------------------------------------------
2+
//--- 010 Editor v7.0.2 Binary Template
3+
//
4+
// File:
5+
// Authors: Dario Wouters
6+
// Version:
7+
// Purpose:
8+
// Category:
9+
// History:
10+
//------------------------------------------------
11+
12+
typedef struct
13+
{
14+
byte m_flags[5];
15+
u64 m_city_id;
16+
float m_width;
17+
float m_height;
18+
u64 m_some_uid;
19+
} base_city_t;
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
//------------------------------------------------
2+
//--- 010 Editor v7.0.2 Binary Template
3+
//
4+
// File:
5+
// Authors: Dario Wouters
6+
// Version:
7+
// Purpose:
8+
// Category:
9+
// History:
10+
//------------------------------------------------
11+
12+
typedef struct
13+
{
14+
byte m_flags[5];
15+
u64 m_overlay_uid <format=hex>;
16+
u64 m_uid[3];
17+
u32 m_count;
18+
u64 m_uid2[m_count];
19+
u32 m_count2;
20+
u64 m_uid3[m_count2];
21+
u32 m_count3;
22+
u64 m_uid4[m_count3];
23+
u32 m_count4;
24+
u64 m_uid5[m_count4];
25+
u32 m_count5;
26+
u64 m_uid6[m_count5];
27+
} base_company_t;
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//------------------------------------------------
2+
//--- 010 Editor v7.0.2 Binary Template
3+
//
4+
// File:
5+
// Authors: Dario Wouters
6+
// Version:
7+
// Purpose:
8+
// Category:
9+
// History:
10+
//------------------------------------------------
11+
12+
typedef struct
13+
{
14+
byte m_flags[5];
15+
u32 m_node_count <bgcolor=0x71BA51>;
16+
u64 m_uid[m_node_count];
17+
} base_cutplane_t;
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
//------------------------------------------------
2+
//--- 010 Editor v7.0.2 Binary Template
3+
//
4+
// File:
5+
// Authors: Dario Wouters
6+
// Version:
7+
// Purpose:
8+
// Category:
9+
// History:
10+
//------------------------------------------------
11+
12+
typedef struct
13+
{
14+
byte m_flags[5];
15+
u64 m_ferry_id <format=hex>;
16+
u64 m_some_uid <format=hex>;
17+
u64 m_node_uid <format=hex>;
18+
float3 m_unload_offset;
19+
} base_ferry_t;

docs/structures/base-fuel-template.bt

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//------------------------------------------------
2+
//--- 010 Editor v7.0.2 Binary Template
3+
//
4+
// File:
5+
// Authors: Dario Wouters
6+
// Version:
7+
// Purpose:
8+
// Category:
9+
// History:
10+
//------------------------------------------------
11+
12+
typedef struct
13+
{
14+
byte m_flags[5];
15+
u64 m_uids[2] <format=hex>;
16+
} base_fuel_t;
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//------------------------------------------------
2+
//--- 010 Editor v7.0.2 Binary Template
3+
//
4+
// File:
5+
// Authors: Dario Wouters
6+
// Version:
7+
// Purpose:
8+
// Category:
9+
// History:
10+
//------------------------------------------------
11+
12+
typedef struct
13+
{
14+
byte m_flags[5];
15+
byte padding[12];
16+
u64 m_uids[2] <format=hex>;
17+
} base_garage_t;
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//------------------------------------------------
2+
//--- 010 Editor v7.0.2 Binary Template
3+
//
4+
// File:
5+
// Authors: Dario Wouters
6+
// Version:
7+
// Purpose:
8+
// Category:
9+
// History:
10+
//------------------------------------------------
11+
12+
typedef struct
13+
{
14+
byte m_flags[5];
15+
u32 m_node_count;
16+
u64 m_uid[m_node_count];
17+
u32 m_color_index;
18+
} base_map_area_t;
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//------------------------------------------------
2+
//--- 010 Editor v7.0.2 Binary Template
3+
//
4+
// File:
5+
// Authors: Dario Wouters
6+
// Version:
7+
// Purpose:
8+
// Category:
9+
// History:
10+
//------------------------------------------------
11+
12+
typedef struct
13+
{
14+
byte m_flags[5];
15+
u64 m_overlay_id <format=hex>;
16+
u64 m_node_uid <format=hex>;
17+
} base_overlay_t;
18+
+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
//------------------------------------------------
2+
//--- 010 Editor v7.0.2 Binary Template
3+
//
4+
// File:
5+
// Authors: Dario Wouters
6+
// Version:
7+
// Purpose:
8+
// Category:
9+
// History:
10+
//------------------------------------------------
11+
12+
typedef struct
13+
{
14+
u64 m_uid;
15+
float m_coef;
16+
} node_look_t;
17+
18+
typedef struct
19+
{
20+
byte m_flags[5];
21+
u64 m_id <format=hex>;
22+
u64 m_variant <format=hex>;
23+
u32 m_additional_item_count;
24+
u64 m_extras[m_additional_item_count];
25+
u32 m_node_count;
26+
u64 m_node_uids[m_node_count];
27+
u32 m_connected_item_count;
28+
u64 m_connected_item_uid[m_connected_item_count] <format=hex>; // service point UIDs (gas station)
29+
u64 m_some_uid; // Ferry point uid ?
30+
byte m_origin;
31+
byte padding;
32+
node_look_t m_node_look[m_node_count] <optimize=false>;
33+
} base_prefab_t;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
//------------------------------------------------
2+
//--- 010 Editor v7.0.2 Binary Template
3+
//
4+
// File:
5+
// Authors: Dario Wouters
6+
// Version:
7+
// Purpose:
8+
// Category:
9+
// History:
10+
//------------------------------------------------
11+
12+
typedef struct
13+
{
14+
u16 m_sign_type; // 5 -> text
15+
u32 padding2;
16+
if (m_sign_type == 0x5)
17+
{
18+
u32 m_text_length;
19+
u32 padding3;
20+
char m_text[m_text_length] <optimize=false>;
21+
}
22+
else if (m_sign_type == 0x01)
23+
{
24+
byte padding;
25+
}
26+
else
27+
{
28+
u32 padding3;
29+
}
30+
} sign_area_item_t;
31+
32+
typedef struct
33+
{
34+
byte padding[12];
35+
u32 sub_item_count <bgcolor=0x665DE4, fgcolor=cWhite>;
36+
sign_area_item_t m_sing_area_item[sub_item_count] <optimize=false>;
37+
} sign_area_t;
38+
39+
typedef struct
40+
{
41+
byte m_flags[5];
42+
u64 m_some_model_id; // ?
43+
u64 m_some_uid;
44+
byte padding[72];
45+
u32 m_sign_tmpl_text_length;
46+
if (m_sign_tmpl_text_length != 0)
47+
{
48+
u32 textPadding;
49+
char sign_tmpl_text[m_sign_tmpl_text_length] <optimize=false>;
50+
}
51+
u32 m_sign_area_count;
52+
sign_area_t m_sign_area[m_sign_area_count] <optimize=false>;
53+
} base_road_side_item_t;

docs/structures/base-road-template.bt

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
//------------------------------------------------
2+
//--- 010 Editor v7.0.2 Binary Template
3+
//
4+
// File:
5+
// Authors: Dario Wouters
6+
// Version:
7+
// Purpose:
8+
// Category:
9+
// History:
10+
//------------------------------------------------
11+
12+
typedef struct
13+
{
14+
u64 m_railing_model;
15+
s16 m_railing_offset;
16+
} railing_t;
17+
18+
typedef struct
19+
{
20+
railing_t m_railing_r_1;
21+
railing_t m_railing_l_1;
22+
railing_t m_railing_r_2;
23+
railing_t m_railing_l_2;
24+
railing_t m_railing_r_3;
25+
railing_t m_railing_l_3;
26+
} railings_t;
27+
28+
typedef struct
29+
{
30+
byte m_flags[9];
31+
u64 m_road_look_id <format=hex>;
32+
u64 m_road_look_r;
33+
u64 m_road_variant_r;
34+
u64 m_road_look_l;
35+
u64 m_road_variant_l;
36+
u64 m_road_edge_r_r;
37+
u64 m_road_edge_r_l;
38+
u64 m_road_terrain_r;
39+
float m_road_terrain_r_coef;
40+
u64 m_road_terrain_l;
41+
float m_road_terrain_l_coef;
42+
43+
u32 m_possible_count;
44+
byte padding1[12];
45+
u32 m_road_material;
46+
u32 padding2;
47+
railings_t m_railings;
48+
u64 padding3;
49+
u64 m_uids[2];
50+
u32 padding4;
51+
} base_road_t;
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//------------------------------------------------
2+
//--- 010 Editor v7.0.2 Binary Template
3+
//
4+
// File:
5+
// Authors: Dario Wouters
6+
// Version:
7+
// Purpose:
8+
// Category:
9+
// History:
10+
//------------------------------------------------
11+
12+
typedef struct
13+
{
14+
byte m_flags[5];
15+
u64 m_node_uid <format=hex>;
16+
u64 m_prefab_uid <format=hex>;
17+
} base_service_t;

0 commit comments

Comments
 (0)