Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: killface on March 26, 2008, 09:48:52 pm

Title: ai_profiles.tbl not being read by FRED2
Post by: killface on March 26, 2008, 09:48:52 pm

I have modified the ai_profiles table heavily, to no effect.  I've read this site's old posts on the ai_profiles table, to no avail.  Basically, for some reason the game is not recognizing this table because when I open up FRED2 and go into the Mission Specs, FS2_RETAIL is my only choice, even though I've completely renamed that AI profile.  ai_profiles.tbl is in the right folder (i.e. same as all the functional tables), so I'm a tad confused.  I've attached the file here in case it turns out to be a formatting error (the table was constructed in notepad).  Thanks as always.

[attachment deleted by ninja]
Title: Re: ai_profiles.tbl not being read by FRED2
Post by: Tartarus on March 26, 2008, 10:45:46 pm
You need to save it as a modular table .tbm for it to be recognised by FRED
for ai_profiles it is xxx-aip.tbm, you can replace xxx with anything you want
Title: Re: ai_profiles.tbl not being read by FRED2
Post by: Goober5000 on March 26, 2008, 11:56:06 pm
You need to save it as a modular table .tbm for it to be recognised by FRED
No you don't.

Or rather, you shouldn't have to.  If you have to, it's a bug.
Title: Re: ai_profiles.tbl not being read by FRED2
Post by: Wanderer on March 27, 2008, 12:23:05 am
Ok.. I downloaded the tbl placed it into a separate mod directory and it worked exactly as it should have. So as far as i can see there is nothing wrong with the table file.

What build are you using? You do have the mod directory defined in FRED?
Title: Re: ai_profiles.tbl not being read by FRED2
Post by: Tartarus on March 27, 2008, 12:52:50 am
You need to save it as a modular table .tbm for it to be recognised by FRED
No you don't.

Or rather, you shouldn't have to.  If you have to, it's a bug.

My bad sorry I didn't have the mod directory set if FRED, it works as expected now.
Title: Re: ai_profiles.tbl not being read by FRED2
Post by: killface on March 27, 2008, 06:30:06 pm

"You do have the mod directory defined in FRED?"

What exactly does this mean?  All of my other modified tables - ships, weapons, music - have an impact on FRED2; i.e. when building a mission I can select my modified weapons, ships, music tracks.  But for some reason, this is not true for my ai_profiles.tbl, which is in the exact same folder as all the others.  Mission Specs reads FS2RETAIL as my only option, and that seems quite impossible as I've deleted that profile entirely.  This is build 3.6.9.  I am really quite stumped and it seems insane that I can't figure this out!
Title: Re: ai_profiles.tbl not being read by FRED2
Post by: Wanderer on March 28, 2008, 12:17:56 am
What i meant with that is that i thought you hadn't used '-mod zzzz' command line entry when using fred with mods

FS2 RETAIL entry is hardcoded and you cant really get rid of it. And for me the table you posted worked just fine. It added a new option to the pulldown menu just as it should have. Notice that game wont automagically swap the set ai profile to the new one. It happens only for/with new missions. In old missions it has to be set by hand.
Title: Re: ai_profiles.tbl not being read by FRED2
Post by: killface on March 28, 2008, 07:19:20 pm

Hold on...I've never had to do ANY command line entry to get my modded tables to work in Fred2 Open.  But I'm certainly willing to give it a shot, if it might work.  How exactly do I do it?
Title: Re: ai_profiles.tbl not being read by FRED2
Post by: Zoltan on March 28, 2008, 07:32:37 pm

Hold on...I've never had to do ANY command line entry to get my modded tables to work in Fred2 Open.  But I'm certainly willing to give it a shot, if it might work.  How exactly do I do it?

You don't need a command line if you are putting your tables in "freespace2/data/tables", but that's not recommended. To add the command line create a shortcut for Fred2, then right click on the shortcut then click on properties. In the "target" line add "-mod xxxx", xxxx being the name of the mod folder. That should be all you need to do.