Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik > Daidalos Team discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 01-29-2014, 11:03 AM
sniperton sniperton is offline
Approved Member
 
Join Date: Mar 2011
Posts: 253
Default

Quote:
Originally Posted by Pursuivant View Post
... Additionally, planes should ... divert to the nearest airfield and shouldn't bother circling prior to final approach, but should go right in to land.
BTW, does the AI positively 'know' where (friendly or enemy) airfields are located (other than those predefined by its own mission waypoints)?
Reply With Quote
  #2  
Old 01-30-2014, 03:48 AM
Aviar's Avatar
Aviar Aviar is offline
Approved Member
 
Join Date: Dec 2007
Location: New Jersey, USA
Posts: 545
Default

Quote:
Originally Posted by sniperton View Post
BTW, does the AI positively 'know' where (friendly or enemy) airfields are located (other than those predefined by its own mission waypoints)?
Simply put, AI planes are not 'aware' of airfields, be they enemy, friendly or neutral.

When taking off or landing at an airfield, they only do so because it is a pre-defined waypoint. For instance, a damaged AI plane cannot 'seek out' a nearby friendly airfield at which to land. The AI is not programmed for that kind of 'thinking'.


Aviar
__________________
Intel i7-4790 4-Core @3.60GHz
Asus Z97-C Motherboard
16GB DDR-3 1600 SDRAM @800 MHz
NVIDIA GTX 760 - 2GB
Creative SB ZX SBX
Logitech X-530 5.1 Speakers
27" AOC LED - 2752
Logitech G15 Gaming Keyboard
CH FighterStick-Pro Throttle-Pro Pedals
Logitech G13 Gameboard
GoFlight GF-T8 Module
WIN 8.1
Reply With Quote
  #3  
Old 01-30-2014, 05:22 PM
Pursuivant Pursuivant is offline
Approved Member
 
Join Date: May 2010
Posts: 1,439
Default

Quote:
Originally Posted by Aviar View Post
Simply put, AI planes are not 'aware' of airfields, be they enemy, friendly or neutral.
That explains a lot about AI landing and critical damage behavior.

Would it be possible for the AI to "check in" with the appropriate map file ever minute or so to determine the closest airbases to the plane's current position?

Then, if the plane needs to land in a hurry, it can be programmed to fly in a direct line to the nearest airbase.

Additionally, runways for stock airfields could be given some sort of coordinates as to exactly where they start and end.

That way, when a plane needs to make an emergency landing, rather than following programmed waypoints, it would just maneuver so that it's on a heading and altitude to land at one end of the nearest airfield.

Obviously, there would need to be a bit more complexity, with things like collision avoidance routines and determining whether an airfield is friendly or hostile, to make fully automated landings work realistically, but it might be possible given the way that IL2 works.
Reply With Quote
  #4  
Old 01-30-2014, 09:04 PM
ben_wh ben_wh is offline
Approved Member
 
Join Date: Oct 2009
Posts: 39
Default

AI emergency landing has been a problem fro day one.

1) For the landing back at a friendly field issue, perhaps, as Pursuivant mentioned, having airfield marker one can assign side to (Red Vs Blue) would allow a plane to look for friendly airfield close by to land. May still need substantial coding to achieve such AI improvement though.

2) Another aspect of AI landing is even more complex and potentially challenging to code: when a plane is in trouble and there is no airfield nearby, the AI has a choice to make - where to crash land. Right now AI plane often chooses to fly into mountain or landing into a forest - i.e. ensuring total destruction of its plane (and pilot) - rather than chancing it by picking a relatively flat field to land. This is something very natural for a human pilot but I imagine can be very hard to code into AI behavior.

Cheers,
Reply With Quote
  #5  
Old 01-31-2014, 12:04 PM
Pursuivant Pursuivant is offline
Approved Member
 
Join Date: May 2010
Posts: 1,439
Default

