-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jade_Empire%2FResearch.mw
417 lines (356 loc) · 10.7 KB
/
Jade_Empire%2FResearch.mw
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
== Archives ==
{| class="wikitable"
! Name
! Type
! Documentation
! Status
|-
|chitin.key<br/>artcreatures.bif<br/>audio.bif<br/>designer.bif
|indexed Key Biff
| style="text-align: center;" |[https://github.com/xoreos/xoreos-docs/raw/master/specs/bioware/KeyBIF_Format.pdf KeyBIF_Format.pdf]
| style="background-color: green;" |supported
|-
|*.rim
|Rim file
|
| style="background-color: green;" |supported
|-
|*.mod
|ERF file
| style="text-align: center;" |[https://github.com/xoreos/xoreos-docs/raw/master/specs/bioware/ERF_Format.pdf ERF_Format.pdf]
| style="background-color: green;" |supported
|}
== Resource files ==
=== Areas, Rooms and Placeables ===
{| class="wikitable"
! Extension
! Type ID
! Type description/Usage
!Format
! Documentation
! Status
|-
|are || 2012 || static area information || gff || [https://github.com/xoreos/xoreos-docs/raw/master/specs/bioware/AreaFile_Format.pdf AreaFile_Format.pdf]
| style="background-color: yellow;" | only layout value used
|-
|sav || 2057 || objects descriptions in area || gff ||
| style="background-color: yellow;" | partially loaded
|-
|lyt || 3000 || area rooms layout || text ||
| style="background-color: yellow;" |
|-
|vis || 3001 || area rooms visibility graph || text ||
| style="background-color: yellow;" |
|-
|hex || 3015 || area hexgrid definition || text ||
| style="background-color: red;" | unsupported
|-
|art || 3023 || area environment properties || ini file ||
| style="background-color: red;" | unsupported
|-
|cwa || 3025 || crowd attributes || gff ||
| style="background-color: red;" | unsupported
|-
|pla || 2043 || placeable definition || gff ||
| style="background-color: yellow;" |
|-
|pwk || 2053 || placeable walk mesh definition || text ||
| style="background-color: red;" | unsupported
|-
|fsm || 3022 || placeable state data || gff ||
| style="background-color: yellow;" |
|}
=== Models, Textures and Materials ===
{| class="wikitable"
! Extension
! Type ID
! Type description/Usage
! Format
! Documentation
! Status
|-
|bmp || 1 || bitmap image || binary || ||
|-
|tga || 3 || targa image || binary || ||
|-
|mdl || 2002 || model definition || binary || ||
|-
|mdx || 3008 || model raw data || binary || ||
|-
|txi || 2022|| texture information || text || ||
|-
|txb || 3006 || texture data || binary || ||
|-
|tpc || 3007 || texture data || binary || ||
|-
|mat || 2069 || material definition || text || ||
|-
|mab || 3011 || material definition || binary || ||
|}
=== Scripting and Triggers ===
{| class="wikitable"
! Extension
! Type ID
! Type description/Usage
! Format
! Documentation
! Status
|-
|nss || 2009 || nwscript source script || text || || not used
|-
|ncs || 2010 || compiled script || binary || ||
|-
|ndb || 2064 || script debug info || binary || || not used
|-
|trg || 2031 || trigger definition || gff || [https://github.com/xoreos/xoreos-docs/raw/master/specs/bioware/Trigger_Format.pdf Trigger_Format.pdf] ||
|}
=== Quests, Texts and Dialogues ===
{| class="wikitable"
! Extension
! Type ID
! Type description/Usage
! Format
! Documentation
! Status
|-
|tlk || 2018 || string definitions || talk table || [https://github.com/xoreos/xoreos-docs/raw/master/specs/bioware/TalkTable_Format.pdf TalkTable_Format.pdf] ||
|-
|dlg || 2029 || dialog definition || gff || [https://github.com/xoreos/xoreos-docs/raw/master/specs/bioware/Conversation_Format.pdf Conversation_Format.pdf] ||
|-
|qst || 2084 || quest definition || gff ||
|-
|bip || 3028 || lipsynch data || binary || ||
|}
=== GUI ===
{| class="wikitable"
! Extension
! Type ID
! Type description/Usage
! Format
! Documentation
! Status
|-
|gui || 2047 || dialog definition || gff || ||
|-
|abc || 24003 || font definition || binary || ||
|-
|sbm || 24004 || font bitmap || binary || ||
|}
=== Static Properties ===
{| class="wikitable"
! Extension
! Type ID
! Type description/Usage
! Format
! Documentation
! Status
|-
|ini || 7 || ini file || text || ||
|-
|txt || 10 || sound info(*_xwb.txt und *_xsb.txt) und mini game data (mg*.txt) || text || ||
|-
|2da || 2017 || static data tables || 2da || [https://github.com/xoreos/xoreos-docs/raw/master/specs/bioware/2DA_Format.pdf 2DA_Format.pdf] ||
|-
|gff || 2037 || generic gff file || gff || ||
|}
=== Others ===
{| class="wikitable"
! Extension
! Type ID
! Type description/Usage
! Format
! Documentation
! Status
|-
|ttc || 2073 || minigame resources || binary || ||
|-
|bik || 2063 || prerendered video || bink || ||
|-
|ogg || 2078 || prerendered audio || ogg/vorbis || ||
|-
|sto || 3013 || store definition || gff || [https://github.com/xoreos/xoreos-docs/raw/master/specs/bioware/Store_Format.pdf Store_Format.pdf] ||
|-
|amp || 3024 || brightening control || binary || ||
|-
|cre || 2026 || creature definition || gff || ||
|-
|pso || 24001 || pixel shader object || binary || ||
|-
|vso || 24002 || vertex shader object|| binary || ||
|}
=== Unknown ===
{| class="wikitable"
! Extension
! Type ID
! Type description/Usage
! Documentation
! Status
|-
|wma || 11 || wma file || ||
|-
|pvd || 24005 || pvd file || ||
|-
|pk || 24009 || pk file || ||
|}
== 2DA files ==
=== 2DA lists ===
{| class="wikitable"
! Name
! Usage
! Status
|-
| 2das.2da || indexed list of all 2da files including excel generation info || style="background-color: green;" | supported
|-
| scriptlist.2da || foreign key reference to 2das.2da whose index is used by scripts || style="background-color: green;" | supported
|}
=== GUI ===
{| class="wikitable"
! Name
! Usage
! Status
|-
| books.2da || contains info to all the bookstands you can read in the game || style="background-color: red;" | unsupported
|-
| jdk_players.2da || stats of all player characters (demo content) || style="background-color: red;" | unsupported
|-
| players.2da || stats of all player characters || style="background-color: red;" | unsupported
|}
=== Styles ===
{| class="wikitable"
! Name
! Usage
! Status
|-
| areaofeffect.2da || area effects || style="background-color: red;" | unsupported
|-
| spells.2da || spell effects || style="background-color: red;" | unsupported
|-
| styleadvance.2da || level up data || style="background-color: red;" | unsupported
|-
| stylecost.2da || transformation style costs || style="background-color: red;" | unsupported
|-
| styledata.2da || style 2da table references || style="background-color: red;" | unsupported
|-
| stylepoints.2da || style points per level || style="background-color: red;" | unsupported
|-
| stylesuperlist.2da || style numbers and models || style="background-color: red;" | unsupported
|-
| styletypes.2da || gui icons || style="background-color: red;" | unsupported
|-
| transformation.2da || tranformation style numbers || style="background-color: red;" | unsupported
|-
| *as.2da || style animation and sound table || style="background-color: red;" | unsupported
|-
| *cs.2da || style cutscene movement table || style="background-color: red;" | unsupported
|-
| *lv.2da || style level up table || style="background-color: red;" | unsupported
|-
| *mv.2da || style movement table || style="background-color: red;" | unsupported
|-
| centipede.2da || special centipede style data || style="background-color: red;" | unsupported
|-
| drunken.2da || special drunken style data || style="background-color: red;" | unsupported
|}
== GUI ==
* Layout defined in the .gui resources in Gff3 format
* lti_<dialogname> layouts have been created for the PC version for mouse control
* Fullscreen dialogs are of size 640x480
* coordinate system is 2D, (0,0) is the upper left corner
* GUI is stretched to screen size
== Models ==
=== Vertex layout ===
The vertex layout is described in a mesh node's mesh header and if included the skin header.
The mesh header contains information to draw the model or part of it.
The skin header contains bone information to animate the model.
[https://gist.github.com/farmboy0/87d9d6b88613ccd899b8 model description (WIP)]
== Audio ==
Audio files and properties are described via XACT wave banks and sound banks.
Wave bank are simple lists of sound files that are referenced by their position in the list.
Sound banks describe sounds and sound cues. Sounds contain references to wave bank entries as well as their play properties, while sound cues
are used to group different sounds together with information about how to choose between them when playing a sound cue.
In the Xbox version, the wave banks and sound banks are in their original binary format (XWB and [https://wiki.xoreos.org/index.php?title=Binary_XACT_SoundBank XSB]). In the Windows PC version, they are stored in an ASCII format, as described below.
'''Sound bank files are organized like this:'''
<Sound bank name>
<Number of Categories>
<Categories, one per line>
<Number of sounds>
<Sounds, variable amount of lines per sound>
<Number of sound cues>
<Sound cues, variable amount of lines per sound cue>
'''Each sound looks like this:'''
<Sound description line>
<Play properties, at most one of each of the following lines: 3D AEG LOOP LPF MARKER MFLFO PEQ PITCH PLAY VOLUME>
<Number of wave bank entries>
<One line per Wave bank entry>
'''Each sound cue looks like this:'''
<Sound cue description>
<Number of sound entries>
<One line per sound entry>
'''for music sound cues also these lines:'''
<Number of transition lines = number sound entries * (number sound entries + 1)>
<transition lines describe the transition between 2 sounds in the same cue since only one sound will play (except for some overlap between sounds)>
=== Sounds ===
==== sound description line ====
{| class="wikitable"
! Line Token
! 1
! 2
! 3
! 4
! 5
! 6
! 7
! 8
! 9
! 10
! 11
|-
| Example || "al_nat_pool" || "1" || 1 || 1 || -2425 || -1 || -770 || 0 || 1 || 0 || 0
|-
| Description || sound name || note probably describing category || 0 or 1, boolean || 0 or 1, boolean || -6400 - 0 || -4975 - 450 || -1898 - 2400 || 0 or 127 || 0 or 1, boolean || -1500 - 0 || -6400 - 0
|}
==== 3D properties ====
{| class="wikitable"
! Line Token
! 1
! 2
! 3
! 4
! 5
! 6
! 7
! 8
! 9
! 10
! 11
|-
| Example || 3D || 0 || 360 || 360 || 0 || 6.000000 || 27.000000 || 1.000000 || 7.000000 || 1.000000 || 0
|-
| Description || prop id || always 0 || always 360 || always 360 || always 0 || 1.000000 - 500.000000 || 10.000000 - 1000000000.000000 || always 1.000000 || 0.000000 - 363.000000 || 1.000000, 5.000000 or 10.000000 || 0, 0.750000, 0.782780, 0.803270 or 1.000000
|}
=== Sound cues ===
==== sound cue line ====
{| class="wikitable"
! Line Token
! 1
! 2
! 3
! 4
! 5
|-
| Example || "j08_cut_drag_e" || 0 || 0 || 0 || 0
|-
| Description || sound cue name || 0, 1, 2, 3 or 4 play variation type || 0 or 1, boolean || always 0 || 0 or 1, boolean
|}
==== sound entry line ====
{| class="wikitable"
! Line Token
! 1
! 2
! 3
! 4
|-
| Example || "j08_cut_drag_e" || 37 || 0 || 0
|-
| Description || sound name || sound list index || value depends on variation type || value depends on variation type
|}