-
im trying to read vince’s documentation on the nodes format, and i keep seeing things like “[32-bit signed int big endian]” , or “8-bit signed byte” .
No idea what these things mean, other than “int” and “float”.I’ve only heard what “signed” is from minecraft videos talking about the integer limit lmao all documentation i can find on “big endian” and “little endian” is so out of my skill level help im going to die




ok i finally think i figured it out
a “32-bit signed int big endian” means you have to represent the number using 32 bits max, and the first bit of that must represent a negative or positive (i dont know which is which, probably 0 = negative and 1 = positive but who knows)
i was wrong, 1 = negative and 0 = positive
But why dahell did ralf make the version number signed, the version number isnt gonna go into the negatives lmao
i have successfully done it
the sticknodes version number in 32-bit signed int big endian is 01111111 00101011 00000000 00000000
and in hex that is 7F 2B 00 00
i am a god
so why doesnt that match up to what i see in my test figure
one thing i never quite grasped the concept of is wtf big vs little endian is
i should figure that out one day
i think big endian means that what the bit is multiplied by starts as 256 and slowly works down till the lowest power of two (1), and it’s pretty popular because us humans read left to right
and little endian is the exact opposite, starting with 256 and ending with 1
I’m also pretty sure little endian is a tiny bit faster so it’s the norm for a few systems