![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
04-17-11, 10:52 PM
|
#1 |
|
Kaleun of U-3
![]() Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
|
Hi shipmates,
I did some new test on saving as .anim file, what i did is i export as raw data the meshanimationdata and import it back in .anim. file and deleted the 3d model node leaving only the noset +meshanimationdata and re link it to parent AnimationObject. And it is still not working so i think it could be 2 main reasons, first the way i saved .anim file and second the way i build the statemachines class, so far i did only 1 states entries just to test animation trigger in game can you tell me what is wrong with this SMC : ![]() Best regards Hans |
|
|
04-18-11, 02:45 AM
|
#2 |
|
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
__________________
|
|
|
04-18-11, 03:17 AM
|
#3 | |
|
Kaleun of U-3
![]() Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
|
Quote:
Fantastic answer and food for my brain Will test that further on this afternoon because i must go to sleep soon i test all sort of stuff all night long and now i am exhausted. Only one thing i still don't understand maybe you already have explain in this post so i apologize if it the case but how do you save your .anim in animation folder? And if i understand correctly i don't need MAD in CR.dat with this method? Best regards Hans |
|
|
|
04-18-11, 03:34 AM
|
#4 |
|
Kaleun of U-3
![]() Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
|
Hi DD,
Check your pm mate I am going to have some rest now ![]() Best regards Hans |
|
|
04-18-11, 03:49 AM
|
#5 | |
|
Grey Wolf
![]() Join Date: Jul 2006
Location: Germany
Posts: 879
Downloads: 10
Uploads: 1
|
Hi Hans,
Quote:
And yes, the MAD must be cut from the CR.dat. This is necessary to be able to call different animations for the same base mesh, depending on SMC entries. If you don´t cut the MAD from the *.dat, the animation will loop endlessly and will not respond to SMC. Or it may even not show up at all. Didn´t check that until now. Regards, DD
__________________
|
|
|
|
04-18-11, 04:02 AM
|
#6 | |
|
Kaleun of U-3
![]() Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
|
Quote:
Yes that what i though but when you save it do you deleted afterward un neccessary nodes? And do i have to change the windows in S3d that ask to keep same headers? What i did for this one was to import my animation on water plane temporarily and i did a simple copy paste of noset+meshanimationdata. After i created a new data file and append a AnimationObject controller and then paste my noset+meshanimationdata and link it as child of AnimationObjec. Is this procedure sound good to you? Many thank Best regards Hans |
|
|
|
04-18-11, 04:10 AM
|
#7 |
|
Grey Wolf
![]() Join Date: Jul 2006
Location: Germany
Posts: 879
Downloads: 10
Uploads: 1
|
The procedure itself sounds okay to my ears. But the devil is in the detail.
You should make a habit of deleting unneeded nodes or at least changing their IDs as they might cause ID conflicts and hence CTD. When you copy and paste anything, always change the IDs to be unique. Otherwise they will cause problems that are exceptionally hard to track down or even CTD. As for the S3D headers, I don´t know. I still use the hex editor very often. So, I´ve never seen a dialogue asking to keep headers or something similar. At least I don´t recall it. After you´ve copied and pasted the <notset> (10/05) node + it´s child MAD, you´ll have to adjust the 'AnimationObject' entries to "find" that new node! See the pic I´ve posted last. That should be it. DD PS: Get some rest now!
__________________
|
|
|
04-19-11, 04:59 AM
|
#8 |
|
Sea Lord
![]() Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,944
Downloads: 42
Uploads: 0
|
sure i will, not!
i am really looking forward this progress here...
__________________
|
|
|
04-18-11, 04:47 AM
|
#9 | |
|
Admiral
![]() Join Date: Jan 2006
Location: Russia ®
Posts: 2,481
Downloads: 122
Uploads: 1
|
Quote:
![]() First you have choose the method that you want to use for your Flooding... or method which i described (IIRC) in 2009 ... or standard StatemachineWrapper ... or mixed method ... If you have a simple animation i recommend standard StateMachineWrapper ... ... If i understand correctly DD proposes to use the first method ... I find it hard to understand the nuances of your conversation ...
__________________
Alex ® ![]() Moses said: "Don't create yourself an idol"... Last edited by Anvart; 04-18-11 at 05:53 AM. |
|
|
|
04-18-11, 02:07 PM
|
#10 | |
|
Kaleun of U-3
![]() Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
|
Quote:
We need the first method to be able to control the flooding with HasFloodIn and No_Flood condition. Don't worry if sometime you don't understand the nuance because sometime i have difficulty to understand my own words ![]() Best regards Hans |
|
|
|
04-18-11, 04:11 PM
|
#11 |
|
Kaleun of U-3
![]() Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
|
Hi DD,
I made the new SMC with 4 entries states can you have a look at this because i am sure i made a mistake in it i was taking flooding in engine room and it didn't trigger the animation? Here it is : ![]() Best regards Hans |
|
|
04-18-11, 05:21 PM
|
#12 | |
|
Admiral
![]() Join Date: Jan 2006
Location: Russia ®
Posts: 2,481
Downloads: 122
Uploads: 1
|
Quote:
It's wonder do at StateMachineWrapper... with trick's logic, using StartTimer, StartEffect, TimerElapsed, StopEffect and so on... ![]() ... Why you don't use HasFlood? for more detailed logic? ... i think you made not correct logic... ... but sorry, DD is your consultant... it's time for bed.
__________________
Alex ® ![]() Moses said: "Don't create yourself an idol"... Last edited by Anvart; 04-18-11 at 05:56 PM. |
|
|
|
04-18-11, 08:57 PM
|
#13 | |
|
Kaleun of U-3
![]() Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
|
Quote:
Keep in mind i am still a noob regarding SMC but if you have an idea that would make it work in the best way possible feel free to give advice it is not only DD on this one it is you, privateer,Skwasjer and me. Also i saw that you have an action that is call SetVisible in your flag can you tell me what is the name for hiding it i guess SetInvisible??? We are all working in cooperation mode on this one so the more brains the better ![]() Best regards Hans |
|
|
|
04-18-11, 09:02 PM
|
#14 |
|
Kaleun of U-3
![]() Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
|
Hi mate,
Just want to apologize because i derived your thread on water flooding and it is suppose to be only on crew animation just let me know if you prefer that we continue this topic in the thread Graphical flooding? Best regards Hans |
|
|
04-18-11, 09:22 PM
|
#15 |
|
Stowaway
Posts: n/a
Downloads:
Uploads:
|
NO! By all means carry on as you were!
![]() This thread is becomeing what it was intended for! The Ultimate Animation Thread! This is the stuff everyone wants to know. We want to know the failures and successes! |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
