Scenario's Cities Not Loading Properly when Human

Androrc the Orc

Emperor
Joined
Apr 19, 2004
Messages
1,621
Location
Vienna, Austria
When I place a city in certain plots of my scenario in Civ4Col, and the player is human, the city doesn't load up properly - it has no population, no graphics, and the city's name is the first city of the civilization regardless of which name I put as CityName. The cities in plots below (in the WBSave's order) the city that doesn't load properly don't load at all. I am using a modified version of Matrix's Earth, with 42 civs (0-41) on the map (SDK maximum of 42 as well).

One of the plots in question is x=32,y=20; when moving the exact same city to plot x=32,y=22, it works perfectly. But making plot 32,20 have exactly the same characteristics (except for coordinate, of course) that plot 32,22 has gives me the same problems.

I imagine this to be a python break, both because of the way it's giving me problems (not giving a crash, but rather interrupting the process) and because it's breaking things according to their order in the WBSave. That doesn't mean the problem is necessarily in python coding and not in the sdk initializing of the city, though. I tried looking at the CvWBDesc.py to see if I could find something, but there doesn't seem to be anything that would give me an issue, specially only when playing as a human.

I believe this is not an issue specific to Civ4Col, which is why I have come here.
 
I had forgotten about allowing python exceptions to show up, so now I've done that... and the error is with this line of the CvWBDesc.py:

Code:
			self.city = player.initCity(self.plotX, self.plotY)

The error given was a C++ exception, so I'll be looking into the SDK now.
 
Back
Top Bottom