Jump to content

Changing Gun recipies removes scrap option, whats going on?


-Holo-

Recommended Posts

So, I'm trying to make guns a bit more complex like it was in the past with more parts to find, but as soon as I touch the recipe the scrap option disappears on guns.

The Recipes xml looks like this for a testing purpose

<remove xpath="/recipes/recipe[starts-with(@name, 'gunHandgunT1')]"/>    

	<append xpath="/recipes">
		<recipe name="gunHandgunT1Pistol" count="1" craft_area="workbench" tags="learnable,perkGunslinger">
			<ingredient name="gunHandgunT1PistolParts" count="1"/>
			<ingredient name="partsPistol_frame" count="1"/>
			<ingredient name="partsPistol_grip" count="1"/>   
			<ingredient name="resourceDuctTape" count="5"/>
			<ingredient name="resourceSpring" count="4"/>
			<effect_group>
				<passive_effect name="CraftingIngredientCount" level="2,6" operation="perc_add" value=".5,2.5" tags="resourceDuctTape,resourceSpring"/>
			</effect_group>
		</recipe>
	</append>

With this mod active, all handguns and smg looses their ability to be scrapped for some reason.

The items looks like this

<append xpath="/items">
	
		<item name="partsPistol_frame">
			<property name="Extends" value="gunMGT1AK47Parts"/>
			<property name="CustomIcon" value="partsPistol_frame"/>
			
		</item>
			<item name="partsPistol_grip">
			<property name="Extends" value="gunMGT1AK47Parts"/>
			<property name="CustomIcon" value="partsPistol_grip"/>
			
		</item>
		
		
		
	</append>

The weird thing is on the larger mod I made to change all guns to need parts, Everything gets unscappable except all kinds of shotguns. Is this some gamebug or am I missing something?

 

Link to comment
Share on other sites

1 hour ago, -Holo- said:

So, I'm trying to make guns a bit more complex like it was in the past with more parts to find, but as soon as I touch the recipe the scrap option disappears on guns.

The Recipes xml looks like this for a testing purpose


<remove xpath="/recipes/recipe[starts-with(@name, 'gunHandgunT1')]"/>    

	<append xpath="/recipes">
		<recipe name="gunHandgunT1Pistol" count="1" craft_area="workbench" tags="learnable,perkGunslinger">
			<ingredient name="gunHandgunT1PistolParts" count="1"/>
			<ingredient name="partsPistol_frame" count="1"/>
			<ingredient name="partsPistol_grip" count="1"/>   
			<ingredient name="resourceDuctTape" count="5"/>
			<ingredient name="resourceSpring" count="4"/>
			<effect_group>
				<passive_effect name="CraftingIngredientCount" level="2,6" operation="perc_add" value=".5,2.5" tags="resourceDuctTape,resourceSpring"/>
			</effect_group>
		</recipe>
	</append>

With this mod active, all handguns and smg looses their ability to be scrapped for some reason.

The items looks like this


<append xpath="/items">
	
		<item name="partsPistol_frame">
			<property name="Extends" value="gunMGT1AK47Parts"/>
			<property name="CustomIcon" value="partsPistol_frame"/>
			
		</item>
			<item name="partsPistol_grip">
			<property name="Extends" value="gunMGT1AK47Parts"/>
			<property name="CustomIcon" value="partsPistol_grip"/>
			
		</item>
		
		
		
	</append>

The weird thing is on the larger mod I made to change all guns to need parts, Everything gets unscappable except all kinds of shotguns. Is this some gamebug or am I missing something?

 

With your remove line you are also remving a recipe called gunHandgunT1PistolParts. I would suggest to re-add that line and check if this fixes the problem. If yes, you can try to find out why. If not, you have at least excluded one possibility

 

 

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...