![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
03-27-10, 11:34 AM
|
#1 |
|
Medic
![]() Join Date: Jun 2005
Location: AN85
Posts: 167
Downloads: 57
Uploads: 0
|
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()
}
Code:
action
{
Plane:FireTorpedoes();
}
cheers Noline |
|
|
03-27-10, 11:50 AM
|
#2 |
|
Commodore
![]() |
In my experience, syntax errors produce immediate CTD, so I wouldn't think that's a problem. Certainly worth experimenting with though.
__________________
- heretic I enjoy drinking beer. MightyFine Crew Mod 1.2.1 - Updated 22 March MightyFine Less Annoying Footsteps Crew AI Scripting Information |
|
|
03-28-10, 09:03 AM
|
#3 |
|
Admiral
![]() Join Date: Oct 2006
Location: Brighton, England.Party capital of the south
Posts: 2,238
Downloads: 126
Uploads: 0
|
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 |
|
|
03-28-10, 09:21 AM
|
#4 |
|
Chief
![]() Join Date: Mar 2010
Posts: 325
Downloads: 42
Uploads: 0
|
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? |
|
|
03-28-10, 09:31 AM
|
#5 | |
|
Ocean Warrior
![]() Join Date: Jan 2008
Posts: 2,909
Downloads: 77
Uploads: 11
|
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:
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. |
|
|
|
03-28-10, 09:58 AM
|
#6 |
|
Lieutenant
![]() Join Date: May 2004
Location: Lethbridge, Alberta
Posts: 260
Downloads: 40
Uploads: 0
|
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. |
|
|
03-29-10, 11:54 AM
|
#7 | |
|
Ocean Warrior
![]() Join Date: Jan 2008
Posts: 2,909
Downloads: 77
Uploads: 11
|
Quote:
__________________
-------------------------------- This space left intentionally blank. |
|
|
|
03-28-10, 11:07 AM
|
#8 | |
|
Medic
![]() Join Date: Jun 2005
Location: AN85
Posts: 167
Downloads: 57
Uploads: 0
|
Quote:
Code:
action
{
Plane:FireCannons()
}
Code:
action
{
Plane:FireCannons();
}
Code:
action
{
Ship:EndCurrentTactic()
}
Code:
action
{
Ship:EndCurrentTactic();
}
Code:
strategies
{
EvadeEscortDay,
}
Code:
strategies
{
EvadeEscortDay
}
Code:
strategies
{
EvadeEscortNight,
}
Code:
strategies
{
EvadeEscortNight
}
cheers Noline |
|
|
|
03-28-10, 12:50 PM
|
#9 |
|
Grey Wolf
![]() Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
|
Wrong or incorect code? Thanks God, code is open...
__________________
![]() |
|
|
![]() |
| Tags |
| favorite |
| Thread Tools | |
| Display Modes | |
|
|
