Author Topic: Custom AI profile and AI classes for you  (Read 29096 times)

0 Members and 3 Guests are viewing this topic.

Offline MatthTheGeek

  • Captain Obvious
  • 212
  • Frenchie McFrenchface
Re: Custom AI profile and AI classes for you
Actually, in order to integrate it better within original missions and to minimize the customization of maps adaptation to new AIs, I just modified the original AI classes (Coward, Lieutenant, ...) based on your modified classes, and just added a Turreted class which is a non-modified version of Captain (in the same position in the tbl as Captain was) for all ships that use turrets. Then I changed the default AI of all ships that use turrets to Turreted (including bombers), so they will keep the retail behavior instead of firing at unusual rates. Then, the only thing to change in missions is making sure that bombers use new AI as pilots and Turreted AI for their turrets, and that capital ships' turrets haven't been switched to anything else than Turreted.

My changes are only for integration purpose, the only change in the values I made was to scale the classes properly (Rookie -> Lieutenant, Veteran -> Captain, Elite -> Colonel, and properly scaled values for Major between Veteran and Elite and General above Elite)
People are stupid, therefore anything popular is at best suspicious.

Mod management tools     -     Wiki stuff!     -     Help us help you

666maslo666: Releasing a finished product is not a good thing! It is a modern fad.

SpardaSon21: it seems like you exist in a permanent state of half-joking misanthropy

Axem: when you put it like that, i sound like an insane person

bigchunk1: it's not retarded it's american!
bigchunk1: ...

batwota: steele's maneuvering for the coup de gras
MatthTheGeek: you mispelled grâce
Awaesaar: grace
batwota: oh right :P
Darius: ah!
Darius: yes, i like that
MatthTheGeek: the way you just spelled it it means fat
Awaesaar: +accent I forgot how to keyboard
MatthTheGeek: or grease
Darius: the killing fat!
Axem: jabba does the coup de gras
MatthTheGeek: XD
Axem: bring me solo and a cookie

 

Offline Fury

  • The Curmudgeon
  • 213
Re: Custom AI profile and AI classes for you
I have updated link in the first post to point to v3 of the AI. This includes the turrets-obt.tbm I attached to a post earlier, it is still completely optional. V3 fixes a minor bug in Wingmen classes $Get Away Chance. V3 alters $AI Turn Time Scale, by default FS2 has severe penalties to how quickly hostile ships can turn. This disables these penalties on all but very easy and easy difficulty levels, but are reduced from defaults even at those difficulties. What you will see is much sharper and faster turns by hostile fighters and bombers.

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Custom AI profile and AI classes for you
Actually, in order to integrate it better within original missions and to minimize the customization of maps adaptation to new AIs, I just modified the original AI classes (Coward, Lieutenant, ...) based on your modified classes, and just added a Turreted class which is a non-modified version of Captain (in the same position in the tbl as Captain was) for all ships that use turrets. Then I changed the default AI of all ships that use turrets to Turreted (including bombers), so they will keep the retail behavior instead of firing at unusual rates. Then, the only thing to change in missions is making sure that bombers use new AI as pilots and Turreted AI for their turrets, and that capital ships' turrets haven't been switched to anything else than Turreted.

My changes are only for integration purpose, the only change in the values I made was to scale the classes properly (Rookie -> Lieutenant, Veteran -> Captain, Elite -> Colonel, and properly scaled values for Major between Veteran and Elite and General above Elite)

You do realize by inserting a new entry where captain was that everything after captain is changed in behavior.  The position in the table matters for calculating things.  So if your old captain class is now one slot down they will do things like fire more missiles as well as other things. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline Fury

  • The Curmudgeon
  • 213
Re: Custom AI profile and AI classes for you
Unless he used $Autoscale by AI Class Index: NO
But if that is used, the AI entries no longer behave like in retail anyway. So indeed, changing order of retail AI classes should not be done.

 

Offline MatthTheGeek

  • Captain Obvious
  • 212
  • Frenchie McFrenchface
Re: Custom AI profile and AI classes for you
Quote
Unless he used $Autoscale by AI Class Index: NO
But if that is used, the AI entries no longer behave like in retail anyway. So indeed, changing order of AI retail classes should not be done.
I turned autoscale off for all classes excepted Turreted indeed. Everything seems to work pretty fine with my modified version, and it saves a lot of time when adapting missions to the new AIs.
People are stupid, therefore anything popular is at best suspicious.

Mod management tools     -     Wiki stuff!     -     Help us help you

666maslo666: Releasing a finished product is not a good thing! It is a modern fad.

SpardaSon21: it seems like you exist in a permanent state of half-joking misanthropy

Axem: when you put it like that, i sound like an insane person

