Jump to content

A18 Help Modlet


BadCops

Recommended Posts

xpath="/items/item[contains(@name,'ammo762mmBulletBall')]/property[@name=Stacknumber]/@value">500</set>

<set xpath="/items/item[contains(@name,'ammo762mmBulletHP')]/property[@name=Stacknumber]/@value">500</set>

<set xpath="/items/item[contains(@name,'ammo762mmBulletAP')]/property[@name=Stacknumber]/@value">500</set>

<set xpath="/items/item[contains(@name,'ammoRocketHE')]/property[@name=Stacknumber]/@value">500</set>

<set xpath="/items/item[contains(@name,'ammoRocketFrag')]/property[@name=Stacknumber]/@value">500</set>

<set xpath="/items/item[contains(@name,'ammoJunkTurret')]/property[@name=Stacknumber]/@value">500</set>

<set xpath="/items/item[contains(@name,'ammo9mmBulletBall')]/property[@name=Stacknumber]/@value">500</set>

<set xpath="/items/item[contains(@name,'ammo9mmBulletHP')]/property[@name=Stacknumber]/@value">500</set>

<set xpath="/items/item[contains(@name,'ammo9mmBulletAP')]/property[@name=Stacknumber]/@value">500</set>

<set xpath="/items/item[contains(@name,'ammo44MagnumBulletBall')]/property[@name=Stacknumber]/@value">500</set>

<set xpath="/items/item[contains(@name,'ammo44MagnumBulletHP')]/property[@name=Stacknumber]/@value">500</set>

<set xpath="/items/item[contains(@name,'ammo44MagnumBulletAP')]/property[@name=Stacknumber]/@value">500</set>

<set xpath="/items/item[contains(@name,'ammoBlunderbuss')]/property[@name=Stacknumber]/@value">500</set>

<set xpath="/items/item[contains(@name,'ammoShotgunShell')]/property[@name=Stacknumber]/@value">500</set>

<set xpath="/items/item[contains(@name,'ammoShotgunSlug')]/property[@name=Stacknumber]/@value">500</set>

<set xpath="/items/item[contains(@name,'ammoShotgunBreachingSlug')]/property[@name=Stacknumber]/@value">500</set>

 

 

My custom resize pack dont work can you help me plz

Link to comment
Share on other sites

What are the console errors you are getting?

I assume you are seeing errors on the objects that are no longer in the game or that have had their names changed.

 

With each new main alpha you almost always have to scrub your previous mods for naming and block changes.

Link to comment
Share on other sites

It should be like this

Mods/Larger_Stacks/items.xml

<config>

 

<set xpath="/items/item[@name=resourcePaper]/property[@name=Stacknumber]/@value">500</set> <!-- Default 250 -->

<set xpath="/items/item[@name=resourceMilitaryFiber]/property[@name=Stacknumber]/@value">500</set> <!-- Default 250 -->

<set xpath="/items/item[@name=resourceIronFragment]/property[@name=Stacknumber]/@value">6000</set> <!-- Default 250 -->

<set xpath="/items/item[@name=resourceSilverNugget]/property[@name=Stacknumber]/@value">1000</set>

 

</config>

Link to comment
Share on other sites

<configs>

<append xpath="/items" >

 

<!-- STK MEDICAL -->

<set xpath="/items/item[@name=medicalAloeCream]/property[@name=Stacknumber]/@value">50</set>

<set xpath="/items/item[@name=medicalBandage]/property[@name=Stacknumber]/@value">50</set>

<set xpath="/items/item[@name=medicalFirstAidBandage]/property[@name=Stacknumber]/@value">50</set>

<set xpath="/items/item[@name=medicalFirstAidKit]/property[@name=Stacknumber]/@value">50</set>

<set xpath="/items/item[@name=medicalBloodBag]/property[@name=Stacknumber]/@value">50</set>

<set xpath="/items/item[@name=medicalPlasterCast]/property[@name=Stacknumber]/@value">50</set>

<set xpath="/items/item[@name=medicalSplint]/property[@name=Stacknumber]/@value">50</set>

 

</append>

</configs>

 

 

DONT WORK DO YOU SEE WHY THANK YOU

Link to comment
Share on other sites

<configs>

<append xpath="/items" >

 

<!-- STK MEDICAL -->

<set xpath="/items/item[@name=medicalAloeCream]/property[@name=Stacknumber]/@value">50</set>

<set xpath="/items/item[@name=medicalBandage]/property[@name=Stacknumber]/@value">50</set>

<set xpath="/items/item[@name=medicalFirstAidBandage]/property[@name=Stacknumber]/@value">50</set>

<set xpath="/items/item[@name=medicalFirstAidKit]/property[@name=Stacknumber]/@value">50</set>

<set xpath="/items/item[@name=medicalBloodBag]/property[@name=Stacknumber]/@value">50</set>

<set xpath="/items/item[@name=medicalPlasterCast]/property[@name=Stacknumber]/@value">50</set>

<set xpath="/items/item[@name=medicalSplint]/property[@name=Stacknumber]/@value">50</set>

 

</append>

</configs>

 

 

DONT WORK DO YOU SEE WHY THANK YOU

 

Remove:

 

<append xpath="/items" > and </append>

 

..and you're good to go.

Link to comment
Share on other sites

You don't need the append. Append and set are separate functions when it comes to the code. Append adds to the end of whatever you're trying to append and set it changing the specific item you are specifying. For you example you should have it like this:

 

<configs>

 

<!-- STK MEDICAL -->

<set xpath="/items/item[@name=medicalAloeCream]/property[@name=Stacknumber]/@value">50</set>

<set xpath="/items/item[@name=medicalBandage]/property[@name=Stacknumber]/@value">50</set>

<set xpath="/items/item[@name=medicalFirstAidBandage]/property[@name=Stacknumber]/@value">50</set>

<set xpath="/items/item[@name=medicalFirstAidKit]/property[@name=Stacknumber]/@value">50</set>

<set xpath="/items/item[@name=medicalBloodBag]/property[@name=Stacknumber]/@value">50</set>

<set xpath="/items/item[@name=medicalPlasterCast]/property[@name=Stacknumber]/@value">50</set>

<set xpath="/items/item[@name=medicalSplint]/property[@name=Stacknumber]/@value">50</set>

 

</configs>

Link to comment
Share on other sites

Append is good for when you are adding your own item or adding a modified existing item without changing the current item. While set is good to change certain functions of an item, such as weapon damage, bandage healing, etc.

 

Ex of each:

 

<configs>

<set xpath="/items/item[@name=medicalFirstAidKit]/property[@name=Stacknumber]/@value">5000</set>

</configs>

 

This will change the stacknumber for only the medical kit to 5000. This is great for the items because you can have larger stack sizes than normal.

 

<configs>

<append xpath="/recipes/recipe">

<recipe name="barbedWireSheet" count="1"> <!-- trap -->

<ingredient name="resourceScrapIron" count="15"/>

</recipe>

</append>

</configs>

 

This will add a recipe for a item in game that will now be craftable. What it does is add that recipe to the very end of the recipe list within the recipes xml. But this item will have to be already in game or you will have to add it into the game, which is a separate thread and issue.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...