Quote:
Originally Posted by hack0r89
thx for the info on update
updated mine with that and its working too ;-)
cant the end of the chain (or the way to detect it) be read from client?
|
No, detecting it is pretty easy though (as I had thought). There is exactly 20 header items worth of space. If you have 1 - 20 items, the next chain stays null. As soon as you have 21 - 40, you get the next chain which will start a new block of 20 items. It makes sense as it wants to be as efficient as possible in terms of not having to always allocate new space for files.
I'll have a very lightweight version of the new PK2 API released in my edxSilkroadLoader. My other version which supports more stuff will come later after I test all the extra code in there to make sure it's right. For now though, the new version (not what I am talking about originally in this thread) will have support for extracting into memory, but not directly to files.
Eventually, I'll rewrite the GUI interface for the tools and add a few other things as requested. Right now though, I am happy with the new API in terms of performance and flexibility!