![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#1 | ||||||||||
Rear Admiral
![]() |
![]()
In testing the AI i've had such varied results trying to find the optium settings that i've decided it was best to just post what i did to the AI , my rationale behind it, and how to adjust it if you feel the AI is too hard.
How tough one thinks the AI should be will vary from person to person on what they want out of the game. Some will find the AI in Tmaru 1.4 too hard. If you found stock AI hard, then you most definatly will find Tmaru 1.4 extremely difficult. If your a seasoned sub sim'er then you may find yourself scoffing at the AI thinking to yourself, "ive seen worse then this", or you may find it "just right", it all varies. First let me explain the biggest AI sensor which effects you the most. Active sonar. Active sonar comes in two varites, and for me to classify these, im going to fall back to allied classification so that the japanese sonar classification will be easier to understand. The allies in SH3 and SH4 have two types of active sonar. "Type 1XX" and "Q" In the real world they scan around side to side, like a flashlight waving itself around in a dark room, and a ship could have multiple sonars equiped. ![]() Obviously they differer in geometry. In SH3 and SH4, a ship can only have one active sonar equiped at any given time. It may be a Type1XX or it might be a Q sonar, and they do NOT scan around. They behave more like a stationary floodlight affixed to the front of the ship. For the most part, the Type 1XX sonars are the standard sonar quiped. The Q sonars in SH3 tended to be of shorter range, but wider beam, and deeper in depth. In SH4, they seem rather generic looking at their stats. Now then, ive told you the two types and what they do, but to fully realize this you have to examine their stats in SH4. The three most important stats im going to list are: Max range ( in meters, otherwise self explanitory ) Max elevation, (downward angle of the beam in degrees, how deep it can go) sensitivity (how touchy it is to recieving a contact) Stock Allies Type 1xx settings Quote:
Quote:
Quote:
Now that i've laid the basis on what the stock sonar settings are so you can better understand the changes ive made, here they are: Quote:
So with the changes to the AI_sensors.dat out of the way, ill explain what i did to the sim.cfg, and why i did it: Quote:
Quote:
- how long the escort will look for you if alerted to your presence. - how long you must remain undetected for him to give up and go away. - How far away units will come to look for you if alerted by another AI unit. (example: if a AI unit detects you, it broadcasts your location. Any unit that is within 30 minutes treaveling distance will be vectored into your location. Unless contact is made within those 30 mins, at 31 minutes the unit will turn around and go "home". This is why if you've ever attacked a fishing boat or what not, it felt like they had a radio when planes showed up a little bit later. Quote:
Quote:
Quote:
Thermal Layer Signal Attenuation, default is 5, i made it 4 in Tmaru 1.3. As the sim.cfg comment states, " 1 means no signal reduction, 5 equals signal reduction to 20%" One last item under the sonar section of the sim.cfg which bears mentioning is the Detection time. Quote:
Another bit of reading i would suggest is this: http://www.ducimus.net/sh4/ai.htm Hopefully this will help understanding of the AI in SH4, the adjustments made in Tmaru 1.4, and how to adjust it yourself if your unhappy with the AI in general. If you have feedback, do share, maybe we can nail down the perfect AI settings yet. Last edited by Ducimus; 07-26-07 at 01:56 PM. |
||||||||||
![]() |
![]() |
![]() |
#2 |
Sea Lord
![]() Join Date: Feb 2007
Location: A Swede in Frankfurt am Main
Posts: 1,897
Downloads: 4
Uploads: 0
|
![]() ![]() ![]() ![]() ![]() |
![]() |
![]() |
![]() |
#3 |
Seasoned Skipper
![]() Join Date: Mar 2005
Location: UK
Posts: 683
Downloads: 104
Uploads: 1
|
![]()
What determines whether a destroyer uses active sonar or passive? In my experience, if you make a lot of noise they use hydrophones, even when you are very deep. They switch to active when they are close, you are shallow and quiet. Once below the thermal layer, I can't here them pinging, but then they usually lose contact...
|
![]() |
![]() |
![]() |
#4 | |
Rear Admiral
![]() |
![]() Quote:
Heres a big guess .. i mean.. i a wild stab in the dark in psuedocode. ActiveContact = In sonar cone, with X amout of surface area visible, for Y seconds. If NoActiveContact then Listen If HaveActiveContact then Ping else Listen Only one who can say for sure is the developers. Everything i know, is what was learned from Sh3 from various sources and own observations. |
|
![]() |
![]() |
![]() |
#5 |
XO
![]() Join Date: Mar 2007
Location: In your baffles...
Posts: 434
Downloads: 624
Uploads: 7
|
![]()
Thank you for a most enjoyable read, Ducimus.
Very interesting to see the how and why as to the choices you made for the A.I. in 1.4... It's really interesting to "get into the mind of the modder", so to speak. Thanks for sharing you thoughts. Cheers! |
![]() |
![]() |
![]() |
#6 |
Commodore
![]() Join Date: May 2007
Location: Where you don't see me
Posts: 607
Downloads: 23
Uploads: 0
|
![]()
Yeah, interesting stuff
Thanks Ducimus ![]()
__________________
Regards, Bando |
![]() |
![]() |
![]() |
#7 |
Rear Admiral
![]() |
![]()
One thing that i forgot to mention is that max elevation while it defines the downward angle of the beam, it also defines the blindspot of the sonar beam. The more downward angle, the longer the escort can keep contact. Under currrent settings, Late war escorts might be pretty accurate.
(see pic http://www.ducimus.net/sh3/late_war_sonar.jpg) In the future i might change the max elevation from 108, 112, 120 to say... 108, 112, and 116. Or maybe even 106, 108 and 110. Not sure yet. |
![]() |
![]() |
![]() |
#8 | ||
Seasoned Skipper
![]() Join Date: Mar 2005
Location: UK
Posts: 683
Downloads: 104
Uploads: 1
|
![]() Quote:
|
||
![]() |
![]() |
![]() |
#9 |
Commander
![]() Join Date: Apr 2005
Posts: 459
Downloads: 41
Uploads: 0
|
![]()
@ducimus
the japanese never really had a functional equivalent of the british q system. the type 193 was the searchlight system they started the war with, and the type 3 was basically a copy of the german s-gerat active sonar. both were searchlight systems with a limited downward angle -- couldn't find any actual info about the specific angle. they eventually did develop a "dipping" system to calculate a subs depth, which involved changing the angle of the sonar beam and then using some kind of mechanical calculator, but the calculation system apparently took too long to be of much tactical use. i'm sure bungo pete would've used it, though. just some added info -- i know your philosophy is gameplay first ![]() i might go back to sh4 now that tm 1.4 is out -- thanks for your work. an interesting aside is that the japanese often equipped their merchant ships with both active and passive sonar systems -- how effective they were is unclear. |
![]() |
![]() |
![]() |
#10 | |
Commodore
![]() Join Date: May 2007
Location: Where you don't see me
Posts: 607
Downloads: 23
Uploads: 0
|
![]() Quote:
Is this correct in your opinion?
__________________
Regards, Bando |
|
![]() |
![]() |
![]() |
#11 | ||
Rear Admiral
![]() |
![]() Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#12 | |
Weps
![]() Join Date: Jul 2007
Location: Bentonville, AR
Posts: 367
Downloads: 22
Uploads: 0
|
![]() Quote:
If you hear pinging, it does not mean your detected. Its merely a search method used. Ducimus did a thread on how these work (good reading). Both Active and Passive Sonar are two different methods. Passive = Listening; searching for sounds to place a bearing of target in search of. Active = Pinging is used to find location of target after bearing has been "determined." The faster the ping, the closer the target is. A way to deter the DD's? Go deep, below a Thermal layer if possible, and run silent.
__________________
TM2(SS) USS Asheville - Plankowner, Shellback, "Order of the Ditch" http://ths-i.com/ |
|
![]() |
![]() |
![]() |
#13 |
Rear Admiral
![]() |
![]()
On pinging i guess you could say, if hes pinging, he knows your around hes just trying to find out exactly where. You could say hes just "echo ranging" trying to get a good fix.
Now when you stand in front of him showing your broadsides to his "flashlight" beam, you sort of bypass the audio/hydrophone detection part and go straight to the echo ranging. |
![]() |
![]() |
![]() |
#14 |
Commodore
![]() Join Date: May 2007
Location: Where you don't see me
Posts: 607
Downloads: 23
Uploads: 0
|
![]()
Ok, thanks
![]()
__________________
Regards, Bando |
![]() |
![]() |
![]() |
#15 |
Silent Hunter
![]() Join Date: Apr 2007
Posts: 4,404
Downloads: 29
Uploads: 0
|
![]()
Whats interesting here is how active sonar is actually modelled. While the mechanics are ok themselves for usage - the Japanese escorts equipped with active sonar usually had it echo ranging constantly - whether or not there was a sub out there... Historically, some convoys were actually "heard" and tracked due to the pinging of escorts well before they were in visual range. My guess is that this isnt modeled because the engine can only "use" one sensor at a time. However, if thats the case - does is consider the oldest "sensor" of all time to sometimes be "turned off"? That sensor is the "Mk1 eyeball". I was thinking that the visual sensor routine was always checked. Any ideas?
__________________
Good Hunting! Captain Haplo ![]() |
![]() |
![]() |
![]() |
|
|