(Last updated: August 29, 2018)

This page offers some converters for the numbers found in Borderlands 2 and The Pre-Sequel's BehaviorProviderDefinition objects. If you don't know what those are, then this isn't for you, but if you're interested anyway you can find out more here.

ArrayIndexAndLength Calculations

(Displayed as a signed 32-bit int, is actually two unsigned 16-bit shorts)
Single Number:
←→
Array Index:
Length:
History:

LinkIdAndLinkedBehavior Calculations

(Displayed as a signed 32-bit int, but is probably a signed byte, an empty byte, and one unsigned 16-bit short.)*
Single Number:
←→
Link ID:
Behavior:
History:

* LinkIdAndLinkedBehavior attributes have historically been thought of by the modding community as a signed (two's compliment) 32-bit integer which gets chopped in half to get the "link ID" and behavior, respectively, but a closer look at the data shows that's probably false. Borderlands data dumps do show the value as a signed 32-bit int, but the "Link ID" appears to be entirely confined to the top byte, and the values make much more sense when interpreted that way. The "behavior" side rarely escapes one byte, but in a few cases demonstrates that it's at least a 2-byte short. The byte inbetween the two is zero for every BPD in the BL2 and TPS datasets.

Changelog

August 29, 2018
  • Initial release