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 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 07-20-13, 05:40 PM   #2476
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

All the code is finished for using the stadimeter as a sextant. I went to test it in game:


Seems to me the angle is greater than 8.95 degrees

What I did was add 3 new commands to the game:

Enable_Sextant
Disable_Sextant
and Sextant_angle

Sextant_angle is not a command the user calls. Instead the game calls it passing the angle calculated between the two green lines to all the scripts. Thus it's easy to intercept in the scripts (Param1Float) and grab the angle.

How this all works:

First, in order to use the stadimeter as a sextant you have to have the TDC on. Next you have to bring up the sextant window. In my UIs mod click the Navigator to bring up his orders bar. Then click the Sextant to display the Sextant window. Next place the green line on the horizon. Then you have to enable the stadimeter as sextant (call the Enable_Sextant command). You do this in my UIs mod by pressing the Enable sextant button. If you decide you do not want to use the sextant simply press the Disable sextant to return stadimeter to normal (which calls the Disable_Sextant command). Then press the stadimeter button to use the sextant (in my UIs mod press the stadimeter button located above the TDC Range dial). Then move the green line to the position in the sky you want to take a reading on. The angle is automatically updated in the Sextant box for you (in my UIs mod). Once done taking you reading simply click the scope screen (just like you do with the stadimeter) to stop using the sextant. You do not need to click the Disable sextant button after this, the game automatically clears the bit for you.

We need to figure out the math required to get this angle value correct. All I did was grab the value that the game calculates and would show in the old torpedo box (think back SH3).


EDIT:

added another new command to the game:

Stadimeter_active

This command is not called by the player. It is called by the game. When the stadimeter goes active the game will call this command passing 1 in Param1 (goes out to all the scripts). When the stadimeter is no longer active the game will call this command passing 0 in Param1 (goes out to all the scripts). Very useful for many things!

Last edited by TheDarkWraith; 07-20-13 at 07:44 PM.
TheDarkWraith is offline   Reply With Quote
Old 07-20-13, 06:20 PM   #2477
Sartoris
Captain
 
Join Date: May 2011
Posts: 489
Downloads: 106
Uploads: 0
Default

Excuse me for spamming this thred with my enthusiasm, but holy cow that sounds awesome!

TDW, you are steadily turning this once-broken game into a true gem.
Sartoris is offline   Reply With Quote
Old 07-20-13, 06:23 PM   #2478
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Sartoris View Post
Excuse me for spamming this thred with my enthusiasm, but holy cow that sounds awesome!

TDW, you are steadily turning this once-broken game into a true gem.
The game has unlimited potential. It just needs a little TLC and time I'm having a blast turning it into what it should've been on release day.

Last edited by TheDarkWraith; 07-20-13 at 07:34 PM.
TheDarkWraith is offline   Reply With Quote
Old 07-20-13, 08:20 PM   #2479
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

The new upcoming patch for stadimeter used as sextant just gives you an angle. You then have to take that angle and use star charts and other info to figure out your position.
TheDarkWraith is offline   Reply With Quote
Old 07-20-13, 08:34 PM   #2480
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,153
Downloads: 901
Uploads: 73


Default

Quote:
Originally Posted by TheDarkWraith View Post
The new upcoming patch for stadimeter used as sextant just gives you an angle. You then have to take that angle and use star charts and other info to figure out your position.
OK , i see . So someone should do an ingame tutorial then . Using the TDW tutorial scripts .
THE_MASK is offline   Reply With Quote
Old 07-20-13, 10:38 PM   #2481
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

I think a screenshot will help explain where I'm pulling this angle value from:



Circled in red is the angle val. Yes this is an SH3 screenshot but it's the same code for the stadimeter in SH5. I'm reading this value in the game code and passing it out to all the scripts via the new command. The script file takes the value passed and displays it in the sextant window. Now surely this value means something to somebody I haven't been able to figure out if the value is correct or not when using the stadimeter as a sextant. To me the angle looks incorrect.

I'll have a new test version available here soon so you all can play around with it.
TheDarkWraith is offline   Reply With Quote
Old 07-20-13, 10:48 PM   #2482
rolandslaw
Bosun
 
Join Date: Jun 2013
Posts: 66
Downloads: 66
Uploads: 0
Default Hydrophone fix

Quote:
Originally Posted by TheDarkWraith View Post
The broken hydrophone patch is vastly improved in next upcoming version. The hydrophone itself is much more improved also
TheDarkWraith:

Thank u for our reply. I am including a reference herein of my post at Workshop/How to Use TDW GenericPatcher for the Beginner at number 26 posted on the 19th of this month. I wanted to let u c where I have a conflict between the patched files and two mods..... It might help you find the reason why some of us are not getting human sound at hydrophone station.

There is a post in a thread... somewhere ... I can not locate which explains how to use the hydrophone with a 3 min 15 sec time to compute the speed of target.... any idea where?