bigchunk1: it's not retarded it's american!
bigchunk1: ...

batwota: steele's maneuvering for the coup de gras
MatthTheGeek: you mispelled grâce
Awaesaar: grace
batwota: oh right :P
Darius: ah!
Darius: yes, i like that
MatthTheGeek: the way you just spelled it it means fat
Awaesaar: +accent I forgot how to keyboard
MatthTheGeek: or grease
Darius: the killing fat!
Axem: jabba does the coup de gras
MatthTheGeek: XD
Axem: bring me solo and a cookie

 

Offline Fury

  • The Curmudgeon
  • 213
Re: Custom AI profile and AI classes for you
Unfortunately that means retail AI classes no longer behave like they are supposed to. The flag turns off hard-coded class index multipliers, which quite likely can throw mission balance out of the window. But so does using my tweaks on retail classes anyhow.

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Custom AI profile and AI classes for you
Well until the bugs are fixed not even that flag matters for all cases. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline MatthTheGeek

  • Captain Obvious
  • 212
  • Frenchie McFrenchface
Re: Custom AI profile and AI classes for you
I know retail AI classes doesn't behave like they used to be, but that's how I want it to be, playing retail missions with enhanced AI. Don't worry, I didn't drop them in the data folder or whatever, I created a new mod just for the new AI and adapted missions. That's the best way to test the AI in every situation I think, and I went through most of FS2 campaign without major problems (excepted the first ones that are a little harder, when everyone has only heat-seeking and dumbfire). The fact that your wingmen are enhanced too plays a lot in maintaining balance.

And btw, I really love the new behavior with turn rates fixed. Whoever doubted that the Loki is the Dragon of GTVA should play against them in Hard with the new AI :drevil:
« Last Edit: November 20, 2009, 02:56:46 pm by MatthTheGeek »
People are stupid, therefore anything popular is at best suspicious.

Mod management tools     -     Wiki stuff!     -     Help us help you

666maslo666: Releasing a finished product is not a good thing! It is a modern fad.

SpardaSon21: it seems like you exist in a permanent state of half-joking misanthropy

Axem: when you put it like that, i sound like an insane person

bigchunk1: it's not retarded it's american!
bigchunk1: ...

batwota: steele's maneuvering for the coup de gras
MatthTheGeek: you mispelled grâce
Awaesaar: grace
batwota: oh right :P
Darius: ah!
Darius: yes, i like that
MatthTheGeek: the way you just spelled it it means fat
Awaesaar: +accent I forgot how to keyboard
MatthTheGeek: or grease
Darius: the killing fat!
Axem: jabba does the coup de gras
MatthTheGeek: XD
Axem: bring me solo and a cookie

 
Re: Custom AI profile and AI classes for you
I've played a bit with your ai fury, and i have to say that it's very, very nice.
I've tweak it a bit to fit Ep, i'm rather happy with the close dogfight behavior, but i've not understood why, ai seems unable to shoot any missile now.

I've change the line to this :
$Chance AI Has to Fire Missiles at Player: 5, 5, 6, 6, 6
To ensure it will shoot at me but it doesn't.
Maybe i should take a look on the missile them self, i will try to increase their effectivness distance and decrease lock time to see , if they just can't manage to acquire a lock.

I ve made a 1 sec long lock missile for a 10 000 effective range, it still doesn't fire anything.
So i'll have to look elsewhere
« Last Edit: November 20, 2009, 04:27:01 pm by Reprobator »
$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Custom AI profile and AI classes for you
Are you playing on very easy?  AI will almost never fire a missile on very easy. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 
Re: Custom AI profile and AI classes for you
No, on medium, and i"ve try to figure out why, and untill now i could not.


I've just try on insane and it shot at me.
hmmm i'll take a look after a good night of sleep.
« Last Edit: November 20, 2009, 05:31:18 pm by Reprobator »
$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1

 
Re: Custom AI profile and AI classes for you
If you could figure out exactly which table entries are causing the more "retail-like" AI behavior, it could make it a lot easier to track down and debug them.

Fury be the dude turning the dials, the immediate built(I think?) from our internal testing session was probably pretty close to what retail was.
"Neutrality means that you don't really care, cuz the struggle goes on even when you're not there: Blind and unaware."

"We still believe in all the things that we stood by before,
and after everything we've seen here maybe even more.
I know we're not the only ones, and we were not the first,
and unapologetically we'll stand behind each word."

 
Re: Custom AI profile and AI classes for you
Tryed with fury original's table, it behave the same, they only shot missile on insane, tryed with retail ai et ai_profile, behave the same too,
I guess problem are somewhere else.
$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1

 

Offline Androgeos Exeunt

  • Captain Oblivious
  • 212
  • Prevents attraction.
    • Wordpress.com Blog
