Minimum Founding Distance?

JebusHCripes

Chieftain
Joined
Sep 30, 2008
Messages
8
Where would I find this variable? I'm assuming it's a variable and not hard coded somewhere, because if it is, I'm going to be very sad ;)

Anyone point me in the right direction here? I'm thinking I just don't know the var name to look for, but I'll be damned if I can find any reference to it (at least not one that doesn't lead to a dead end) :(

Uh, in case it wasn't clear, I'm wondering where to find the var/def for the minimum distance you can found/build/colonize a new city. Default is 2, I need to find a way to drop it to 0.

Jebus
 
Assets/XML/GlobalDefines.XML
Code:
	<Define>
		<DefineName>MIN_CITY_RANGE</DefineName>
		<iDefineIntVal>2</iDefineIntVal>
	</Define>

Standard modding caveats apply: backup the original file first and/or copy the file to CustomAssets before you make the change.
 
Assets/XML/GlobalDefines.XML
Code:
	<Define>
		<DefineName>MIN_CITY_RANGE</DefineName>
		<iDefineIntVal>2</iDefineIntVal>
	</Define>

Standard modding caveats apply: backup the original file first and/or copy the file to CustomAssets before you make the change.

While I appreciate the effort, I believe that controls the size of a city's "cross" (the control zone to which you can assign whether a citizen works the tile or not).

That was the first thing I tried FWIW. I'd be a pretty sad modder if I didn't at least find that and try fiddling with it before asking for help ;)

Jebus
 
Then you're doing something wrong. ;) I verified that MIN_CITY_RANGE was the proper define by looking in the SDK before answering the first time.(CvPlayer::canFound(), see spoiler)
Spoiler :
Code:
	if (!bTestVisible)
	{
		iRange = GC.getMIN_CITY_RANGE();

		for (iDX = -(iRange); iDX <= iRange; iDX++)
		{
			for (iDY = -(iRange); iDY <= iRange; iDY++)
			{
				pLoopPlot	= plotXY(pPlot->getX_INLINE(), pPlot->getY_INLINE(), iDX, iDY);

				if (pLoopPlot != NULL)
				{
					if (pLoopPlot->isCity())
					{
						if (pLoopPlot->area() == pPlot->area())
						{
							return false;
						}
					}
				}
			}
		}
	}
But if you require further proof, here would be my test (on BTS 3.17; vanilla or warlords would be similar)
1) Start with a clean BTS CustomAssets
2) Copy <BTS Folder>/Assets/XML/GlobalDefines.xml to <My Games>/Beyond the Sword/CustomAssets/XML/GlobalDefines.xml
3) Edit the copied file so that MIN_CITY_RANGE is 0
4) Launch a new game, give myself 2 extra settlers in WB
5)
1223870859.jpg
 
Then you're doing something wrong. ;)

Clearly, I am doing something wrong then :/ When I make the change, I basically get a blank screen. I can see on the minimap that stuff is there (cities, units, etc.), but I can't see anything except terrain.

I'll have to look into it further, but regardless, thanks for the help! :D

Jebus
 
Back
Top Bottom