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] U-Boat Killer AI Mod (https://www.subsim.com/radioroom/showthread.php?t=165886)

Nisgeis 03-23-10 04:01 AM

[WIP] U-Boat Killer AI Mod
 
At the moment the AI sees one of its ships explodes and thinks 'Oooh that's pretty' and then goes back to reading its book, without trying to find out what happened to make the ship explode. Even when they actually spot you, they seem a bit dis-interested and go to investigate with all the enthusiasm of a sulky child who's been told to tidy his bedroom.

So, here's the first part of a WIP mod that aims to get the AI into the game.

For anyone that wants to test, the latest version is v1.02:

http://www.subsim.com/radioroom/down...o=file&id=1663

Thanks to Ducimus for the AI timeout fix. Thanks to TheBlobThing for his suggestion to change the thermal layer. I was just going to mod the AI scripts, but after thinking about it, it doesn' make sense if all you have to do is dive down a bit to lose them.

v 1.02.

Changes:

DC damage radius upped - DC previously had to be dropped with 4 metres of your sub to do damage and I was fed up with a DC run and no damage whatsoever. Now you get shaken up a tad, but nothing serious. Just enough to know they were close.
Spiral Searching now works and the DDs can re-acquire you. Not perfect yet, but getting there.
Thermal Layer changed to not have an effect.
Added proportioanl response - More DDs come to investigate if there are more escorts.


Version 1 - Escorts close distance to a contact fast, prebiously it was on 0.3 throttle. Escorts will slow to acquire a target if they have lost it.
Escorts now investigate unknown targets, so no more enemy harbour picnics.
Version 1.01 - Escorts now initiate spiral search after a contact has been lost for.

captainprid 03-23-10 04:19 AM

This looks brilliant!!! Just what I have been waiting for!!

Sgtmonkeynads 03-23-10 04:22 AM

Already on the top of my download list ! Can't wait to actualy be hunted. Keep us posted and keep up the good work. Thank you !!!!!:yeah:

Download what you have done so far so we can test it for you and give info, ANYTHING is better than what we have now.

Bilge_Rat 03-23-10 06:00 AM

In the "PQ-17" single mission, when you torpedo a merchant man, escorts will rush over to try and find you.

There may be a script involved. You may want to take a look at the mission file.

Coldcall 03-23-10 06:21 AM

Bring it on! :-) Sounds excellent! I'm getting really tired of the flaky AI.

Ablemaster 03-23-10 06:23 AM

The ai needs some work for sure, anything that improves gameplay is good by me, thanks will try this out.

coronas 03-23-10 06:38 AM

Can be linked with this?
http://www.subsim.com/radioroom/show...55&postcount=1

reaper7 03-23-10 07:12 AM

Gandalfi2005 has just released a scripting AI mod, you should get together ans bump heads.
http://www.subsim.com/radioroom/showthread.php?t=165899 :up:

Nisgeis 03-23-10 12:53 PM

First version is up and available for testing, for those souls who want to.

EDIT: Link removed, see first post for latest version.

I'd advise not using any sensor mods with this! Feedback would be greatly appreciated, if you can spare the time. Thanks! This is only ships versus subs AI at the moment. From what I have seen, the early AC don't have any weapons, so they don't attack. This should make harbour attack and convoy attacks more dangerous and being spotted will be even more dangerous.

Nisgeis 03-23-10 12:57 PM

Quote:

Originally Posted by coronas (Post 1329600)

Well, the info there isn't quite right. Unfortunately in stock the Operation Spiral Search never becomes active, due to the AI timeout occuring before the operation was due to come into effect. Ducimus suggested a change which worked and now Spiral Searches don't work very well, instead of at all. Will get to work on that later. Lots to do!

coronas 03-23-10 03:50 PM

Thanks for the answer!
Step by step you are doing a great work. :yeah:
:salute:

Coldcall 03-23-10 04:03 PM

just returned to port in a new campaign so will try this out on some early Atlantic missions.

Thanks.

Nisgeis 03-23-10 04:10 PM

The AI Scripting should be patrol independant, so as long as you shut the game down before you install it, you should be able to run it from a save game on patrol. Using the AI debugger, you can re-load the scripts on the fly with the game running and it works mid-engagement. :DL. Gord bless those devs.

Heretic 03-23-10 04:13 PM

Quote:

Originally Posted by Nisgeis (Post 1330575)
The AI Scripting should be patrol independant, so as long as you shut the game down before you install it, you should be able to run it from a save game on patrol. Using the AI debugger, you can re-load the scripts on the fly with the game running and it works mid-engagement. :DL. Gord bless those devs.

Have you reloaded scripts successfully? When I tried that with the crew ai, they either lose all their strategies or crash the program.

Nisgeis 03-23-10 04:19 PM

Well, the scripts are different per category and I've only been dealing with the units, so the 'sim' category, but reloading scripts isn't a problem. Refreshing can cause a crash, if you have a behaviour or unit selected which is not loaded. When you first load the AI debugger, select the category, then click refresh, BEFORE selecting anything in the second drop down, as for whatever reason, it will list all the old behaviours that may not be loaded and will crash the game if you try to access them. For example, if you are looking at a ship that sinks, then pressing refressh the game will crash, as that unit no longer exists.

EDIT: Oh yeah and if you muff up a script, it will crash the game if you reload the scripts, but then again the game won't restart with muffed up AI scripts.


All times are GMT -5. The time now is 07:01 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.