Rol
rolandslaw is offline   Reply With Quote
Old 07-20-13, 11:14 PM   #2483
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by rolandslaw View Post
TheDarkWraith:

Thank u for our reply. I am including a reference herein of my post at Workshop/How to Use TDW GenericPatcher for the Beginner at number 26 posted on the 19th of this month. I wanted to let u c where I have a conflict between the patched files and two mods..... It might help you find the reason why some of us are not getting human sound at hydrophone station.

There is a post in a thread... somewhere ... I can not locate which explains how to use the hydrophone with a 3 min 15 sec time to compute the speed of target.... any idea where?

Rol
I have to have something that I can test on my own computer using the debugger or I'll never be able to help you. You have to give me specifics and some way to reproduce what you're experiencing.
TheDarkWraith is offline   Reply With Quote
Old 07-20-13, 11:15 PM   #2484
Sjizzle
Count Dracula
 
Sjizzle's Avatar
 
Join Date: Aug 2012
Location: 46°13′N, 24°47′E
Posts: 1,807
Downloads: 405
Uploads: 0


Default

Quote:
Originally Posted by TheDarkWraith View Post
The new upcoming patch for stadimeter used as sextant just gives you an angle. You then have to take that angle and use star charts and other info to figure out your position.
I have just made the new part from my charts mod with all star charts ...waiting for your release.
Sjizzle is offline   Reply With Quote
Old 07-20-13, 11:17 PM   #2485
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

test version 1.0.139.0 released. See here: http://www.subsim.com/radioroom/show...postcount=2450

If you already followed the directions from test version 1.0.134.0 you do not need to do them again. You are safe to just go ahead and use this new test version.

@Fifi - AI subs problem fixed. You should be able to hear all subs now on the hydrophone and it should show Submarine for them all.


I'm really questioning the angle val when using the stadimeter as a sextant. To me the angle val looks way too small. I am no expert in celestial navigation though and it may be correct. By letting you all test this you can tell me yes, no, or better yet if no why the value is wrong.
TheDarkWraith is offline   Reply With Quote
Old 07-20-13, 11:28 PM   #2486
Sjizzle
Count Dracula
 
Sjizzle's Avatar
 
Join Date: Aug 2012
Location: 46°13′N, 24°47′E
Posts: 1,807
Downloads: 405
Uploads: 0


Default

part 4 from my charts it's released this part have star charts

Last edited by Sjizzle; 07-21-13 at 12:10 AM.
Sjizzle is offline   Reply With Quote
Old 07-21-13, 03:35 AM   #2487
Fifi
Navy Seal
 
Fifi's Avatar
 
Join Date: Dec 2012
Location: France
Posts: 6,254
Downloads: 510
Uploads: 0


Default

Quote:
Originally Posted by TheDarkWraith View Post
test version 1.0.139.0 released. See here: http://www.subsim.com/radioroom/show...postcount=2450

@Fifi - AI subs problem fixed. You should be able to hear all subs now on the hydrophone and it should show Submarine for them all.
I'm back after a stunning whales watching...
Thank you so much TDW. Will test it tomorrow first hour
Fifi is offline   Reply With Quote
Old 07-21-13, 05:36 AM   #2488
volodya61
Ocean Warrior
 
volodya61's Avatar
 
Join Date: Feb 2012
Location: Rostov-on-Don, local time GMT+4
Posts: 3,292
Downloads: 374
Uploads: 0


Default

@ TDW

Generic Patcher manual RUS (1.0.134 test - 1.0.139 test) - http://www.4sync.com/archive/C5Ht54I...l_RUS__10.html
__________________
.
Where does human stupidity end?

.


El sueño de la razón produce monstruos © - and for some people awakening will be cruel
volodya61 is offline   Reply With Quote
Old 07-21-13, 06:32 AM   #2489
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

A few remarks RE. your sextant/stadimeter implementation.

- It has been noted several times that SH5's celestial sphere is not so accurate to allow accurate position measurements. This is not to say that you should give up your idea, but I think this fact had to be mentioned in order to avoid wrong interpretations of the test results

- If possible, I would make the sextant only accessible from UZO or (better) totally independent from existing scopes (though you migh need for their code in order to implement it). In any case, it should be only available in the conning tower station.

- If you manage to unlink the sextant from other scopes, using a dedicated custom mask for it would be a good idea.

- For obvious reasons, unliking the sextant from the need to switch the TDC on would be another good idea but, as you didn't implement it, I guess it is not possible
gap is offline   Reply With Quote
Old 07-21-13, 07:38 AM   #2490
tonschk
Sea Lord
 
Join Date: Mar 2007
Posts: 1,897
Downloads: 172
Uploads: 0
Default

Quote:
Originally Posted by Sartoris View Post
TDW, you are steadily turning this once-broken game into a true gem.
tonschk 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 08:41 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.