Sonic Chronicles: The Dark Brotherhood/Research: Difference between revisions

From xoreos Wiki
Jump to navigation Jump to search
(Created page with "== Archives == {| class="wikitable" ! Name ! Type ! Documentation ! Status |- |*.nds |Nintendo DS image | | style="background-color: green;" |supported |- |*.herf |Hashed ERF...")
 
 
(12 intermediate revisions by the same user not shown)
Line 14: Line 14:
|*.herf
|*.herf
|Hashed ERF file
|Hashed ERF file
|
| style="background-color: green;" |supported
|-
|*.dict
|Dictionary for the hashed ERF files
|
|
| style="background-color: green;" |supported
| 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;" |
|-
|cbgt || 21004 || compressed area background ||  ||
| style="background-color: green;" |
|-
|cdpth || 21005 || compressed area depth ||  ||
| style="background-color: green;" |
|}
=== Models, Textures and Materials ===
{| class="wikitable"
! Extension
! Type ID
! Type description/Usage
! Format
! Documentation
! Status
|-
|tga || 3 || targa image || binary || ||
|-
|raw || 21021 || raw image || binary || ||
|-
|pal || 21020 || palette || binary || ||
|-
|nanr || 21008 || nitro animation resource || binary || ||
|-
|nbfp || 21009 || nitro basic file palette || binary || ||
|-
|nbfs || 21010 || nitro basic file screen || binary || ||
|-
|ncer || 21011 || nitro cell resource || binary || ||
|-
|ncgr || 21012 || nitro character graphics resource || binary || ||
|-
|nclr || 21013 || palette definition || binary || ||
|-
|nsbca || 21015 || character animation || binary || ||
|-
|nsbmd || 21016 || model definition || binary || ||
|-
|nsbta || 21017 || texture animation || binary || ||
|-
|nsbtp || 21018 || texture part || binary || ||
|-
|nsbtx ||  || texture data || binary || ||
|}
=== Scripting and Triggers ===
{| class="wikitable"
! Extension
! Type ID
! Type description/Usage
! Format
! Documentation
! Status
|}
=== 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] ||
|-
|itm || 21007 || item definition || 2da || ||
|}
=== GUI ===
{| class="wikitable"
! Extension
! Type ID
! Type description/Usage
! Format
! Documentation
! Status
|-
|gui || 2047 || dialog definition || gff || ||
|-
|nftr ||  || font definition || binary || ||
|}
=== Static Properties ===
{| class="wikitable"
! Extension
! Type ID
! Type description/Usage
! Format
! Documentation
! Status
|-
|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 || ||
|-
|gda || 22008 || static table data || gff || ||
|}
=== Others ===
{| class="wikitable"
! Extension
! Type ID
! Type description/Usage
! Format
! Documentation
! Status
|-
|emit || 21006 || ||  || ||
|-
|plo || 22021 || plot information || gff || ||
|-
|sadl || 21022 || sound list || text ||  ||
|-
|sdat || 21023 || sound data || binary ||  ||
|-
|smp || 21024 || sound map || binary || ||
|-
|spl || 21025 || spell definition || 2da || ||
|-
|vx || 21026 || prerendered video || actimagine || ||
|-
|walk.tga ||  || ||  || ||
|-
|0x[0-9ABCDEF]{8} || unknown hash? || ||  || ||
|}
== GUI ==
* Layout defined in the .gui resources in Gff4 format
* Both screens are of size 256x192
* Coordinate system is 2D, (0,0) is in the upper left corner
* Both screens define their own coordinate system from (0,0) to (256,192)
* To implement both screens easily, use a GUI size 256x384 and add 192 to the Y coordinate for the lower screen
* The following values for the labels are used:
{| class="wikitable"
! integer value
! usage
|-
|60000
|X coordinate of the widget in the upper screen
|-
|60001
|Y coordinate of the widget in the upper screen
|-
|60002
|width of the widget in the upper screen
|-
|60003
|height of the widget in the upper screen
|-
|60004
|background texture
|-
|60005
|Default text?
|-
|60006
|only used in test.gui
|-
|60007
|
|-
|60008
|only used in test.gui
|-
|60009
|
|-
|60010
|
|-
|60011
|
|-
|60013
|uint8, PANE attribute, possible values 0,1,255
|-
|60014
|
|-
|60015
|palette
|-
|60016
|vector3f, text color?
|-
|60017
|
|-
|60018
|X coordinate of the widget in the lower screen
|-
|60019
|Y coordinate of the widget in the lower screen
|-
|60020
|width of the widget in the lower screen
|-
|60021
|height of the widget in the lower screen
|-
|60022
|
|-
|60023
|strref in the tlk file
|-
|60024
|uint8, always 0
|-
|60025
|uint8, LIST attribute, always 17
|-
|60026
|
|-
|60027
|
|-
|60028
|uint8, always 0
|-
|60029
|
|-
|60030
|
|-
|62000
|widget name
|-
|62002
|list of children widgets
|-
|62003
|list of some textures (active state?)
|-
|62004
|list of some textures (inactive state?)
|-
|62005
|list of some textures
|-
|62006
|list of some textures
|-
|62007
|list of some textures

Latest revision as of 18:36, 31 October 2015

Archives

Name Type Documentation Status
*.nds Nintendo DS image supported
*.herf Hashed ERF file supported
*.dict Dictionary for the hashed ERF files supported

Resource files

Areas, Rooms and Placeables

Extension Type ID Type description/Usage Format Documentation Status
are 2012 static area information gff AreaFile_Format.pdf
cbgt 21004 compressed area background
cdpth 21005 compressed area depth

Models, Textures and Materials

Extension Type ID Type description/Usage Format Documentation Status
tga 3 targa image binary
raw 21021 raw image binary
pal 21020 palette binary
nanr 21008 nitro animation resource binary
nbfp 21009 nitro basic file palette binary
nbfs 21010 nitro basic file screen binary
ncer 21011 nitro cell resource binary
ncgr 21012 nitro character graphics resource binary
nclr 21013 palette definition binary
nsbca 21015 character animation binary
nsbmd 21016 model definition binary
nsbta 21017 texture animation binary
nsbtp 21018 texture part binary
nsbtx texture data binary

Scripting and Triggers

Extension Type ID Type description/Usage Format Documentation Status

Quests, Texts and Dialogues

Extension Type ID Type description/Usage Format Documentation Status
tlk 2018 string definitions talk table TalkTable_Format.pdf
dlg 2029 dialog definition gff Conversation_Format.pdf
itm 21007 item definition 2da

GUI

Extension Type ID Type description/Usage Format Documentation Status
gui 2047 dialog definition gff
nftr font definition binary

Static Properties

Extension Type ID Type description/Usage Format Documentation Status
2da 2017 static data tables 2da 2DA_Format.pdf
gff 2037 generic gff file gff
gda 22008 static table data gff

Others

Extension Type ID Type description/Usage Format Documentation Status
emit 21006
plo 22021 plot information gff
sadl 21022 sound list text
sdat 21023 sound data binary
smp 21024 sound map binary
spl 21025 spell definition 2da
vx 21026 prerendered video actimagine
walk.tga
0x[0-9ABCDEF]{8} unknown hash?

GUI

  • Layout defined in the .gui resources in Gff4 format
  • Both screens are of size 256x192
  • Coordinate system is 2D, (0,0) is in the upper left corner
  • Both screens define their own coordinate system from (0,0) to (256,192)
  • To implement both screens easily, use a GUI size 256x384 and add 192 to the Y coordinate for the lower screen
  • The following values for the labels are used:
integer value usage
60000 X coordinate of the widget in the upper screen
60001 Y coordinate of the widget in the upper screen
60002 width of the widget in the upper screen
60003 height of the widget in the upper screen
60004 background texture
60005 Default text?
60006 only used in test.gui
60007
60008 only used in test.gui
60009
60010
60011
60013 uint8, PANE attribute, possible values 0,1,255
60014
60015 palette
60016 vector3f, text color?
60017
60018 X coordinate of the widget in the lower screen
60019 Y coordinate of the widget in the lower screen
60020 width of the widget in the lower screen
60021 height of the widget in the lower screen
60022
60023 strref in the tlk file
60024 uint8, always 0
60025 uint8, LIST attribute, always 17
60026
60027
60028 uint8, always 0
60029
60030
62000 widget name
62002 list of children widgets
62003 list of some textures (active state?)
62004 list of some textures (inactive state?)
62005 list of some textures
62006 list of some textures
62007 list of some textures