Banner
📢 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.
Killstreaks from Halo (Standalone from NobleHUD)
Thumbnail
Downloads2,521
Views11,154
Publish Date3 years ago
Last Updated2 years ago
Version1.0.6
Tags
Avatar
---------------------------------------------------------------------
Mon Oct 03 00:24:03 2022
Application has crashed: access violation
-------------------------------
Callstack:

         payday2_win32_release  (???)     ???                                                 
         payday2_win32_release  (???)     ???                                                 
         payday2_win32_release  (???)     ???                                                 
         payday2_win32_release  (???)     ???                                                 
                           ???  (???)     ???                                                 
                           ???  (???)     ???                                                 
         payday2_win32_release  (???)     ???                                                 
         payday2_win32_release  (???)     ???                                                 
                           ???  (???)     ???                                                 
                           ???  (???)     ???                                                 
                           ???  (???)     ???                                                 
                           ???  (???)     ???                                                 
                           ???  (???)     ???                                                 
                           ???  (???)     ???                                                 
                           ???  (???)     ???                                                 
                           ???  (???)     ???                                                 
                           ???  (???)     ???                                                 
                           ???  (???)     ???                                                 
                           ???  (???)     ???                                                 
                           ???  (???)     ???                                                 
                           ???  (???)     ???                                                 
                           ???  (???)     ???                                                 
                           ???  (???)     ???                                                 
                           ???  (???)     ???                                                 
                           ???  (???)     ???                                                 
                           ???  (???)     ???                                                 
-------------------------------

Current thread: Main
Script stack:
                       value()  @mods/Killstreaks                                   
                                from                                                
Halo/hooks/menumanager.lua:1330  _notify()                                           
lib/utils/messagesystem.lua:60  update()                                            
lib/utils/messagesystem.lua:74  update()                                            
lib/managers/playermanager.lua:617  original()                                          
      lib/setups/setup.lua:893  update()                                            
@mods/base/req/core/Hooks.lua:288  original()                                          
  lib/setups/gamesetup.lua:789  update()                                            
@mods/base/req/core/Hooks.lua:288  update()                                            
lib/setups/networkgamesetup.lua:21                                                      
core/lib/setups/coresetup.lua:557  
-------------------------------
System information:
	Application version : 1.129.133
	CPU : Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz (3 cores); SSE; SSE2; SSE3; SSSE3; SSE4.1; SSE4.2
	DirectX : 12.0 
	GPU : NVIDIA GeForce RTX 2060 with Max-Q Design / nvldumd.dll[30.0.15.1278]
	Language : english
	Memory :     12057MB 912KB
	OS : 6.2.9200 () 0x300-0x1 (64 bits)
Avatar

Sadly, when I do a Graze with a fenomenal killstreak amount of enemies (20+), the game crashes hard. Sad...I love this mod :( I gotta remove it...I'll wait for another uptade.

Avatar

@HandSomeGarbage Thanks for the report- this should be fixed soon. May I ask, do you have mods that limit the number of corpses, or something similar?

Avatar

@Offyerrocker Yeah the Low Violence Mod Uptaded https://modworkshop.net/mod/28657 . Maybe is the combination of these 2 mods, that mod is buggy as hell.

24 1155