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 03-10-12, 11:33 AM   #1
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,448
Downloads: 166
Uploads: 28


Default

Harbout Pilot update to v2.9
see post 1

This update will add a new route for Kiel.
This will be helpful as OHIIv1.8 will take you back to Kiel to collect your new boat when you get upgraded to VIIC and C/41


Kiel Harbour Skagerrak Route

Outbound

Here you start in the bunker of Kiel Harbour and you use this one as you would any other pilot script. Pilot will navigate your boat out of the harbour and north though Skagerrak. Harbour Pilot will leave your boat as you reach the North Sea.

As with harbour pilot, you can adjust TC straight away. x256 is recommended. Messages warning you of upcoming traffic will be displayed.
Once you have reached the North Sea TC will drop to x1 and a message will be diplayed allowing you to plot your next waypoint.

Inbound

With inbound you must position your u-boat within the 100KM circle shown below.



Pilot will navigate you back Skagerrak and down to Kiel harbour for you to dock.

The waypoint resume setting for this one is set very high. This will also allow you to start the script anywhere within the route and your boat will head for the nearest set point and continue.
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 03-10-12, 04:27 PM   #2
pedrobas
Seasoned Skipper
 
Join Date: Apr 2007
Location: Huelva, Spain
Posts: 664
Downloads: 301
Uploads: 0
Default

Many thanks, Trevally
pedrobas is offline   Reply With Quote
Old 03-12-12, 02:39 PM   #3
vlad29
XO
 
Join Date: Dec 2010
Location: Arkhangelsk
Posts: 427
Downloads: 325
Uploads: 0
Default

Hi Trevally, many thanks for update!
As for previous version of "Harbour Pilot" - I've noticed, that the pilot function could not be enabled/continued after loading the game with saved running scripts inside Kiel Channel. The first report that time was "the pilot will route You....", then in half of a minute the message 'pilot is offboard' appeared.
Is it a known bug and is it fixed in new version?
vlad29 is offline   Reply With Quote
Old 03-12-12, 03:16 PM   #4
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,448
Downloads: 166
Uploads: 28


Default

Quote:
Originally Posted by vlad29 View Post
Hi Trevally, many thanks for update!
As for previous version of "Harbour Pilot" - I've noticed, that the pilot function could not be enabled/continued after loading the game with saved running scripts inside Kiel Channel. The first report that time was "the pilot will route You....", then in half of a minute the message 'pilot is offboard' appeared.
Is it a known bug and is it fixed in new version?
Hi Vlad

Thanks for the report, I did not know of this issue.
I will test this to see what is wrong - It could be that the range to your next waypoint was to far for the settings within the script.

With the canal having so many turns - I had waypoint resume set low, but I will see if it is the reason.

Can you confirm that you are using the most up to date of TDWs UI
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 03-12-12, 03:29 PM   #5
vlad29
XO
 
Join Date: Dec 2010
Location: Arkhangelsk
Posts: 427
Downloads: 325
Uploads: 0
Default

Quote:
Originally Posted by Trevally. View Post
Hi Vlad

Thanks for the report, I did not know of this issue.
I will test this to see what is wrong - It could be that the range to your next waypoint was to far for the settings within the script.

With the canal having so many turns - I had waypoint resume set low, but I will see if it is the reason.

Can you confirm that you are using the most up to date of TDWs UI
Yes, NewUI v.6.9.0 I've noticed the discussed issue long time ago, so I preffered not to be saved in the channel itself. As for other places on route - everything was great
vlad29 is offline   Reply With Quote
Old 03-12-12, 04:21 PM   #6
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,448
Downloads: 166
Uploads: 28


Default

Just tested Kiel Outbound and after a save load, waypoint resume worked.
I then tested a few times stopping and starting the script. Each time the script worked as it should.

