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 04-18-11, 04:47 AM   #1
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, 02:07 PM   #2
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 Anvart View Post

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 ...
Hi Anvart,

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
__________________




Hans Witteman is offline   Reply With Quote
Old 04-18-11, 04:11 PM   #3
Hans Witteman
Kaleun of U-3
 
Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
Default SMC new test

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
__________________




Hans Witteman is offline   Reply With Quote
Old 04-18-11, 05:21 PM   #4
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 Anvart,

We need the first method to be able to control the flooding with HasFloodIn and No_Flood condition.
...
Best regards Hans
This method has been tested 100 times ...
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.
Anvart is offline   Reply With Quote
Old 04-18-11, 08:57 PM   #5
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 Anvart View Post
This method has been tested 100 times ...
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.
Hi Anvart,

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
__________________




Hans Witteman is offline   Reply With Quote
Old 04-18-11, 09:02 PM   #6
Hans Witteman
Kaleun of U-3
 
Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
Default Message to privateer

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
__________________




Hans Witteman is offline   Reply With Quote
Old 04-18-11, 09:22 PM   #7
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

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!
  Reply With Quote
Old 04-19-11, 03:02 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
...
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???
...
Best regards Hans
I don't remember this ...
or you saw DD stuff...
or you saw my experimental version, where i remove pilot actions was lazy ...
SetVisible work in SH4 ... in SH3 it's not working ...
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.
I don't know many things about your work and poorly understand you ...
I need to know/understand your idea ... I don't want to impose you their views ...
What sort of hierarchy of animated objects you use?
What sort of animations you use? and how many?
I thought, you use next minimum of basic animations ...
for example:
1) Mesh Animation Type 10/5 for water surface
2) Object Animation Type 10/1 - Water Up
3) Object Animation Type 10/1 - Water Down
4) and may be ... Object Animation Type 10/2 - small rotating and swinging water ...
...
... and i can't experiment ...
Quote:
Originally Posted by Hans Witteman View Post
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

Maybe i finally understood what you were saying ...?
You talked about the type of mesh? It's edited into S3D very simply ...
... look:
http://www.subsim.com/radioroom/show...pg#post1177807
# 25
...
... don't confuse ... These versions of games are diffirent (SH3 and SH4).
__________________
Alex ®


Moses said: "Don't create yourself an idol"...

Last edited by Anvart; 04-19-11 at 04:22 AM.
Anvart is offline   Reply With Quote
Old 04-19-11, 04:14 AM   #9
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 Anvart View Post


I don't know many things about your work and poorly understand you ...
I need to know/understand your idea ... I don't want to impose you their views ...
What sort of hierarchy of animated objects you use?
What sort of animations you use? and how many?
I thought, you use next minimum of basic animations ...
for example:
1) Mesh Animation Type 10/5 for water surface
2) Object Animation Type 10/1 - Water Up
3) Object Animation Type 10/1 - Water Down
4) and may be ... Object Animation Type 10/2 - small rotating and swinging water ...
...
..
Hi Anvart,

This description is almost exactly what i want to do except for step 4 i just use animated Noise modifier on water mesh but the rest is spot on i have an animation for water up and another one for water down.

I want to link it via SMC with HasfloodIn to trigger water up and to link it to No-Flood to trigger water down.

Best regards Hans
__________________




Hans Witteman is offline   Reply With Quote
Old 04-19-11, 04:39 AM   #10
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 Anvart,

This description is almost exactly what i want to do except for step 4 i just use animated Noise modifier on water mesh but the rest is spot on i have an animation for water up and another one for water down.
May be you speak about 1) anim.
I'm talking about water reaction (moving) as result of sub moving...
Quote:
I want to link it via SMC with HasfloodIn to trigger water up and to link it to No-Flood to trigger water down.

Best regards Hans
I'm talking about the situation of stable water level without Flood-In and Flood-Out ...
__________________
Alex ®


Moses said: "Don't create yourself an idol"...
Anvart is offline   Reply With Quote
Old 04-19-11, 04:42 AM   #11
DivingDuck
Grey Wolf
 
Join Date: Jul 2006
Location: Germany
Posts: 879
Downloads: 10
Uploads: 1
Default

Moin,

@Skwas:
No offence meant, S3D certainly understands and handles all 3 IDs. But you can not change a 3d_model´s ID without loosing correlation to the properties node (4/100) as there is no way to change the third ID in S3D. At least I´ve not seen any so far. And since I prefer to use my own IDs, I got used to alter these two via hex. Nevertheless S3D remains a very powerful tool to use for SH modding. Don´t think I´d ever tackled the task of an animated engine for FM_NI without S3D.

