Version 0.78 Discussion Thread

Thanks for the reply!

I don't know if you are interested in adding code which only or mainly benefits mods that use BBAI instead of the main game, but if you are, some observations so far:

CvSelectionGroup::line 1517
I'd change this line to the one below to take into account 'dropships':
Code:
if( (canMoveAllTerrain() || pTargetUnit->plot()->isWater() || pTargetUnit->plot()->isFriendlyCity(*getHeadUnit(), true)) && generatePath(plot(), pTargetUnit->plot(), 0, false, &iPathTurns) )

CvSelectionGroup::isAmphibPlot should look like that to work well with dropships:

Code:
	//return ((getDomainType() == DOMAIN_SEA) && pPlot->isCoastalLand() && !bFriendly && !canMoveAllTerrain());

	if (getDomainType() == DOMAIN_SEA)
	{
		if (pPlot->isCity() && !bFriendly && (pPlot->isCoastalLand() || pPlot->isWater() || canMoveAllTerrain()))
		{
			return true;
		}
		return (pPlot->isCoastalLand() && !bFriendly && !canMoveAllTerrain());
	}
	return false;

CvUnitAI::AI_pickupStranded line 18356
I'd change this to:
Code:
if( !(pLoopPlot->isCoastalLand()) && !canMoveAllTerrain())

CvUnitAI::AI_assaultSeaReinforce
I'd change the three occurences of 'if (pLoopPlot->isCoastalLand())' to:
Code:
		if (pLoopPlot->isWater() && !pLoopPlot->isCity())
		{
			continue;
		}
		if (pLoopPlot->isCoastalLand() || canMoveAllTerrain())
		//if (pLoopPlot->isCoastalLand())

Of course for non-Planetfall purposes you can leave out the '&& !pLoopPlot->isCity()'.
 
No effect whatsoever (well except the time it takes to check if a unit canmoveallterrain). Is that a good thing or a bad thing? :mischief:
Anyway, I just mentioned it for the benefit of other mods like Dune Wars.
 
Sorry for a real newbie question, but I have not seen this anywhere in the logs, and I have not used Better AI since the old days but does it still do the following, If I download the 3.19 BTS better AI:

1)Does the new AI upgrade units, - I can't begin to tell you how much this frustrates me, being attacked by Horse archers in the year 1928!
2)Does it use siege units to actually take cities?
3)Does it plan for wars in the long term? not just drop a stack of swordsmen in your empire when you have riflemen and hope for the best?

lastly - As I will use this multiplayer with my friends, will it cause sync errors?

Thanks for any questions anyone can provide, and keep up the good work, CIV IV has always been a brilliant game let down by the computer AI.
 
Back
Top Bottom