DataPack Editor

Have you created a useful tool? or Do you want to get help building one? This is the right place!
Forum rules
READ NOW: L2j Forums Rules of Conduct
siulx
Posts: 70
Joined: Mon Jul 20, 2009 4:36 pm

DataPack Editor

Post 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...
Last edited by siulx on Fri Mar 07, 2014 5:26 pm, edited 2 times in total.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: DataPack Editor

Post by jurchiks »

Eclipse has XML editing tools, though they can be sluggish for large files, particularly in syntax highlighting.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
siulx
Posts: 70
Joined: Mon Jul 20, 2009 4:36 pm

Re: DataPack Editor

Post 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 ?
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: DataPack Editor

Post 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.
Image
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: DataPack Editor

Post by jurchiks »

It's Eclipse, obviously it has a GUI.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
siulx
Posts: 70
Joined: Mon Jul 20, 2009 4:36 pm

Re: DataPack Editor

Post 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
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: DataPack Editor

Post 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">.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
siulx
Posts: 70
Joined: Mon Jul 20, 2009 4:36 pm

Re: DataPack Editor

Post 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>
Sdw
L2j Veteran
L2j Veteran
Posts: 855
Joined: Mon May 03, 2010 8:38 am
Location: France

Re: DataPack Editor

Post by Sdw »

effectRange and affectRange is different :)

affectRange = Effecting area of the skill, in radius.
effectRange = How far the skill affect the target
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: DataPack Editor

Post 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.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
xban1x
L2j Veteran
L2j Veteran
Posts: 1228
Joined: Thu Jan 17, 2013 9:46 am

Re: DataPack Editor

Post 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
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: DataPack Editor

Post 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."
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
siulx
Posts: 70
Joined: Mon Jul 20, 2009 4:36 pm

Re: DataPack Editor

Post 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 ?
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: DataPack Editor

Post by jurchiks »

Yes, there should be no duplicate names.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
siulx
Posts: 70
Joined: Mon Jul 20, 2009 4:36 pm

Re: DataPack Editor

Post 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>
Post Reply