Size 0 cities

Koshling

Vorlon
Joined
Apr 11, 2011
Messages
9,254
Something is causing the AI to get size 0 cities (which hen cannot build anything). I suspect Python because the DLL doesn't allow pop reduction below 1, but a direct change to the population from Python would do it. I'll try to pin down a case where it's happening, but so far I'm just seeing the result after 500 turns of auto play - anyone else seen this?
 
Which AI is it? Starting ones, or ones who appeared later through barbarian settling? I don't remember ever seeing a city marked with 0 population myself.
 
I don't know of any Python that adjusts population! Especially that early in the game. The Immigration Event should be checked for minimum population size. The Immigration Mod does check for minimum population size so I doubt it is that.
 
I've seen in happen occasionally when I open up the World Builder on the GEM scenario from time to time to see how the AI takes to the map.
 
never seen it happen but probably the Barbs got to them before i did and they are ferocious since some update :)
 
I don't know of any Python that adjusts population! Especially that early in the game. The Immigration Event should be checked for minimum population size. The Immigration Mod does check for minimum population size so I doubt it is that.
The immigration Python does not seem to check right when the unit has been built so maybe with some specific timing or queued orders it can cause that issue?
 
The immigration Python does not seem to check right when the unit has been built so maybe with some specific timing or queued orders it can cause that issue?

The check for the city population > 10 for the Immigration mod was moved out of the Python and into the unit XML train condition. I have not gotten round to removing or commenting out that bit of code.
 
I have never seen this before, but I'm pretty sure there is code somewhere that divides by city pop, so having pop 0 cities will cause crashes as I don't think we ever expected cities to have 0 population.

Would it be possible to just add sticky-tape to CvCity that says if something tries to reduce a city below 0 pop it goes to 1 population and no further?
 
This makes me think that there totally should be a "Can work land tiles" bit that's enabled at Gathering or just Nomadic Lifestyle. All you get before it is your city tile and your palace income. Basically no effect beyond flavor since there's so little you can build that early on and unhealth will be eating up all of your food, but it would be an amusing addition.
 
This makes me think that there totally should be a "Can work land tiles" bit that's enabled at Gathering or just Nomadic Lifestyle. All you get before it is your city tile and your palace income. Basically no effect beyond flavor since there's so little you can build that early on and unhealth will be eating up all of your food, but it would be an amusing addition.

you might like it but i already had 1 issue with Barb's to many but if you want them to munch on you go right ahead :lol:
 
Back
Top Bottom