Skip to content

Type : Array

iamkisly edited this page Aug 20, 2017 · 2 revisions

Example of obj_f_resistance_idx (Int32Array)

01 | IS_NULL FIELD
04 00 00 00 | ELEMENT_SIZE (BYTES) 
03 00 00 00 | ELEMENT_COUNT
04 00 00 00 | UNKNOWN FIELD (the serial number of the array?)

0A 00 00 00 | VALUE0
14 00 00 00 | VALUE1
64 00 00 00 | VALUE2

02 00 00 00 | COUNT
0D 00 00 00 | IDENTITY FLAG0
00 00 00 00 | IDENTITY FLAG1 OR RESERVED

Example of obj_f_scripts_idx (ScriptArray) using the structures inside.

01 | IS_NULL FIELD
0C 00 00 00 | ELEMENT_SIZE (BYTES) 
03 00 00 00 | ELEMENT_COUNT
6B 25 00 00 | UNKNOWN FIELD

--Script #1--
10 20 40 80 | COUNTERS
05 06 07 08 | FLAGS
0B 00 00 00 | SCRIPT# 11

--Script #2--
01 04 10 40 | COUNTERS
09 0A 0B 0C | FLAGS
0D 00 00 00 | SCRIPT# 13

--Script #3--
03 03 03 03 | COUNTERS
04 04 04 04 | FLAGS
14 00 00 00 | SCRIPT# 20


02 00 00 00 | COUNT

13 00 00 00 | IDENTITY FLAG0
00 00 00 00 | IDENTITY FLAG1 OR RESERVED

Частный случай. Существует только в mob файлах

01 | IS_NULL FIELD
04 00 00 00 | ELEMENT_SIZE (BYTES) 
00 00 00 00 | ELEMENT_COUNT
04 00 00 00 | UNKNOWN FIELD (the serial number of the array?)

02 00 00 00 | COUNT
0D 00 00 00 | IDENTITY FLAG0
00 00 00 00 | IDENTITY FLAG1 OR RESERVED

Clone this wiki locally