v 25, Bugs/Crashes reporting thread

Status
Not open for further replies.
Thanks. I changed that line 22 to
Code:
city.changeCulture(unitStr, false)
and it worked in a test where I set up a Machine Gun to get overrun by a barbarian Nanite Cloud (Nanite Clouds are great for test runs). The new code is on the SVN now.

I wonder what happened - I know the original Python routine worked when I uploaded it, but now it doesn't want to take the player argument.

My guess: "city" is a PyCity as defined in PyHelpers.py, not a CyCity.

The PyCity.changeCulture function does not take a player argument. It calls the CyCity.changeCulture function and supplies the owner of the city as the player number.
 
I did, and it still crashes. BTW, my graphics card is a ATI Radeon HD 4800 and it has at least 512 MB of dedicated memory.

Your mod is nice, BTW.

I had a HD 4650 with 512MB vid ram and at version 17 had to upgrade if I wanted to play Huge or larger Maps and/or have more than 7-10 AI. I also turned the Graphics options down, 1st on medium and then eventually to low. Stopped using animations too. And single unit graphics. This helped with the 4650, but as the game progressed and more cities and units were in the game so did the graphical CTDs increase.

So I upgraded to a MSI R6450 vid card with 2GB DDR3 ram. Graphics have not been a problem since. Card cost me $65 on NewEgg. Probably cheaper now.

JosEPh :)
 
Here are two screenshots from the same savegme.
SVN3471 loaded first with 3455 dll, then with the 3469 dll.
(Civic upkeep difference comes from the tweaks introduced since svn3455.)
3455: 59+5+634+211+136 = 1045
3469: 59+5+634+403+1266 = 2367

Assuming that in the new inflation system 100% is the 0% in the old system, the bug may be that in the new system the inflation value is already the total expenses value.

Notice that the inflation value should be the total expenses value because 59+5+634+403 = 1101, so the inflation should only be 165 (not 2367).
The calculation of the inflation value is wrong besause it adds 1101 to 1266 while 1266 is already the unit cost, unit supply, city maintenance and civic upkeep WITH inflation.
I hope this helps.

I'm working on inflation bug. Is it possible to have a savegame, so that I can check if my fix is ok or not ?
 
Resources, improvements, and buildings seem to randomly float off of the ground.

Civ4ScreenShot0058.jpg


I have the lowest graphic settings. Is this a known bug?
 
Resources, improvements, and buildings seem to randomly float off of the ground.

I have the lowest graphic settings. Is this a known bug?

Yes, it is a known issue with Viewports. If you go to the military advisor and then exit (and thus re-initializing the viewport), it will go away most of the time.
 
Yes, it is a known issue with Viewports. If you go to the military advisor and then exit (and thus re-initializing the viewport), it will go away most of the time.

1. Is there any way I could reduce the frequency of occurrence? Does viewport size affect it?

2. Do you anticipate that this bug will be fixed? If so, how soon?
 
Civic Upkeep is at 0 since the Inflation change. All Civics read 0 cost.

JosEPh
 
1. Is there any way I could reduce the frequency of occurrence? Does viewport size affect it?

2. Do you anticipate that this bug will be fixed? If so, how soon?

1. Not really unfortunately, it is one of the few bugs that still remain in Viewports.

2. Koshling is in charge of that stuff, and he was unable to find a solution to it in the two months or so that he was actively developing Viewports, so I do anticipate that it will be fixed eventually (it is very annoying), but not soon.
 
The High Cost Civics cost 1 gold, all the rest, Low and Medium cost 0 Gold on upkeep.

JosEPh
 
@ls612/Koshling/AIAndy,

Attached is a new module which causes c2c to crash out while starting (uncached XML). Interestingly enough it does check the validity of the XML first. Goes under Modules/DancingHoskuld/Subdue_Animals
 
Latest changes (Rev 3473) cause the game to freeze on loading a save game or creating a new one.
Reverting to Revision 3471 solves this problem.

I suspect the python fix for The Alamo, the changes on the culture for athletic field respective playing field are simple xml-changes and should normally not cause a freeze.
Usually when something like that happens, it might be that you need to do a re-boot, then try again.
Thanks, that did the trick.
Apologies to the guy in charge of the Alamo, obviously the bug was between my shoulders.
 
Hi,

I Updated the SVN with new DLL that will fix (I Hope) Slowdown and Inflation Problems.

I have worked with Joseph's Savegame for the examples. I Have a quite old Computer (Proc E8400, 4Go RAM, 1Go GT8800 vidéo)

Slowdown due to validateCommerce:

I manage to Profil the turns 348 & 349, with and without that call :

Code:
turn 348 :     4 min 13
turn 349 :    18 min 12

The debug output shows a lot of Mismatch Commerce (53939 times in 2 turns :eek:)


with fix (comment the validateCommerce() call):

Code:
turn 348 :     2 min 53
turn 349 :     8 min 02

I think that was the origin of the slowdown everyone experiments since few SVN updates.


Regarding Joseph's Savegame, there is still another problem causing slowdown, that has to be analysed in details :

Times with fix :
Code:
turn 346 : (the turn just after the save is loaded) : 15 min 59
turn 347 :                                             2 min 43
turn 348 :                                             2 min 53
turn 349 :                                             8 min 02




Inflation fix:

The bug in inflation calcul has messed up all our savegames. So I introduce a fix that will reset to 10000 (0 %) the inflation when recalculating due to new DLL.

I try with Joseph Savegame, it start with 0 inflation, and after 20 turns, inflation is risen to 43. I don't have enough experience with inflation in C2C to check if its OK, but I think it's now working better than before.
We'll have to wait Koshling for more infos.



I don't have much experience with the cvgamecoreDLL, so consider those fixes as experimental.
feedback is needed :mischief:.

I attach the profiler / debug output / BBAI files for those that want to go further
 

Attachments

@ls612/Koshling/AIAndy,

Attached is a new module which causes c2c to crash out while starting (uncached XML). Interestingly enough it does check the validity of the XML first. Goes under Modules/DancingHoskuld/Subdue_Animals

This one is lower priority for me ATM, as it will not affect the release of V26. It is important, but I want to look into the Civic Upkeep issues before I work on this one.
 
This game is stuck in an endless loop of some sort. End the turn and everything goes normal, all AI players take their turns, but after the Barbs take their move the game just keeps thinking. Odd thing is that you can access everything, including the Game menu, but the little man keeps running and running.

I tried loading up old save games, but to no avail. Whenever I would get to this particular turn, the loop would appear. This originally happened with Rev 3456. I had reverted to that one because of all the inflation issues. Rev 3485 makes no difference in the behavior.

View attachment C2C.7z
 
@calvitix:

I'm still getting loads of commercemismatched lines in the output of the debugger, so I don't think your fix for that was entirely successful.
 
The High Cost Civics cost 1 gold, all the rest, Low and Medium cost 0 Gold on upkeep.

JosEPh

This was fixed for me on the latest SVN, I think the issue was linked to inflation looking through the debugger, but try again now, it should be working OK.
 
Status
Not open for further replies.
Back
Top Bottom