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
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 »

jurchiks wrote:Well, that's not really a proper XSD, it doesn't restrict values in <set name="abc" value="anything goes here">.
Not saying its proper but that we have one :P
It will be changed after skills or with their structure change.
Image
siulx
Posts: 70
Joined: Mon Jul 20, 2009 4:36 pm

Re: DataPack Editor

Post by siulx »

Im not planing to use the xsd anyway XD.

Im doing like this atm:

Select SkillId = X

Do you have Tables ?
Do you have Set ?
Do you have EnchantX ?
Do you have For ?
Etc..
What Else do you have ?
xban1x
L2j Veteran
L2j Veteran
Posts: 1228
Joined: Thu Jan 17, 2013 9:46 am

Re: DataPack Editor

Post by xban1x »

It's real simple, jurchiks can provide the class he made, it's not hard to compare XML to XSD to see if it matches...
siulx
Posts: 70
Joined: Mon Jul 20, 2009 4:36 pm

Re: DataPack Editor

Post by siulx »

Well, I'm making a different approach.
I load every Node and Childs on the treeview
Then I check selected node for Property and text and provide Controls to modify it. (its also easy)

for some important fields I will hardCode (maybe I load an extra file) to make validation, since everything can change at any moment I will no bother with it.

I just want to have something the help me to fast create what I want.
Create NPC/Skill from template.
Get All Quests/HTMLs of the NPC.
search NPC by property.
Provide Link to Skills (for edit or check)
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: DataPack Editor

Post by jurchiks »

For XMLs that have proper XSDs (pretty much every XML except the item ones), you could just parse the XSD and use its diagram for restriction/autocomplete/available options.
When the XMLs change, the XSDs change too (in l2j, at least), so you would only need to make a generic tool that can parse XSDs and use their info to operate on the corresponding XMLs.
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 »

And it shoudn't be much trouble either. Since all L2js XML's are connected to XSD so if you make a mistake Eclipse will tell.
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 »

I believe he is doing that app on C# so eclipse is out of the picture :P
Image
xban1x
L2j Veteran
L2j Veteran
Posts: 1228
Joined: Thu Jan 17, 2013 9:46 am

Re: DataPack Editor

Post by xban1x »

UnAfraid wrote:I believe he is doing that app on C# so eclipse is out of the picture :P
App can be on C# but you can hook it into your /data folder meaning when you open up Eclipse next time it will show mistakes ^^:)
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: DataPack Editor

Post by jurchiks »

Unless XML tools are not installed.
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 »

Now its working for any tag he find, either have Attributes, innerText or both.

About the XSD, I will need to read about it first, because this is the first time Im in need of it. (Thats why I was avoiding.)

Antharas was the test subject XD ( Why theres no Id/name for each group in the drop_list ? and if the change its the same why Items are separated ? )

Image
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: DataPack Editor

Post by jurchiks »

The group thing is because only 1 item from each group can drop, but multiple groups can drop.
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 »

Is the Options xml files All the available options of Items Augmentation ? or have options for other things?
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: DataPack Editor

Post by jurchiks »

Read the XSD.
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 »

Im starting to disign the tool for NPC spawns. I have a worldmap where I create "Red dots" of the selected NPCs Locations. (Blue if its radom spawn.) and Im checking this tables for Spawns ...

custom_npc on idTemplate.
spawnlist on npc_templateid
grandboss_data on boss_id
raidboss_spawnlist on boss_id
hellbound_spawnlist on npc_templateid
territory_spawnlist on npcId
random_spawn, random_spawn_loc on npcId

I cant find the spawnlist for example, Nurse Ant, Did I miss any data ? most of the RB miniums also dont show. Is it hardcoded ?

I Also create a tool to make NPCs with a wizard help. at the end of it and depending of the options. I present a map to define the spawn Location. You click on the map and I get the X/Y of that location. Can anyone give me a tip of how I can get the Z values available for that X/Y position ?
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: DataPack Editor

Post by jurchiks »

AFAIK RB minions spawn around the boss in a certain radius. Nurse Ants are also minions, so...
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.
Post Reply