Catching the city overflow bug

Leoreth

Bofurin
Retired Moderator
Joined
Aug 23, 2009
Messages
38,182
Location
風鈴高等学校
I'd finally like to track down and fix the city overflow bug and fix it, but I need your help for that. I'd like to focus the efforts in this thread because they tended to get bogged down in the general bug report thread.

What I'm talking about is the bug that causes a civ to become super advanced because one of its cities produces insane amounts of commerce (and other yields too). I'm pretty sure there is a memory overflow somewhere because nothing else would produce numbers that high.

The problem with this bug is that it is very rare, and I haven't encountered it myself yet. The only way to fix it however is to be able to reproduce it. If I only have a save that includes an overflowing city, I cannot attempt to fix the problem, because I have no way to tell whether the attempted fix did address the issue.

So whenever you come across the overflow bug, please identify the city that is affected and then send me the newest save that doesn't feature it, but playing along causes it again. I hope we can find such a save.

Edit: Please make sure to also upload your sdkDebug file. You can find it in My Games/Beyond the Sword/Logs.
 
Can you add an exception if food, commerce or hammers go negative? If you can, then catch them and handle it as follows:
*log the event
*flush the hammers/food overflow
*recalculate the values

Can I have more than 100 autosaves?
 
I could, but I don't want to treat the symptoms.
 
I don't understand. What is "city overflow" bug? Like my games 2 months ago where the Varanasi is 99pop? Or it's something else I am yet to understand?
 
I don't understand. What is "city overflow" bug? Like my games 2 months ago where the Varanasi is 99pop? Or it's something else I am yet to understand?

There have been rare reports of things like a Turkish spawn where the Byzantines already have Tanks, or a Mughal spawn into a sea of independents with Machine Guns. It seems to happen very rarely and causes one AI's research to go absolutely insane and far, far ahead of everyone else to the point where they've got to be discovering a new tech every turn to be as far ahead as they are.

Might be like 99-pop Varanasi, but I don't think runaway population growth is the typical symptom. The typical symptom is runaway research.
 
Like, Rome already researches Industrialism at Mughal spawn and stay solid? Well that happens in the same game as the 99pop Varanasi game.
 

Attachments

  • Civ4ScreenShot0119.JPG
    Civ4ScreenShot0119.JPG
    169.9 KB · Views: 355
  • AutoSave_AD-1817 Turn 360.CivBeyondSwordSave
    AutoSave_AD-1817 Turn 360.CivBeyondSwordSave
    906.1 KB · Views: 78
Okay, I'll look at it.
 
*BUNP*

Has nobody encountered this bug since this thread was posted?
 
I just got it from building La Mezquita in Marakkesh. I get absurd commerce, production, and gold, but my science is in the negatives and my city is starving really quickly. I don't have the autosaves or screenshots on me ATM. Sorry!
 
This bug prefers Marrakus. I don't play often 600AD scenarios this period, but don't be afraid, I will have a material as soon as I play some scenarios, it appears at 80%. Except if the latest changes fix it. One friend of mine told me the problem is that my computer has only 2GB of RAM.
 
I just got it from building La Mezquita in Marakkesh. I get absurd commerce, production, and gold, but my science is in the negatives and my city is starving really quickly. I don't have the autosaves or screenshots on me ATM. Sorry!
At the moment means there are autosaves?

This bug prefers Marrakus. I don't play often 600AD scenarios this period, but don't be afraid, I will have a material as soon as I play some scenarios, it appears at 80%. Except if the latest changes fix it. One friend of mine told me the problem is that my computer has only 2GB of RAM.
I'm very sure that RAM is not the problem, but my memory management somewhere.

I'm very curious why Marrakesh seems to be affected the most here.
 
At the moment means there are autosaves?


I'm very sure that RAM is not the problem, but my memory management somewhere.

I'm very curious why Marrakesh seems to be affected the most here.

I have them, but they would be very inconvenient to get and transfer. I can probably get them to you in a week or so, after I get my parent's old computer with Internet.
 
Oh that's great, no need to hurry.
 
I was "lucky" today and met the bug again and again. Unfortunatly I only have a savegame, where the city is already overflowing. You will see why I didn't had the chance to get a better save.

When I noticed that I got this bug constantly I started trying to reproduce it. So far I can say that I only got the bug when I choose a later civ (the civs who start with auto-play). Everytime I started with Egypt I didn't get the bug.

Also worth noting is that every city that was overflowing, was independent or barbarian before it flipped to the corresponding nation. For example I had Angora (the city in Anatolia on the Uran), Varashinu (One of three first Indian citys) and Mediolanum (celtic) overflowing.

Am I right that you definitly need a save, where the overflowing city didn't started overflowing?
 
Yes. If you can still reproduce it, the starting save before an independent city flips would be enough.
 
I'm not excatly sure, but I think I got a save.

I was playing Greece, when I noticed that Arabia was running away in score. In my earliest Auto Save Arabia started running away after two or three turns. I'm not excatly sure which city is overflowing, because there's no city with the typical syndroms (stays always on one population or just grows every turn. But one city is definitly overflowing, because Arabia got Rifleman around 850 AD.

I hope this save can help. I played the last official release 1.11
 

Attachments

Thanks, I'll definitely look into it as soon as I can.
 
I've looked at the save, unfortunately Al-Quds is already affected. Are you sure you don't have an earlier save?
 
Back
Top Bottom