New lock object crashing editor.
Posted: Sun Oct 21, 2012 5:29 am
I have created a new lock object. I created a model, centered the pivot on the object, the object is at 0 0 0, assigned a known used material. Created an object in the objects lua
When I go to add the object I get a crash from the editor. It lets me select the object, and move it around, but the moment I click to actually add it to the dungeon is when it crashes. The following is from the error.log
[string "Lock.lua"]:0: File not found: assets/models/env/sewers_dag_wall01.model
stack traceback:
[C]: in function 'load'
[string "Lock.lua"]: in function 'entityAddedToMap'
[string "Map.lua"]: in function 'addEntity'
[string "BaseEntity.lua"]: in function 'spawn'
[string "Arch.lua"]: in function 'spawn'
[string "DungeonEditor.lua"]: in function 'addObjectTool'
[string "DungeonEditor.lua"]: in function 'mapView'
[string "DungeonEditor.lua"]: in function 'update'
[string "Grimrock.lua"]: in main chunk
Any ideas what could be causing this?
Code: Select all
defineObject{
name = "lock_sewer_dagger",
class = "Lock",
model = "assets/models/env/sewers_dag_wall01.fbx",
height = 1.375,
placement = "wall",
editorIcon = 20,
}
[string "Lock.lua"]:0: File not found: assets/models/env/sewers_dag_wall01.model
stack traceback:
[C]: in function 'load'
[string "Lock.lua"]: in function 'entityAddedToMap'
[string "Map.lua"]: in function 'addEntity'
[string "BaseEntity.lua"]: in function 'spawn'
[string "Arch.lua"]: in function 'spawn'
[string "DungeonEditor.lua"]: in function 'addObjectTool'
[string "DungeonEditor.lua"]: in function 'mapView'
[string "DungeonEditor.lua"]: in function 'update'
[string "Grimrock.lua"]: in main chunk
Any ideas what could be causing this?