Fragment 0x22
Well, I've been working on my handler code for this fragment for a while now, and I'm completely lost. I parse it according to the docs, but 1) size3 and 4 are both 0 and size6 is 1, and 2) data6 has string lengths in the negative hundred millions. This fragment confuses me quite a bit, so I was wondering if i could get some pointers as to where to look in the OpenZone/$OTHER_CODE source.
Thanks, and happy hacking. Lord Daeken M. BlackBlade (Cody W. Brocious) |
Take a look at EQWldData.pas in the OpenZone source. It loads the 0x22 fragment correctly.
WC |
Well, I am looking through it and comparing it to my source... and I've found something. The docs say that 0x181 in the flags field means there are polygons in the region, yet you see if flags & 0x101 != 0 and say that the fragment configuration isn't known... any idea on how to handle these?
|
I think that code is a holdover from the old ZoneConverter days. This code comes mostly from an old C program called ZoneConverter, which someone else wrote (I have no idea who, but I found it somewhere on the EthernalQuest site -- I think). I thnk that's where it comes from (shrug).
WC |
for 0x15 fragments :
I have this working but it is not like explained in your documentation wind =( : Code:
bool Data15::Decode(Buffer & buffer) other flag values i have seen are 0x22E and 0x2E 0x2E is for the unique 0x15 fragment in the main zone file but 0x22E and 0x32E appears in objects.wld files for placeable objects, it depends of the zone now i can load all the zones but i still have problems with new format textures, those zones appear really ugly lol |
I did some digging and I think you're right about the 0x15 fragment. It looks like Params2 only exists if (flags & 0x100) != 0. I've updated the document accordingly. I hope to release something tonight. I have most of the older models rendering properly but none of the newer ones. I suspect it might have something to do with rotation order but that's a guess.
WC |
All times are GMT -4. The time now is 10:34 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.