Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 16.05.2005, 12:35   #1
Juokelis
Архивный участник
 
Join Date: Apr 2005
Posts: 11
Default

I can try, let's say for itemname-e.dat:

sample:


description:

All hex values in the file are read low endian
----------------------------------------------

Header:
-------
4 bytes: Number of entries (?)

Entries:
--------
4 bytes: ID
4 bytes: name string length (N)
N bytes: name (UTF8)
4 bytes: name finishing string (x00000000)
1(2) bytes: description sting length (D)
D bytes: description (ASCII)
4 bytes: finishing string (xFFFFFFFF)

Comments, exceptions:
--------
Finishing string(xFFFFFFFF) can go right after name finishing string (x00000000), in this case description is left empty.
Description length (the best one, it cost me few hours of headache while I foundout ...):
If first byte after name finishing string less that 64, length will be this one byte.
If first byte after name finishing string greater thatn 64, we should take one more byte and do that:
Multiply 64 to second byte and add second byte, substracted by 64, that will be our description length

Example:
1. first byte 63 (x3F) - mean that length of desc is 63 bytes.
2. first byte 98 (x62) - mean that we should take second byte - 6 (x06), and do such:
64 * 6 + 98 - 64 = 418, our description length will be 418.

There is an ASCII string at the end of the file: "Safe package".
Juokelis is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:00.