SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 11-09-10, 11:19 AM   #1
Philipp_Thomsen
Old Gang
 
Philipp_Thomsen's Avatar
 
Join Date: Nov 2007
Location: Drunk at the whorehouse
Posts: 2,261
Downloads: 146
Uploads: 0


Default

Maybe now the crew will react to tense depth charging in a more realistic way, other then bend their knees and look around slowly.

Is it possible to make the crews run from one end to the other of the uboat? Would be cool to simulate crew running to the bow when crash diving.
__________________
To each his own
Philipp_Thomsen is offline   Reply With Quote
Old 04-16-11, 08:41 PM   #2
FIREWALL
Eternal Patrol
 
Join Date: Mar 2006
Location: CATALINA IS. SO . CAL USA
Posts: 10,099
Downloads: 511
Uploads: 0
Default

Quote:
Originally Posted by Philipp_Thomsen View Post
Maybe now the crew will react to tense depth charging in a more realistic way, other then bend their knees and look around slowly.

Is it possible to make the crews run from one end to the other of the uboat? Would be cool to simulate crew running to the bow when crash diving.
Reminds me of an old quote. " When in trouble or in doubt, Run to Both Ends of the Boat and Scream and Shout."
__________________
RIP FIREWALL

I Play GWX. Silent Hunter Who ???
FIREWALL is offline   Reply With Quote
Old 04-17-11, 03:02 PM   #3
DivingDuck
Grey Wolf
 
Join Date: Jul 2006
Location: Germany
Posts: 879
Downloads: 10
Uploads: 1
Default

Moin Hans,

if your animation shows in S3D but not ingame, you probably have not set the 3d_model identifier (see pic) correctly or you´ve got an ID conflict.

Skwasjer is, of course, right saying that you do not need a SMC to make an animation show up ingame. But there are several hooks that might prevent your solution from working.


First thing to do is to create a new node featuring a 3d model.
  1. You can do it by cloning (copy&paste) an existing 3d_model within S3D. BUT, this will not work without hex editing as the 3d model´s ID will be linked to it´s properties node via an ID entry that is not accessible via S3D. (see pic below) Therefore you´ll end up with an ID conflict. ID conflict will result in animation not showing ingame, not even the base mesh.



  2. You can use your right mouse button to create new nodes/chunks in S3D. As I don´t know what routine S3D uses to create unique IDs I prefer method #1


Second step: you have to make sure the 3d_model type/identifier is set to 0x02. (see pic below) Otherwise you will see the base mesh only without animation.




Third step: select the 3d_model node and import your *.obj file sequence.
This is the easiest way to bring an ever looping animation into the game.


If you don´t want the animation to loop constantly, you´ll have to split and put the data into several files. See pic below.




This last pic says it all. If there´s still something missing, ask!


Regards,
DD
DivingDuck is offline   Reply With Quote
Old 04-17-11, 03:39 PM   #4
Hans Witteman
Kaleun of U-3
 
Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
Default

Quote:
Originally Posted by DivingDuck View Post
Moin Hans,

if your animation shows in S3D but not ingame, you probably have not set the 3d_model identifier (see pic) correctly or you´ve got an ID conflict.

Skwasjer is, of course, right saying that you do not need a SMC to make an animation show up ingame. But there are several hooks that might prevent your solution from working.


First thing to do is to create a new node featuring a 3d model.
  1. You can do it by cloning (copy&paste) an existing 3d_model within S3D. BUT, this will not work without hex editing as the 3d model´s ID will be linked to it´s properties node via an ID entry that is not accessible via S3D. (see pic below) Therefore you´ll end up with an ID conflict. ID conflict will result in animation not showing ingame, not even the base mesh.

Regards,
DD
Hi DD,

Thank for that great tutorial but finally someone as pin point that without an hexeditor animation wont work in game i knew that since the beginning and i wasted countless hours trying to make animation work in game.

So since i am not good at all at hex editor can you just show me how to change that value to fix my animation? If i type the number in File Offset of S3D in Hex editor will it show me the required information to change?

Edit: After some test i follow DD advice on identification tag for 3d model and the animation is working in game wahoooo just have to make the correct statemachines class to make it work under damage state conditions.




A thousand thank DD you did it again mate.

Best regards Hans
__________________





Last edited by Hans Witteman; 04-17-11 at 11:30 PM.
Hans Witteman is offline   Reply With Quote
Old 04-17-11, 08:07 PM   #5
Hans Witteman
Kaleun of U-3
 
Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
Default Saving animations

Hi again,

DD can you tell me what is your procedure to save your animation in animation folder?

Because now my water flooding work in game by changing tag ID to 2 like you mention but it is only working when i imported the meshanimationdata in my CR.dat.

If i remove the meshanimationdata it does not trigger the animation i previously saved in animation folder?

Also on game engine what is less demanding regarding animation is it better to save animation in external animation folder or to used them directly under Dat files?

Best regards Hans
__________________





Last edited by Hans Witteman; 04-17-11 at 09:30 PM.
Hans Witteman is offline   Reply With Quote
Old 04-17-11, 10:52 PM   #6
Hans Witteman
Kaleun of U-3
 
Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
Default Saving .anim

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
__________________




