SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 03-23-10, 04:01 AM   #1
Nisgeis
Ocean Warrior
 
Join Date: Jan 2008
Posts: 2,909
Downloads: 77
Uploads: 11
Default [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.
__________________
--------------------------------
This space left intentionally blank.

Last edited by Nisgeis; 04-02-10 at 11:33 AM.
Nisgeis is offline   Reply With Quote
Old 03-23-10, 04:19 AM   #2
captainprid
Watch Officer
 
Join Date: Jul 2007
Location: Blackpool, England
Posts: 347
Downloads: 23
Uploads: 0
Default

This looks brilliant!!! Just what I have been waiting for!!
captainprid is offline   Reply With Quote
Old 03-23-10, 04:22 AM   #3
Sgtmonkeynads
Ships Secretary
 
Sgtmonkeynads's Avatar
 
Join Date: Apr 2009
Location: MilesCity Montana
Posts: 583
Downloads: 614
Uploads: 0
Default

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 !!!!!

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.
__________________
Just help someone.....it makes a difference
Sgtmonkeynads is offline   Reply With Quote
Old 03-23-10, 06:00 AM   #4
Bilge_Rat
Silent Hunter
 
Join Date: Apr 2002
Location: standing watch...
Posts: 3,793
Downloads: 344
Uploads: 0
Default

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.
__________________
Bilge_Rat is offline   Reply With Quote
Old 03-23-10, 06:21 AM   #5
Coldcall
Chief
 
Join Date: Mar 2010
Posts: 325
Downloads: 42
Uploads: 0
Default

Bring it on! :-) Sounds excellent! I'm getting really tired of the flaky AI.
Coldcall is offline   Reply With Quote
Old 03-23-10, 06:23 AM   #6
Ablemaster
An able master
 
Join Date: Jan 2010
Location: England
Posts: 274
Downloads: 121
Uploads: 5
Default

The ai needs some work for sure, anything that improves gameplay is good by me, thanks will try this out.
__________________
Ablemaster is offline   Reply With Quote
Old 03-23-10, 06:38 AM   #7
coronas
Ace of the Deep
 
Join Date: May 2005
Location: Asturias, España
Posts: 1,168
Downloads: 39
Uploads: 0
Default

Can be linked with this?
http://www.subsim.com/radioroom/show...55&postcount=1
__________________
coronas is offline   Reply With Quote
Old 03-23-10, 07:12 AM   #8
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,280
Downloads: 258
Uploads: 30
Default

Gandalfi2005 has just released a scripting AI mod, you should get together ans bump heads.
http://www.subsim.com/radioroom/showthread.php?t=165899
reaper7 is offline   Reply With Quote
Old 03-23-10, 12:53 PM   #9
Nisgeis
Ocean Warrior
 
Join Date: Jan 2008
Posts: 2,909
Downloads: 77
Uploads: 11
Default

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.
__________________
--------------------------------
This space left intentionally blank.

Last edited by Nisgeis; 03-25-10 at 04:20 PM.
Nisgeis is offline   Reply With Quote
Old 03-23-10, 12:57 PM   #10
Nisgeis
Ocean Warrior
 
Join Date: Jan 2008
Posts: 2,909
Downloads: 77
Uploads: 11
Default

Quote:
Originally Posted by coronas View Post
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!
__________________
--------------------------------
This space left intentionally blank.
Nisgeis is offline   Reply With Quote
Old 03-23-10, 03:50 PM   #11
coronas
Ace of the Deep
 
Join Date: May 2005
Location: Asturias, España
Posts: 1,168
Downloads: 39
Uploads: 0
Default

Thanks for the answer!
Step by step you are doing a great work.
__________________
coronas is offline   Reply With Quote
Old 03-23-10, 04:03 PM   #12
Coldcall
Chief
 
Join Date: Mar 2010
Posts: 325
Downloads: 42
Uploads: 0
Default

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

Thanks.
Coldcall is offline   Reply With Quote
Old 03-23-10, 04:10 PM   #13
Nisgeis
Ocean Warrior
 
Join Date: Jan 2008
Posts: 2,909
Downloads: 77
Uploads: 11
Default

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. . Gord bless those devs.
__________________
--------------------------------
This space left intentionally blank.
Nisgeis is offline   Reply With Quote
Old 03-23-10, 04:13 PM   #14
Heretic
Commodore
 
Join Date: Mar 2005
Location: Nebraska
Posts: 617
Downloads: 240
Uploads: 2


Default

Quote:
Originally Posted by Nisgeis View Post
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. . 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.
Heretic is offline   Reply With Quote
Old 03-23-10, 04:19 PM   #15
Nisgeis
Ocean Warrior
 
Join Date: Jan 2008
Posts: 2,909
Downloads: 77
Uploads: 11
Default

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.
__________________
--------------------------------
This space left intentionally blank.
Nisgeis is offline   Reply With Quote
Reply

Tags
favorite


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:07 PM.


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.