[SDK] Custom Landscape MIC no longer working

  • Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/
  • Weve updated the Tripwire Privacy Notice under our Policies to be clearer about our use of customer information to come in line with the EU General Data Protection Regulation (GDPR) rules that come into force today (25th May 2018). The following are highlights of our changes:


    We've incorporated the relevant concepts from the GDPR including joining the EU and Swiss Privacy Shield framework. We've added explanations for why and how Tripwire processes customer data and the types of data that we process, as well as information about your data protection rights.



    For more information about our privacy practices, please review the new Privacy Policy found here: https://tripwireinteractive.com/#/privacy-notice

Delta69er

Active member
Sep 13, 2017
176
72
28
Category: Level Design, Workshop, SDK

Reproducibility: Always

Summary: Custom MIC that inherit from the game's default Landscape MIC (BlackForest/ZedsLanding) no longer render the material on Landscapes

Description:
This was previously supported since, well forever. With the current update this is broken with no fix.

The bug specifically is tied to landscapes and MICs that use TWIs Landscape MIC as a parent.

Custom Parent Materials applied to static meshes do not suffer the issue.

The cause seems to be tied to the shadercache. To my understanding when a map is cooked for workshop upload, it includes the shadercache within the map file. This no longer seems to be the case specifically for just Landscape materials.

I am lead to believe this because when the shadercache is left in the Published folder after upload/cooking the Landscapes will function as normal. Removing the will break the landscape. Moving the shadercache to a different game directory (eg: D:\SteamLibrary\steamapps\common\killingfloor2\KFGame\BrewedPC\Maps) will make the Landscapes work again.

Providing the shadercache with the .kfm on workshop upload will also not fix the issue.

So essentially theres an issue with cooking and the shadercache that is used by Landscapes.

To reproduce:
1. Create a new Map with a Landscape and MIC from existing Landscape material (use Black Forest for example)
2. Paint Landscape
3. Upload to workshop, sub and download
4. Make sure to delete your Published folder (C:\Users\User\Documents\My Games\KillingFloor2\KFGame\Published) as subscribers will not have this folder and it should not be used in the first place
5. Launch map in game and see broken maps.

Confirmed maps affected for example/bug reporting:
Zeds Diner: https://steamcommunity.com/sharedfiles/filedetails/?id=1102122008
Twisted Story: https://steamcommunity.com/sharedfiles/filedetails/?id=1670339358&searchtext=twisted+story

Also note: Entire My Docs > My Games > KF2 folder was nuked during testing, this is not a residue issue with configs/inis caused by updates. This was done in a fresh environment.
 
  • Like
Reactions: duk6046