📢 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 parameterIf 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. 21 1015
does the BLT work now? I had the same problem so i uninstalled payday 2 and now im waiting if it works
yes. you need to reinstall the newest version off the blt website
@glace it doesnt work i open payday 2 and then this message pops up: The application (0xc0000142) failed to start properly. Click OK to exit the application. i was excited but now im dissapointed should i delete payday 2 again or just wait for answer
also when i go to mods and logs theres a text file with the text:
05:04:32 PM Log: (C:\projects\payday2-superblt\src\debug\blt_debug.cpp:124) Command line: "C:\Games\PayDay 2\payday2_win32_release.exe"
05:04:32 PM Log: (C:\projects\payday2-superblt\platforms\w32\signatures\signatures.cpp:350) Scanning for signatures in payday2_win32_release.exe
05:04:33 PM WARNING: (C:\projects\payday2-superblt\platforms\w32\signatures\signatures.cpp:223) Failed to locate function node_from_xml
05:04:34 PM WARNING: (C:\projects\payday2-superblt\platforms\w32\signatures\signatures.cpp:223) Failed to locate function do_game_update
05:04:34 PM WARNING: (C:\projects\payday2-superblt\platforms\w32\signatures\signatures.cpp:223) Failed to locate function luaL_newstate
05:04:34 PM WARNING: (C:\projects\payday2-superblt\platforms\w32\signatures\signatures.cpp:223) Failed to locate function Archive_ctor
05:04:34 PM Log: (C:\projects\payday2-superblt\platforms\w32\signatures\signatures.cpp:379) Sigcache hit failed for function Archive_ctor
05:04:36 PM WARNING: (C:\projects\payday2-superblt\platforms\w32\signatures\signatures.cpp:304) Located too many instances of the asset loading function:
@randomdude751 idk much about modding, so just create a thread describing your problem and hopefully people who actually know stuff about it will help you
@glace alright thanks, im gonna do that