Single Player bugs and crashes v36 plus (SVN) - After the 24th of October 2015

Status
Not open for further replies.
Above posted when using SVN 9291. Now using SVN 9315, still does not get to the next turn on my XP system. I do get extra prompts regarding criminal units before it CTDs.

Will try again, after a few more updates. More often than not when you fix someone elses CTDs - it also fixes mine. :)

We may have some differing options. If that's the case then it becomes important to identify the differences.
 
SVN 9265. This is a game I played a few weeks ago (see attached save game, just hit enter). I move my doomstack towards enemy territory and place it on a tile with 50% defense bonus. The next turn, the AI attacks me with its own combat stack, and it is a disaster for the AI. He loses almost 100 units, I lose not a single unit. Also, his support units (like battering rams) now lost their escorts, allowing me to kill another 50 or so units the next turn, again without losses on my side.

Basically the AI handed me a massive victory on a silver platter. A defeat of such a size cannot be explained by mere bad luck. So what happened?

1) Is there a miscalculation? or
2) Does the AI just walk along predetermined paths and didn't notice my stack standing in the way? Or
3) does the AI just go RAAH ME SMASH ENEMIEZ without bothering to calculate whether it is going to be a victory?

I have tested this save twice. The AI attacked both times, with the same disastrous result both times.

Well... I ran the save and the AI didn't attack. Unfortunately this, of course, means I cannot really look any deeper at this particular situation. I did carefully watch the code as it processed through, looking for any oddities. Sadly, it didn't make the same mistake.

This is not to say that some improvements cannot or should not be made but it doesn't help not knowing exactly where an issue exists.
 
Yeah, I have no idea why the Great Doctor was wandering around with a hunter stack either. Maybe because it has the Health Care Unit combat class? Anyway, if this is actually something that's desired by others, perhaps a change to its priorities should be considered, if possible. Specifically, I think actual combat stacks, notably the primary stack-of-doom, should have a much higher priority on Great Generals if the AI is at war. If the AI is at peace, sending GGs along with hunters makes sense to build experience, but not during war.
A complex issue to look into later.
 
Thanks for fixing the crash. I was aware of the lot-of-criminals issue, but I didn't know it would cause such a big crash. Thanks for your help :).
 
We may have some differing options. If that's the case then it becomes important to identify the differences.

Well I started this game (months ago) initially using default bug options - just to test a few things (did not intend to play long!). I did alter a few options as the game progressed - but not many.

Today I emptied the UserSettings folder. Loaded the game, selected playnow (as per Joe's guidelines) to clear any hidden caches. Loaded the savegame (using bug defaults) - same result CTD.

So I do not think it is differing options.

The only pre-set options in the SEM+ map script are:

Option=GAMEOPTION_MOUNTAINS
Option=GAMEOPTION_HISTORICAL_WONDERS
 
What happens if you click Continue instead of Ignore?

So far, an endless cycle of exceptions continue. They all basically say this but the 0x# changes each time:
Code:
First-chance exception at 0x76cfc41f in Civ4BeyondSword.exe: Microsoft C++ exception: xercesc_3_1::NumberFormatException at memory location 0x0018b248..

At this point the debug dll won't complete loading even if the debugger isn't attached.

If I ignore a few times I get to this point:
Code:
First-chance exception at 0x76cfc41f in Civ4BeyondSword.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
If I continue from there it says 'Something Happened' after a red x and the whole thing crashes.

Taking out all those <KFM/> lines and reloading then leads to another string of first chance exception errors that leads to an Error:
"XML parsing SAX error:
Assets\xml\Art\CIV4ArtDefines_Building.xml:
element'Button' is not allowed for content model
'(Type,LSystem,bAnimated,fScale,fInterfaceScale,NIF,KFM,Button)'
at line 389"

Referring to that line, it's:
<Button>,Art/Interface/Buttons/Buildings/Factory.dds,Art/Interface/Buttons/Beyond_the_Sword_Atlas.dds,7,8</Button>
Which doesn't seem off so far as I can tell. Maybe something IS wrong with this somehow.
This, btw, refers to this type:
<Type>ART_DEF_BUILDING_INDUSTRIAL_PARK</Type>

I then get another error:
LoadXML call failed for xml\Art\CIV4ArtDefines_Building.xml

At that point it's pretty much the domino is tipped. Due to this xml file failing to load, it's all downhill from there.



So then I checked the exceptions and my C++ exceptions block is checked. Removing that I still hit the problem with the Industrial Park and that art define file fails to load but then it goes on if I ignore it.

It reaches the same eventual point, the following assert:
Code:
Assert Failed

File:  CvArtFileMgr.cpp
Line:  101
SVN-Rev:  9313
Expression:  false
Message:  ArtInfo: 'ART_DEF_BUILDING_CULTURE_AFRICAN' was not found

Ignoring that, I get:
Code:
Assert Failed

File:  CvArtFileMgr.cpp
Line:  101
SVN-Rev:  9313
Expression:  false
Message:  ArtInfo: 'ERROR' was not found

----------------------------------------------------------

THEN, finally:
Code:
Unhandled exception at 0x05233141 (CvGameCoreDLL.dll) in Civ4BeyondSword.exe: 0xC0000005: Access violation reading location 0x00000194.


The oddest thing I can tell from this is that it's confusing why the game is loading fine with the final release version, which it is. Obviously, there is a very real problem with the building art file. Particularly the Industrial Park button if I'm guessing.

EDIT: I noticed after updating that someone had edited the art defines file but that now just means it goes directly to the Button error and then collapses as explained from there.

EDIT: NVM, I figured out I just have to revert to the building art define xml as DH had left it last.
 
Last edited:
Hi. After recent SVN update, I have strange bug. I can't build any units. I can add them to the queue, but they didn't spawn after their building.
I use 9319 SVN with Space colonization modmod and manually enabled Atompunk tech (Atompunk alt-timeline). There is the save:
 

Attachments

  • Save.rar
    6.3 MB · Views: 47
I found the posting for http://forums.civfanatics.com/threads/rfc-huge-earth-map-for-c2c.570168/ and because that map installed C2C by SVN new, hoping with that map it will work within the 3GB ram border.
I face several problems:
1) I start with a map being deliveered by svn with the installation, and with *all* I have no interface when start the game. (I start in Windows mode)
2) When I choose the RFC huge Map I get a CTD direct at initialization and a mini dump (attached here)
3) the only C2C working for me is C2C v36
 

