A really basic question: when customize something in the datapack, should I copy the whole xml into the "custom" folder and modify it in there or only copy the stuff that I want to customize?
For example, if I want to change item 14739 in 14700-14799.xml, what I'm doing now is copying the 14700-14799.xml into "custom" folder and delete all the items I don't want to modify and only leave the basic xml structure and item 14739 in there, is this the correct way of doing this?
Question about customization
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: Question about customization
If you modify existing items, you don't copy anything anywhere, you modify the existing xml file and that's it. I'm pretty sure the stats aren't overwritten if you copy an item to a custom XML and modify it there. If they are though, then what you're doing is good as it is.
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.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
- terrance
- Posts: 14
- Joined: Mon Dec 20, 2010 5:15 pm
Re: Question about customization
I thought the custom folder is there so you don't have to modify the existing xml? So if you update your datapack your custom changes will not get overwritten? Anyway, I already did a few successful changes this way, but the reason I'm making this post is because I'm not sure what's happening to the other items I omitted in the xml in custom folder, is the server smart enough to use the original stats for those items or is it going to think those items do not exist?jurchiks wrote:If you modify existing items, you don't copy anything anywhere, you modify the existing xml file and that's it. I'm pretty sure the stats aren't overwritten if you copy an item to a custom XML and modify it there. If they are though, then what you're doing is good as it is.
- Zoey76
- L2j Inner Circle
- Posts: 7005
- Joined: Tue Aug 11, 2009 3:36 am
Re: Question about customization
This is correct, I believe you could even use custom names and merge different ID ranges.terrance wrote:For example, if I want to change item 14739 in 14700-14799.xml, what I'm doing now is copying the 14700-14799.xml into "custom" folder and delete all the items I don't want to modify and only leave the basic xml structure and item 14739 in there, is this the correct way of doing this?
Powered by Eclipse 4.30 | Eclipse Temurin 21 | MariaDB 11.3.2 | L2J Server 2.6.3.0 - High Five
Join our Discord!
Join our Discord!
- terrance
- Posts: 14
- Joined: Mon Dec 20, 2010 5:15 pm
Re: Question about customization
Good to know, thanks Zoey.Zoey76 wrote:This is correct, I believe you could even use custom names and merge different ID ranges.terrance wrote:For example, if I want to change item 14739 in 14700-14799.xml, what I'm doing now is copying the 14700-14799.xml into "custom" folder and delete all the items I don't want to modify and only leave the basic xml structure and item 14739 in there, is this the correct way of doing this?
- terrance
- Posts: 14
- Joined: Mon Dec 20, 2010 5:15 pm
Re: Question about customization
Zoey, could you please also take a look at my other question about EXP runes? I tried so many different ways but it still doesn't work the way it supposed to. viewtopic.php?f=81&t=30700Zoey76 wrote:This is correct, I believe you could even use custom names and merge different ID ranges.terrance wrote:For example, if I want to change item 14739 in 14700-14799.xml, what I'm doing now is copying the 14700-14799.xml into "custom" folder and delete all the items I don't want to modify and only leave the basic xml structure and item 14739 in there, is this the correct way of doing this?
-
- Posts: 6
- Joined: Mon Feb 09, 2015 1:57 am
Re: Question about customization
my way to do it is make the original skill a comment using <!--Item Data -->
like the example:
Then copy the original item into Custom.xml
there you can edit everithing without much problem and keep the original untouched no need to change the ID so is easy to do it again if you update,
just need to make it like comment again.
Greetings
like the example:
Code: Select all
<!-- <item id="21401" type="EtcItem" name="Gold Maned Lion Mount Bracelet Pack">
<!-- Description: Dimensional item pack. Gift box containing 1 Gold Maned Lion Mount Bracelet. Cannot be exchanged or dropped. Can be shared between characters within an account through the Dimensional Merchant. Can be stored in a private warehouse. -->
<set name="icon" val="BranchSys.icon.br_four_leaf_clover_box_i00" />
<set name="material" val="STEEL" />
<set name="is_tradable" val="false" />
<set name="is_dropable" val="false" />
<set name="is_stackable" val="true" />
<set name="is_freightable" val="true" />
</item> -->
there you can edit everithing without much problem and keep the original untouched no need to change the ID so is easy to do it again if you update,
just need to make it like comment again.
Greetings