/
xnewarea.htm
118 lines (116 loc) · 3.12 KB
/
xnewarea.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
---
title: "BG(2):EE 2DA Files : xnewarea.2da"
---
<div class="title_main"> xnewarea.2da</div>
<br />
This file defines the position, icon, links and resource for additional areas on the worldmap. It is used probably only in case of SoA worldmap in ToB.<br />
<br />
In BG2EE we have:<br />
<pre>
2DA V1.0
*
AREA SCRIPT FLAGS ICON LOCX LOCY LABEL NAME LINK_2DA N_LINKS E_LINKS S_LINKS W_LINKS LINKS_TO
1 AR3000 AR3000 7 28 773 640 66122 66122 XL3000 0 3 6 0 13
</pre>
where:<br />
generally this structure is according to the WMP file format area entries.<br />
first column is just the number of the area on this list and other:<br />
<table border="1" width="98%">
<colgroup>
<col class="col1" width="5%">
<col class="col2" width="12%">
<col class="col3" width="*">
</colgroup>
<thead>
<tr>
<th>Offfset in WMP area entry</th>
<th>column in XNEWAREA.2DA</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>0x0008</td>
<td>AREA</td>
<td>AREA resref for this area
<tr>
<td>N/A</td>
<td>SCRIPT</td>
<td>Area script</td>
</tr>
<tr>
<td>0x0030</td>
<td>FLAGS</td>
<td>Bitmap indicating status of area:
<ul>
<li>bit 0: is area visible?
<li>bit 1: unknown
<li>bit 2: set if area can be visited
<li>bit 3: set if area has been visited
<li>bits 4-31: unused?</li>
</ul>
</td>
</tr>
<tr>
<td>0x0034</td>
<td>ICON</td>
<td>Sequence within BAM file for the icons for this area.</td>
</tr>
<tr>
<td>0x0038</td>
<td>LOCX</td>
<td>X coordinate of this area within the world map</td>
</tr>
<tr>
<td>0x003c</td>
<td>LOCY</td>
<td>Y coordinate of this area within the world map</td>
</tr>
<tr>
<td>0x0040</td>
<td>LABEL</td>
<td>Name of this location (as seen on captions)</td>
</tr>
<tr>
<td>0x0044</td>
<td>NAME</td>
<td>Same as field at 0x40? (or perhaps name for tooltips?)</td>
</tr>
<tr>
<td>N/A</td>
<td>LINK_2DA</td>
<td>Resref to 2DA file consisting of the Area links entries for this area.</td>
</tr>
<tr>
<td>0x0054</td>
<td>N_LINKS</td>
<td>Count of entries in the first group (North) of area links <em>from</em>
this area.</td>
</tr>
<tr>
<td>0x005c</td>
<td>E_LINKS</td>
<td>Count of entries in the second group (East) of area links <em>from</em>
this area.</td>
</tr>
<tr>
<td>0x0064</td>
<td>S_LINKS</td>
<td>Count of entries in the third group (South) of area links <em>from</em>
this area.</td>
</tr>
<tr>
<td>0x006c</td>
<td>W_LINKS</td>
<td>Count of entries in the fourth group (West) of area links <em>from</em>
this area.</td>
</tr>
<tr>
<td>N/A</td>
<td>LINKS_TO</td>
<td>Numer of links to this area</td>
</tr>
</tbody>
</table>
</div>
</div>