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)
-   -   [WIP] IRAI (Intelligent Random AI) (https://www.subsim.com/radioroom/showthread.php?t=171973)

Serge65 10-28-13 02:17 PM

Quote:

Originally Posted by TheDarkWraith (Post 1436295)
Current bugs/CTDs/errors/etc:

- sub AI doesn't fire cannons (looking for solution)

For the experiment, i changed controller from "cmdr_AISubmarine" to "cmdr_AIShip" in **.sim file AI sub, AI-sub was firing deck guns (AI88mmUDeckGun_High) but stopped moving and submerge. AA-guns do not shoot. I think the reason for non-working sensors and guns AI-Submarines in cmdr_AISubmarine controller. But I do not know how to fix it, need help TDW in theme "SH5.exe patches to fix bugs and add functionality".

GaetVa 11-19-13 04:53 AM

ship and sub AI react to a contact
 
Hello all,

Perhaps someone can help me as i din't found answer in the thread
(i read the last 50 pages of the thread, but didn't found my answer)

I did a single mission with a convoy (with 2 destroyers) for the allies and a scoot airplane, and 2 sub AI wolfpack and a surface combat force for the axis.

I have waypoints for all the group units.

my problem is :
The scoot airplane from axis detect the convoy. But nor the wolfpack and nor the surface combat force go to the convoys. The convoy is out of radar of the axis taskforces (both wolfpack and surface ship) but this forces are not too far away from the convoy.

I thought that any ships would react to ennemy forces even if detected
by another unit (in my case a scoot airplane).

Pehaps the fact that the wolfpack and surface ships have waypoints ?

But in my mission, i need they have waypoints...

If someone can help !
Thanks a lot !

Aktungbby 11-21-13 01:01 PM

Welcome aboard GaetVa:Kaleun_Salute:stay in this thread ; a more technically proficient savant will assist. Have you modded for more proficient AI yet!

gap 12-14-13 12:24 PM

Are coastal batteries really working?
 
As the title says:

recently I have set a custom mission where a couple of 'small coastal guns' (which I had purposedly put in the British roster) are facing a number of Stuka bombers, result: guns and planes are ignoring each other, even though my crew keeps reporting the presence of "coastal defences", and guns' location is shown on the TAI map.

I digged into coastal gun's files, and everything looks okay. The sim file got _unit, cmdr_, wpn_Cannon and ob_Sensor controllers, and controller settings seem correct. I then had a look into the AI scripts folder, and I was surprised not to find any reference to land units. :hmmm:

Out of curiosity: has anyone ever seen coastal guns doing their job?

Mikemike47 12-14-13 03:28 PM

Quote:

Originally Posted by gap (Post 2151575)
my crew keeps reporting the presence of "coastal defences", and guns' location is shown on the TAI map.

has anyone ever seen coastal guns doing their job?

No, I haven't either. I had coastal defenses reported by crew in Scapa flow and using OH II v 2.2 or v2.1, but no gun activity.

I do remember that coastal defenses was reported by crew in SH4, and the AI guns were firing at me and even damaged sub; never in SH5 can I recall it happening correctly.

gap 12-14-13 06:00 PM

Quote:

Originally Posted by Mikemike47 (Post 2151663)
No, I haven't either. I had coastal defenses reported by crew in Scapa flow and using OH II v 2.2 or v2.1, but no gun activity.

I do remember that coastal defenses was reported by crew in SH4, and the AI guns were firing at me and even damaged sub; never in SH5 can I recall it happening correctly.

Thank you for the precious information, Mike. It is probably time to have a look into SHIV, since you are reporting that its coastal guns worked as supposed. Unfortunately I know nothing about AI scripting. I only wish TDW was around :-?

Serge65 12-19-13 02:36 PM

Quote:

Originally Posted by gap (Post 2151720)
Thank you for the precious information, Mike. It is probably time to have a look into SHIV, since you are reporting that its coastal guns worked as supposed. Unfortunately I know nothing about AI scripting. I only wish TDW was around :-?

It's not in the AI scripts. In the decompiled files SHSim.act (SH4) and SHim.act (SH5) there is a difference in the controllers cmdr_AICostal Defense.

gap 12-19-13 05:37 PM

Quote:

Originally Posted by Serge65 (Post 2153547)
It's not in the AI scripts. In the decompiled files SHSim.act (SH4) and SHim.act (SH5) there is a difference in the controllers cmdr_AICostal Defense.

Thank you very much Serge. Hope tha someone (you all know who I have in mind :O:), will fix this feature one day :up:

Serge65 12-25-13 03:46 PM

If the tanker is stalking you, change: data\Scripts\AI\Ship-Waypoint

strategy WaypointsCNFW(Ship)
precond
{
!Ship:CanFollowWaypoint()
}
action
{
Ship:Goto(0.7,false); ----> Ship:Goto(0.7,true);
Ship:SetThrottle(0.7);
}
}

and everything will be fine!:up:

gap 12-25-13 04:51 PM

Quote:

Originally Posted by Serge65 (Post 2155824)
If the tanker is stalking you

Do you mean the bug where the supply ship that we have just refitted from starts following us, ramming our boat if we don't move away quickly enough? :hmm2:

Serge65 12-26-13 02:30 AM

Quote:

Originally Posted by gap (Post 2155839)
Do you mean the bug where the supply ship that we have just refitted from starts following us, ramming our boat if we don't move away quickly enough? :hmm2:

Yes. Tanker chased me up the coast of the United States. I stopped the game and began to search for an error.

Raven_2012 01-03-14 03:01 PM

I am using IRAI_0_0_39 and I enabled SubFlags_0_0_8_byTheDarkWraith. It wants to overwrite these files:
NSS_Uboat7a_AI.eqp
NSS_Uboat7a_U30.eqp
NSS_Uboat7b_AI.eqp
NSS_Uboat7b_U99.eqp
NSS_Uboat7c_AI.eqp
NSS_Uboat7c_U552.eqp
NSS_Uboat7c4_AI.eqp

What do these files do and would there be problems if the get overwritten?

I have IRAI_0_0_31 and I can run the SubFlag mod without it wanting to overwrite anything.

gap 01-25-14 09:48 AM

Up
(in case TDW gets time to look into this issue too during his short staying at home :D)

Seeing one day some land-to-sea, land-to-air and air-to-air action in SH5 would be so nice...

Quote:

Originally Posted by gap (Post 2151575)
recently I have set a custom mission where a couple of 'small coastal guns' (which I had purposedly put in the British roster) are facing a number of Stuka bombers, result: guns and planes are ignoring each other, even though my crew keeps reporting the presence of "coastal defences", and guns' location is shown on the TAI map.

I digged into coastal gun's files, and everything looks okay. The sim file got _unit, cmdr_, wpn_Cannon and ob_Sensor controllers, and controller settings seem correct. I then had a look into the AI scripts folder, and I was surprised not to find any reference to land units. :hmmm:

Out of curiosity: has anyone ever seen coastal guns doing their job?

Quote:

Originally Posted by Mikemike47 (Post 2151663)
No, I haven't either. I had coastal defenses reported by crew in Scapa flow and using OH II v 2.2 or v2.1, but no gun activity.

I do remember that coastal defenses was reported by crew in SH4, and the AI guns were firing at me and even damaged sub; never in SH5 can I recall it happening correctly.

Quote:

Originally Posted by Serge65 (Post 2153547)
It's not in the AI scripts. In the decompiled files SHSim.act (SH4) and SHim.act (SH5) there is a difference in the controllers cmdr_AICostal Defense.


TheDarkWraith 01-25-14 09:54 AM

Quote:

Originally Posted by gap (Post 2167783)
Up
(in case TDW gets time to look into this issue too during his short staying at home :D)

Seeing one day some land-to-sea, land-to-air and air-to-air action in SH5 would be so nice...

Land-to-sea and land-to-air: the controller for the land units is totally fubar. I can get them to track targets but they will not fire (or rotate their guns if they have them). I suspect it's because there are no .aix files for them. But the exe doesn't define any commands or an .aix file for them! Like I said totally fubar :nope:

Air-to-air: the exe forbids any air to air combat. It won't let air units track another air unit. This can be changed though :yep:

gap 01-25-14 10:43 AM

Quote:

Originally Posted by TheDarkWraith (Post 2167786)
Land-to-sea and land-to-air: the controller for the land units is totally fubar. I can get them to track targets but they will not fire (or rotate their guns if they have them). I suspect it's because there are no .aix files for them. But the exe doesn't define any commands or an .aix file for them! Like I said totally fubar :nope:

In SHIII & IV they were reportedly working. Any hope that they can be fixed one day? They are an important part of the game, especially since when the air raid ctd issue has misteritously been ironed out :-?

Quote:

Originally Posted by TheDarkWraith (Post 2167786)
Air-to-air: the exe forbids any air to air combat. It won't let air units track another air unit. This can be changed though :yep:


:up:
I thought this was the hardest part, due to the dumbed-down aircaft AI

On a side note: is there any hope that we can make stationary air units not to crash on soil (they do, no matter their mass(max speed settings in sim and cfg files). That would allow blimp esorts for convoys and collisionable barrage balloons


All times are GMT -5. The time now is 09:43 PM.

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.