-
Notifications
You must be signed in to change notification settings - Fork 2
aspadm edited this page Oct 21, 2018
·
3 revisions
Database
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.
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 |
table | structure |
---|---|
Materials | SSSIFFFIFIFfIX |
Weapon | SSISIIIFFFFIFIXB00000IHFFFfHHFF |
Armor | SSISIIIFFFFIFIXB00000ffBiHH |
Quick items | SSISIIIFFFFIFIXB00000IIFFSbH |
Quest items | SSISIIIFFFFIFIXB00000Is |
Loot items | SSISIIIFFFFIFIXB00000IHI |
table | structure |
---|---|
Lever prototype | SfIFTSSS |
table | structure |
---|---|
Skills | SSI0000000s |
Perks | SSI0000000SSIIIFFFIIIIBI |
table | structure |
---|---|
Blood prints | 0S11 |
Fireprints | 0S110000001 |
Footprints | 0S11 |
table | structure |
---|---|
Spell prototypes | SSSFIFIFFFFIIIIUSSIIbIXFFFFF |
Modifyers | SSFIFFISX |
Spell templates | 0SssSX |
Armor spell templates | 0SssSX |
Weapon spell templates | 0SssSX |
table | structure |
---|---|
Hit locations | SffUU |
Race models | SUFFUUFfFUUf222222000000000000SssFSsfUUfUUIUSBFUUUU |
Monster prototypes | SSIUIFFFSFFFFFFFFFUFFFFFFff33sfssSFFFFFUFUSF |
NPC | SUFFFFbbssssFUB |
table | structure |
---|---|
Answers | 0S0000000044444444444444444444445444444444444 |
Cryes | 0S0000000044444 |
Others | 0S0000000044 |
table | structure |
---|---|
Quests | SFIISIIs |
Briefings | SFFsSsssssI |