Sx_Town_Set - Swinging Door
Posted: Tue Dec 16, 2014 8:41 pm
Hi guys well Skuggs or John Wordsworthy. I am trying to get the Swing door to work in LOG 2, but I have just encountered my first hurdle. The animations don't work (see below code error) I have also included the Object Code (below) It only has the animation part and no open sounds etc.... I think the animation has to be upgraded to Version 2 whatever that means 
In fact do I class the the object as a door and add the door controllers, sounds,etc... to this object? I would really like to get this to work guys because the doors going up/down and sideways is cool but this door opens like a normal door which by the way is awesome ahy
Thxs for any help on this
--- Code Error ---
=== Software Failure ===
[string "Animation.lua"]:0: Invalid file version (expected v2, got v1): mod_assets/sx_towntileset/animations/swingdoor_close.animation
stack traceback:
[C]: in function 'load'
[string "Animation.lua"]: in function 'loadProperties'
[string "GameObject.lua"]: in function 'initComponents'
[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

In fact do I class the the object as a door and add the door controllers, sounds,etc... to this object? I would really like to get this to work guys because the doors going up/down and sideways is cool but this door opens like a normal door which by the way is awesome ahy

--- Code Error ---
=== Software Failure ===
[string "Animation.lua"]:0: Invalid file version (expected v2, got v1): mod_assets/sx_towntileset/animations/swingdoor_close.animation
stack traceback:
[C]: in function 'load'
[string "Animation.lua"]: in function 'loadProperties'
[string "GameObject.lua"]: in function 'initComponents'
[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
Code: Select all
---Testing Swing Door ---
defineObject{
name = "sx_town_door_opens",
components = {
{
class = "Model",
model = "mod_assets/sx_towntileset/models/sx_town_door2.fbx",
staticShadow = true,
},
{
class = "Animation",
animations = {
open = "mod_assets/sx_towntileset/animations/swingdoor_open.fbx",
close = "mod_assets/sx_towntileset/animations/swingdoor_close.fbx",
},
},
},
placement = "wall",
editorIcon = 160,
automapIcon = 88,
minimalSaveState = true,
}