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-27-10, 11:34 AM   #1
NoLine
Medic
 
Join Date: Jun 2005
Location: AN85
Posts: 167
Downloads: 57
Uploads: 0
Default

I had a look at these scripts and noticed some mistakes which might mean the scripts dont run at all

example : in airplane.aix it says :
Code:
 action
 {
  Plane:FireTorpedoes()
 }
but (i think) it needs to be :

Code:
 action
 {
  Plane:FireTorpedoes();
 }
there seem to be more of these, ill see what happens if i remove them

cheers
Noline
NoLine is offline   Reply With Quote
Old 03-27-10, 11:50 AM   #2
Heretic
Commodore
 
Join Date: Mar 2005
Location: Nebraska
Posts: 617
Downloads: 240
Uploads: 2


Default

In my experience, syntax errors produce immediate CTD, so I wouldn't think that's a problem. Certainly worth experimenting with though.
Heretic is offline   Reply With Quote
Old 03-28-10, 09:03 AM   #3
robbo180265
Admiral
 
Join Date: Oct 2006
Location: Brighton, England.Party capital of the south
Posts: 2,238
Downloads: 126
Uploads: 0
Default

Ok I'm using this mod and it's a massive difference to the "out of the box" AI.

I stalked a convoy whilst in shallow waters. The DD did come look for me after all sinkings but couldn't find me. I was running at slow speed, not silent and at periscope depth.

So it seems that although they now spend considerable time looking, they can't actually find you still.

I did briefly surface and the DD steamed straight towards the area that it spotted me. I was still able to get away whilst at periscope depth and running at slow speed.

So definatly on the right track but I'm guessing that the sensors need tweaking too.

Good work though - things are really looking up
robbo180265 is offline   Reply With Quote
Old 03-28-10, 09:21 AM   #4
Coldcall
Chief
 
Join Date: Mar 2010
Posts: 325
Downloads: 42
Uploads: 0
Default

ya please keep developing this mod, so far works well for initial reactions by the warships, but they remain very poor at triangulating a search.

I keep restarting my campaigns so farthest Ive gone is happy times. I'm wondering if the stock AI gets better later on, then this tweak to the reactions may compliment that.

I've heard many people say the AI gets better as the years roll by but is that tested and apparent in the code, or just a myth?
Coldcall is offline   Reply With Quote
Old 03-28-10, 09:31 AM   #5
Nisgeis
Ocean Warrior
 
Join Date: Jan 2008
Posts: 2,909
Downloads: 77
Uploads: 11
Default

Thanks for the feedback. The enemy AI won't get better, but the sensors they use will (I think), which will make their searches more effective. When they get radar they will get much harder. There's also no way to see what the date is, so you can't implement strategies as they became used historically, but what you could do is to restrict certain strategies to elite or very good AI and then modify the levels of escorts in the campaign by date. I'm not sure if changing their level changes how effective their sensors are though (on a non scripting level). I don't think they should be very good at finding you early war, especially if you are on the surface at night.

Quote:
Originally Posted by NoLine View Post
I had a look at these scripts and noticed some mistakes which might mean the scripts dont run at all

Hi NoLine, thanks for the suggestion. I tried what you suggested and it made no difference. I think the problem is that the aircraft we are seeing eraly on simply don't have bombs or torpedoes.

I can't get airplanes to attack with cannon. I can get them to circle you, make dummy bomb runs on you and other things, but they will only fire if they are flying directly at you. This will work with aircraft that have nose turrets, but not things like spitfires or swordfish, which have fixed guns. So that was a bit of a waste of time. I think the main problem is that the planes in SH4 didn't attack without bombs either - they'd attack and just fly off when they had no more bombs, so planes never strafed there either. There's no scripting to make strafing with cannon work. The scripting for aircraft seems to be very limitted, unless I'm missing something.
__________________
--------------------------------
This space left intentionally blank.

Last edited by Nisgeis; 03-28-10 at 09:54 AM.
Nisgeis is offline   Reply With Quote
Old 03-28-10, 09:58 AM   #6
wamphyri
Lieutenant
 
wamphyri's Avatar
 
Join Date: May 2004
Location: Lethbridge, Alberta
Posts: 260
Downloads: 40
Uploads: 0
Default

http://www.subsim.com/radioroom/showthread.php?t=164452

Hey nisgeis,

The link is to my mod to get the planes to attack. In a campaign the planes use the default equipment and for all but 5 planes in stock the default is without bombs. With how the AI works a plane won't attack unless it has bombs, this was true for sh3 and sh4. One thing that was done for those games and I did with my mod is use what's called a bombdummy, a fake bomb so the ai now thinks it has bombs on board and will now use it's cannons. This isn't needed for planes that have bombs on board and one of the things that I also did was went through each plane and adjusted their equipment to as historical as possible, as well as adjusting the damage they do with the cannons.

I haven't updated it for a while but have what will probably be version 1.0 out very soon. So if there's anything you can do on top of this with the ai script file then cool beans. No matter what I do a plane refuses to drop a torpedo from the air, I don't think the devs got it working in the other sh games but they've given us just a little more to play with now.
wamphyri is offline   Reply With Quote
Old 03-29-10, 11:54 AM   #7
Nisgeis
Ocean Warrior
 
Join Date: Jan 2008
Posts: 2,909
Downloads: 77
Uploads: 11
Default

Quote:
Originally Posted by wamphyri View Post
With how the AI works a plane won't attack unless it has bombs, this was true for sh3 and sh4. One thing that was done for those games and I did with my mod is use what's called a bombdummy, a fake bomb so the ai now thinks it has bombs on board and will now use it's cannons.
You can do the same through the scripts, by telling the plane to attack even if it has no bombs, but there is no way to get the plane to line up properly, so slow aircraft, such as the sworfish won't line up properly, but faster aircraft work OK.
__________________
--------------------------------
This space left intentionally blank.
Nisgeis is offline   Reply With Quote
Old 03-28-10, 11:07 AM   #8
NoLine
Medic
 
Join Date: Jun 2005
Location: AN85
Posts: 167
Downloads: 57
Uploads: 0
Default

Quote:
Originally Posted by Nisgeis View Post
Hi NoLine, thanks for the suggestion. I tried what you suggested and it made no difference. I think the problem is that the aircraft we are seeing eraly on simply don't have bombs or torpedoes.
.
you also removed the other one from aircraft.aix ?

Code:
  action
 {
  Plane:FireCannons()   
 }
to
Code:
  action
 {
  Plane:FireCannons(); 
 }
or in ships-navigation.aix
Code:
 action
 {
  Ship:EndCurrentTactic()
 }
to
Code:
 action
 {
  Ship:EndCurrentTactic();
 }
in submarine.aix

Code:
 strategies
 {
  EvadeEscortDay,  
 }
to
Code:
 strategies
 {
  EvadeEscortDay 
 }
also

Code:
 strategies
 {
  EvadeEscortNight,  
 }
to
Code:
 strategies
 {
  EvadeEscortNight 
 }
not sure it works but those seem to be wrong

cheers
Noline
NoLine is offline   Reply With Quote
Old 03-28-10, 12:50 PM   #9
PL_Andrev
Grey Wolf
 
Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
Default


Wrong or incorect code?
Thanks God, code is open...
__________________

PL_Andrev is offline   Reply With Quote
Reply

Tags
favorite

Thread Tools
Display Modes

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 08:35 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.