Skip to content

Runtime Resource IDs

Pavle edited this page Jul 27, 2022 · 6 revisions
Assembly paths are converted to lowercase before generating MD5 hash.
First two numbers of MD5 hash are replaced with 0.

Header Library Hash:
Example:
[[assembly:/Common/PC.layoutconfig].pc_layoutdef](assembly:/scenes/l01/l01_main.entity).pc_headerlib
0x00985D5C975B2115
-----------------------------------------------------------------------------------------------------
Resource Library Hash:
First half is replaced with 0x40000000

Example:
[[assembly:/common/pc.layoutconfig].pc_layoutdef](1000).pc_resourcelib
0x40000000A45DBE71
-----------------------------------------------------------------------------------------------------
Resource Hash:
First half is indexInLibrary & 0xFFFFFF | 0x80000000;
Second half of runtime resource id is second half of hash for resource library in which resource is located

Example:
Resource Library: [[assembly:/common/pc.layoutconfig].pc_layoutdef](1000).pc_resourcelib 0x003A20FFA45DBE71
Index in Library: 0
0x80000000A45DBE71
Clone this wiki locally