Hans Witteman is offline   Reply With Quote
Old 04-18-11, 02:45 AM   #7
DivingDuck
Grey Wolf
 
Join Date: Jul 2006
Location: Germany
Posts: 879
Downloads: 10
Uploads: 1
Default

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?
  1. Import the animation to your Interior.dat
  2. cut the MAD (<notset> (10/05) + child node)
  3. paste it into your newly created 'Hans_Animation.anm' just behind an 'AnimationObject' node
  4. create needed entries and links for the 'AnimationObject'





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:
  • Start (entry 0)
    • as you did, condition 'true' will be met on start up
    • points towards entry #1 (Idle)

  • Idle (entry 1)
    • define conditions to trigger the animation
    • points towards entry #2 (Animation)

  • Animation (entry 2)
    • define conditions to stop the animation here (GotoEntry #3 (Stop))
    • define conditions to change the animation here (GotoEntry #??)
    • if no interfering condition is met loop to entry #2 (Animation)

  • Stop (entry 3)
    • stop (all) animation(s)
    • point back to entry #1 (Idle)




[EDIT]
Moin UFi,

but don´t tell my wife.
[/EDIT]


Regards,
DD
DivingDuck is offline   Reply With Quote
Old 04-18-11, 04:47 AM   #8
Anvart
Admiral
 
Join Date: Jan 2006
Location: Russia ®
Posts: 2,481
Downloads: 122
Uploads: 1
Default

Quote:
Originally Posted by Hans Witteman View Post
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

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.
Anvart is offline   Reply With Quote
Old 04-18-11, 05:00 PM   #9
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,553
Downloads: 30
Uploads: 4
Default

Quote:
Originally Posted by DivingDuck View Post
Moin Hans,

if your animation shows in S3D but not ingame, you probably have not set the 3d_model identifier (see pic) correctly or you´ve got an ID conflict.

Skwasjer is, of course, right saying that you do not need a SMC to make an animation show up ingame. But there are several hooks that might prevent your solution from working.


First thing to do is to create a new node featuring a 3d model.
  1. You can do it by cloning (copy&paste) an existing 3d_model within S3D. BUT, this will not work without hex editing as the 3d model´s ID will be linked to it´s properties node via an ID entry that is not accessible via S3D. (see pic below) Therefore you´ll end up with an ID conflict. ID conflict will result in animation not showing ingame, not even the base mesh.



  2. You can use your right mouse button to create new nodes/chunks in S3D. As I don´t know what routine S3D uses to create unique IDs I prefer method #1
Second step: you have to make sure the 3d_model type/identifier is set to 0x02. (see pic below) Otherwise you will see the base mesh only without animation.




Third step: select the 3d_model node and import your *.obj file sequence.
This is the easiest way to bring an ever looping animation into the game.


If you don´t want the animation to loop constantly, you´ll have to split and put the data into several files. See pic below.




This last pic says it all. If there´s still something missing, ask!


Regards,
DD
You have to excuse me since it's been too long, but I'm a bit confused by that statement, because as far as I know S3D does allow editting those ID's... I don't see anything weird, the 4/100 chunk has 3 id's in a row, the id, parent id and model id. The model chunk has just one id, it's own. Your hex screenshots show all of them, and S3D understands (and shows) all of them... So really, I am confused that you say S3D does not understand them

I need no hex work to make animations work - even more advanced ones - it can all be done in S3D... (I mean, I did it myself)

And yea, the funny misplaced box in the model pane was some left over unfinished (but useful) thingy that I left in, but totally forgot about...

Tip: you can copy existing structures by pressing CTRL+SHIFT+C on the top node, and then pasting in new DAT (or ANM), and then just assign new ID's in S3D (the 'New' button next to the ID-field). If you have trouble starting from scratch, this may help.
skwasjer is offline   Reply With Quote
Old 04-18-11, 08:52 PM   #10
Hans Witteman
Kaleun of U-3
 
Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
Default

Quote:
Originally Posted by skwasjer View Post
You have to excuse me since it's been too long, but I'm a bit confused by that statement, because as far as I know S3D does allow editting those ID's... I don't see anything weird, the 4/100 chunk has 3 id's in a row, the id, parent id and model id. The model chunk has just one id, it's own. Your hex screenshots show all of them, and S3D understands (and shows) all of them... So really, I am confused that you say S3D does not understand them

I need no hex work to make animations work - even more advanced ones - it can all be done in S3D... (I mean, I did it myself)

And yea, the funny misplaced box in the model pane was some left over unfinished (but useful) thingy that I left in, but totally forgot about...

Tip: you can copy existing structures by pressing CTRL+SHIFT+C on the top node, and then pasting in new DAT (or ANM), and then just assign new ID's in S3D (the 'New' button next to the ID-field). If you have trouble starting from scratch, this may help.
Hi mate,

I know what your mean because it did work without hexing anything the only thing that was not working because of the small box where it show a number i just had to change the 0 for 2 like DD mention and suddenly the magic went on in game.

But i have see that in some animation you did for sH4 you have it at 0 and it was working correctly so maybe we only need to put number 2 for Sh3.

Best regards Hans
__________________




Hans Witteman is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 07:43 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.