23-09-2014, 12:55 PM -
You guys are getting through this at a pretty impressive pace!
Â
Not got my notes on me atm but when I get home I can fill in some detail on C2S_CS_CREATE_CHARACTER, the character appearance data was interesting, its a packed array where each variable uses a different number of bits, there's a single bit flag in amongst it so all the 8-bit vars after it end up using 7 bits of one byte and 1 bit of the next byte (i.e. Torso clothing ID and Hair Colour).
Â
I thought it was a bit odd that all the clothing item ID's are 8-bit but the weapon ID's are 16-bit, may just be that starting characters can only use clothing with ID's < 256? as I thought there were way more clothing options in TCOS?
Â
Not got my notes on me atm but when I get home I can fill in some detail on C2S_CS_CREATE_CHARACTER, the character appearance data was interesting, its a packed array where each variable uses a different number of bits, there's a single bit flag in amongst it so all the 8-bit vars after it end up using 7 bits of one byte and 1 bit of the next byte (i.e. Torso clothing ID and Hair Colour).
Â
I thought it was a bit odd that all the clothing item ID's are 8-bit but the weapon ID's are 16-bit, may just be that starting characters can only use clothing with ID's < 256? as I thought there were way more clothing options in TCOS?