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 05-26-10, 06:38 AM   #1
Darkbluesky
Sparky
 
Join Date: Sep 2006
Posts: 155
Downloads: 61
Uploads: 0
Default Statemachine and cameras

Hello

I am stuck in the middle of my mod trying to solve an issue with statemachine controlers.

What I am trying to do is to make an animation of a 3D object (until here ok thanks to Anvart explanations in the forums and other modders' work) but at some point of the animation, I need that the camera change to another station automatically.

I guess it is possible, because in the game there is a "similar" situation: when you are in the conningdeck and order periscope depth, at some depth value the camera is changed automatically to Conning tower, I guess this is done using a statemachine approach, with a couple conditions, first to check if you are in conningdeck/flak gun/deck gun, and the second one, if depth is greater than some value. But which is the "action" that makes the camera to change station?

I have searched sh3.exe and statemachine files with an HEX editor, but unless I have missed something, I have not found any string that hints that. I have checked the dat files in library folder, but I have not found neither a clue.

I really need to do that... Have I missed some file? Could someone please, help me? even a little ? A hint? Tx
Darkbluesky is offline   Reply With Quote
Old 05-26-10, 07:29 AM   #2
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 131
Uploads: 0


Default

Surely I'm totally wrong with this, but in Commands_en.cfg I've found camera entries assigned to some commands and, if I remember correctly, something like GO_BACK-camera entries. (out of my memory - I'm not at home).
__________________
My Mediafire page: http://www.mediafire.com/hsie
h.sie is offline   Reply With Quote
Old 05-26-10, 07:42 AM   #3
Darkbluesky
Sparky
 
Join Date: Sep 2006
Posts: 155
Downloads: 61
Uploads: 0
Default

Hey, thanks for answer!

I know that command, but then that would mean that we could use any command in the "Name" field of Conditions/Actions/Name of the StateMachineClass (and leave empty the "Value" field)?

For example, instead of PlayAnim or StopAnim? I didn't know that. When I get home I'll try, if it works, you'll make me happy

Tx

Last edited by Darkbluesky; 05-26-10 at 08:07 AM.
Darkbluesky is offline   Reply With Quote
Old 05-26-10, 01:03 PM   #4
Darkbluesky
Sparky
 
Join Date: Sep 2006
Posts: 155
Downloads: 61
Uploads: 0
Default

Tested but it does not work . I have tested different combinations of "Name" and "value" fields, but without luck.

I wonder still how is it done for the case described in my first post.
Darkbluesky is offline   Reply With Quote
Reply


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 12:11 AM.


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