View Full Version : Weird AI behaviour
archer9
04-07-13, 09:20 AM
Coastal Waters campaign, Nothern Approaches mission, Open Horizons II mod. I've noticed some weird stuff happening. Sometimes I get hunted by a single escort that appears out of nowhere (feels almost like it's scripted). It's as if he knows exactly where I am and comes straight for me from behind even if I change my course. (I've had this several times, annoying as hell.) How does he detect me and know my exact location from 6000 meters away?
Other times, after sinking a capital ship, the escorts search for me for a while. I silence the uboat and keep it at 100 meters depth. The escorts all go away, except for one who keeps spinning in circles approximately 1000 meters away from me. At night I surface and slip away. I am far enough to run at max speed and I am positive I can't be seen or heard, yet it keeps chasing me for some 1000 kilometers, keeping his distance of ~8000 meters, spinning in circles, then going straight a bit, then spinning some more. What. The. Hell.
My mod list, if needed: http://i.imgur.com/H3cJZmx.png
Sartoris
04-07-13, 12:28 PM
I think it's one of the few still present bugs that haven't been squashed.
raymond6751
04-07-13, 12:38 PM
I'd be tempted to lay for him and sink the b**rd. Fire a salvo at him!
archer9
04-07-13, 12:45 PM
I had already fired all my torpedos. The worst part was that it kept resetting time compression to 1 every 2-4 seconds, because it kept reappearing on my line of sight all the time. Now imagine 1000 kilometres with this nightmare. I was so furious, I almost uninstalled the game.
Sometimes I wonder if video game devs test their own games at all. How could this possibly get past quality control? Just how?
Another funny thing was this one time when the seemingly scripted warship came hunting for me from behind again but this time... during the night. During the freaking night. If that's not bad enough for you, I was so frustrated I decided to simply click All Stop and see what happens. And you will never guess this. It raced towards me at full speed, and flew right by me a couple meters to my right. I understand it's December and nights are pitch-dark, but still its line of sight was really, really small, it's ridiculous. (By the way, I was on the surface, if you didn't already guess it.) Anyway, it turned around and circled around me for a long while. It was kinda amusing the first 2 minutes but then I just gave up, opened the map, plotted the course towards the base and ignored him for a couple hours and he just left me be. So weird. These bugs totally break the game for me.
IRAI is managing the escorts and all AIs.
I see in your list IRAI is overwrited by something else.
Try to make it not overwriten, and see the fix!
(BTW there is an IRAI V0.39)
V13dweller
04-07-13, 07:15 PM
IRAI caused quite a few bugs like that, like the ability to hear you at 200 meters deep with the hydro.
Trevally.
04-08-13, 02:27 AM
Coastal Waters campaign, Nothern Approaches mission, Open Horizons II mod. I've noticed some weird stuff happening. Sometimes I get hunted by a single escort that appears out of nowhere (feels almost like it's scripted). It's as if he knows exactly where I am and comes straight for me from behind even if I change my course. (I've had this several times, annoying as hell.) How does he detect me and know my exact location from 6000 meters away?
Other times, after sinking a capital ship, the escorts search for me for a while. I silence the uboat and keep it at 100 meters depth. The escorts all go away, except for one who keeps spinning in circles approximately 1000 meters away from me. At night I surface and slip away. I am far enough to run at max speed and I am positive I can't be seen or heard, yet it keeps chasing me for some 1000 kilometers, keeping his distance of ~8000 meters, spinning in circles, then going straight a bit, then spinning some more. What. The. Hell.
My mod list, if needed: http://i.imgur.com/H3cJZmx.png
I had already fired all my torpedos. The worst part was that it kept resetting time compression to 1 every 2-4 seconds, because it kept reappearing on my line of sight all the time. Now imagine 1000 kilometres with this nightmare. I was so furious, I almost uninstalled the game.
Sometimes I wonder if video game devs test their own games at all. How could this possibly get past quality control? Just how?
Another funny thing was this one time when the seemingly scripted warship came hunting for me from behind again but this time... during the night. During the freaking night. If that's not bad enough for you, I was so frustrated I decided to simply click All Stop and see what happens. And you will never guess this. It raced towards me at full speed, and flew right by me a couple meters to my right. I understand it's December and nights are pitch-dark, but still its line of sight was really, really small, it's ridiculous. (By the way, I was on the surface, if you didn't already guess it.) Anyway, it turned around and circled around me for a long while. It was kinda amusing the first 2 minutes but then I just gave up, opened the map, plotted the course towards the base and ignored him for a couple hours and he just left me be. So weird. These bugs totally break the game for me.
This is the same bug:yep:
Its an old stock bug that is not caused by any mod.
A DD can get stuck behind you and its script gets caught in a loop and it does nothing but follow you.
When this loop is broken - the ship will try and continue what it was doing (this could be guarding a harbour many miles away) and race away.
Sometimes the loop is broken and then it see you and may attack.
Sometimes it head to its waypoint and not even look at you.
The fix for this is a save/load
archer9
04-08-13, 07:52 AM
Thanks. I disabled IRAI just in case. Haven't encountered any of the bugs so far.
BigWalleye
04-08-13, 10:29 AM
In SH5/Data/Cfg/main.cfg, you can change all the maximum TC values for various trigger conditions. Setting the "EnemyDetected" maximum to something high enough for you to exceed his attention span might get you home.
archer9
04-09-13, 04:00 AM
Thanks for the advice!
Just a quick question... after disabling IRAI, I loaded a game, finished a patrol and now I don't see a Request Mission button anymore. Did I mess up the game? Is there anything I can do to fix this?
V13dweller
04-10-13, 12:34 AM
I think it may be IRAI, but a mod causes the enemies hydrophones to work on surface, if you are having this problem, you can use Goblin editor to edit the hydrophones Min depth to -10, which is the stock Sh5's hydrophone value, so when set to -10 the enemies hydrophones will detect surfaced units, the altering mod (s) set the hydrophone minimum depth to -8.
If the mod the alters this is found, and if it is an essential mod, I might release a patch mod to fix this.
archer9
04-14-13, 02:52 AM
Thanks for the advice!
Just a quick question... after disabling IRAI, I loaded a game, finished a patrol and now I don't see a Request Mission button anymore. Did I mess up the game? Is there anything I can do to fix this?
Still kinda hoping someone can shed some light here. Is there no way to fix this AND retain my saves?
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.