Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   c3 skillnames-e.dat (https://postpacific.loc-online.com/showthread.php?t=619)

Juokelis 14.05.2005 21:14

c3 skillnames-e.dat
 
Converted to C2 like format.

Sample:

skill_begin skill_id = 4511 skill_level = 1 name = [Treasure Chest - Level 49] desc = [A locked chest that could contain treasure or a nasty surprise.]
skill_begin skill_id = 4512 skill_level = 1 name = [Treasure Chest - Level 52] desc = [A locked chest that could contain treasure or a nasty surprise.]
skill_begin skill_id = 4513 skill_level = 1 name = [Pumpkin - Level up] desc = [Large pumpkin event. Increases pumpkin's level.]
skill_begin skill_id = 4514 skill_level = 1 name = [Pumpkin - Poisoning] desc = [Large pumpkin event. Poisons a pumpkin.]

If You need any other export format of this data, gimme a note #5069131, i'll make it ;)

Juokelis 15.05.2005 10:33

Added "skill_end" in the end of line ;)

Digital 15.05.2005 19:21

i'll be more interested to know how to converted the .dat instead. lol
:)

Juokelis 15.05.2005 19:26

Can You read PHP ?
I write not very good, but you'll understand how file is done ...

And here's itemnames-e.dat (in MySQL format for now). If need any other format, i'm all yours.

Metalmurphy 15.05.2005 21:39

Code:

-- Database: `l2jpc2`
--

this is taken from a database of an l2j server i think. So this probably means they got a way of taking info from .dat files.

Juokelis 16.05.2005 10:52

Quote:

Originally Posted by Metalmurphy
Code:

-- Database: `l2jpc2`
--

this is taken from a database of an l2j server i think. So this probably means they got a way of taking info from .dat files.

Yes, my main attention is to L2J, ans yes it's taken from MySQL database, and even Yes I know how to read .dat files ;) (Idea and recipes structure not mine, but all other ... ;) )
And I can share that info, just tell me what do you need exactly ?

I still working on weapon/armor/etcitemgrp.dat's .. there's more work with them .. but i think i'll have weapongrp.dat exctracted today and other today.tomorrow.

You can take a look at db if you want ;)

http://l2j.mazylis.lt:8080/phpadmin
user/pass: l2jpc2/l2jpc2

12345 16.05.2005 11:37

Great work Juokelis.

Can you describe how your extracting the info cleanly from the .dat files?

Juokelis 16.05.2005 12:35

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

sample:
http://l2j.mazylis.lt:8080/L2/itemnames-e.jpg

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".

Sauron 24.06.2005 02:49

Quote:

Originally Posted by Juokelis
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)

that is not a finishing string, is the len of something else, here's a sample:

id: 4885
name: paagrio axe
???: Mane Up
Desc: Increases maximum MP by 30%

Osito2Dancer 28.06.2005 17:29

Could be SA? or +4 Skill so it seems?

Oso


All times are GMT. The time now is 15:14.