Question, for naming variables.
So the "two bytes" from the previous post are actually sub ID's, because they apparenly ran out of space with a limit of 255 max.
For my library, what should the two sub ID fields be called?
SubID and SubSubID or...any other better ideas, I'm out of any.
@email@example.com if \LaTeX's allowed to have \subsection and \subsubsection, why not?
Altough I'd rather go for minor and major if it's just two fields.
@pixel pixel and subpixel? :3
@pixel rename the root id to DomID, then follow it up with SwitchID and SubID
@pixel is it 2 1 byte Ids or 1 2 byte Id?
@luna 2 1 byte IDs!
@pixel *who designed this MESS*
Do they have any kind of semantic relationship or are they just two IDs?
@luna back in 2004 devs:
"oh hey, 255 bones surely will be enough"
"at bone 254, we introduce a sub ID to continue counting up, and another id to count even further"
0-253 only uses the first ID, and then 254 and 255 use the second ID?
@luna because bone 255 is the root, and the game is instructed to stop reading in structures if it reaches 255, so it adds another id on 254.
@pixel oh so 0-253 uses First ID, 254 use Second ID and 255 is a special value?
@pixel what the fuckens
@luna me, when I figured that out
@pixel Why do people always come up with the worst fucking binary formats
Like I used to mess around with cave story music files and THEY'RE SO BAD
Cuz they have
[track] * 16
[notes] * track.note_count * 16
EXCEPT THE NOTES AREN'T STORED LIKE
IT'S SUCH A PAIN TO PARSE THAT YOU END UP WITH SO MANY LOOPS
@pixel Reason I mentioned this is because
A) people make fucking awful formats
B) I HAVE SO MANY PROJECTS BACKLOGGED BUT I CAN'T BE ARSED TO WRITE A LIBRARY FOR THIS :(((((((((((((
@luna awful formats?
this whole game
@kurisu they are
it was a pain in the ass to debug this because the file that contained this structure is 12 MB
12 MB of binary structures related to animations, and shortly before the end this weird parsing error with the two additional bytes comes up, which can be skipped over quite easily.
@pixel First off: What a fucking nightmare.
Secondly I suppose you could see it as Major ID / Minor ID pair?
SubIdMajor and SubIdMinor?
@pixel FirstLevelID and SecondLevelID perhaps
Welcome to desu.social, pixeldesu's personal Mastodon instance!