Author Topic: New feature: ai_profiles.tbl  (Read 5253 times)

0 Members and 1 Guest are viewing this topic.

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
New feature: ai_profiles.tbl
It's become apparent for quite awhile now that we've needed this, so I decided to just bite the bullet and do it. :) This combines the features from difficulty.tbl and the now-defunct UseNewAI command-line and mission flag to make one big übertablefile.

The nice thing about this is that unlike difficulty.tbl or the mission flag, you can have multiple profiles within your campaign.  (Thanks to Sesquipedalian for the suggestion.)  In addition to the retail profile (stored in the code, not the table file), you can create four additional profiles that you can configure whichever way you want.  You can specify which profile the game runs as default, and you can override the default in FRED on a mission to mission basis.  This is useful if you started FREDding a campaign using the retail AI but would like to use the new AI in some of the newer missions.

I'm still in the process of testing it, but it looks like it works pretty well and in any case it'll be in the new CVS build.  In the meantime, I've attached a sample table file so you can see what it looks like.  It's like an INI file in that you have a whole bunch of options that you can specify in any order.  Some of them are lists of values and some are AI flags.  Each is commented so that you can see what it controls.

There are a few neat settings in here.  There are a few bugfixes, but you can also try some other neat things like enabling the FS1 shockwave behavior so that shockwaves damage your subsystems. :)

EDIT: Oooops.  It looks like I uploaded my custom AI table instead of the retail one.  I'll upload the retail table when I get back home.

EDIT2: Okay, new version re-uploaded. :)

[attachment deleted by admin]
« Last Edit: November 24, 2005, 02:48:43 am by Goober5000 »

 

Offline StratComm

  • The POFressor
  • 212
  • Cameron Crazy
    • http://www.geocities.com/cek_83/index.html
Re: New feature: ai_profiles.tbl
How long do you think it will take for people to request more than 4 new AI types?
who needs a signature? ;)
It's not much of an excuse for a website, but my stuff can be found here

"Holding the last thread on a page comes with an inherent danger, especially when you are edit-happy with your posts.  For you can easily continue editing in points without ever noticing that someone else could have refuted them." ~Me, on my posting behavior

Last edited by StratComm on 08-23-2027 at 08:34 PM

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Re: New feature: ai_profiles.tbl
I'll try to wait a week before _officially_ asking about modular tables. :p
-C

 

Offline FireCrack

  • 210
  • meh...
Re: New feature: ai_profiles.tbl
Intresting...
actualy, mabye not.
"When ink and pen in hands of men Inscribe your form, bipedal P They draw an altar on which God has slaughtered all stability, no eyes could ever soak in all the places you anoint, and yet to see you all at once we only need the point. Flirting with infinity, your geometric progeny that fit inside you oh so tight with triangles that feel so right."
3.141592653589793238462643383279502884197169399375105820974944 59230781640628620899862803482534211706...
"Your ever-constant homily says flaw is discipline, the patron saint of imperfection frees us from our sin. And if our transcendental lift shall find a final floor, then Man will know the death of God where wonder was before."

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
Re: New feature: ai_profiles.tbl
why doesn't this get merged into the exsisting ai table? then this stuff could be done on a per entity basis, you could make diferent races behave diferently.
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline DaBrain

  • Screensniper
  • 212
    • Shadows of Lylat board
Re: New feature: ai_profiles.tbl
Wow this is a great possibility for SoL. :)

:up:
--------------------------------------------------
SoL is looking for a sound effect artist
Please PM me in case you want to apply
---------------------------------
Shadows of Lylat - A Freespace 2 total conversion
(hosted by Game-Warden)
----------------------------------

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: New feature: ai_profiles.tbl
Yep, i DLd it and noted that it offers just about everything we need for SoL AI...
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Re: New feature: ai_profiles.tbl
why doesn't this get merged into the exsisting ai table? then this stuff could be done on a per entity basis, you could make diferent races behave diferently.

That would add another layer of complexity.  It's complex enough as it is. :)

Let's see how the campaigns use it first.  Mission-based AI should be sufficient for most intents and purposes.

 

Offline Cobra

  • 212
  • Snake on a Cain
    • Skype
    • Steam
    • Twitter
Re: New feature: ai_profiles.tbl
can you explain it a little more simply for us kids? :p
To consider the Earth as the only populated world in infinite space is as absurd as to assert that in an entire field of millet, only one grain will grow. - Metrodorus of Chios
I wept. Mysterious forces beyond my ken had reached into my beautiful mission and energized its pilots with inhuman bomb-firing abilities. I could only imagine the GTVA warriors giving a mighty KIAAIIIIIII shout as they worked their triggers, their biceps bulging with sinew after years of Ivan Drago-esque steroid therapy and weight training. - General Battuta

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Re: New feature: ai_profiles.tbl
can you explain it a little more simply for us kids? :p

