📢 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.
Crash after installing SuperBLT
Avatar

So i install SuperBLT, start the game, but when I started to connect in the lobby, I crashed, here crashlog:

Thu May 08 06:44:11 2025

Application has crashed: C++ exception
[string "lib/managers/menu/crimespreemissionsmenucompo..."]:791: attempt to compare nil with number

SCRIPT STACK

update_info_text() lib/managers/menu/crimespreemissionsmenucomponent.lua:679
init() lib/managers/menu/crimespreemissionsmenucomponent.lua:464
new() core/lib/utils/coreclass.lua:35
_setup() lib/managers/menu/crimespreemissionsmenucomponent.lua:93
init() lib/managers/menu/crimespreemissionsmenucomponent.lua:31
new() core/lib/utils/coreclass.lua:35
create() lib/managers/menu/menucomponentmanager.lua:5123
set_active_components() lib/managers/menu/menucomponentmanager.lua:520
core/lib/managers/menu/coremenulogic.lua:89
_execute_action_queue() core/lib/managers/menu/coremenulogic.lua:54
update() core/lib/managers/menu/coremenulogic.lua:64
update() core/lib/managers/menu/coremenumanager.lua:155
update() lib/managers/menumanagerpd2.lua:20
update() lib/setups/setup.lua:909
update() lib/setups/menusetup.lua:363
core/lib/setups/coresetup.lua:559


Callstack:

     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
                  KERNEL32  (???)     BaseThreadInitThunk                                 
                     ntdll  (???)     RtlGetAppContainerNamedObjectPath                   
                     ntdll  (???)     RtlGetAppContainerNamedObjectPath                   

Current thread: Main


System information:
Application version : 1.143.246
CPU : Intel(R) Xeon(R) CPU E5-2640 v4 @ 2.40GHz (10 cores); SSE; SSE2; SSE3; SSSE3; SSE4.1; SSE4.2
DirectX : 12.0
GPU : Radeon RX 570 Series / aticfx32.dll[31.0.21921.1000]
Language : english
Memory : 16299MB 592KB
OS : 6.2.9200 () 0x100-0x1 (64 bits)
Physics : threaded
Renderer : DX9 threaded
Sound : Microsoft (Динамики (High Definition Audio Device))

SuperBLTBug
Avatar

seems that you joined a crime spree that might be why so reinstalling it

26 1008