📢 PSA: Custom mask mods - Changes required for Payday 2 Update 243

Originally posted by Rex on Steam Discussions

With update 243 we made adjustments to how masks can be customized, which required shader changes that now needs the "material_config" files to be updated.

Custom mod masks will not automatically support this new format so to make it work in the new system you will need to make the following changes!

Rename the render_template from "solid_mask" to "solid_mask:MATS_3" Add material_amounts vector3 parameter Add diffuse_layer0_texture parameter Add diffuse_layer1_texture parameter Add diffuse_layer2_texture parameter

If you are uncertain on how to add these parameters; See the below codeblocks for an old and new version of a mask material.

Old material code block for reference:

<material name="mat_template" unique="true" render_template="solid_mask" version="2"> <diffuse_texture file="units/payday2/masks/msk_template/template_df"/> <bump_normal_texture file="units/payday2/masks/msk_template/template_nm"/> <reflection_texture file="units/payday2/matcaps/matcap_plastic_df"/> <material_texture file="units/payday2/masks/shared_textures/patterns/pattern_no_color_no_material_df"/> <variable value="0 0 0" type="vector3" name="tint_color_a"/> <variable value="0 0 0" type="vector3" name="tint_color_b"/> <variable value="1" type="scalar" name="material_amount"/> </material>

Same material in the new format.

<material name="mat_template" unique="true" render_template="solid_mask:MATS_3" version="2"> <diffuse_texture file="units/payday2/masks/msk_template/template_df"/> <bump_normal_texture file="units/payday2/masks/msk_template/template_nm"/> <reflection_texture file="units/payday2/matcaps/matcap_plastic_df"/> <material_texture file="units/payday2/masks/shared_textures/patterns/pattern_no_color_no_material_df"/> <variable type="scalar" name="material_amount" value="1"/> <variable type="vector3" name="material_amounts" value="2 2 2"/> <diffuse_layer0_texture file="units/payday2/matcaps/matcap_plastic_df"/> <diffuse_layer1_texture file="units/payday2/matcaps/matcap_plastic_df"/> <diffuse_layer2_texture file="units/payday2/matcaps/matcap_plastic_df"/> </material>

I need help! It's not working!

Make sure you have not made changes to "diffuse_texture", "bump_normal_texture", "reflection_texture", "material_texture" or the parameter "material_amount". Check to see if you have the right variable type for your "material_amounts" parameter, it should be "vector3" and NOT "scalar". Make sure the parameters for "tint_color_a" and "tint_color_b" are not present in the material. If all else fails make a comment under this post and someone can point out any mistakes that may have been made.
This thread has been locked.
Delete Random (Goat Simulator)
Avatar

Hi, dear, i don't have exp. in the modding and i need your help,
I want to delete random on Goat Simulator and pick truck in the 1 place

Spoiler!
└── startup - Mission Script [100017]/
    ├── startup - Mission Script [100189]/
        └──pick_1 100190 | on_executed | Random/
		   └── pet_truck_point001/
		       100188 | on_executed | InstancePoint
			   └── pet_truck1_picked
			       103260 | on executed | Mission Script 
			       └── lootdroppoint_if_esc1
                       100353 |on_executed| MissionScript
				   ├── enable001
                       100221 |on_executed| Toggle
		       ├── pet_truck_escape_001
			    levels/instances/unique/pet_truck_escape/world | instance		
		   └── pet_truck_point002/
		       105758 | on_executed | InstancePoint
			   └── pet_truck2_picked
			   	   103259 | on executed | Mission Script 
			       └── lootdroppoint_if_esc2
                       103512 |on_executed| MissionScript
			       ├── enable002
                       100222 |on_executed| Toggle
		       ├── pet_truck_escape_001
			    levels/instances/unique/pet_truck_escape/world | instance			   
		   └── pet_truck_point003/
		       105759 | on_executed | InstancePoint
			   └── pet_truck3_picked
			   	   103261 | on executed | Mission Script 
			       └── lootdroppoint_if_esc3
                       103535 |on_executed| MissionScript
			       ├── enable003
                       100233 |on_executed| Toggle
		       ├── pet_truck_escape_001
			    levels/instances/unique/pet_truck_escape/world | instance 	
			   
        ├── TEMP_DELETE_CHOSE_2 101399 | on executed | Random 
		    └── pet_truck_point002 
			    105758 | on_executed | InstancePoint		
        ├── TEMP_DELETE_CHOSE_3 101921 | on_executed | Random 
		    └── pet_truck_point003
			    105759 | on_executed | InstancePoint	
        ├── TEMP_DELETE_CHOSE_1 102027 | on executed | Random 
	        └── pet_truck_point001
		       100188 | on_executed | InstancePoint
			  

but ikd how((

Help me, please

SuperBLT
Avatar

The truck go to 1 of 3 location. I want to remove 2 points from random

Avatar

@gibustf2, yeah, my buddy suggested me this mod and i complete this heist
https://modworkshop.net/mod/19913
thank you, the thread is closed

39 942