header.smbph bounding box oddities

    Joined
    May 26, 2014
    Messages
    37
    Reaction score
    26
    • Legacy Citizen 5
    • Purchased!
    • Community Content - Bronze 1
    I'm processing the header files of blueprints and have run into a odd issue with what I thought were the bounding points for the entity. They are close, but wrong. I get the data as 6 floats (2x x,y,z) from byte position 0x8 onwards.

    For example, I have a test ship that is 21 x 11 x 7 (LWH), but the data in the header file seems to indicate it is 23 x 13 x 9.

    Rather than just subtracting 2 from all dimensions, I jumped in to try and determine what was causing this.

    A core-only blueprint (1x1x1), these values give me (-1.0,-1.0,-1.0) (2.0, 2.0, 2.0). Adding a block in any direction correctly increments/decrements the expected float.

    Question

    So my puzzle is, what's up with the values - why do they start at -1 and +2?
     
    Joined
    May 26, 2014
    Messages
    37
    Reaction score
    26
    • Legacy Citizen 5
    • Purchased!
    • Community Content - Bronze 1
    Yes, I have - it's the basis of how it reads the data (in Python). I've confirmed it isn't an issue with how I read the data since I have checked the file in a hex editor.
     
    Last edited: