LunasC wrote:this is everything I can think of.
}
defineObject{
name = "ceiling_cover",
components = {
{
class = "Model",
model = "mod_assets/models/ceiling_cover_grate.fbx",
},
}
}
(\mod_assets\models\ceiling_cover_grate ( actual path ))
[string "Model.lua"]:0: File not found: mod_assets/models/ceiling_cover_grate.model
stack traceback:
[C]: in function 'load'
[string "Model.lua"]: in function 'setModel'
[string "Model.lua"]: in function 'loadProperties'
[string "GameObject.lua"]: in function 'initComponents'
[string "Arch.lua"]: in function 'spawn'
[string "Dungeon.lua"]: in function 'spawn'
mod_assets/scripts/dungeon.lua:902: in main chunk
[string "Dungeon.lua"]: in function 'loadDungeonFile'
[string "GameMode.lua"]: in function 'loadDungeon'
[string "GameMode.lua"]: in function 'newGame'
[string "GameMode.lua"]: in function 'update'
[string "Grimrock.lua"]: in function 'display'
[string "Grimrock.lua"]: in main chunk
Your "(\mod_assets\models\ceiling_cover_grate ( actual path ))" makes no sense because it locates your model file outside your mod folder: "c:\mod_assets\models\ceiling_cover_grate\ceiling_cover_grate.MODEL"
Make sure your file is in the relative path your definition says it is: "mod_assets\models" inside your mod's folder.
This is the full path where your file has to be, starting at the drive letter:
c:\users\<your_windows_username>\documents\Almost Human\Legend of Grimrock 2\Dungeons\<your_mod_name>\mod_assets\models
Of course the entire filename has to be in lower case. This includes it's extention.