• 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/

PC [SDK] Custom Landscape MIC no longer working

Delta69er

Grizzled Veteran
Sep 13, 2017
176
73
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