Bug Reports and Technical Issues

Oh, that doesn't look good. Apparently my solution to prevent units from advancing into an impassable feature after winning had some side effects.
Following up: I've run some tests and apparently now attacks and advancing both cost one move. Notice that even when the MBTs can advance they have lost all movement points even though they are supposed to have one left. Since desert requires 2 moves to enter, apparently they spend all their moves trying to advance into the tile, which in itself is weird behavior because your last movement is usually always successful as long as you have one move left.

Anyway, I have isolated the code segment that causes this behavior, but I am not sure how. Apparently I don't understand how the movement rules work as well as I thought I do. Will run more tests tomorrow.
 
The game works now, but it crashes sometimes at random intervals. Is there a way to autosave each turn so I can easily reload the game where I was?

I didn't save so I can't have a file on hand, but I'll tell you the two instances if this of any help. One of them I was playing as Arabia (600 AD start) and had completely taken over Spain and portugal and decided to attack France. I had already captured two french cities and was about to capture Paris when Italy all of a sudden declares war on my and captures my easternmost French city (south eastern France) and as soon as Italy captured it the game crashed.

The second I was playing as China (3000 BC start) and the game crashed not long after founding Touism. I had traded a few techs with India as well.
 
When I got a cultural flip, I did get 2 options to disband the city. See screenshot. Unfortunately, I can't reproduce it with the autosave of that turn. Do you want me to upload it anyway?
 
The game works now, but it crashes sometimes at random intervals. Is there a way to autosave each turn so I can easily reload the game where I was?
Open _Civ4Config in the Beyond the Sword folder. You can set the autosave interval and the number of autosaves being kept there.

When I got a cultural flip, I did get 2 options to disband the city. See screenshot. Unfortunately, I can't reproduce it with the autosave of that turn. Do you want me to upload it anyway?
That's weird, maybe I can figure it out from the code. A save isn't necessary if the solution isn't reproducible.
 
When isn't it? Seems like you're addressing it all the time.
Will you do something to avoid this, at some time?
Spoiler :
OVqbfXa.jpg
 
Hope all this info can help you eventually find what causes this...
It did, thanks for all your trouble. I don't know if it's unfortunate or fortunate, but the reason turned out to be something I've already fixed in the recent revisions. It was the button for the Canadian embassy. I assume it had been placed in Ambon, leading to a crash because the graphics could not be found.

If you want to continue on your current revision and want to avoid the crash in the future, open CIV4ArtDefines_Building.xml in Assets\XML\Art and search for the following:
Code:
		<BuildingArtInfo>
			<Type>ART_DEF_BUILDING_CAN_EMBASSY</Type>
			<LSystem>LSYSTEM_1x1</LSystem>
			<bAnimated>0</bAnimated>
			<fScale>0.6</fScale>
			<fInterfaceScale>1.2</fInterfaceScale>
			<NIF>Art/Structures/Buildings/WWBank/WWBank.nif</NIF>
			<KFM/>
			<Button>Art/Interface/Buttons/Civilizations/Canada.dds</Button>
		</BuildingArtInfo>
And change the <Button> line as it appears here.
 
Brilliant, it works ! Actually I played on in the meantime, till 1925, when again the same ctd appeared, and I wasn't in the mood to hunt down yet another guilty city, but your scripting instructions worked. Thanks again !
 
Great!
 
Endless loop bug with Inca. Hit end turn. SVN 831.
Update: the game gets stuck during the American turn. If I collapse them, it gets stuck during the Arabian turn. If I collapse them, it gets stuck during the Moorish turn. Only with all of them dead you reach the next turn. This is not going to be easy.

Edit: okay, sorry, but I'm going to give up on this for the moment. Until someone else encounters a similar bug I will consider this an uncommon glitch.
 
Bug: China claims the Chinese city of Hangzhou. Hit end turn for the congress. SVN 831. (DoC Prussia b)

KeyError: Pythex when making peace with Turkey. (DoC Prussia)

Also, I saw that Brazil could claim Agadir in Congress. (different congress) I don't see how that city is in their influence zone.

Hint 32 is now outdated. ("Settling a city on a resource will yield full production and commerce, as if the appropriate improvement had been built on the tile.")
 
I'm getting a blank technology adviser screen and then a CTD across all scenarios after updating to the latest revision. Running VD, if that's relevent.
Okay, got to the bottom of this. There are actually two issues, one is resolved with the recent commit.

The other is related to Canada: no city art style is defined for them so VD is technically not compatible any more. This has likely not affected your games because under previous conditions the crash would only happen when Canadian cities actually appear in the game. The change to caching art styles has made that problem manifest itself right when the map is initialized.

Usually I don't maintain VD between releases but because I had to do this anyway to localize the crash, I have appended the file to change to fix this. It goes to Assets\Modules\Varietas Delectat\XML\UnitArtStyles&CivInfos\, overwrite as usual.
 

Attachments

Bug: China claims the Chinese city of Hangzhou. Hit end turn for the congress. SVN 831. (DoC Prussia b)

KeyError: Pythex when making peace with Turkey. (DoC Prussia)

Also, I saw that Brazil could claim Agadir in Congress. (different congress) I don't see how that city is in their influence zone.

Hint 32 is now outdated. ("Settling a city on a resource will yield full production and commerce, as if the appropriate improvement had been built on the tile.")
You're keeping me busy these days, aren't you? All noted.

Also, "pythex" is catching on, isn't it?
 
You're keeping me busy these days, aren't you? All noted.

Also, "pythex" is catching on, isn't it?

I'm sorry. I won't bother you anymore with bugs I encounter. :p
 
No please go on :)
 
Bug: China claims the Chinese city of Hangzhou. Hit end turn for the congress. SVN 831. (DoC Prussia b)

KeyError: Pythex when making peace with Turkey. (DoC Prussia)

Also, I saw that Brazil could claim Agadir in Congress. (different congress) I don't see how that city is in their influence zone.

Hint 32 is now outdated. ("Settling a city on a resource will yield full production and commerce, as if the appropriate improvement had been built on the tile.")
All taken care of, wait for the commit.

The first was because all the dialogs only appear the next turn after the congress is triggered, but the possible claims where already selected on this first turn, leading to inconsistencies if cities change hands in the meantime. I've moved the claim selection to the following turn to avoid this problem.

For the second, it didn't prevent the human player from making claims in a congress after a lost war, leading to this error.
 
Hi guys, I'm new to this thread ... any suggestions why my 600AD and 1700AD scenarios (v1.12) crash to desktop everytime directly after loading? ... I see the Initializing - Init Graphics - Setup Map - Finishing ... then black screen and ct ... 3000BC works without any problems.

Thanx for any help
 
Back
Top Bottom