Crash Report

BenGee171

Warlord
Joined
Feb 12, 2006
Messages
169
I have a problem with the mod I am working on, after the recent changes I have a problem, if I try to open the diplomacy windows with 4 of the nations in the game, the game crashes.

As well if I play as one of these civilizations before I am even able to move my units and if I play another nation, before i reach turn 2.

The chrash report which I received as the game crashed before round 2 is:

Problem signature:
Problem Event Name: APPCRASH
Application Name: Civ4BeyondSword.exe
Application Version: 3.1.9.0
Application Timestamp: 4a0c27e6
Fault Module Name: CvGameCoreDLL.dll
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 4a396a37
Exception Code: c0000005
Exception Offset: 0015a9b0
OS Version: 6.1.7600.2.0.0.256.1
Locale ID: 2057
Additional Information 1: 8485
Additional Information 2: 84853502223d8164a31468861a7c3d71
Additional Information 3: a4ea
Additional Information 4: a4eacf9d27e5ee8cb3a70ac0035eb8ab

The Crash Report which I received as i tried to open a diplomacy window with on of those 4 civilizations is:

Problem signature:
Problem Event Name: APPCRASH
Application Name: Civ4BeyondSword.exe
Application Version: 3.1.9.0
Application Timestamp: 4a0c27e6
Fault Module Name: CvGameCoreDLL.dll
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 4a396a37
Exception Code: c0000005
Exception Offset: 000f497b
OS Version: 6.1.7600.2.0.0.256.1
Locale ID: 2057
Additional Information 1: 8485
Additional Information 2: 84853502223d8164a31468861a7c3d71
Additional Information 3: a4ea
Additional Information 4: a4eacf9d27e5ee8cb3a70ac0035eb8ab

It is all the same except: Exception Code and Exception Offset

If you can help me, then please let me know.

I am using Windows 7.

Regards
 
Do you have Python exceptions turned on? If not, that would be a good start. That way if the problem is in Python, you should get an error message. To enable Python exceptions change this line HidePythonExceptions = 1 to HidePythonExceptions = 0 in Civilization.ini.
 
Yes, I was going to tell you to add the problem to a thread on here. Anyway, I was thinking it is quite a big change to the mod and in could be interferring with the Python code that is in place.

I was wondering did you test the game after you added each civic? Usually when I add something I test it to be sure, each time. All it takes is one small error someplace and the game will crash. The good sign is that it only crashes in the diplomacy window, we just have to find out why.
 
I changed the setting in the Civilization.ini, but it is still the same error message:

Problem signature:
Problem Event Name: APPCRASH
Application Name: Civ4BeyondSword.exe
Application Version: 3.1.9.0
Application Timestamp: 4a0c27e6
Fault Module Name: CvGameCoreDLL.dll
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 4a396a37
Exception Code: c0000005
Exception Offset: 000f497b
OS Version: 6.1.7600.2.0.0.256.1
Locale ID: 2057
Additional Information 1: 8485
Additional Information 2: 84853502223d8164a31468861a7c3d71
Additional Information 3: a4ea
Additional Information 4: a4eacf9d27e5ee8cb3a70ac0035eb8ab

The recent changes i made was: I created Custom Art Styles for some Civilization (the four are some of them), as well: I changed civic settings in the beyond the sword wbs file.
 
Custom artstyle: artstyle or untiartstyle?
Okay, it does not really matter, but you've sure somewhere linked an graphics entry to another non existing entry or to a non existing file. That will bring the game directly to crash, when you should encounter such a unit/building/whatever.
 
yup, I feel like a parrot, but if you've only edited XML and you get a ctd, 99% of the time it is art defines or event triggers. And you can tell which one of those easily as well. Event triggers will ctd when you launch a game, art errors will ctd when you find it in civlopedia or encounter the unit/civ in game.
 
yup, I feel like a parrot, but if you've only edited XML and you get a ctd, 99% of the time it is art defines or event triggers.
Or bad buttons.

The apcrash means nothing, try a debug dll. If a debug dll doesn't catch the problem, then it's probably a bad button, in which case turn on crash logging, and check the resmanager log, the last item on the list is probably where the button is.
 
Or bad buttons.

The apcrash means nothing, try a debug dll. If a debug dll doesn't catch the problem, then it's probably a bad button, in which case turn on crash logging, and check the resmanager log, the last item on the list is probably where the button is.

How do i do this?

Custom artstyle: artstyle or untiartstyle?
Okay, it does not really matter, but you've sure somewhere linked an graphics entry to another non existing entry or to a non existing file. That will bring the game directly to crash, when you should encounter such a unit/building/whatever.

It was the Civ4UnitArtStyleTypeInfox.xml and the CivilizationInfos.xml (where i added the new unit art style) btw: I made a mistake, I only gave 3 of the 4 civilizations where the crash occurs a new unit art style. But there are others I gave a unit art style which work without a problem.

