Skip to content
aspadm edited this page Oct 21, 2018 · 3 revisions

На русском

Format: *DB

Description

Database

Structure

File consist from some tables with predefined value types. Common structure similar to MOB file: tables inside common node, records is nodes inside table.

Each node store it's type and size:

byte type_index;
byte lenght;

If lenght not even:

fseek(-1, SEEK_CUR);

uint length;
length--;

Real size = lenght / 2.
Value type is getting by index from table format string; by the symbol we can get real type.

Datatypes

symbol description
S string
I 4b int
U 4b unsigned
F 4b float
X bits byte
f float array
i int array
B bool
b bool array
H unknown hex bytes
T time
0 not stated
1 0FII
2 SUFF
3 FFFF
4 0SISS
5 0SISS00000U

Databases structure

Items (.idb)

table structure
Materials SSSIFFFIFIFfIX
Weapon SSISIIIFFFFIFIXB00000IHFFFfHHFF
Armor SSISIIIFFFFIFIXB00000ffBiHH
Quick items SSISIIIFFFFIFIXB00000IIFFSbH
Quest items SSISIIIFFFFIFIXB00000Is
Loot items SSISIIIFFFFIFIXB00000IHI

Levers (.ldb)

table structure
Lever prototype SfIFTSSS

Perks (.pdb)

table structure
Skills SSI0000000s
Perks SSI0000000SSIIIFFFIIIIBI

Prints (prints.db)

table structure
Blood prints 0S11
Fireprints 0S110000001
Footprints 0S11

Spells (.sdb)

table structure
Spell prototypes SSSFIFIFFFFIIIIUSSIIbIXFFFFF
Modifyers SSFIFFISX
Spell templates 0SssSX
Armor spell templates 0SssSX
Weapon spell templates 0SssSX

Units (.udb)

table structure
Hit locations SffUU
Race models SUFFUUFfFUUf222222000000000000SssFSsfUUfUUIUSBFUUUU
Monster prototypes SSIUIFFFSFFFFFFFFFUFFFFFFff33sfssSFFFFFUFUSF
NPC SUFFFFbbssssFUB

Acks (acks.db)

table structure
Answers 0S0000000044444444444444444444445444444444444
Cryes 0S0000000044444
Others 0S0000000044

Quests (.qdb)

table structure
Quests SFIISIIs
Briefings SFFsSsssssI
Clone this wiki locally