Page 1 of 4

DataPack Editor

Posted: Thu Feb 13, 2014 6:28 pm
by siulx
Current Status :

- Edit Skills / Items / NPCs (xml files)
- Create NPC from wizard.
- Simple Search.
- Edit/Assign Spawns of NPCs (Parcial)

To do :
- Create Items from wizard.
- Create Skills from wizard.
- Advanced Search.
- Add Templates to wizards
- Edit NPCs HTML depending on type
- Support for skillTrees, multisell, buylist etc...

Re: DataPack Editor

Posted: Thu Feb 13, 2014 7:06 pm
by jurchiks
Eclipse has XML editing tools, though they can be sluggish for large files, particularly in syntax highlighting.

Re: DataPack Editor

Posted: Thu Feb 13, 2014 7:24 pm
by siulx
jurchiks wrote:Eclipse has XML editing tools, though they can be sluggish for large files, particularly in syntax highlighting.
You still have to edit in text ? or it does provide some king of GUI ?

Re: DataPack Editor

Posted: Thu Feb 13, 2014 7:42 pm
by UnAfraid
siulx wrote:
jurchiks wrote:Eclipse has XML editing tools, though they can be sluggish for large files, particularly in syntax highlighting.
You still have to edit in text ? or it does provide some king of GUI ?
Its text editor but at least it has auto complete and highlighting, formatting, validating.

Re: DataPack Editor

Posted: Thu Feb 13, 2014 8:27 pm
by jurchiks
It's Eclipse, obviously it has a GUI.

Re: DataPack Editor

Posted: Thu Feb 13, 2014 9:31 pm
by siulx
well what I mean by GUI was edit xml without touch the text, and by validation I mean by "property can have that value"

for example : <target race_id="1" /> <!-- Undead -->
Cant be : <target race_id="Undead" /> <!-- Undead -->

So i guess theres nothing

Re: DataPack Editor

Posted: Thu Feb 13, 2014 9:57 pm
by jurchiks
For skills no, there is no XSD because the structure is too fucked up, everything can be anything since it's all <set name="x" value="y">.

Re: DataPack Editor

Posted: Fri Feb 14, 2014 11:51 am
by siulx
Can sameone help me with this part ? skills can have 2 affectRange ? the order of "set" is relevant ?

<skill id="1181" levels="3" name="Flame Strike">
    <table name="#effectPoints"> -204 -243 -285 </table>
    <table name="#magicLvl"> 20 25 30 </table>
    <table name="#mpConsume"> 23 27 32 </table>
    <table name="#mpInitialConsume"> 6 7 8 </table>
    <table name="#power"> 13 14 14 </table>
    <set name="affectLimit" val="5-12" />
    <set name="affectRange" val="200" />
    <set name="castRange" val="500" />
    <set name="effectPoint" val="#effectPoints" />
    <set name="effectRange" val="1000" />
    <set name="element" val="0" /> <!-- Fire -->
    <set name="elementPower" val="20" />
    <set name="hitTime" val="4000" />
    <set name="icon" val="icon.skill1181" />
    <set name="isMagic" val="1" /> <!-- Magic Skill -->
    <set name="magicLvl" val="#magicLvl" />
    <set name="mpConsume" val="#mpConsume" />
    <set name="mpInitialConsume" val="#mpInitialConsume" />
    <set name="operateType" val="A1" />
    <set name="power" val="#power" />
    <set name="reuseDelay" val="4000" />
    <set name="targetType" val="AREA" />
    <for>
        <effect name="MagicalAttack" />
    </for>
</skill>

Re: DataPack Editor

Posted: Fri Feb 14, 2014 1:15 pm
by Sdw
effectRange and affectRange is different :)

affectRange = Effecting area of the skill, in radius.
effectRange = How far the skill affect the target

Re: DataPack Editor

Posted: Fri Feb 14, 2014 3:29 pm
by jurchiks
effectRange should have been called skillRange. It's not like the effect ends when the target goes a certain distance away from the caster.
If there was a range for the effect and not the skill then it should be like <effect range="xyz">.

But anyway, the naming of many things sucks in l2j, that's just how it is. The author knows what it is and doesn't care about anyone else.

Re: DataPack Editor

Posted: Fri Feb 14, 2014 4:00 pm
by xban1x
jurchiks wrote:effectRange should have been called skillRange. It's not like the effect ends when the target goes a certain distance away from the caster.
If there was a range for the effect and not the skill then it should be like <effect range="xyz">.

But anyway, the naming of many things sucks in l2j, that's just how it is. The author knows what it is and doesn't care about anyone else.
We name stuff accordingly to our believes. And since when range is described as "xyz" ? :D

Re: DataPack Editor

Posted: Fri Feb 14, 2014 4:14 pm
by jurchiks
xyz = value, obviously.

Your beliefs don't describe the reality well enough then.
I'd even go as far as to say: "proper variable naming is an art."

Re: DataPack Editor

Posted: Fri Feb 14, 2014 4:33 pm
by siulx
Sorry, I most be tired... I dint notice the diference between them XD affectRange, effectRange

anyway if I find "Set" with the same name its a xml error right ?

Re: DataPack Editor

Posted: Fri Feb 14, 2014 4:57 pm
by jurchiks
Yes, there should be no duplicate names.

Re: DataPack Editor

Posted: Fri Feb 14, 2014 6:53 pm
by siulx
sorry to be annoying,

Is there any document more recent then this one ? --> http://www.l2jserver.com/wiki/Skills

I found alot of things that are not there like :
<enchant7for> / <enchant7pveEffects> / <selfEffects> / <endEffects> / <channelingEffects>