@Anvart:
Stay tuned, my friend. And don´t abandon us. Your input is most appreciated. I did not have a look at StateMachineWrappers until now. So, if you say they might do the job as well and/or even better, then it is definitely more than just worth checking. Anyway, first I will give Hans a hand trying to make it work using SMC before I deal with the unknown (to me) StateMachineWrappers.

@Hans:
'HasFloodIn' is certainly derived from the 'EffectManagers.act', but where did you derive the entry 'Engine_Rooms' from? If this value is defined nowhere in any SHIII file, then the engine will not be able to make use of it because it does not know what this value represents.
Never had a go at 'HasFloodIn' but I guess it needs a numeric value or a flag for yes/no rather than a "location". But I´m far from sure about this. Remains to be proved.

Your SMC is a bit screwed. I´ll have a look at it.

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

Quote:
Originally Posted by DivingDuck View Post
Moin,

@Skwas:
No offence meant, S3D certainly understands and handles all 3 IDs. But you can not change a 3d_model´s ID without loosing correlation to the properties node (4/100) as there is no way to change the third ID in S3D. At least I´ve not seen any so far. And since I prefer to use my own IDs, I got used to alter these two via hex. Nevertheless S3D remains a very powerful tool to use for SH modding. Don´t think I´d ever tackled the task of an animated engine for FM_NI without S3D.

i don't understand...?
I've never seen a problem change IDs in the model Type 1/101 or in the node Type 4/100 through S3D when creating objects from scratch ...
If necessary, you can again to import a model with all the properties in dat-file via S3D ...
Quote:
@Hans:
'HasFloodIn' is certainly derived from the 'EffectManagers.act', but where did you derive the entry 'Engine_Rooms' from? If this value is defined nowhere in any SHIII file, then the engine will not be able to make use of it because it does not know what this value represents.
...
Explore SH3 engine ...
IIRC, the folder Library and one (or more) of files with SMClasses for effects (with Graph prefix).
Quote:
@Anvart:
Stay tuned, my friend. And don´t abandon us. Your input is most appreciated. I did not have a look at StateMachineWrappers until now. So, if you say they might do the job as well and/or even better, then it is definitely more than just worth checking. Anyway, first I will give Hans a hand trying to make it work using SMC before I deal with the unknown (to me) StateMachineWrappers.
...
Regards,
DD
Yes, only experiment can prove or disprove our hypothesis ...
__________________
Alex ®


Moses said: "Don't create yourself an idol"...

Last edited by Anvart; 04-20-11 at 01:29 PM.
Anvart is offline   Reply With Quote
Old 04-19-11, 02:56 PM   #13
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:
'HasFloodIn' is certainly derived from the 'EffectManagers.act', but where did you derive the entry 'Engine_Rooms' from? If this value is defined nowhere in any SHIII file, then the engine will not be able to make use of it because it does not know what this value represents.
Never had a go at 'HasFloodIn' but I guess it needs a numeric value or a flag for yes/no rather than a "location". But I´m far from sure about this. Remains to be proved.

Your SMC is a bit screwed. I´ll have a look at it.

Regards,
DD
Hi DD,

Look at GraphFl_02 in library folder this is the one who use Engine_Room and HadFloodIn .

But we can used any compartement because we are not going to make individuals water mesh for each compartments because it is not going to look good if you have a hatch or a door open.

So if we get flooding in only one compartment that will trigger the water level raising for all the boat but logically water raising in one compartment would move to others so for me this solution seem plausible.

Also if someone have and idea about how high the water level should be just tell me so i can adjusted the new animation for it?

Best regards Hans
__________________





Last edited by Hans Witteman; 04-19-11 at 03:06 PM.
Hans Witteman is offline   Reply With Quote
Old 04-19-11, 05:01 PM   #14
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,

@Skwas:
No offence meant, S3D certainly understands and handles all 3 IDs. But you can not change a 3d_model´s ID without loosing correlation to the properties node (4/100) as there is no way to change the third ID in S3D. At least I´ve not seen any so far. And since I prefer to use my own IDs, I got used to alter these two via hex. Nevertheless S3D remains a very powerful tool to use for SH modding. Don´t think I´d ever tackled the task of an animated engine for FM_NI without S3D.
None taken, I was just confused because you 'can' change the id. On a model node you can change the ID like any other chunk. If the model is linked to a node, the node is updated automatically. If you want to assign a new model ID to a node, that's also possible, just CTRL+click the 'model-id' in the node view (just above the assigned materials) or if none is set (0x0) you can simply click in the editbox.
skwasjer is offline   Reply With Quote
Old 04-19-11, 04:51 PM   #15
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,553
Downloads: 30
Uploads: 4
Default

Quote:
Originally Posted by Hans Witteman View Post
Hi Anvart,

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
I think just use param 0 or 1, but look at Anvart's post:

Quote:
SetVisible work in SH4 ... in SH3 it's not working ...
skwasjer 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.