📢 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.
Chinatown from Katana ZERO into a custom OST?
Avatar

Just wanted to request someone out there to make a "Chinatown" from Katana ZERO into a BeardLib OST (pretty sure the CustomOST mod is broken, or atleast outdated)

Doesn't have to be too grand, just pick a reasonable quiet part for Stealth, (or just even add a different more calm track from the game since those also rock) and follow suit for Control and Anticipation. The transition actually fits perfectly with the beginning of Chinatown so you can use that for the transition to Assault, and of course, Assault can be Chinatown, the song itself.

Keep in mind that I'm no mod creator so I have no idea if I'm asking for a lot here, but whatever. (Do keep in mind that you can make it however you'd like, the example above is well, an example)

Also play Katana ZERO, it's a seriously underrated niche little indie gem.

Song: https://www.youtube.com/watch?v=CLegFYDiIyc

Replies
Avatar

Just wanted to request someone out there to make a "Chinatown" from Katana ZERO into a BeardLib OST (pretty sure the CustomOST mod is broken, or atleast outdated)
Doesn't have to be too grand, just pick a reasonable quiet part for Stealth, (or just even add a different more calm track from the game since those also rock) and follow suit for Control and Anticipation. The transition actually fits perfectly with the beginning of Chinatown so you can use that for the transition to Assault, and of course, Assault can be Chinatown, the song itself.

Keep in mind that I'm no mod creator so I have no idea if I'm asking for a lot here, but whatever. (Do keep in mind that you can make it however you'd like, the example above is well, an example)
Also play Katana ZERO, it's a seriously underrated niche little indie gem.

Song: https://www.youtube.com/watch?v=CLegFYDiIyc geometry dash scratch

Best soundtrack of Katana: Zero in my opinion. It's just too good. Hope that someone can make this mod

Avatar

I don't know if you still want this or if it's already been done, but I've finished one. https://modworkshop.net/mod/50774. It contains Chinatown (Build/Anticipation, Assault), Katana ZERO OST Version (Control), and Silhouette (Stealth). Used a separate track for Control & Stealth since I couldn't find anything that easily looped or sounded good when looped in Chinatown. If only I had Chronos...

42 1098