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 02-06-23, 01:33 AM   #1
GrenSo
Grey Wolf
 
Join Date: Apr 2019
Location: Germany
Posts: 879
Downloads: 587
Uploads: 7


Default

Sorry kapuhy but hadn't had the time on the weekend to check and test your AI script and report my experiences and observations.
__________________
Best regards,
GrenSo


“Mankind must put an end to war, or war will put an end to mankind.” - J.F.K.
GrenSo is online   Reply With Quote
Old 02-06-23, 06:17 AM   #2
kapuhy
Grey Wolf
 
Join Date: Oct 2010
Location: Poland
Posts: 874
Downloads: 72
Uploads: 3
Default

Quote:
Originally Posted by GrenSo View Post
Sorry kapuhy but hadn't had the time on the weekend to check and test your AI script and report my experiences and observations.
No problem GrenSo, it can wait for better time
kapuhy is offline   Reply With Quote
Old 02-06-23, 07:48 AM   #3
Muckenberg
Planesman
 
Join Date: Dec 2014
Location: Czech Republic
Posts: 193
Downloads: 527
Uploads: 0
Default

Good day
Thank you very much for the guide to the mission editor.
My observations for now. I was attacked by two Spitfires and I deliberately did not dive and shoot the Flak. The planes only shot at me with machine guns and did not drop bombs. And I let them fly repeatedly. Unfortunately, an escort ship was approaching, so I managed to shoot them down and had to sink.
I was spotted by an Anson patrol plane and again I didn't sink at the start of the attack.and ordered full throttle and zigzagging. If I zigzagged the plane still attacked only through the machine gun. When I finally sank the plane started to fly away. Anson spotted me again and attacked again. now I wasn't meandering anymore and the plane dropped the bombs and I have to say, not bad. I'm undamaged, but the bombs didn't land badly at all. Then the plane took off.
I'll still be hanging around England and reporting back.
Muckenberg is offline   Reply With Quote
Old 02-06-23, 03:40 PM   #4
kapuhy
Grey Wolf
 
Join Date: Oct 2010
Location: Poland
Posts: 874
Downloads: 72
Uploads: 3
Default

Quote:
Originally Posted by Muckenberg View Post
Good day
Thank you very much for the guide to the mission editor.
My observations for now. I was attacked by two Spitfires and I deliberately did not dive and shoot the Flak. The planes only shot at me with machine guns and did not drop bombs. And I let them fly repeatedly. Unfortunately, an escort ship was approaching, so I managed to shoot them down and had to sink.
I was spotted by an Anson patrol plane and again I didn't sink at the start of the attack.and ordered full throttle and zigzagging. If I zigzagged the plane still attacked only through the machine gun. When I finally sank the plane started to fly away. Anson spotted me again and attacked again. now I wasn't meandering anymore and the plane dropped the bombs and I have to say, not bad. I'm undamaged, but the bombs didn't land badly at all. Then the plane took off.
I'll still be hanging around England and reporting back.
Thanks I didn't make a test with Spitfire yet, will add this to my list. Plane characteristics (speed, stall speed, turn radius etc.) might play a part in why planes do or don't drop bombs. This, and zigzagging - from what you write it might also cause planes to get stuck in a dry run loop.
kapuhy is offline   Reply With Quote
Old 02-19-23, 07:09 AM   #5
Muckenberg
Planesman
 
Join Date: Dec 2014
Location: Czech Republic
Posts: 193
Downloads: 527
Uploads: 0
Default

Hello. Today I was attacked by two Hurricanes, I was still sailing straight but I put full speed. one aircraft behaved by circling the submarine, machine-gunning the submarine and dropping a bomb on the third pass. Fortunately, not exactly. It continued to circle the submarine and then fell into the sea.
The second plane after the first joint pass continued as we were used to with TWoS and turned it around only at a distance of several kilometers (maybe) It did not drop the bomb and only attacked with weapons.
I loaded the saved position with Anson once more and now I wasn't zigzagging, just full speed. The plane circled me twice and then dropped the bomb. And exactly. He sunk me.
Muckenberg is offline   Reply With Quote
Old 02-19-23, 08:34 AM   #6
Pascal
Captain
 
Join Date: Apr 2005
Location: Paris
Posts: 544
Downloads: 547
Uploads: 0
Default Planes at sea

It's strange to see some planes crashing into the sea by themselves - well, it's obviously quite unrealistic and it should be possible to simply remove this action from the script (beginner pilot removed)
__________________

My Mods
Pascal is online   Reply With Quote
Old 02-20-23, 03:02 PM   #7
kapuhy
Grey Wolf
 
Join Date: Oct 2010
Location: Poland
Posts: 874
Downloads: 72
Uploads: 3
Default

Hi Muckenberg, thanks for the report. Hopefully I'll get some free time during next weekend to try to experiment with plane characteristics and see how they come into play. For now thing to look into: spitfires, zigzagging, and crashing into sea.

As for second Hurricane continuing, that's a but weird - it should only behave this way if it's out of bombs...

Quote:
Originally Posted by Pascal View Post
It's strange to see some planes crashing into the sea by themselves - well, it's obviously quite unrealistic and it should be possible to simply remove this action from the script (beginner pilot removed)
If only it was so simple... avoiding crashing into water is done by following block of code:

strategy AvoidImpact(Plane)
{
precond
{
Plane:StrafingTooClose()
}
action
{
Plane:AvoidWaterImpact();
}
}


Simple, right? Problem is, we don't know how exactly StrafingTooClose() and AvoidWaterImpact() work. Their code is inside sim.act file which we can't read. So we can only experiment with adding some extra conditions for these functions - but not modify functions themselves.

Edit: only way I was able to eliminate crashing into water completely, was by switching ALL planes to "level bomber" mode and adjusting their minimum height so that they just pass high over target trying to carpet bomb it. With this approach, however, they were so inaccurate they might as well be removed from game to save some fps.
kapuhy 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 10:40 AM.


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