# materials are black when loaded from PAK file

**URL:** <https://forums.unrealengine.com/t/materials-are-black-when-loaded-from-pak-file/95905>\
**Category:** Modding\
**Tags:** unreal-engine\
**Created:** [July 7, 2017, 5:53am UTC](https://forums.unrealengine.com/t/materials-are-black-when-loaded-from-pak-file/95905 "2017-07-07T05:53:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SlimeQ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SlimeQ](https://forums.unrealengine.com/u/SlimeQ)\
**Post date:** [July 7, 2017, 5:53am UTC](https://forums.unrealengine.com/t/materials-are-black-when-loaded-from-pak-file/95905/1 "2017-07-07T05:53:53Z")

</div>

I’ve managed to set up a relatively basic custom map system using Steam Workshop and pak files. I have a template project with a custom plugin capable of cooking, packaging, and uploading the pak to steam, and then my game basically just trolls `steamapps/common/workshop/content/<appid>` for all pak files and mounts them at `Game/Content/CustomMaps/UGC<mapid>` using FPakPlatformFile.

This is (mostly) working. I am able to load the map up in my game and all the geometry is there. The issue is that this scene:

![GreenScene.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/9/b94e6025a7454979605259bc86c90982978fc6d3.png)

ends up looking like this when actually loaded into the game:

![DarkScene.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/f/3f4c7917fcf4e5e959298f771e659a7144d47c0b.png)

I know that the ‘grass’ material is found by the engine because it no longer defaults to the grey grid texture. The lens flare (?) only appeared after I turned on the forward renderer in my template project (my game uses the forward renderer). Neither the lens flare or the black material are present in the template project. I have both a skylight and a lightmass importance volume in this map.

Any ideas what I’m doing wrong? My best guess is that this is related to the pak file, but I am not sure.

---

<div class="post-metadata">

**Author:** ![SlimeQ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SlimeQ](https://forums.unrealengine.com/u/SlimeQ)\
**Post date:** [July 7, 2017, 6:04am UTC](https://forums.unrealengine.com/t/materials-are-black-when-loaded-from-pak-file/95905/2 "2017-07-07T06:04:23Z")

</div>

**Update**

So, noticing that the blue material seemed to be working okay, albeit weirdly lit, I decided to try just using that material on the landscape instead of the green one. The results were far weirder than anticipated:

[video][First Mod Map - Broken Materials - YouTube](https://youtu.be/d0-z6xyN5C0%5B/video%5D)

What the hell is happening?
