Jump to content

Best code to use


Recommended Posts

 

Adding to an existing group:

<insertAfter xpath="/lootcontainers/lootgroup[@name='modMeleeT1']/item[@name='modFuelTankSmall']">

	<item name="modDyeBlack"/>

</insertAfter >

 

Adding a new group

<insertAfter xpath="/lootcontainers/lootgroup[@name='dyes']">

	<lootgroup name="dyesNew">

		<item name="modDyeBlack"/>

	</lootgroup>

</insertAfter >

 

You can also use insertBefore

Link to comment
Share on other sites

On 6/8/2022 at 11:38 PM, BFT2020 said:

 

Adding to an existing group:

 

Adding a new group

 

You can also use insertBefore

 

I'm doing something wrong here, I'm trying to add the dyes into the CFChemicals group so they show up in the chemistry station menu?

 

	<insertAfter xpath="/lootcontainers/lootgroup[@name='dyes']/item[@name='Group']">

		<lootgroup name="CFChemicals">
			<item name="modDyeBlack"/>
			<item name="modDyeBlue"/>
			<item name="modDyeBrown"/>
			<item name="modDyeGreen"/>
			<item name="modDyePink"/>
			<item name="modDyePurple"/>
			<item name="modDyeRed"/>
			<item name="modDyeWhite"/>
			<item name="modDyeYellow"/>
		</lootgroup>

	</insertAfter >

 

Link to comment
Share on other sites

Since you are inserting a new group, rmove the /item[....] after 'dyes']  What it is looking for is a item group inside of lootgroup "dyes" instead of creating a new group after the dyes group.

 

It should be 

<insertAfter xpath="/lootcontainers/lootgroup[@name='dyes']">
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...