📢 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.
SOUL CARE SPA NAIL & MORE
@soul-care-spa / ID 183506
Registration Date
Last Visit 1 year ago
Mods 0
None

Soul Care là 1 tiệm làm móng, làm mi và spa (massage body, massage foot) chuyên nghiệp ở quận 1 Thành Phố Hồ Chí Minh. Chúng tôi tuân thủ các tiêu chuẩn cao nhất về tay nghề và chăm sóc khách hàng.

CÁC LIÊN KẾT KHÁC CỦA CHÚNG TÔI:
https://www.facebook.com/people/Soul-Care/61567259602209/
https://soulcare.vn/goi-dau-duong-sinh/
https://soulcare.vn/dich-vu-nail/
https://soulcare.vn/dich-vu-noi-mi/
https://soulcare.vn/dich-vu-massage/
https://g.co/kgs/w24VvQE
https://lifeinsys.com/user/soul-care-spa
https://zenwriting.net/soulcarespa/soul-care-spa-nail-and-more
https://www.bitsdujour.com/profiles/kY90OE
https://inkbunny.net/soulcarespa
https://3dwarehouse.sketchup.com/by/soul-care-spa
http://80.82.64.206/user/soul-care-spa/wall
https://advpr.net/soulcarespa
https://agoracom.com/members/soul-care-spa
https://www.aicrowd.com/participants/soulcarespa
http://www.askmap.net/location/7174784/vietnam/soul-care-spa-nail-more
https://app.roll20.net/users/15254361/soul-care-spa-nail-and-more
https://www.exchangle.com/soul_care_spa
https://hypothes.is/users/soul_care_spa
https://link.space/@soul_care_spa
https://myapple.pl/users/481111-soul-care-spa-nail-more
https://www.rcuniverse.com/forum/members/soul-care-spa.html?simple=1#aboutme
https://www.slideserve.com/soul_care_spa
https://www.speedrun.com/fr-FR/users/soul_care_spa
https://www.divephotoguide.com/user/soulcarespa/
https://hiqy.in/soul_care_spa
https://www.callupcontact.com/b/businessprofile/SOUL_CARE_NAIL_amp_MORE/9385207
https://www.discogs.com/user/soul-care-spa
https://www.gaiaonline.com/profiles/soul-care-spa/46919517/
https://www.bigoven.com/user/soul-care-spa
https://experiment.com/users/soul-care-spa
https://start.me/p/E57z1B/soul-care-spa-nail-more
https://bikeindex.org/users/soul-care-spa
https://coub.com/soul-care-spa
https://www.dibiz.com/ssocialsoulcare
https://glose.com/u/soulcarespa
https://sketchfab.com/soul-care-spa
https://www.trepup.com/@soul-care-spa
https://www.niftygateway.com/@soul-care-spa/
https://booklog.jp/users/soul-care-spa/profile
https://gifyu.com/soul_care_spa
https://magic.ly/soul-care-spa
https://qiita.com/soul-care-spa
https://socialtrain.stage.lithium.com/t5/user/viewprofilepage/user-id/116508
https://telegra.ph/SOUL-CARE-SPA-NAIL--MORE-11-28

No Mods Found :/

51 1343