Thread: Civ4 SGOTM 2
View Single Post
Old 03-08-2006, 12:17   #36
socralynnek
Moderator
 
socralynnek's Avatar
 
Join Date: Nov 2004
Location: USS Defiant
Posts: 3,827
Default

GPP could also be very useful in our capital if we don't know what to do with spare pop.

And I do think that we can research at 50-60% and break even. In the savegame you posted we could even be at 70% or so.

Want to calculate it:

It seems the formula is: DistanceMaint = (Pop + 7) * 2.5 * Distance/DistanceScale * Building_m * WorldSize_m * Handicap_m (CVCity.cpp line 4899 if someone has the SDK)

Building = 0.5 if courthouse otherwise 1
Handicap =0.9 for monarch
worldsize=0.8 for standard

DistanceScale = (MapHeight + MapWidth) {from CvMap.cpp L925} (here probably 84+52=136, or what is size of a standard fractal map?)


So in our case:

(Pop+7) * 2.5 * dist/136 *0.8*0.9 =(pop+7) * dist / 75.5 without courthouse

assuming our cities are 40 tiles on W-E axis and 20 tiles on N-S axis apart (dist 50) this means:

at size 1: dist cost 5.3 (probably 5 cause of rounding down)
each additional pop costs o.66 gold

if both cities are at size 1 we already produce 13 trade (8 from Palace), so we should be able to spend 8 beakers per turn at start.

phew, that was hard...
__________________
Being without a signature since November 2004.
socralynnek is offline   Reply With Quote