Quote:
Originally Posted by ben_wh View Post
2) Another aspect of AI landing is even more complex and potentially challenging to code: when a plane is in trouble and there is no airfield nearby, the AI has a choice to make - where to crash land.
Yes. Also, AI has a very tough time making realistic emergency decisions that would come naturally for a human pilot due to its limited terrain recognition ability. For example, AI planes might have the bail out just inside hostile territory rather than attempting to hold on a bit longer to reach friendly territory. Or, AI planes might have the crew bail out over the ocean when attempting to ditch is preferable.

"Intelligent" emergency decisions would require AI planes to be able to "see" and recognize areas of ocean and open flat ground which are suitable for crash landing/ditching, as well as being able to "see" front markers.

Once that's done, the flow chart as to what to do is fairly simple.
Reply With Quote
  #6  
Old 01-30-2014, 09:08 PM
sniperton sniperton is offline
Approved Member
 
Join Date: Mar 2011
Posts: 253
Default

A more simple (and feasible) solution would be an 'RTB' command combined with an "Ignore Waypoints' command. Then the AI could head directly for the pre-defined home base coordinates. In addition, the AI could even check whether there are other friendly airfields in the vicinity (I mean the take-off coordinates for other friendly flights). Remember, the AI can only be aware of locations which are pre-defined by the mission designer. If the mission designer decides to leave a 'physical' airfield to remain inactive, then it would be strange if the AI could land on it. Similarly, if the mission designer created a new airfield (not on the physical map), then it would be strange if the AI ignored it.

Last edited by sniperton; 01-31-2014 at 12:51 AM. Reason: meant for Pursuivant
Reply With Quote
  #7  
Old 01-31-2014, 11:53 AM
Pursuivant Pursuivant is offline
Approved Member
 
Join Date: May 2010
Posts: 1,439
Default

Quote:
Originally Posted by sniperton View Post
A more simple (and feasible) solution would be an 'RTB' command combined with an "Ignore Waypoints' command.
This would be a nice option for the FMB, either on its own or included with my idea.

If added to my idea, it would complement the idea of having the AI being able to "see" airfields, and would allow mission builders to create missions where friendly aircraft would divert around otherwise friendly airfields (to simulate things like the airfield being fogged in, bombed out, or otherwise unusable). All they'd need to do is mark a particular airfield as being "invisible" to friendly planes.

Likewise, the mission builder could make certain airfields "secret" by flagging them as being "invisible to hostile aircraft, or flag certain airfields as being unavailable to either side by making them "invisible" to all planes.

Or, if you wanted to keep it simple, any mission could automatically have AI planes which must RTP immediately try to go to their landing waypoint, or their take-off waypoint if it is different and closer. That way, all the AI would have to do is refer back to one of two waypoints, rather than having to check the map and do calculations to determine what the closest airfield is, or requiring the mission builder to determine what the plane's "home airfield" is.

Last edited by Pursuivant; 01-31-2014 at 11:58 AM.
Reply With Quote
  #8  
Old 01-31-2014, 08:38 PM
Pfeil Pfeil is offline
Approved Member
 
Join Date: Jan 2012
Posts: 126
Default

Quote:
Originally Posted by Pursuivant View Post
All the AI would have to do is refer back to one of two waypoints, rather than having to check the map and do calculations to determine what the closest airfield is, or requiring the mission builder to determine what the plane's "home airfield" is.
From the mission builders perspective, sure.

Though the AI always knows its exact position. Taking the coordinates for a list of airfields(which wouldn't be that long, not over 100 at least) and comparing them to see which is the shortest distance from any given AI's location(or even a whole mission full of AI) is hardly a CPU intensive calculation.

In fact, such a calculation already exists: Runway lighting.
This already determines the nearest friendly base(Try it, it only works in close proximity to airfields, otherwise they're permanently lit).
There is obviously a way to "detect" airfields, so it's quite possible it could be adapted for use by the AI.
Reply With Quote
Reply

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. The time now is 12:28 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.