7 Days to Die

7 Days to Die

View Stats:
XML regarding Ammo-Type Changes between two different mods possible?
Hey there,
I got two different weapon mods which adds 5.56mm ammo typ related guns but both mods, obviously, come with their own 5.56mm ammo bullets. Therefore I can't use the same 5.56mm ammo typ bullets from the first mod (Firearms Expansion 4) for the second mod (5.56 Weapons Pack by Izayo).
Now I was wondering if I could somehow replace the ammo group from the second mod by the ammo group of the first mod? Does anyone has some suggestions if this is possible and if yes, how to do so?
< >
Showing 1-3 of 3 comments
seven Dec 8, 2022 @ 2:07pm 
Without looking at the mods I'd say I think it would be possible. Look at items.xml in the second mod (whichever one loads later) for the ammo type that is specified for a gun, and then change that to match the ammo types listed in the first mod. You would look for a line like

<property name="Magazine_items" value="ammo762mmBulletBall,ammo762mmBulletHP,ammo762mmBulletAP"/>

This is obviously for 7.62 rounds but it should be similar.

I'd guess you'd still have recipes for 2 types of 5.56 ammo. You could ignore the second, or look at removing those recipes.
BGratz Dec 8, 2022 @ 6:24pm 
Delete the ammo definition in the mod that loads as second, and then replace the ammo of the weapons in this second loaded mod with the ammo from the first mod.

Thats at least how i would approach that (or smelt both mods together)
AMPHETABIENE Dec 9, 2022 @ 11:49am 
thanks for your reply!

I'll gonna make a backup save and will test two things:
1. Copy-Paste the <item name="ammo556BulletBall"> sources from mod one into mod two to replace the ammo of mod two which I dont want. Then copy the icon into the UIAtlas Folder + change the name of the ammo typ source for each weapon from mod two, so it shouldn't cause any issues regarding the ammo source

2. If method one works, I'll save it as backup again and then try to entirely put both mods together by drag and drop the icons from one mod into the UIAtlas Folder of the other one and put the resources (unity files I believe it was called) into the Resource Folder of the remaining mod + just copy-paste the items step by step into each section of the item.xml of the target mod and keep on doing the same with every other .xml

If this will work, too, then I'll go for that way since it could save me one more mod and redundant double configs.

thanks again for your advices! =)
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Dec 8, 2022 @ 9:59am
Posts: 3