| View previous topic :: View next topic |
| Author |
Message |
Hitman
Joined: 14 Sep 2002 Posts: 3059 Location: Spain
|
Posted: Mon Jun 21, 2004 5:20 am Post subject: Improved AI in SH2 |
|
|
Wew....I canīt believe what I found out this weekend: Looking for some ways to improve AI for SH2-Pacific Aces, I have been a lot of time experimenting how to make the DDs act more realistically, and to be more precise, how to make them engage you and then return to their position in the convoy, being ready for another engagement. I was hardly dissapointed to notice that even after managing that DDs return to their position in the convoy, they were then stupid and did not engage submerged subs. But out of pure luck, while trying new convoy formations, I dicovered the key :know: that solved it all.
I have been using V1.0 of the game, combined with AI of version 1.1 ( i.e. official patch )
For an unknown reason, the DDs will only return to formation and still be aggressive when you escape BEHIND the convoy, i.e., when you come form the front or sides, and manage to penetrate the screen or get detected before doing so IN FRONT of the convoy. Besides, if the DD sonars are too good and they spend too much time DCing you, they loose their orders. I noticed, however, that there is some kind of encoded "timer" that, if not reached, prevents the DD from getting stupid.
OK, to simplify things: Using v1.0 of the game, with 1.1 AI and a convoy formation in 8 columns of three ships plus 9 escorts, steaming at about 8 knots, and with escort sonars reduced a lot, I can have the BEST AI escorts I ever saw in SH2.
Yesterday I tried with a Type 7C against a british convoy in 1942, and I approached the convoy and got detected. Two fregattes joined to attack me, and DCed me till the convoy went along. Then they left me and returned to formation. I surfaced and made a full speed run around and placed myself again in front. This time I managed to penetrate at slow submerged speed the screen, and killed ( Manual TDC ) one merchant with a spread of three torpedoes. The same Escorts as before turned 180 degrees and came at 16 knots to DC me. Again the convoy went along, and again they lost me and returned to formation. For a third time I surfaced and run at flank to the front of the convoy. This time I catched the convoy on a fog bank and decide to stay on surface. The radar of the escorts detected me, they started to shell me, and for the third time, they DCed me!!!
This was really a glorious game.
I have added a lot of playability by reducing a lot the sensors of escorts and eliminating radar from DEs, leaving it only in DDs. Historically, not all escorts were equipped with radar at a time. There was instead a slow reequipment of them, and only in 1944 they had all radar installed. Now, being located by radar is possible, but not guaranteed, and the escorts act as intended: they head to you at flank speed, drop one or two patterns to ensure you are dived and unable to fire, and then return to their stations.
Conclusion: The supersensors and the 1.1 multiplayer-focused patch killed another big part of the nice things implemented in SH2, but some are still there. |
|
| Back to top |
|
 |
Beltza
Joined: 01 Feb 2003 Posts: 361 Location: EspaÃąa
|
Posted: Mon Jun 21, 2004 7:15 am Post subject: |
|
|
When I've read you, is like if you were talking about the Aces of Deep .
This is a great work. And casually, I was testing surface combat with the Destroyer Command clean without any patch. But unfortunately, I've didn't found any improvement.
The conclusion of your work is the original game with AI files from 1.1 patch?
Cheers |
|
| Back to top |
|
 |
CB..
Joined: 30 Apr 2002 Posts: 2306 Location: UK
|
Posted: Mon Jun 21, 2004 7:47 am Post subject: |
|
|
interesting stuff!!
i agree , it is perhaps true that the sensor information is overwhelming the AI and frcing it to default to simplified behavuir...it's like the AI is set up to be extremely sensitive to small imputs from the sensors , but the game gives it massive imputs from the sensors which just blankets the subtlety completely,,,
same with other areas aswell.....slap evry torp yu have on board into the rear of a battelship and it will sink tail firts sticking it's nose vertically into the air before sinking straight down....trubble is yu have to keep hittng it long after the red triangle has vanished (ie it's allready dead) the sensitivity settings are all out of balance....same with the damage room stuff.....as stock hardly any damage is ever recieved out side of hull damage...not set up correctly etc..
it's the same old story looking thru the SH2 files time and time again reveals layer upon layer of extremely subtle effects and dynamics that just get hammered out of sight by the over done surface layer of imput
this has been the re-occuring theme of all my modding stuff (once i had understood this!) half the time when yur trying to get some effect to work,,,yu don't realise that it allready is working it's just that there's too much stuff happening on top of that effect that yu just don't notice it..makes modding more of a case of balancing things out ( or trying to) rather than inventing new effects....there's a golden rule really with modding SH2.....make sure it's actually broken before yu try to fix it!!!
for example im betting that silent running has ALLWAYS worked right from the boxed version...it's just that the DD sensors were all out of tune with the silent running noise from the sub meaning that the dd's could still hear the sub at normal levels...balance out the sensitivitys and it works....
allso i reckon that the dd sensors are sensitive to the angle of the sub ie they get less of a signal from a bow on contact than a side on contact etc...good news keep it up HM
find that dang timer |
|
| Back to top |
|
 |
