Page 1 of 1

Question about customization

Posted: Mon Dec 29, 2014 8:06 pm
by terrance
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?

Re: Question about customization

Posted: Mon Dec 29, 2014 9:09 pm
by jurchiks
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.

Re: Question about customization

Posted: Mon Dec 29, 2014 10:11 pm
by terrance
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.
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?

Re: Question about customization

Posted: Mon Dec 29, 2014 11:20 pm
by Zoey76
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?
This is correct, I believe you could even use custom names and merge different ID ranges.

Re: Question about customization

Posted: Mon Dec 29, 2014 11:26 pm
by terrance
Zoey76 wrote:
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?
This is correct, I believe you could even use custom names and merge different ID ranges.
Good to know, thanks Zoey.

Re: Question about customization

Posted: Mon Dec 29, 2014 11:29 pm
by terrance
Zoey76 wrote:
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?
This is correct, I believe you could even use custom names and merge different ID ranges.
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=30700

Re: Question about customization

Posted: Thu Feb 19, 2015 4:19 pm
by johanzo01
my way to do it is make the original skill a comment using <!--Item Data -->
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>  -->
	
	
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