Page 3 of 4
Re: DataPack Editor
Posted: Tue Feb 18, 2014 12:46 pm
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

It will be changed after skills or with their structure change.
Re: DataPack Editor
Posted: Tue Feb 18, 2014 2:01 pm
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 ?
Re: DataPack Editor
Posted: Tue Feb 18, 2014 5:23 pm
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...
Re: DataPack Editor
Posted: Tue Feb 18, 2014 7:29 pm
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)
Re: DataPack Editor
Posted: Tue Feb 18, 2014 8:20 pm
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.
Re: DataPack Editor
Posted: Tue Feb 18, 2014 10:04 pm
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.
Re: DataPack Editor
Posted: Wed Feb 19, 2014 1:47 pm
by UnAfraid
I believe he is doing that app on C# so eclipse is out of the picture

Re: DataPack Editor
Posted: Wed Feb 19, 2014 2:19 pm
by xban1x
UnAfraid wrote:I believe he is doing that app on C# so eclipse is out of the picture

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 ^^:)
Re: DataPack Editor
Posted: Wed Feb 19, 2014 2:35 pm
by jurchiks
Unless XML tools are not installed.
Re: DataPack Editor
Posted: Thu Feb 20, 2014 11:33 pm
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 ? )

Re: DataPack Editor
Posted: Fri Feb 21, 2014 10:14 am
by jurchiks
The group thing is because only 1 item from each group can drop, but multiple groups can drop.
Re: DataPack Editor
Posted: Mon Feb 24, 2014 4:32 pm
by siulx
Is the Options xml files All the available options of Items Augmentation ? or have options for other things?
Re: DataPack Editor
Posted: Mon Feb 24, 2014 7:43 pm
by jurchiks
Read the XSD.
Re: DataPack Editor
Posted: Thu Mar 06, 2014 6:12 pm
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 ?
Re: DataPack Editor
Posted: Thu Mar 06, 2014 8:06 pm
by jurchiks
AFAIK RB minions spawn around the boss in a certain radius. Nurse Ants are also minions, so...