Bear Data
BearFile | |||
---|---|---|---|
aka Bear Data | |||
Resource names | BearResource | ||
Type ID | 0x343F | ||
Category | Unknown (decimal 13374) | ||
Memory distribution |
Main Memory only | ||
Imports | Texture | ||
Editor available? |
No |
Bear data is used in Black 2 (2007-02-13 build). It seems to contain material details.
Structures
Header
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x4 | uint32_t | ? | Version? | |
0x4 | 0x4 | uint32_t | ? | Resource size | |
0x8 | 0x4 | uint32_t | ? | Number of IDs | Possibly number of entries |
0xC | 0x4 | uint32_t | ? | Number of entries | Possibly number of IDs |
0x10 | 0x4 | uint64_t* | ? | IDs | |
0x14 | 0x4 | Entry** | ? | Entries | |
0x18 | 0x4 | Texture** | ? | Texture imports |
Entry
It is possible that entries could vary in length (as is suggested by the use of a pointer array), but in practice all entries are 0x650 bytes long, and that is how they are described here.
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x4 | uint32_t | ? | Number of indices | Always 1 |
0x4 | 0x4 | uint32_t | ? | Number of vectors | Always 0x30. Could also be a pointer to the indices |
0x8 | 0x20 | char[32] | ? | Name | |
0x28 | 0x8 | Padding | |||
0x30 | 0x2 | uint16_t[1] | ? | Length varies depending on the value at offset 0 | |
0x32 | 0x2 | Padding | |||
0x34 | 0x4 | uint32_t | ? | Vector length? | Always 0x10 |
0x38 | 0x4 | uint32_t | ? | Always 0x110 | |
0x3C | 0x4 | Padding | |||
0x40 | 0x8 | uint64_t | ? | Always 2 | |
0x48 | 0x600 | Vector4[48]? | ? | Vectors | float[4] Length varies depending on the value at offset 4 |
0x648 | 0x8 | Padding |