Level-only assets: issue and fix
Some assets are bound to one level. This means, the asset is part of the level’s bundle in the cooked game, which is only loaded when playing on that particular level. Here’s how to fix that problem.
Some entities in the existing depot use materials that are only present in specific bundles and won’t be pulled into the mod automatically with the mesh they are on. Because of that they will be invisible on other worlds in the game.
This happens when you check out an entity that has a bunch of meshes, the Material Instances (.w2mi) files are not pulled into the mod with the meshes (.w2mesh). Missing meshes could lead to having buildings with see-through walls etc.
The issue
Here’s an example of how this problem affects the game.
Everything will look fine in REDkit. However the problem will become visible after you have published your mod and see the same place in the game.
Create a new world or use an already existing one. Add a Kaerto house entity on a new layer to the level. You can find it here:
environment\architecture\human\skellige\ard_skellig\kaer_trolde\buildings\old_set\entities\kaertro_house_big_old_exterior.w2ent
Now save and publish the mod project, and install it in the game's installation folder.
Travel to the mod’s new world in the release game and check if you see the walls in the building. If you choose the Novigrad poppystone village as for the location for the new building, since it’s the first area where the player will be when starting the game with Blood and wine only mode.)
How the wall looks in REDkit:
How the wall looks in the game:
The fix
Here’s how to get rid of this problem.
First a reminder that the issue exists when you check out an entity that has a bunch of meshes and the Material Instances (.w2mi) files are not pulled into the mod with the meshes (.w2mesh). Right?
And that’s why you need to checkout the material instances it uses for the mod.
Here’s how to do that:
First, search for materials that the entity uses.
You can use the Show resources context menu option - right click on the entity in the Scene panel.
Here you can see a list of all meshes (*.w2mesh)that the entity references.
If you click on them their exact location will be revealed in the Asset Browser. Once you open them up, you can see what are the instances that they are using.
Find the missing material instance(s) in the Materials tab. There you can double click on a value from the the Base column (e.g.: village_stone_wall (instance) ), to reveal its exact location in the Asset Browser, so that you can check out it.
OR you can add all the <your_mod_project_dir>\workspace\environment\textures_tileable\common_materials\skellige\kaer_trolde_houses\*.w2mi files to the mod by checking them out.
______________________________________
The Witcher 3: Wild Hunt Complete Edition © 2024 CD PROJEKT S.A. Published by CD PROJEKT S.A. Developed by CD PROJEKT RED. CD PROJEKT®, The Witcher®, REDengine® are registered trademarks of CD PROJEKT Capital Group. All rights reserved. The Witcher game is set in the universe created by Andrzej Sapkowski in his series of books. All rights reserved.