Download the file and read the comments.

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: New feature: ai_profiles.tbl
sounds intresting. il probibly play with it eventually.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline Cobra

  • 212
  • Snake on a Cain
    • Skype
    • Steam
    • Twitter
Re: New feature: ai_profiles.tbl
aha... i see, it kinda works like Rebel Assault II's difficulty manager, right? if it is, i can use this. :D
To consider the Earth as the only populated world in infinite space is as absurd as to assert that in an entire field of millet, only one grain will grow. - Metrodorus of Chios
I wept. Mysterious forces beyond my ken had reached into my beautiful mission and energized its pilots with inhuman bomb-firing abilities. I could only imagine the GTVA warriors giving a mighty KIAAIIIIIII shout as they worked their triggers, their biceps bulging with sinew after years of Ivan Drago-esque steroid therapy and weight training. - General Battuta

 

Offline CaptJosh

  • 210
Re: New feature: ai_profiles.tbl
In some respects it's like the AI difficulty settings from Command & Conquer: Red Alert's rules.ini file.
CaptJosh

There are only 10 kinds of people in the world;
those who understand binary and those who don't.

 

Offline TrashMan

  • T-tower Avenger. srsly.
  • 213
  • God-Emperor of your kind!
    • FLAMES OF WAR
Re: New feature: ai_profiles.tbl
Interesting..

I didn't know FS2 retail was set so the player doesn't recive full damage.
This is so wrong.
Me and hte AI should be on equal terms. Everyone should deal the same damage from the same weapons and fire them at the same speed and recive the full damage if hit. It's that simple.
Nobody dies as a virgin - the life ****s us all!

You're a wrongularity from which no right can escape!

 

Offline CaptJosh

  • 210
Re: New feature: ai_profiles.tbl
Then you lose difficulty scaling, TrashMan. If you want everyone to deal out and take the same damage, adjust your difficulty setting. Of course, the enemy AI starts to get a bit smarter when you do that...
CaptJosh

There are only 10 kinds of people in the world;
those who understand binary and those who don't.

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Re: New feature: ai_profiles.tbl
:bump:

Table updated with another new flag. :)

 
Re: New feature: ai_profiles.tbl
If I understand, does this mean you can use AI_type_yahoo for a mission, and set AI_type_yahoo up so that it contains various changes from the retail?  I never realised the AI was crippled so much, even on normal... and the game defaults to easy!  Using these tables, could a campaign author essentially override the difficulty setting, so they can have skilled, survivable AI pilots even if the player is on v.easy?  If so, thank christ: no more endless waves of laughably, pathetically poor Shivan pilots.

Anyway, I'm off to play v.hard.  While it's fair, the missions are designed around a 1vmany paradigm, so I'll get pwnzord. :)

 

Offline Cobra

  • 212
  • Snake on a Cain
    • Skype
    • Steam
    • Twitter
Re: New feature: ai_profiles.tbl
I didn't know FS2 retail was set so the player doesn't recive full damage.
This is so wrong.
Me and hte AI should be on equal terms. Everyone should deal the same damage from the same weapons and fire them at the same speed and recive the full damage if hit. It's that simple.

fun. wouldn't it be nice not to be able to hit anything? :p
To consider the Earth as the only populated world in infinite space is as absurd as to assert that in an entire field of millet, only one grain will grow. - Metrodorus of Chios
I wept. Mysterious forces beyond my ken had reached into my beautiful mission and energized its pilots with inhuman bomb-firing abilities. I could only imagine the GTVA warriors giving a mighty KIAAIIIIIII shout as they worked their triggers, their biceps bulging with sinew after years of Ivan Drago-esque steroid therapy and weight training. - General Battuta

 

Offline Sesquipedalian

  • Atankharz'ythi
  • 211
Re: New feature: ai_profiles.tbl
You can specify which profile the game runs as default, and you can override the default in FRED on a mission to mission basis. 
Um, how?
Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

The Scroll of Atankharzim | FS2 syntax highlighting

  

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Re: New feature: ai_profiles.tbl
Um, how?

In the mission specs window, eventually.  Until then, just put $AI Profile: <name> at the bottom of the #Mission Info section (above #Plot Info).  FRED will load and save it properly, but I haven't edited the Mission Specs window to add a drop-down box for it yet.