Just did a playthrough of this AI on Very Easy.

Right, here are things I've noted.

- The AI DOES fire secondaries (at least, for seekers they do), and they do it with the gayest of abandon:



- The AI shunts power between shield quadrants, but they only seem to concentrate on one quadrant ONLY, even if you hit them from another angle.

- The AI does not use the afterburner to catch up to targets they are assigned to protect:


- AI-controlled ships tend to make friends with each other when chasing down a single target, usually a fighter:


My blog

Quote: Tuesday, 3 October 2023 0133 UTC +8, #general
MP-Ryan
Oh you still believe in fairy tales like Santa, the Easter Bunny, and free market competition principles?

 

Offline Fury

  • The Curmudgeon
  • 213
Re: Custom AI profile and AI classes for you
Afterburner use factor on lower difficulties should be trivial fix. Unfortunately I can't do anything about to which quadrant AI decides to direct power to, my guess is that this would be something Sushi could improve on for flag $smart shield management. I think the issue you're showing in your three last screenshots is fairly common in FS2, that is because AI does not do any distance or collision checks with other ships other than its current target. :(
« Last Edit: November 21, 2009, 04:24:25 am by Fury »

 

Offline Fury

  • The Curmudgeon
  • 213
Re: Custom AI profile and AI classes for you
Yeah, and even IF stated otherwise, as far as I can tell by looking at the code. :/ Turret/subsystem AI classes don't appear to do anything based on what I see in the code, although I thought I remember someone saying they COULD see a difference. I dunno.
I just tested $accuracy, $Friendly AI Fire Delay Scale, $Hostile AI Fire Delay Scale and $Max Aim Update Delay on turrets. Changing values of those flags did make a difference. So obviously AI classes work on turrets even though it is not readily apparent from looking at the code.
« Last Edit: November 21, 2009, 06:02:16 am by Fury »

 

Offline MatthTheGeek

  • Captain Obvious
  • 212
  • Frenchie McFrenchface
Re: Custom AI profile and AI classes for you
I can tell you AI classes do have an effect on turrets. When using the custom AI on turret, I noticed their rate of fire is increased considerably, actually they fire at the maximum rate of fire allowed.
People are stupid, therefore anything popular is at best suspicious.

Mod management tools     -     Wiki stuff!     -     Help us help you

666maslo666: Releasing a finished product is not a good thing! It is a modern fad.

SpardaSon21: it seems like you exist in a permanent state of half-joking misanthropy

Axem: when you put it like that, i sound like an insane person

bigchunk1: it's not retarded it's american!
bigchunk1: ...

batwota: steele's maneuvering for the coup de gras
MatthTheGeek: you mispelled grâce
Awaesaar: grace
batwota: oh right :P
Darius: ah!
Darius: yes, i like that
MatthTheGeek: the way you just spelled it it means fat
Awaesaar: +accent I forgot how to keyboard
MatthTheGeek: or grease
Darius: the killing fat!
Axem: jabba does the coup de gras
MatthTheGeek: XD
Axem: bring me solo and a cookie

  
Re: Custom AI profile and AI classes for you
Just tryed with "no mod" i have the same problem, i guess this is time for a fresh fs2 install  ;)
$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1

 

Offline Fury

  • The Curmudgeon
  • 213
Re: Custom AI profile and AI classes for you
actually they fire at the maximum rate of fire allowed.
That is governed by $Friendly AI Fire Delay Scale and $Hostile AI Fire Delay Scale, which in my tables happens to be 1.0 on all but very easy and easy difficulties. So yes, turrets on medium difficulty and above would be able to fire at rates specified in weapons table.

 

Offline MatthTheGeek

  • Captain Obvious
  • 212
  • Frenchie McFrenchface
Re: Custom AI profile and AI classes for you
I know, that's why I created a Turreted class which keeps the settings of the retail Captain class, in order to preserve balance :)
People are stupid, therefore anything popular is at best suspicious.

Mod management tools     -     Wiki stuff!     -     Help us help you

666maslo666: Releasing a finished product is not a good thing! It is a modern fad.

SpardaSon21: it seems like you exist in a permanent state of half-joking misanthropy

Axem: when you put it like that, i sound like an insane person

bigchunk1: it's not retarded it's american!
bigchunk1: ...

batwota: steele's maneuvering for the coup de gras
MatthTheGeek: you mispelled grâce
Awaesaar: grace
batwota: oh right :P
Darius: ah!
Darius: yes, i like that
MatthTheGeek: the way you just spelled it it means fat
Awaesaar: +accent I forgot how to keyboard
MatthTheGeek: or grease
Darius: the killing fat!
Axem: jabba does the coup de gras
MatthTheGeek: XD
Axem: bring me solo and a cookie