Here is the resume well into the canal
Quote:
00004010 1116.42285156 [5852] class AutomationScriptInFile(Kiel Harbour & Canal Outbound).Start
00004011 1118.22521973 [7024] Entities.cpp (83): Process Message:
00004012 1118.22534180 [7024] Entities.cpp (114): OSI Ping
00004013 1118.22546387 [7024] Entities.cpp (123): succeeded
00004014 1123.56701660 [5852] Kiel Harbour & Canal Pilot Outbound started WaypointResume=1000.0m
00004015 1123.56933594 [5852] Kiel Pilot will take you out of the harbour and through the canal. You may adjust TC anytime and speed once clear of wharf.
00004016 1123.56945801 [5852] Kiel Harbour & Canal Pilot Outbound no precondition specified
00004017 1123.57019043 [5852] Kiel Harbour & Canal Pilot Outbound starting from waypoint 10
00004018 1123.57019043 [5852] Kiel Harbour & Canal Pilot Outbound waypoint 10 using precision navigation
00004019 1123.57031250 [5852] Kiel Harbour & Canal Pilot Outbound waypoint 10 using current TC level
00004020 1123.57031250 [5852] Kiel Harbour & Canal Pilot Outbound waypoint 10 using current depth
00004021 1123.57031250 [5852] Kiel Harbour & Canal Pilot Outbound waypoint 10 using current speed for pre-speed
00004022 1123.57031250 [5852] Kiel Harbour & Canal Pilot Outbound waypoint 10 using current speed
00004023 1123.57043457 [5852] Kiel Harbour & Canal Pilot Outbound waypoint 10: Distance=671.24 3/4 distance=-9999.00 1/2 distance=335.62 1/4 distance=503.43
00004024 1123.57055664 [5852] Kiel Harbour & Canal Pilot Outbound setting new heading of 258 for waypoint 10
@TDW

here is one I tried just before the one above. As you can see it wanted to go to waypoint 0 where it should have picked 9 or 10. Could this be because it was outside the set resume limit for this one of 1000m

Quote:
00003966 1071.98022461 [5852] Kiel Harbour & Canal Pilot Outbound started WaypointResume=1000.0m
00003967 1071.98254395 [5852] Kiel Pilot will take you out of the harbour and through the canal. You may adjust TC anytime and speed once clear of wharf.
00003968 1071.98266602 [5852] Kiel Harbour & Canal Pilot Outbound no precondition specified
00003969 1071.98339844 [5852] Kiel Harbour & Canal Pilot Outbound starting from waypoint 0
00003970 1071.98339844 [5852] Kiel Harbour & Canal Pilot Outbound waypoint 0 using precision navigation
00003971 1071.98339844 [5852] TC level changed to 1
00003972 1071.98352051 [5852] Kiel Harbour & Canal Pilot Outbound waypoint 0 setting TC to 1
00003973 1071.98352051 [5852] Kiel Harbour & Canal Pilot Outbound waypoint 0 using current depth
00003974 1071.98364258 [5852] Kiel Harbour & Canal Pilot Outbound waypoint 0 using current speed for pre-speed
00003975 1071.98364258 [5852] Kiel Harbour & Canal Pilot Outbound waypoint 0 using current speed
00003976 1071.98376465 [5852] Kiel Harbour & Canal Pilot Outbound waypoint 0: Distance=16509.85 3/4 distance=4127.46 1/2 distance=8254.93 1/4 distance=12382.39
00003977 1071.98388672 [5852] Kiel Harbour & Canal Pilot Outbound setting new heading of 86 for waypoint 0
00003978 1076.18359375 [5852] Kiel Harbour & Canal Pilot Outbound stopped
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 03-12-12, 04:48 PM   #7
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Trevally. View Post
@TDW

here is one I tried just before the one above. As you can see it wanted to go to waypoint 0 where it should have picked 9 or 10. Could this be because it was outside the set resume limit for this one of 1000m
Could be I have an error in my code. I'll look into it
TheDarkWraith is offline   Reply With Quote
Old 03-12-12, 05:29 PM   #8
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Trevally. View Post
@TDW

here is one I tried just before the one above. As you can see it wanted to go to waypoint 0 where it should have picked 9 or 10. Could this be because it was outside the set resume limit for this one of 1000m
I think I see the error (or I should say omission) in my code. I iterate over all the waypoints and while doing so:

if dist <= self.waypointresume:

I check to see if distance between uboat's current position and waypoint is less than or equal to the waypoint resume distance. If one is found great, if one isn't problem. The if one isn't is the omission - I never check to see what is the closest waypoint - instead I say go to waypoint 0. I'll fix this
TheDarkWraith is offline   Reply With Quote
Old 03-12-12, 05:48 PM   #9
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Trevally. View Post
here is one I tried just before the one above. As you can see it wanted to go to waypoint 0 where it should have picked 9 or 10. Could this be because it was outside the set resume limit for this one of 1000m
Disable the mod first. Place this file: http://www.mediafire.com/?l96fmiy4pdxa4mt in my UIs mod \data\Scripts\Menu folder. Re-enable mod. Retest. Problem should be fixed

I haven't tested it because I'm not at my gaming computer so you'll have to let me know the results
TheDarkWraith is offline   Reply With Quote
Old 03-14-12, 08:30 PM   #10
7Infanterie19
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by Trevally. View Post
Harbout Pilot update to v2.9
Just realized you had put out the update already, Trevally!

Many thanks and much appreciated!
  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 03:16 AM.


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.