Attachments

  • MiniDump_8782.7z
    10.9 KB · Views: 28
SVN 3919 (a shadowclaw has reported) Units buiding but not appearing . No mod mods being used just good old C2C SVN 3919. I think its all empires including non human control.
 
I can confirm the above see pics, tried to build, it list them being built, but they are NOT there under current SVN. .. .
 

Attachments

  • workb1.JPG
    workb1.JPG
    370.9 KB · Views: 41
  • workb1.JPG
    workb1.JPG
    370.9 KB · Views: 36
  • workb.JPG
    workb.JPG
    314.2 KB · Views: 61
Can confirm that the bug exists in SVN3919, but a revert to SVN3918 does NOT have the bug. That should help track it down.
 
Uh, oh... Ok, back up to 3918. This is a deeper issue then for the MP stuff. (grumbles)

EDIT: Ok, I found the flaw. It's still a valid fix, but I had a typo in it. ugh. Sorry folks. The compiler is working on resolving now.
 
Last edited:
So far, an endless cycle of exceptions continue. They all basically say this but the 0x# changes each time:
Code:
First-chance exception at 0x76cfc41f in Civ4BeyondSword.exe: Microsoft C++ exception: xercesc_3_1::NumberFormatException at memory location 0x0018b248..

At this point the debug dll won't complete loading even if the debugger isn't attached.

If I ignore a few times I get to this point:
Code:
First-chance exception at 0x76cfc41f in Civ4BeyondSword.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
If I continue from there it says 'Something Happened' after a red x and the whole thing crashes.

Taking out all those <KFM/> lines and reloading then leads to another string of first chance exception errors that leads to an Error:
"XML parsing SAX error:
Assets\xml\Art\CIV4ArtDefines_Building.xml:
element'Button' is not allowed for content model
'(Type,LSystem,bAnimated,fScale,fInterfaceScale,NIF,KFM,Button)'
at line 389"

Referring to that line, it's:
<Button>,Art/Interface/Buttons/Buildings/Factory.dds,Art/Interface/Buttons/Beyond_the_Sword_Atlas.dds,7,8</Button>
Which doesn't seem off so far as I can tell. Maybe something IS wrong with this somehow.
This, btw, refers to this type:
<Type>ART_DEF_BUILDING_INDUSTRIAL_PARK</Type>

I then get another error:
LoadXML call failed for xml\Art\CIV4ArtDefines_Building.xml

At that point it's pretty much the domino is tipped. Due to this xml file failing to load, it's all downhill from there.



So then I checked the exceptions and my C++ exceptions block is checked. Removing that I still hit the problem with the Industrial Park and that art define file fails to load but then it goes on if I ignore it.

It reaches the same eventual point, the following assert:
Code:
Assert Failed

File:  CvArtFileMgr.cpp
Line:  101
SVN-Rev:  9313
Expression:  false
Message:  ArtInfo: 'ART_DEF_BUILDING_CULTURE_AFRICAN' was not found

Ignoring that, I get:
Code:
Assert Failed

File:  CvArtFileMgr.cpp
Line:  101
SVN-Rev:  9313
Expression:  false
Message:  ArtInfo: 'ERROR' was not found

----------------------------------------------------------

THEN, finally:
Code:
Unhandled exception at 0x05233141 (CvGameCoreDLL.dll) in Civ4BeyondSword.exe: 0xC0000005: Access violation reading location 0x00000194.


The oddest thing I can tell from this is that it's confusing why the game is loading fine with the final release version, which it is. Obviously, there is a very real problem with the building art file. Particularly the Industrial Park button if I'm guessing.

EDIT: I noticed after updating that someone had edited the art defines file but that now just means it goes directly to the Button error and then collapses as explained from there.

EDIT: NVM, I figured out I just have to revert to the building art define xml as DH had left it last.

You can configure VS to ignore all kinds of exceptions Managing Exceptions with the Debugger.
Add the xercesc_3_1::NumberFormatException as C++ exception and leave it unchecked.
 
Thanks Alberts!

Now that we have a new forum, I wish there was an option to highlight certain responses in a 'favorites' file or something. That's a great point for longterm reference.

Wait... there IS! The 'like' option could be used for that. (Though I haven't been able to figure out how to find a list of the posts you liked.)
 
Last edited:
Thanks Alberts!

Now that we have a new forum, I wish there was an option to highlight certain responses in a 'favorites' file or something. That's a great point for longterm reference.

Wait... there IS! The 'like' option could be used for that. (Though I haven't been able to figure out how to find a list of the posts you liked.)

I believe u have to look at the top of a page and look at "ur account" i think it says something about lieks there, cant remember already, DUH!!
 
Status
Not open for further replies.
Top Bottom