Hey Gambit37,
The only material replacing for wall sets Ive done has been a few floor tiles....
Double checking.... have you:
1. added the import line to your init.lua? EG -
Code: Select all
import "mod_assets/scripts/materials.lua"
2. Checked that you havent imported the asset pack materials.lua OR all standard assets AFTER you have listed
the line (^^as above) importing your mod_asset materials.lua (from init.lua) ? If you have done this then
the material defs will have been redefined again as the asset pack versions
3. Tried renaming your mod_asset material definitions to something different??
(by rights this shouldn't actually matter but it may shine light on the problem...)
4. Have you tried wrapping the new material around the relevant models
in Blender or the Grimrock Model Toolkit (then saving these newly textured models into your mod_assets/models folder??
You shouldnt need to do this as an objects models textures can be changed via the ModelComponent dynamically:
Code: Select all
object_name.go.model:setMaterialOverrides( tab )
(tab = {old_material_name1 = "new_material_name1", old_material_name2 = "new_material_name2" }
OR changed with either the 'material' or 'materialOverrides' fields of the ModelComponent in your object definition:
Code: Select all
{
class = "Model",
model = "mod_assets/gambit37_assets/models/new_dungeon_wall.fbx",
material = "gambit37_dungeon_wall_1",
materialOverrides = { old_material_name1 = "gambit37_dungeon_wall_1",
old_material_name2 = "gambit37_dungeon_wall_2", },
}
5. If none of this is of any help ... post up your wall set object's definitions maybe??
Akroma