Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 14.05.2005, 21:14   #1
Juokelis
Архивный участник
 
Join Date: Apr 2005
Posts: 11
Default 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 is offline  
Old 15.05.2005, 10:33   #2
Juokelis
Архивный участник
 
Join Date: Apr 2005
Posts: 11
Default

Added "skill_end" in the end of line
Juokelis is offline  
Old 15.05.2005, 19:21   #3
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

i'll be more interested to know how to converted the .dat instead. lol
Digital is offline  
Old 15.05.2005, 19:26   #4
Juokelis
Архивный участник
 
Join Date: Apr 2005
Posts: 11
Default

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.
Juokelis is offline  
Old 15.05.2005, 21:39   #5
Metalmurphy
Архивный участник
 
Join Date: Feb 2005
Posts: 766
Default

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.
Metalmurphy is offline  
Old 16.05.2005, 10:52   #6
Juokelis
Архивный участник
 
Join Date: Apr 2005
Posts: 11
Default

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
Juokelis is offline  
Old 16.05.2005, 11:37   #7
12345
Архивный участник
 
Join Date: Apr 2005
Posts: 4
Default

Great work Juokelis.

Can you describe how your extracting the info cleanly from the .dat files?
12345 is offline  
Old 16.05.2005, 12:35   #8
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  
Old 24.06.2005, 02:49   #9
Sauron
Архивный участник
 
Join Date: Feb 2005
Posts: 357
Default

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%
Sauron is offline  
Old 28.06.2005, 17:29   #10
Osito2Dancer
Архивный участник
 
Join Date: Mar 2005
Posts: 442
Default

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

Oso
Osito2Dancer is offline  
 


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 22:57.