![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
04-18-11, 02:45 AM
|
#11 |
|
Grey Wolf
![]() Join Date: Jul 2006
Location: Germany
Posts: 879
Downloads: 10
Uploads: 1
|
Moin Hans,
Make sure the files are all placed in the correct folder. Interior.dat >>> goes without saying Animation.dat >>> LIBRARY folder Animation.anm >>> ANIMATIONS folder Next, the SH engine is very strict regarding naming conventions. The SMC entry in your Interior.dat contains the SMC Controller that defines the 'GraphName'. Let´s say 'Hans_Graph'. The game engine is now checking the LIBRARY folder´s *.dat files for a SMC named 'Hans_Graph'. The 'Hans_Graph' SMC defines the events your animation is triggered by and holds the name(s) of the animation(s) to play. Let´s say 'Hans_Dance'. Once the condition to run the animation is met, the game engine checks the ANIMATIONS folder´s *.anm files for an 'AnimName' named 'Hans_Dance'. This 'Hans_Dance' contains one or more sub items containing another 'AnimName' entry. Let´s call it 'Hans_Limbs'. When 'Hans_Dance' is called by 'Hans_Graph', the correlated MAD will be linked to 'Hans_Limbs' and the game engine will check the Interior.dat for any 3d_model by the name of '<Hans_Limbs>'. The brackets are vital! If '<Hans_Limbs>' is found, the animation will play. How to create this setup?
![]() Next, your SMC has to be built. For testing reasons it is advisable to use a setup that will call the animation on load with no conditions to be met. Thus you ensure the animation is imported correctly at last. As for your SMC, it will not work this way. When your condition 'true' is met, the pointer is directed to entry #1, but there is none. Hence the animation will play once only or not at all. Don´t know how the game engine handles this "error". 'GotoEntry=0' should do the trick. But I strongly recommend to use a more advanced setup, even for an ever-looping basic test. Use 4 StateEntries for a start:
[EDIT] Moin UFi, but don´t tell my wife. [/EDIT] Regards, DD
__________________
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
