An annoying crash problem.

wrh2005

Chieftain
Joined
Nov 28, 2007
Messages
10
Location
UK
Hi there, I suppose this is a strange way to make your introduction, but in my case it's probably the only reason I am posting here. I am uncertain where to put this, but it is a bug. One possibly of my own making but I doubt it. If you have somewhere better to put it then you'll move it. ^_~

I have a problem with random crashes (random from my point of view). I have been a Civ fan since I played the original when I was 15, and spent a hell of a lot of time playing and modding Civ II. I got to Civ III and that was the last time I played a Civ game above 2. The game was unplayable with constant crashes, and I just gave up in the end.

I got Civ IV the other week. Lovely looking game, I could really enjoy and get into just like old times, and totally modable as well.

Civ IV is turning out to be much the same; a pain in the arse. A certain turn, a certain building is constructed in a certain place, a unit action, a city is built. These crashes vary from game to game. They do seem to involve some common elements though. The game will run along fine and then bang. I can reproduce these crashes every time, even if I do something different. I am at my wits end with it.

It should be noted that the game I play is not the factory standard, I made a few new techs, changed some terrain values, added many units, and changed the leaders pictures as well as some base game rules. Basically all XML apart from the graphics. The XML checks out fine, I get no errors so it must be OK.

Unless of course there are some unwritten laws I've missed out on, such as putting in values that cause the game to behave strangely. Perhaps a more experienced modder might know some of these in more detail than I would. But still if there were problems there the game would simply not run, rather than run ok then knacker itself up.

So anyway, to help you to help me I will tell you all I can.

The crash always involves the CIV IV executable and msvcr71.dll, it's never anything else.

AppName: civilization4.exe AppVer: 1.7.4.0 ModName: msvcr71.dll
ModVer: 7.10.3052.4 Offset: 00002f59

No matter what happens this is what I get.

So what have I done to the game.

Changes to XML:

Art defines Leaders
Art defines Civilizations
Art defines Units

Unit Class Info
Unit Info

Text Object Info

Technology Info

Terrain Info
Bonus Info
Improvment Info

Changes to art, units and leaders.

If requested I can provide the XML for whomever is interested to look at.

Most of the XML changes were only minor, apart from the units because I added around 30 or so. I also turned off some of the worker functions because I got sick of them building windmills instead of mines and farms when on auto.:lol:

I did manage to play my modded game through once, before I updated to Civ IV 1.74. Perhaps that might be the problem. But other people can mod their games so why am I having problems. Makes me wonder.

I also only tend to play on custom earth maps by some people from around here, another factor perhaps.

Other than crash info. I run Windows XP sp2 on a pentium core duo E6600 with 2gb ram, the game runs nice and smooth so performance is not really an issue.

Hopefully there is some information here for someone with some experience to go on. If not then I wasted 15 quid, and I'll have to go back to Civ II again!

Thanks in advance if you can help me.:)
 
msvcr71 is part of the c++ runtime library that comes with windows - with that error I assume you made some kind of change that is illegal in terms of the c++ code underlying the game and causes the crash.
Some notes:
you can enable logging in you civilizationIV.ini by setting everything with log in its name to 1 and hydepythonexceptions to 0 - that way it will save a lot of errors it encounters in its logs directory for review if errors occur.
I assume you modded the original files and did not copy them first into your custom assets folder? if you do this before changing them you can easily switch to the unmodded game to see whether the crash is caused by you or the unmodded game. If you enable the logging you could post the log here and I 'll have a look - but looking through modded files to find the one error (probably a missed tag or something like this) is a pain...

Edit: and of course: welcome to Civfanatics :band: have a look at the creation and customization subforum - you might find more reasons to post other than errors :)
 
Thanks for the log tip. I will get right on that.

My mod is in it's own folder in the Mods folder, the original asset files are unchanged, just in case I need to take a step back. :)
 
Good idea; I should have thought of that. Well here you go then, the whole lot in one zip. :)

Thanks for your help.
 

Attachments

Back
Top Bottom