Author Topic: How do I modify the AI?  (Read 1371 times)

0 Members and 1 Guest are viewing this topic.

How do I modify the AI?
I want to enable the following features, but I'm not sure how, though I have figured out there's a table file somewhere I can edit.


$big ships can attack beam turrets on untargeted ships:
$smart primary weapon selection:
$smart secondary weapon selection:
$allow rapid secondary dumbfire:
$huge turret weapons ignore bombs:
$hack improve non-homing swarm turret fire accuracy:
$shockwaves damage small ship subsystems:

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 
Re: How do I modify the AI?
That just tells me the stuff in it, it doesn't tell me where the ai file is or anything like that. That's where I found the definitions. :P

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: How do I modify the AI?
FS2 retail doesn't have one. There may be one in the media VPs but what I did last time was simply nick the one on there and stick it in a file called ai_profiles.tbl
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Shade

  • 211
Re: How do I modify the AI?
It isn't anywhere until you make it, as the retail AI profile is hardcoded in. Once you make one with the changes you desire, it goes in the data\tables folder (you should also use a mod directory so you can easily turn it off again without a fuss, by the way).
Report FS_Open bugs with Mantis  |  Find the latest FS_Open builds Here  |  Interested in FRED? Check out the Wiki's FRED Portal | Diaspora: Website / Forums
"Oooooooooooooooooooooooooooooooooooooooh ****ing great. 2200 references to entry->index and no idea which is the one that ****ed up" - Karajorma
"We are all agreed that your theory is crazy. The question that divides us is whether it is crazy enough to have a chance of being correct." - Niels Bohr
<Cobra|> You play this mission too intelligently.

  

Offline Fabian

  • AI Code Modulator
    Temporal Mechanic
  • 25
Re: How do I modify the AI?
And its really better if you use a modular table, so put a file lile:

fabian-aip.tbm into the data/tables/ folder with the necessary attributes like:

[...]
$AI Profile: "name"
+nocreate
$AIoption: foo

Best Wishes,

Fabian