What maximum value of a dval ID can be set?

What’s the Maximum value for dval ID is?

Ans: 2^32-1 = 4,294,967,295

Why?

Because Forge is a 32-bit program and can’t handle integers outside the 32-bit range. In practice, highest ID value that Forge uses (for auto-generated or external dimension values) is actually 2^32 – 2 (4294967294): and not recommended to exceed this.

When assigning IDs to auto-generated or external dimvals, Forge starts at 4294967294 and decrements. So it’s usually best to number internal IDs starting at 1 and incrementing, in order to minimize chances of ID collision.

Let's Share
Exit mobile version