Player profile offset #s wrong?
While messing around with the player profile, and trying to shift some data around, I noticed:
/*0348*/ uint8 unknown0256[44]; /*0396*/ Color_Struct item_tint[MAX_MATERIALS]; I think item_tint should start at /*0392*/ (348+44 = 392). I tried to go through line by line, but I can't find where the numbers get back on track. My profile size is correct (/*19568*/), but I don't want to mess with anything until I know if the posted numbers are correct. Anyone know or am I completely wrong? lol |
Those comments shouldn't affect the actual pp. As long as the items are the correct size, that is.
|
As Joligario says, some of the offset comments are wrong, so just trust your math :) and correct the comments to have the correct values.
Also, the Unknown values should have a suffix that reflects their offset, so assuming Unknown0256 is really at offset 348, it should really be defined as: Code:
/*0348*/ uint8 Unknown0348[44] |
I understand that the comments don't have anything to do with the code, but I can't find where the other error is to realign the offsets, so I'm not sure at what offset I should be splitting for some sql code I'm writing. I guess I'll go through them again and try to find it.
|
Ah, didn't realise you needed absolute offsets for SQL purposes.
I think I've used code like this in the past to find the offsets: Code:
uchar *PPStartAddress = (uchar*) &m_pp; Output: Code:
Unknown0256 is 348 bytes into the player profile |
Thanks. Hopefully I get to this by this weekend and if I find where the offsets are wrong, I'll make the changes so everyone will have the correct numbers.
|
Just to update this, I fixed the PP comments and unknowns to match the math.
|
All times are GMT -4. The time now is 07:43 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.