Not a member yet? Why not Sign up today
Create an account  

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 
My issue with Areal AI

#1
I recently picked up the game again and decided to make a simple starter bomber. Then I remembered why I stopped making planes (or bombers atleast). Besides taking 2 days to balance the thing so it doesn't go up to 400+ meters regardless of changes I make, the Areal AI makes this bomber miss its target by over 300 meters, recalculating its path and happens to go close to the target (although, the only reason why that happens is because I kept on changing the yaw potential, since the AI doesn't do it right). It does not stop turning until it turned atleast 10 degrees further then it needed to go. I changed the amount of yaw control, used thrusters, ACB's, turned off tracking and kept on changing settings in the AI card to make it better. It does not work. I am tempted to see if I can rewrite the complete areal AI (or yaw control) via a LUA script so it's not drunk anymore, if I have the time for it.

Is this a known issue or an issue with the craft? From what I have noticed from pretty much my whole time building aircrafts, the Areal AI seems to be kinda bad (or drunk) in general, overshooting literately every destination.

I've included the craft as a blueprint. If anyone could check if this is an issue of this craft or the AI in general, that would be great.


Attached Files
.blueprint   Copper Bird4.blueprint (Size: 58.15 KB / Downloads: 10)
Reply

#2
Yes the aerial AI is drunk, but as far as i know Nick is working on an AI overhaul right now.
And for bombers flying that high you should use guided bombs, sinnce they glide partially they can go quite if missed.
You could also try PIDs and there us a aerial lua ai already somewhere
There is always a weak-spot if you search Hard enough.

If you fire enough AP at that shield, at some point you're going to come through.

There is no "best" I wouldn't even say there is anything universally good, Good is subjective, I find everything bad even if it's in theory good against this or that.

Reply

#3
The issue is with every AI (Naval/Land/Air) as it is trying to predict the path of a craft and often fails to do it right. Air AI is especially poor as it needs to take care of more parameters in comparison to its counterparts.

I often build for a competition where precise and predictable behaviour is a must due to specific imposed boundaries (min/max altitude, distance etc.). In case of planes I usually rely on either hybrid Naval AI + ACB control or just go purely ACB. After last patch it is possible to use target parameters such as bearing to make an action, which enable extra ACB tricks.

I've attached two examples of hybrid (fighter wing) and pure ACB (long range anti ship) planes - perhaps this could help you out.


Attached Files
.blueprint   Serpent 300.blueprint (Size: 48.08 KB / Downloads: 16)
.blueprint   4riders by harnas1977.blueprint (Size: 93.71 KB / Downloads: 16)
primum non nocere
___________________________________
my tournaments:
★★★ Sea Encounters - Battleships! ★★★
★★★ Sea Encounters - Light Cruisers ★★★
Reply

#4
I had a heavy bomber that use to work perfectly. It was set to fly at an altitude of about 1800m to 2000m. It was a high altitude bomber and it carried x18 12-block long bombs (this was before the missile update so they were medium sized bombs.) But it could do a ton of damage with it's 18 bombs and could kill a lot of things with just 1 pass over. Because it was so high up ships and ground targets had a very hard time landing a shot on it. It wasn't very fast but it flew perfectly. Then the 2.0 update was added and it completely ruined the bomber. Sad  It no longer would fly right. It would still be facing forward but would fly up at almost 90 degrees. I figured it must be because they made wings create more lift so I removed many wing parts and replaced a lot of alloy with metal blocks to make it heavier. This helped some, but it still would just fly at weird angles and just doesn't seem to want to drop it's bombs when a target is below and in range. I tried replacing the ACB's that open the bomb bay doors and drop the bombs but it still doesn't seem to want to drop it's load. I tried replacing the PID's but they seem to just not have any real effect on the way it flies. It really does seem like the aerial AI is just drunk. :|
Reply

#5
Please do try my Lua Ai and see if it helps: https://forum.fromthedepthsgame.com/show...4#pid92754
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)