Saiboti 1 Posted December 10, 2013 Hello Guys. I tried the tutorial from Mondkalb to create a normal wall and a wall with a door. All looking good. In Bulldozer the animation for the door works perfect, but ingame a error message comes up and the animation dont work. "Animation source Open_Door not found in ..." After hours of looking around and try to fix i give up and need your help. So i hope anyone can help me out. Here are my configs. config.cpp class CfgPatches { class hrn_wand { units[] = {}; weapons[] = {}; requiredVersion = 0.01; requiredAddons[]= {}; }; }; class CfgVehicleClasses { class hrn_wand_objects { displayName = "HRN - Wand"; }; }; class CfgVehicles { class HouseBase; class House: HouseBase { class DestructionEffects; }; class hrn_houseBase_0_doors: House { class AnimationSources {}; class UserActions {}; vehicleClass = "hrn_wand_objects"; scope = 1; armor = 200; ladders[] = {}; class DestructionEffects: DestructionEffects {}; }; class hrn_houseBase_1_door: hrn_houseBase_0_doors { class AnimationSources { class door { animPeriod = 3; source = "user"; }; }; class UserActions { class open_door_01 { displayName = "$STR_DN_OUT_O_DOOR"; radius = 2; onlyforplayer = 1; position = "door_knopf"; condition = "this animationPhase 'door' < 0.5"; statement = "this animate['door',1];"; }; class close_door_01 : open_door_01 { displayName = "$STR_DN_OUT_C_DOOR"; condition = "this animationPhase 'door' > 0.5"; statement = "this animate['door',0];"; }; }; actionBegin1 = "open_door_01"; actionEnd1 = "open_door_01"; }; class Land_hrn_wand_3x3m: hrn_houseBase_0_doors { model = "\hrn\hrn_wand\hrn_wand_3x3m.p3d"; displayName = "$STR_hrn_wand"; nameSound = ""; mapSize = 8; icon = "iconStaticObject"; accuracy = 1000; armor = 450; destrType = "DestructBuilding"; scope = 2; }; class Land_hrn_tur_3x3m: hrn_houseBase_1_door { model = "\hrn\hrn_wand\hrn_tur_3x3m.p3d"; displayName = "$STR_hrn_tur"; nameSound = ""; mapSize = 8; icon = "iconStaticObject"; armor = 8000; destrType = "DestructBuilding"; scope = 2; }; }; model.cfg class CfgSkeletons { class Default { isDiscrete = 1; skeletonInherit = ""; skeletonBones[] = {}; }; class hrn_tur_bones : Default { isDiscrete=1; skeletonInherit=""; skeletonBones[]= { "door","" }; }; }; class CfgModels { class rotation; class Default { sectionsInherit=""; sections[]={}; skeleton=""; class Animations {}; }; class hrn_obj { sectionsInherit=""; sections[]= {}; skeletonName="hrn_tur_bones"; }; class hrn_tur_3x3m : hrn_obj { sectionsInherit="hrn_obj"; sections[]={}; class Animations { class Open_Door : Rotation { type="rotation"; source="user"; selection="door"; axis="door_achse"; memory = 1; angle0=0; angle1=1.6; animPeriod = 3; }; }; }; }; stringtable.csv LANGUAGE,English,German str_hrn_tur,"Wall (3x3m) with Door","Mauer (3x3m) mit Tür" str_hrn_wand,"Wall(3x3m)","Mauer (3x3m)" str_hrn_OpenDoor,"Open Door","Tür öffnen" str_hrn_CloseDoor,"Close Door","Tür schließen" Sry for bad english and thx for help. Share this post Link to post Share on other sites
m1lkm8n 411 Posted December 10, 2013 Hehe I was just pulling my hair out with the same error until I realized I had put "class Door1" in one config and "class door" in the other. In yours either do class open_door_01 or class open_door in both model and main config. They must match Share this post Link to post Share on other sites
Saiboti 1 Posted December 10, 2013 Thx for the fast reply. The error is gone. But the door will not open. mhhh... i think i must check my p3d file. Looks like there is something wrong. But in Bulldozer all looks good. Thx again. Share this post Link to post Share on other sites
[aps]gnat 28 Posted December 10, 2013 Is "hrn_tur_3x3m.p3d" the name of your model? If not it won't work because that's what you defined in the model.cfg Edit Also, change class Open_Door : Rotation { To class Open_Door { As you already defined rotation inside. Share this post Link to post Share on other sites
Saiboti 1 Posted December 10, 2013 Hey. So i tried out many things, build it complete new. But the door will not open. In Bulldozer i can Open and Close the door. But ingame i only can hit "Open door", thats all, no animation, the door is closed. There is no Error ingame anymore. Someone have an idea what i can do? I have some errors in my logfile... it may have to do with it? hrn\hrn_wand\hrn_wand1.rvmat->C:\Temp\hrn\hrn_wand\hrn_wand1.rvmat Convert model p:\hrn\hrn_wand\hrn_tur_3x3m.p3d -> C:\Temp\hrn\hrn_wand\hrn_tur_3x3m.p3d Convert model p:\hrn\hrn_wand\hrn_wand_3x3m.p3d -> C:\Temp\hrn\hrn_wand\hrn_wand_3x3m.p3d Cannot register unknown string STR_STATE_HEALSOLDIER Cannot register unknown string STR_STATE_FIRST_AID Cannot register unknown string STR_UI_RADARRANGE Cannot register unknown string STR_ACTION_LAUNCHCM Cannot register unknown string STR_ACTION_NEXTCM Cannot register unknown string STR_USRACT_ACTION_CONTEXT Cannot register unknown string STR_USRACT_OPTICS_MODE Cannot register unknown string STR_USRACT_ZEROING_UP Cannot register unknown string STR_USRACT_ZEROING_DOWN Cannot register unknown string STR_USRACT_NETWORK_DS_INTERFACE Cannot register unknown string STR_USRACT_BULD_TERRAIN_RAISE_10CM Cannot register unknown string STR_USRACT_BULD_TERRAIN_LOWER_10CM Cannot register unknown string STR_USRACT_BULD_TERRAIN_RAISE_50CM Cannot register unknown string STR_USRACT_BULD_TERRAIN_LOWER_50CM Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_0 Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_1 Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_2 Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_3 Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_4 Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_5 Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_6 Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_7 Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_8 Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_9 Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_10 Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_11 Cannot register unknown string STR_DISP_LEFT Cannot register unknown string STR_DIFF_CAMERA_SHAKE Cannot register unknown string STR_FREETRACK Cannot register unknown string STR_ADDON_ACTIONS_INSTALL_CORE Cannot register unknown string STR_ADDON_ACTIONS_INSTALL_MOD Cannot register unknown string STR_ADDON_ACTIONS_PLAY_MISSION Cannot register unknown string STR_ADDON_ACTIONS_TRY_ENTITY Cannot register unknown string STR_ADDON_ACTIONS_TRY_WEAPON Cannot register unknown string STR_MSG_ADDON_NOT_FOUND Cannot register unknown string STR_MSG_ADDON_CANNOT_OPEN Cannot register unknown string STR_MSG_ADDON_UNKNOWN_PRODUCT Cannot register unknown string STR_INCOMPATIBLE_LOAD_GAME_ATTEMPT Warning: CfgVehicles missing in PreloadConfig - may slow down vehicle creation Warning: CfgAmmo missing in PreloadConfig - may slow down vehicle creation Warning: CfgNonAIVehicles missing in PreloadConfig - may slow down vehicle creation <model = "p:\hrn\hrn_wand\hrn_tur_3x3m.p3d"> </model> <model = "p:\hrn\hrn_wand\hrn_wand_3x3m.p3d"> </model> Creating texture headers file... 5 texture headers saved to file "C:\Temp\hrn\hrn_wand\texHeaders.bin" Thx for any help. That is to despair. :( ---------- Post added at 00:34 ---------- Previous post was at 00:33 ---------- Oh... ok thx for this idea. I try it out. back in 5min. ---------- Post added at 00:40 ---------- Previous post was at 00:34 ---------- Gnat;2575410']Is "hrn_tur_3x3m.p3d" the name of your model? If not it won't work because that's what you defined in the model.cfgEdit Also' date=' change class Open_Door : Rotation { To class Open_Door { As you already defined rotation inside.[/quote'] Hi. Yes it is the name of my model. I make the change but nothing happens. Its the same. The door will not open ingame. But thanks for your try. Any other idea? Share this post Link to post Share on other sites
[aps]gnat 28 Posted December 11, 2013 These condition = "this animationPhase 'door' < 0.5"; statement = "this animate['door',1];"; are not compatible with this class Open_Door { type="rotation"; source="user"; selection="door"; axis="door_achse"; memory = 1; angle0=0; angle1=1.6; animPeriod = 3; }; If you keep "Open_Door" as your animation, then your script must change to condition = "this animationPhase 'Open_Door' < 0.5"; statement = "this animate['Open_Door',1];"; BTW, I was thinking this is the correct punctuation; statement= "this animate [""Open_Door"",1];"; Share this post Link to post Share on other sites
Saiboti 1 Posted December 11, 2013 (edited) Thx Gnat. It works perfect. I had a problem with closing too, but i have solved it. Thx for help you are all awesome. :) Edited December 11, 2013 by Saiboti All fine Share this post Link to post Share on other sites