Page 1 of 1

AI Includes files question!

Posted: Mon Aug 18, 2008 12:21 am
by jastaV
AICmnGuide.inc and AIGuide_XXXX Campaign.inc files are enlisted in the INCLUDES section of Setup excel foil for any campaign.

Copy of the two files, (AICmnGuide.inc and AIGuide_XXXX Campaign.inc) are also present in Includes folder of NCP default installation: all of these files are void indeed!

Do I we to edit a void AIGuide_XXXX Campaign.inc file for any 3rd party edited campaign too?

What the way, if any, these two files should be edited?

Thanks in advance for explanations

JastaV

Posted: Mon Aug 18, 2008 7:21 am
by PhilThib
For the time being, these two files are void because the AI instructions are still in the code. As long as the file is mentioned in the include, you must provide it, even if empty....if you do not include it in the setup, then you do not need it :indien:

Posted: Mon Aug 18, 2008 10:35 am
by jastaV
PhilThib wrote:For the time being, these two files are void because the AI instructions are still in the code. As long as the file is mentioned in the include, you must provide it, even if empty....if you do not include it in the setup, then you do not need it :indien:


Suppose, AI guide file for any specific campaign dictates informations useful to influence AI planning for that scenery.
That done, guess it will be not recommended to use AI guide file for a default campaign in a modded one where a mess of data, as VP, objectives, and so far have been changed........
AFAIK, it could be useful to do not mentione any AI guide file in the Includes section of Setup file, in new 3rd party campaigns

BTW, in future I hope modders and 3rd party editors will have chance to edit Ai guide file too!

Posted: Mon Aug 18, 2008 1:21 pm
by Pocus
There are now 3 commands that can be used to alter the AI behavior and Lodilefty is making use of them in some of the WIA scenarios. I guess he is using these files to put them there.

Posted: Mon Aug 18, 2008 1:31 pm
by lodilefty
AFAIK, these files don't exist in WIA.

I'm simply putting the AI commands in the scenario events file, with a check on the event to be AI >=1.... This way, we don't have to recompile the scenario to make changes.
Of course, the AI commands will thus only be active on turn 2, so the AI won't benefit on turn 1.... :(

Any "include" in Setup is simply a way to write common code to be used in several scenarios. WIA uses it for AutoRaise definitions, subfactions, and Cities....

"include' in events usually references another event file. Again, common code.

In WIA: Indian winter quarters, options, and in the campaigns, common code [1775 references all of the 1776 events this way] to avoid dulicating efforts