yup, I feel like a parrot, but if you've only edited XML and you get a ctd, 99% of the time it is art defines or event triggers. And you can tell which one of those easily as well. Event triggers will ctd when you launch a game, art errors will ctd when you find it in civlopedia or encounter the unit/civ in game.

what does ctd stand for? Since it happens in game, I guess it is an art error.
Ok, I will deactivate the custom art style and try it again.

EDIT:

I have replaced the CivilizationInfos.xml with the one I saved before the changes in the unit art style, the same problem occurs if I click on one of those players.

Problem signature:
Problem Event Name: APPCRASH
Application Name: Civ4BeyondSword.exe
Application Version: 3.1.9.0
Application Timestamp: 4a0c27e6
Fault Module Name: CvGameCoreDLL.dll
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 4a396a37
Exception Code: c0000005
Exception Offset: 000f497b
OS Version: 6.1.7600.2.0.0.256.1
Locale ID: 2057
Additional Information 1: 8485
Additional Information 2: 84853502223d8164a31468861a7c3d71
Additional Information 3: a4ea
Additional Information 4: a4eacf9d27e5ee8cb3a70ac0035eb8ab
 
I think the problem is somewhere in the savegame, because i started a new map with the mod with all 4 of the civilizations which cause the crash included and i can open diplomacy windows with all of them.

I think there must be an error in the savegame.
I will have a further look into that.
 
I loaded a save game from fortnight 2 Febuary, 1864 and ended the turn and checked the logs. The logs are exactly the same, as the logs set forth during the turn where the game crashes, so the logs are not showing us where the problem is. I was thinking of disabling some of the new techs see if it saves the game from crashing. I will update soon, let me check.

No it still crashes, and with the old BUG 3.5 we can not log the eventmanager, I think our problem lies there. Some event is causing the crash, at least that's a theory. I am at a loss that's for sure.

Ben when did your game crash? You have the same logs as I do of course, so they are not telling us the cause. What can we do to tey to find out what is causing the problem? Maybe send the mod to someone who might be able to figure it out.
 
CTD = crash to desktop

and yes, changing an artstyle will break save games, or changing flags/buttons for a civ could do it as well I think. It should be an easy fix with notepad++ though on the wbs.
 
CTD = crash to desktop

and yes, changing an artstyle will break save games, or changing flags/buttons for a civ could do it as well I think. It should be an easy fix with notepad++ though on the wbs.

How can i detect the Art-error?

I do use notepad++ to edit everything.
 
well I think the only way,(other than finding the problem in the civlopedia, playing, or scouring the XML) is how phungus said.

If you enable logging, then start the game up and play till it crashes. You may actually only need to play a turn or two to get the log. Not 100% sure. Then check your;

my documents/my games/beyond the sword/logs/ directory
and check the resmanager log, the last item on the list is probably where the button is.

I say the only way other than because you can actually trace errors if you look around in the pedia, or if you are paying enough attention to when the crash happens to realize what it was. Also if you only do a few things at a time, it is very easy to retrace your steps in the XML, and find errors.

its just part of debugging, if you can call this that, it'll get much easier the more you do it.
 
This is the resmgr.log

RESMGR: Texture FlagDECAL.dds failed to load
RESMGR: Texture PlayerColor01.tga failed to load
RESMGR: Texture PlayerColor02.tga failed to load
RESMGR: Texture c:\games\civilization4beyondthesword\beyond the sword\assets\art\units\cannon_german\modernengineer_128.dds failed to load
RESMGR: Texture peasanthat.dds failed to load

Ok, I solved one problem, I think. Now it come up with this:

RESMGR: Texture FlagDECAL.dds failed to load
RESMGR: Texture PlayerColor01.tga failed to load
RESMGR: Texture PlayerColor02.tga failed to load
RESMGR: Texture peasanthat.dds failed to load

EDIT:

somehow I do not think this is the problem, because I just played a few turns on an empty map, I loaded trough the worldbuilder a lot of units into the game, played a couple more turns and then exited to desktop.

the resmgr.log file says:

RESMGR: Texture FlagDECAL.dds failed to load
RESMGR: Texture PlayerColor01.tga failed to load
RESMGR: Texture PlayerColor02.tga failed to load
RESMGR: Texture Art/Interface/TeamColor/newzealand.dds failed to load
RESMGR: Texture Art/Interface/TeamColor/newzealand.dds failed to load
RESMGR: Texture Art/Interface/TeamColor/newzealand.dds failed to load
RESMGR: Texture peasanthat.dds failed to load
RESMGR: Texture peasanthat.dds failed to load
RESMGR: Texture peasanthat.dds failed to load
RESMGR: ---- Unloading ----
 
whats that peasantthat.dds used for and did you check if its linked correctly? same to newzealand.dds
 
Back
Top Bottom