SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH5 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=249)
-   -   [REL] Trevally - Harbour Pilot Scripts (https://www.subsim.com/radioroom/showthread.php?t=174525)

Trevally. 02-29-12 04:14 AM

Quote:

Originally Posted by 7Infanterie19 (Post 1846605)
This is happening to me now as well, except the course is 335°.

I'm running v2.8. and I know it was working fine several days ago when I started using OHII along with an old version of NewUi (v6_4_0 Test 7), but without IRAI.

After getting a confirmation on the proper load order of IRAI, FX and NewUIs, I updated NewUIs to the latest version, and added IRAI to my mix. I started a new OHII campaign, but after this update to the new version of NewUI and the addition of IRAI, I'm getting this problem as well.

I started yet another campaign, thinking it might have just been a burp that needed a fresh start, and also after deciding to add the No Magic Abilities mod, but I'm still getting this problem, so I loaded up the old version of NewUI, left out IRAI, and then tried the pilot again. This time, it was fine like it was before. It starts off with a course order of 329° and gets the boat out without problems or damage.

Any ideas? Could it be something that may be conflicting with the automation in NewUIs that causes that 6 degree difference, or is it maybe something with the pilot thinking it is in a different position?

Thanks ..

Not sure what causes this:hmmm:
Each time it happens - the player normally fixes it by adjusting their mods.
It realy should not make any difference - but try uninstalling harbour pilot before moving or adjusting TDWs UI and the put harbour pilot back afterwards.


Quote:

p.s. Trevally, what are the possibilities of adding a Kiel outbound pilot script using the north passage?
Yes sure - how far would you want it to go:06: Right through to the North Sea. Would you also want an inbound one.

Also what about Bergen - add inbound to that one too?

Trevally. 02-29-12 04:15 AM

Quote:

Originally Posted by kimuraijn (Post 1846669)
@ Trevally would you consider adding a script for incoming to lorient harbor ?

Does this need one? - I will have a look:up:

7Infanterie19 02-29-12 06:24 PM

Quote:

Originally Posted by Trevally. (Post 1847296)
Not sure what causes this:hmmm:
Each time it happens - the player normally fixes it by adjusting their mods.
It realy should not make any difference - but try uninstalling harbour pilot before moving or adjusting TDWs UI and the put harbour pilot back afterwards.

I think I've done that through the motion of disabling mods and re-enabling them because of other things I've been trying to figure out, but no change. I'll have to play around with the order like you said "by adjusting their mods". I'll see if loading it before NewUIs will help. Other than that, I'll have to just pilot the boat manually from there. And I won't know until later in the campaign if it happens at other bases.

Quote:

Originally Posted by Trevally. (Post 1847296)
Yes sure - how far would you want it to go:06: Right through to the North Sea. Would you also want an inbound one.

Also what about Bergen - add inbound to that one too?

lol .. you sound like a taxi driver - hehehe :D.

If possible, how about as far as where the word Skagerrak is on the map? And then an inbound from there as well if possible.

As for Bergen, why not while we're at it, but only if you have the time. I would appreciate it and I'm sure others would as well. Is there already an outbound for Bergen?

Thanks for your help! Cheers!

Trevally. 03-10-12 11:33 AM

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.
http://img594.imageshack.us/img594/4...0310152441.jpg


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.:up:

pedrobas 03-10-12 04:27 PM

Many thanks, Trevally :up:

vlad29 03-12-12 02:39 PM

Hi Trevally, many thanks for update!:yeah:
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?:salute:

Trevally. 03-12-12 03:16 PM

Quote:

Originally Posted by vlad29 (Post 1854177)
Hi Trevally, many thanks for update!:yeah:
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?:salute:

Hi Vlad:salute:

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:06:

vlad29 03-12-12 03:29 PM

Quote:

Originally Posted by Trevally. (Post 1854191)
Hi Vlad:salute:

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:06:

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 :up:

Trevally. 03-12-12 04:21 PM

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:hmmm:

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

TheDarkWraith 03-12-12 04:48 PM

Quote:

Originally Posted by Trevally. (Post 1854229)
@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:hmmm:

Could be I have an error in my code. I'll look into it :up:

TheDarkWraith 03-12-12 05:29 PM

Quote:

Originally Posted by Trevally. (Post 1854229)
@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:hmmm:

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 :up:

TheDarkWraith 03-12-12 05:48 PM

Quote:

Originally Posted by Trevally. (Post 1854229)
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:hmmm:

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 :up:

I haven't tested it because I'm not at my gaming computer so you'll have to let me know the results :yep:

THE_MASK 03-12-12 08:10 PM

feedback , applied the patch . Started a test career leaving kiel and travelled along the kiel canal for 5 klms using the kiel harbor and canal outbound script . Saved the game and exited . Reloaded the save and applied the kiel harbor and canal outbound script again . The sub wants to turn around and head back to kiel . I have noticed that if you use the outbound script by unenabling and enabling it will work (i guess the sub has to be close to a waypoint<guess) . Ok , if i enable the outbound script and the sub heads back to kiel , i then just stop the script and then enable it again . When the sub gets to a waypoint it then turns around and heads the right way outbound . Hope this helps .

TheDarkWraith 03-12-12 08:22 PM

Quote:

Originally Posted by sober (Post 1854344)
feedback , applied the patch . Started a test career leaving kiel and travelled along the kiel canal for 5 klms using the kiel harbor and canal outbound script . Saved the game and exited . Reloaded the save and applied the kiel harbor and canal outbound script again . The sub wants to turn around and head back to kiel . I have noticed that if you use the outbound script by unenabling and enabling it will work (i guess the sub has to be close to a waypoint<guess) . Ok , if i enable the outbound script and the sub heads back to kiel , i then just stop the script and then enable it again . When the sub gets to a waypoint it then turns around and heads the right way outbound . Hope this helps .

What is probably happening is you are closer to a waypoint behind you and that it why it appears to be returning to Kiel. Let it ride and see what happens. You'll probably see it turn around and head back the correct way once it reaches what it determined to be the closest waypoint when you enabled the script. Let me know if this is true or not.

THE_MASK 03-12-12 08:47 PM

Quote:

Originally Posted by TheDarkWraith (Post 1854354)
What is probably happening is you are closer to a waypoint behind you and that it why it appears to be returning to Kiel. Let it ride and see what happens. You'll probably see it turn around and head back the correct way once it reaches what it determined to be the closest waypoint when you enabled the script. Let me know if this is true or not.

True .


All times are GMT -5. The time now is 07:14 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.