• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

Bug Reports and Technical Issues

I feel I've seen this error before here, but I can't find it. Basically the 600 AD start bugs out before you get to the selecting your civilization part.
 
I feel I've seen this error before here, but I can't find it. Basically the 600 AD start bugs out before you get to the selecting your civilization part.
I have seen this too. I'm attaching an image of the bug to help fix it.

Civ4ScreenShot0000.JPG

Also, in the 3000 BC scenario, the Ottomans have spawned in the classical age with Poti as capital, therefore not finishing their autoplay to their true spawning date. Save attached.
 

Attachments

Do you intend to work on fixing that, or was that intended as a report? Just so I know if I should make a note of it.
I can't fix it since I can't figure out what's causing it.
 
Latest Git version.
Got this cascade of errors after start of a turn. Next turn game crashed.
(1/2)
20201007211556_1.jpg 20201007211618_1.jpg 20201007211620_1.jpg 20201007211622_1.jpg 20201007211623_1.jpg 20201007211625_1.jpg 20201007211626_1.jpg 20201007211627_1.jpg
 

Attachments

  • 20201007211556_1.jpg
    20201007211556_1.jpg
    640.7 KB · Views: 107
  • 20201007211618_1.jpg
    20201007211618_1.jpg
    494.5 KB · Views: 97
Thanks. I will try to find out what is happening. The crash is concerning.
 
In the following turn, Mongolia takes my city Herat and I will thereafter get red "Player India research and sum of city research do not match" warnings every turn. I've found a similar warning reported here in post #3005, and there's this thread too.

This has occurred for me in other saves too, which I could dig up and share if helpful. I've deduced that this is related to my usage of the "move city" feature in WB. I use this feature to solve the conquering-a-badly-placed-city problem. (I'd love if there were a way to move cities within the DoC mechanics, but that's a discussion for another thread.) One way this error seems to occur is if I conquer a city, move it, and then lose it later down the road, as is the case with Herat.

Since I haven't found a way to solve this in worldbuilder, it ends up being a save-breaking bug for me :(

I understand bugs caused by WB may not be prioritized... As a workaround, might there be a python console way to make the sums match? Is there any way to decompile a save game and edit as text? I also considered commenting out the code that reports these errors in CvGameCoreUtils.cpp, but decompiling and recompiling the .dll looks cumbersome. The warnings are not suppressed by changing BUG>System>Screen Logging Level. Any way to salvage my save is greatly appreciated!
 

Attachments

Thank you for reporting this. Can you describe exactly what you did? You moved Herat, and then later it was conquered by the Mongols, and that triggered the error? Do you have a save where Herat is in its original location?
 
Thanks for looking into this. Here is a save I had made immediately after taking the city but before I moved it one tile north. I must have moved it either later this same turn or soon after. It was called Bhakri before I moved it. The automatic renaming when moving a city is nice.

If you move the city and allow the Turks to immediately retake it, the error doesn't seem to occur, so maybe it doesn't happen until after the city has left resistance. I'll play around and see how I can replicate it. I believe I've also seen this error occur when a moved city is flipped.
 

Attachments

Thank you for helping investigate this.
 
I finally got the event handler for unit spawns working. It seems to also work for flipped units but drafted units don't get renamed at all. The unit names I get upon spawn are identical to the names I get when I settle my first city.

I've tested my changes by giving myself caravels to test the conqueror events as Congo, and I got mixed results with the resulting unit names. The ones with unit types that I already have were given incremented names, while the ones with unit types I don't have weren't.

Spoiler :
tfO7Dmd.jpg
my3928T.jpg
 
Unsure how to respond to this without knowing your implementation, and I am not familiar with BUG's dynamic unit names either. I only integrated this module when integrating BUG as a whole, so in essence you are trying to fix issues with the dynamic unit names module here that I have limited knowledge of.

Maybe it helps to do a code review?
 
Unsure how to respond to this without knowing your implementation, and I am not familiar with BUG's dynamic unit names either. I only integrated this module when integrating BUG as a whole, so in essence you are trying to fix issues with the dynamic unit names module here that I have limited knowledge of.

Maybe it helps to do a code review?

I copied the code from onGoodyReceived (with minor adjustments) since the rename process there could also be applied to newly-spawned units, and it already handles what to do with city-based names when no cities have been settled. The parts that handle unit counts used in unit renaming hasn't been changed at all.
 
Whenever I win Historical victory it says Victory Files not loaded (or something like that) and the game crashes.
I need more information than that.
 
Oh nevermind I now what's causing the problem. This actually only happened when I won the first time (I only won 2 times so that's why I forgot) with Maya. It actually said that it couldn't locate Sounds/Soundtrack/Victory and that's why it crashed but after that it stopped crashing when I won.
P.S. This question is off topic but I'm just very curious, did you ever play DoC? And if you did have you ever won?
 
Odd, it looks like it's not just Tamils. Just had the same issue with Egypt.
This is the latest git version
 

Attachments

  • Screenshot (136).png
    Screenshot (136).png
    1.6 MB · Views: 2,675
Back
Top Bottom