Hitman
Joined: 14 Sep 2002 Posts: 3059 Location: Spain
|
Posted: Mon Jun 21, 2004 8:47 am Post subject: |
|
|
| Quote: | im betting that silent running has ALLWAYS worked right from the boxed version...it's just that the DD sensors were all out of tune with the silent running noise from the sub meaning that the dd's could still hear the sub at normal levels...balance out the sensitivitys and it works....
|
Well, I did not want to risk saying that ( I don't want to start a war with people who defend that PM fixed silent running ), but I DO have the impression that -same as resupply- it works on 1.0, or at least, it works with my sensorīs set.
Yes, like Beltza says, it feels more like Aces of the Deep ...it is in fact very good behaviour of the AI.
Mind you, my sensors have been reduced to 1600 metres active and passive and sensitivity to 0.8 and, incredibly, DDs still drop accurately if you are above 100 metres. Below that depth they fail and loose contact with your easier ( Specially if you managed to dive before they got too close ). I firmly believe that there is an "alert" mode: DDs are not so good till they make first contact, but then the AI traces you much better.
You are completely right, Chris : SH2 is a product of lots of layers, many of them added by Ultimation to make the code work, but below is still the basis of a good game. Version 1.0 has of course less layers, and thus the better behaviour and response to orders. The only thing 1.1 really improved is the AI files. The readme already tells you that "AI units are better in resuming their waypoints after an engagement", and I can confirm that now.
Now I can make the timer for the DDs spring into action due to having them loose contact with you easier, and by separating clearly the sensors abilities of escorts and destroyers, I can easily have in a same screen units that will simply repulse you, and others that will stay DCing you endlessly. V1.0 has also programmed the detachment of the escort subgroups according to their number, and not to the proximity to your sub. That means that always escort group 2.1 starts the action, and once DCs are exhausted, 2.2 will take his position and continue
That is good for me, because I can predict which group starts the ASW, and thus can set them to be corvettes or fregattes with low detecting abilities, that will repulse you and return to the convoy. Then the second group has got a DD, and if they start action, they will stay above you till you exhaust your batteries. They will not kill you with DCs easily, but they might force you to surface and be killed there ( Like in real life ).
Also, by giving convoys a faster speed ( 8-11 knots ), I can ensure that you will try to stay as much as possible on surface and only dive in front of the convoys to slip past the screen....while the convoy sails over you, ensuring that you will escape from behind. Then, if you loose your attack chances, you must surface and make a full speed run around, and the DDs do admirably their work of keeping you from getting to peri depth. Of course, if you cheat with the auto TDC, you will be able to get to peri, shoot instantly and dive, but using manual you need time to feed the TDC with data, and the DDs can then force you to dive. Also, you realistically avoid depths of more than 60-70 metres, because otherwise, by the time you are at peri, the convoy has long ago gone.
Itīs unbelievably good how the game plays now  |
|
| Back to top |
|
 |
Longstreet
Joined: 30 Apr 2002 Posts: 173 Location: Iowa City, Iowa, USA
|
Posted: Mon Jun 21, 2004 9:49 am Post subject: Fascinating finding! |
|
|
Hi Folks,
SO, is sounds like SHII plays better if we leave it as version 1.0, but copy over the 1.1 patch AI files? Am I interpreting this correctly?
Longstreet |
|
| Back to top |
|
 |
america person
Joined: 01 Mar 2004 Posts: 1309 Location: fairfax, VA, near D.C
|
Posted: Mon Jun 21, 2004 9:55 am Post subject: |
|
|
| intresting, so if i want this effect just put a clean install off sh2 and hten just place the AI iles from 1.1 patch in the game? but what happens to silent running, doesn't htat still not work in 1.0v? |
|
| Back to top |
|
 |
Longstreet
Joined: 30 Apr 2002 Posts: 173 Location: Iowa City, Iowa, USA
|
Posted: Mon Jun 21, 2004 11:12 am Post subject: Question for Hitman |
|
|
Hi Hitman,
SO, would you suggest that we do a clean install for both SHII and Pacific Aces using SHII 1.0 and not upgrade with the 1.1 patch, but copy over the AI files? Are there other fixes in the official patch 1.1 that would be lost, i.e. stability issues for Win XP and Win 2000? :shifty: It sounds great, but before one makes major changes, I would appreciate some guidance.
Thanks,
Longstreet  |
|
| Back to top |
|
 |
america person
Joined: 01 Mar 2004 Posts: 1309 Location: fairfax, VA, near D.C
|
Posted: Mon Jun 21, 2004 11:58 am Post subject: |
|
|
| agrees with longstreet, is htere a way i can kep silent running if i do this? |
|
| Back to top |
|
 |
Redwine
Joined: 10 Jan 2002 Posts: 1143 Location: Buenos Aires , Argentina.
|
Posted: Mon Jun 21, 2004 12:29 pm Post subject: |
|
|
Hitman........ please check private message..............
No secrets guys, I wrote him in spanish thats all..........
Very interesting level on this topic............ |
|
| Back to top |
|
 |
Redwine
Joined: 10 Jan 2002 Posts: 1143 Location: Buenos Aires , Argentina.
|
Posted: Mon Jun 21, 2004 12:39 pm Post subject: |
|
|
What is your experience in silent running boys ?
I have V1.0 patched to V1.1 and silent running doesnt works fine......... in silent running I note DDs are so capable to do not losse contact and turn back and make lot of pass over you...........
I note how quickly I go out of their scanning zone .....more probability to survive I have................
Silent running and thermal layer appears as not too much effective in v1.1................... |
|
| Back to top |
|
 |
Floater
Joined: 14 Sep 2002 Posts: 2300 Location: England
|
Posted: Mon Jun 21, 2004 2:26 pm Post subject: |
|
|
| CB.. wrote: | | i reckon that the dd sensors are sensitive to the angle of the sub ie they get less of a signal from a bow on contact than a side on contact etc |
I'm pretty sure that Mark K, or someone who had access to the source, was definite that there is no modelling for profiles in SH2. I can't remember if the discussion was about visual or sonar contact, or maybe both. |
|
| Back to top |
|
 |
CB..
Joined: 30 Apr 2002 Posts: 2306 Location: UK
|
Posted: Mon Jun 21, 2004 6:48 pm Post subject: |
|
|
Hi Float' yup i remember that as-well....amoungst other things..not all turned out to be correct there was an awfull lot of stuff being said not all of it intended to be help-full i discovered ..but that's perhaps another story?  |
|
| Back to top |
|
 |
Jester107th
Joined: 21 Sep 2001 Posts: 1130 Location: Jacksonville, FL
|
Posted: Mon Jun 21, 2004 9:27 pm Post subject: |
|
|
Hi guys! J-man here!
I always thought the same thing Hitman....kept it to myself though for same reasons.
I am curious now....I like the manual dive planes in PM...but that's about it.
I am wondering how the AI files compared from a clean install with 1.1 patch and with AI files post-PM.
Maybe there'd be a way to overwrite the post-PM files with the original AI instructions if they were diferrent?  |
|
| Back to top |
|
 |
Floater
Joined: 14 Sep 2002 Posts: 2300 Location: England
|
Posted: Mon Jun 21, 2004 9:46 pm Post subject: |
|
|
| CB.. wrote: | Hi Float' yup i remember that as-well....amoungst other things..not all turned out to be correct there was an awfull lot of stuff being said not all of it intended to be help-full i discovered ..but that's perhaps another story?  |
Well, in the meantime I'll keep the pointy end towards the target.  |
|
| Back to top |
|
 |
Hitman
Joined: 14 Sep 2002 Posts: 3059 Location: Spain
|
Posted: Tue Jun 22, 2004 3:35 am Post subject: |
|
|
OK, OK, I will repeat it:
The results I achieved were with:
-Clean install of SH2 as it comes on the CD ( That is the stock Version 1.006 )
-Sonar ranges for escorts reduced to 1600 metres active and passive
-Sensitivity setting in ini file reduced to 0.7
-AI files from official version 1.1
-A custom convoy with 24 ships and 9 escorts ( 5 Flower, 3 Hunt, 1 Tribal )
-Convoy ships spaced 1200 metres
BTW: The AI ships suffered NO colissions!!! And evaded correctly the damaged merchants
---------------------------------------------------------------
Some notes:
WIN XP: Iīm using it, and have no problems with version 1.0. I simply did set the sim and shell exe to compatibility mode with Win 98SE, and thatīs all
Silent Running: I canīt assure it works, but I feel it does so now
Resupply: Works like charm!!!
Pacific Aces: It wonīt work with version 1.0 of the game by now. The patch is based on the 1.1 vesion, and many things should be changed to make it fully compatible with 1.0. That is mainly the reason why I test with SH2 and german U-boots :wink:
I have been testing with a mission I created some time ago for the Aces campaign, but that never was finished. Iīm now having 2 months patrols with resupply and random convoys, with nice behaviour. I might put together quickly a short campaign and release for testing, but I canīt guarantee that I will have time for it.
Cheers |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|