View Full Version : Game crashes when loading my mod :(


Splinter13
Aug 15, 2006, 02:31 AM
Hey, I know this might not be the right board to post this but I already tried the troubleshooting boards and I really didn't get many views on my topic so I thought to place it here because this problem is really annoying.

I making a D-Day scenario and i'm done editing the WBS file and disabling some technologies with XML but thats it.. I plan to do a lot more but I just wanted to test out the game. When I load the mod everything is normal and nothing is wrong but when I start to load the game it will get about half way and then very quickly shut down and crash without a warning message or any other messages like "your blah blah blah has preformed an illegal...etc

If anyone has experienced this or just knows what might be the problem please help I've now tried to make 2 different scenarios and both of them have this exact same problem so I'm hoping it's quite popular and people know how to fix it.

Thanks alot for your time and for the help.

Denniz
Aug 15, 2006, 04:17 AM
Do you have python error and logging turned on?

; Set to 1 for no python exception popups
HidePythonExceptions = 0

; Enable the logging system
LoggingEnabled = 1

; Overwrite old network and message logs
OverwriteLogs = 1

; Enable message logging
MessageLog = 1

Splinter13
Aug 15, 2006, 12:53 PM
Do you have python error and logging turned on?

; Set to 1 for no python exception popups
HidePythonExceptions = 0

; Enable the logging system
LoggingEnabled = 1

; Overwrite old network and message logs
OverwriteLogs = 1

; Enable message logging
MessageLog = 1


I havn't edited any python. Are you suggesting to write all this stuff or are you suggesting to get rid of it if I have it? and where should I put it if you want me to put this in.

Jeckel
Aug 15, 2006, 01:04 PM
He's saying, go to your main Civ4 directory and you'll see a shortcut called _Civ4Config click it and it will open the civilization 4 config.ini file. Then find the lines mentioned in the above post and make sure they set the same as shown.

Then try loading your mod again. If nothing pops up and it just crashes silently then again open your main civ4 directory and find the shortcut _Civ4Logs and click it. This will take you to the log directory. Zip all the log files into one zip and post it here in this thread as an attachment and some one will look over it and go from there.


EDIT: You said you disabled some techs, if you have enabled techs that require disabled techs I think that has been know to cause strange problems, might be worth looking into.

Splinter13
Aug 15, 2006, 01:27 PM
He's saying, go to your main Civ4 directory and you'll see a shortcut called _Civ4Config click it and it will open the civilization 4 config.ini file. Then find the lines mentioned in the above post and make sure they set the same as shown.

Then try loading your mod again. If nothing pops up and it just crashes silently then again open your main civ4 directory and find the shortcut _Civ4Logs and click it. This will take you to the log directory. Zip all the log files into one zip and post it here in this thread as an attachment and some one will look over it and go from there.


EDIT: You said you disabled some techs, if you have enabled techs that require disabled techs I think that has been know to cause strange problems, might be worth looking into.

Ok, I did what you told me to do in the civ4config. When I started loading the map this time this message pops up:


Python Exception

Traceback(most recent call last):

File "CvWBInterface", line 63 in getGameData

File "CvUtil", line 170, in findInfoTypeNum

RuntimeError : unifentifiable C++ exception




I havn't done any python or SDK editing so i'm really confused to why this is coming up. All the editing i've done is WB file editing and some XML. all the technologies i've disabled are the future tech ones so there should be no enabled ones that need the disabled techs.

Also I've been checking logs starting with the XML log and there are a bunch of these lines for almost everything loaded.. is this normal?

info type NONE not found, Current XML file is: Technologies/CIV4TechInfos.xml



Another thing I just found while snooping around the logs is this.. it's in the PythonDbg log

PY:loadDesc:mods\operation overlord\publicmaps\wbdday5, curDir:C:\Program Files\Firaxis Games\Sid Meier's Civilization 4
Reading game desc

Reading teams desc

reading team 0

reading team 1

reading team 2

reading team 3

reading team 4

reading team 5

reading team 6

reading team 7

Reading players desc

load_module encodings

load_module encodings.latin_1

Reading map desc

can't find map

Reading/creating 0 plot descs

Reading/creating 0 sign descs

WB read done

PY:OnUnInit
UnInit Python



So I guess it's not loading my map as indicated by above, but I still have no clue why it wouldn't be loading my map. Any help is apreciated
Thanks

Gerikes
Aug 15, 2006, 01:44 PM
Ok, I did what you told me to do in the civ4config. When I started loading the map this time this message pops up:


Python Exception

Traceback(most recent call last):

File "CvWBInterface", line 63 in getGameData

File "CvUtil", line 170, in findInfoTypeNum

RuntimeError : unifentifiable C++ exception



I havn't done any python or SDK editing so i'm really confused to why this is coming up. All the editing i've done is WB file editing and some XML. all the technologies i've disabled are the future tech ones so there should be no enabled ones that need the disabled techs.


Here is line 63 in CvWBInterface:


worldSizeType = CvUtil.findInfoTypeNum(gc.getWorldInfo, gc.getNumWorldInfos(), WBDesc.mapDesc.worldSize)


So, chances are you incorrectly spelled or otherwise made incorrect the name of the world size when you were creating your WB file.

Splinter13
Aug 15, 2006, 01:52 PM
Here is line 63 in CvWBInterface:


worldSizeType = CvUtil.findInfoTypeNum(gc.getWorldInfo, gc.getNumWorldInfos(), WBDesc.mapDesc.worldSize)


So, chances are you incorrectly spelled or otherwise made incorrect the name of the world size when you were creating your WB file.


In my WB file it's listed as

world size=WORLDSIZE_STANDARD

Is that correct?

Gerikes
Aug 15, 2006, 02:32 PM
In my WB file it's listed as

world size=WORLDSIZE_STANDARD

Is that correct?

Looks good to me, although I'm not exactly a wizz with the scenario files. Why don't you post that file here, perhaps there is something else amiss.

Splinter13
Aug 15, 2006, 02:35 PM
Ok here is my WB file, I'm not posting all the plot info though, everything other than it.


Version=11
BeginGame
Tutorial=0
Era=ERA_MODERN
Speed=GAMESPEED_NORMAL
Calendar=CALENDAR_WEEKS
Option=GAMEOPTION_NO_CITY_RAZING
Option=GAMEOPTION_NO_CITY_FLIPPING
Option=GAMEOPTION_FLIPPING_AFTER_CONQUEST
Victory=VICTORY_TIME
Victory=VICTORY_CONQUEST
Victory=VICTORY_DOMINATION
GameTurn=25
MaxTurns=175
MaxCityElimination=0
TargetScore=0
StartYear=1944
Description=Will you break the Atlantic wall and sucure France as the Allied forces or will you defend the wall as Nazi Germany?
ModPath=Mods\Operation Overlord\
EndGame
BeginTeam
Tech=TECH_MYSTICISM
Tech=TECH_MEDITATION
Tech=TECH_POLYTHEISM
Tech=TECH_PRIESTHOOD
Tech=TECH_MONOTHEISM
Tech=TECH_MONARCHY
Tech=TECH_LITERATURE
Tech=TECH_CODE_OF_LAWS
Tech=TECH_DRAMA
Tech=TECH_FEUDALISM
Tech=TECH_THEOLOGY
Tech=TECH_MUSIC
Tech=TECH_CIVIL_SERVICE
Tech=TECH_GUILDS
Tech=TECH_DIVINE_RIGHT
Tech=TECH_NATIONALISM
Tech=TECH_MILITARY_TRADITION
Tech=TECH_CONSTITUTION
Tech=TECH_LIBERALISM
Tech=TECH_DEMOCRACY
Tech=TECH_CORPORATION
Tech=TECH_FASCISM
Tech=TECH_UTOPIA
Tech=TECH_FISHING
Tech=TECH_THE_WHEEL
Tech=TECH_AGRICULTURE
Tech=TECH_POTTERY
Tech=TECH_SAILING
Tech=TECH_WRITING
Tech=TECH_MATHEMATICS
Tech=TECH_ALPHABET
Tech=TECH_CALENDAR
Tech=TECH_CURRENCY
Tech=TECH_PHILOSOPHY
Tech=TECH_PAPER
Tech=TECH_BANKING
Tech=TECH_EDUCATION
Tech=TECH_PRINTING_PRESS
Tech=TECH_ECONOMICS
Tech=TECH_ASTRONOMY
Tech=TECH_CHEMISTRY
Tech=TECH_SCIENTIFIC_METHOD
Tech=TECH_PHYSICS
Tech=TECH_BIOLOGY
Tech=TECH_MEDICINE
Tech=TECH_ELECTRICITY
Tech=TECH_COMBUSTION
Tech=TECH_FISSION
Tech=TECH_FLIGHT
Tech=TECH_HUNTING
Tech=TECH_MINING
Tech=TECH_ARCHERY
Tech=TECH_MASONRY
Tech=TECH_ANIMAL_HUSBANDRY
Tech=TECH_BRONZE_WORKING
Tech=TECH_HORSEBACK_RIDING
Tech=TECH_IRON_WORKING
Tech=TECH_METAL_CASTING
Tech=TECH_COMPASS
Tech=TECH_CONSTRUCTION
Tech=TECH_MACHINERY
Tech=TECH_ENGINEERING
Tech=TECH_OPTICS
Tech=TECH_GUNPOWDER
Tech=TECH_REPLACEABLE_PARTS
Tech=TECH_RIFLING
Tech=TECH_STEAM_POWER
Tech=TECH_STEEL
Tech=TECH_ASSEMBLY_LINE
Tech=TECH_RAILROAD
Tech=TECH_ARTILLERY
Tech=TECH_INDUSTRIALISM
Tech=TECH_RADIO
Tech=TECH_REFRIGERATION
ContactWithTeam=0
ContactWithTeam=1
AtWar=1
RevealMap=0
EndTeam
BeginTeam
Tech=TECH_MYSTICISM
Tech=TECH_MEDITATION
Tech=TECH_POLYTHEISM
Tech=TECH_PRIESTHOOD
Tech=TECH_MONOTHEISM
Tech=TECH_MONARCHY
Tech=TECH_LITERATURE
Tech=TECH_CODE_OF_LAWS
Tech=TECH_DRAMA
Tech=TECH_FEUDALISM
Tech=TECH_THEOLOGY
Tech=TECH_MUSIC
Tech=TECH_CIVIL_SERVICE
Tech=TECH_GUILDS
Tech=TECH_DIVINE_RIGHT
Tech=TECH_NATIONALISM
Tech=TECH_MILITARY_TRADITION
Tech=TECH_CONSTITUTION
Tech=TECH_LIBERALISM
Tech=TECH_DEMOCRACY
Tech=TECH_CORPORATION
Tech=TECH_FASCISM
Tech=TECH_UTOPIA
Tech=TECH_FISHING
Tech=TECH_THE_WHEEL
Tech=TECH_AGRICULTURE
Tech=TECH_POTTERY
Tech=TECH_SAILING
Tech=TECH_WRITING
Tech=TECH_MATHEMATICS
Tech=TECH_ALPHABET
Tech=TECH_CALENDAR
Tech=TECH_CURRENCY
Tech=TECH_PHILOSOPHY
Tech=TECH_PAPER
Tech=TECH_BANKING
Tech=TECH_EDUCATION
Tech=TECH_PRINTING_PRESS
Tech=TECH_ECONOMICS
Tech=TECH_ASTRONOMY
Tech=TECH_CHEMISTRY
Tech=TECH_SCIENTIFIC_METHOD
Tech=TECH_PHYSICS
Tech=TECH_BIOLOGY
Tech=TECH_MEDICINE
Tech=TECH_ELECTRICITY
Tech=TECH_COMBUSTION
Tech=TECH_FISSION
Tech=TECH_FLIGHT
Tech=TECH_HUNTING
Tech=TECH_MINING
Tech=TECH_ARCHERY
Tech=TECH_MASONRY
Tech=TECH_ANIMAL_HUSBANDRY
Tech=TECH_BRONZE_WORKING
Tech=TECH_HORSEBACK_RIDING
Tech=TECH_IRON_WORKING
Tech=TECH_METAL_CASTING
Tech=TECH_COMPASS
Tech=TECH_CONSTRUCTION
Tech=TECH_MACHINERY
Tech=TECH_ENGINEERING
Tech=TECH_OPTICS
Tech=TECH_GUNPOWDER
Tech=TECH_REPLACEABLE_PARTS
Tech=TECH_RIFLING
Tech=TECH_STEAM_POWER
Tech=TECH_STEEL
Tech=TECH_ASSEMBLY_LINE
Tech=TECH_RAILROAD
Tech=TECH_ARTILLERY
Tech=TECH_INDUSTRIALISM
Tech=TECH_RADIO
Tech=TECH_REFRIGERATION
ContactWithTeam=0
ContactWithTeam=1
AtWar=0
RevealMap=0
EndTeam
BeginPlayer
Team=0
LeaderType=LEADER_BISMARCK
LeaderName=Field Marshal Erwin Rommel
CivDesc=Nazi Germany
CivShortDesc=Germany
CivAdjective=German
FlagDecal=Art/Interface/TeamColor/FlagDECAL_Star.dds
WhiteFlag=0
CivType=CIVILIZATION_GERMANY
Color=PLAYERCOLOR_RED
ArtStyle=ARTSTYLE_EUROPEAN
PlayableCiv=1
MinorNationStatus=0
StartingGold=500
StartingX=38, StartingY=38
StateReligion=
StartingEra=ERA_MODERN
CivicOption=CIVICOPTION_GOVERNMENT, Civic=CIVIC_POLICE_STATE
CivicOption=CIVICOPTION_LEGAL, Civic=CIVIC_NATIONHOOD
CivicOption=CIVICOPTION_LABOR, Civic=CIVIC_SERFDOM
CivicOption=CIVICOPTION_ECONOMY, Civic=CIVIC_STATE_PROPERTY
CivicOption=CIVICOPTION_RELIGION, Civic=CIVIC_FREE_RELIGION
AttitudePlayer=1, AttitudeExtra=-92
Handicap=HANDICAP_WARLORD
EndPlayer
BeginPlayer
Team=1
LeaderType=LEADER_FRANKLIN_ROOSEVELT
LeaderName=Allied Chief Commander
CivDesc=Allied Forces
CivShortDesc=Allies
CivAdjective=Allied
FlagDecal=Art/Interface/TeamColor/FlagDECAL_StGeorgeCross.dds
WhiteFlag=0
CivType=CIVILIZATION_ENGLAND
Color=PLAYERCOLOR_WHITE
ArtStyle=ARTSTYLE_EUROPEAN
PlayableCiv=1
MinorNationStatus=0
StartingGold=500
StartingX=9, StartingY=38
StateReligion=
StartingEra=ERA_MODERN
CivicOption=CIVICOPTION_GOVERNMENT, Civic=CIVIC_UNIVERSAL_SUFFERAGE
CivicOption=CIVICOPTION_LEGAL, Civic=CIVIC_NATIONHOOD
CivicOption=CIVICOPTION_LABOR, Civic=CIVIC_EMANCIPATION
CivicOption=CIVICOPTION_ECONOMY, Civic=CIVIC_STATE_PROPERTY
CivicOption=CIVICOPTION_RELIGION, Civic=CIVIC_FREE_RELIGION
AttitudePlayer=0, AttitudeExtra=-90
Handicap=HANDICAP_WARLORD
EndPlayer
BeginMap
grid width=84
grid height=52
top latitude=90
bottom latitude=-90
wrap X=0
wrap Y=0
world size=WORLDSIZE_STANDARD
climate=CLIMATE_TEMPERATE
sealevel=SEALEVEL_MEDIUM
num plots written=4368
num signs written=0
EndMap

Gerikes
Aug 15, 2006, 02:42 PM
Ok here is my WB file, I'm not posting all the plot info though, everything other than it.

<snip>


Just a few more question:

Vanilla or Warlords?
Did you modify the Civ4WorldInfos.xml file?

Also, do you think you can surround what part of the file you just posted with code tags to make it a bit more readable?

Splinter13
Aug 15, 2006, 02:46 PM
Just a few more question:

Vanilla or Warlords?
Did you modify the Civ4WorldInfos.xml file?

Also, do you think you can surround what part of the file you just posted with code tags to make it a bit more readable?


Vanilla

no I did not edit the Civ4WorldInfos.xml file.

Gerikes
Aug 15, 2006, 02:54 PM
Well, I can't see anything wrong, although I have heard that even if you only have 1-2 teams, problems arise if you don't include the other teams in there (even if you just leave them blank). I'm not sure if that's true or not.

Splinter13
Aug 15, 2006, 02:55 PM
alright i'll try adding in the teams again and just leave em' blank.

ohcrapitsnico
Aug 15, 2006, 03:00 PM
I have a similar problem with this and actually Gerikes helped me with this. I still haven't actually figured out the true problem. There was a problem with the cvgamecoredll and stuff. It was so complicated I didn't want to touch it anymore. The game also got mad at me when I had the mod's own cvgamecoredll.

Splinter13
Aug 15, 2006, 03:07 PM
nope still didn't work and the same error message poped up.

Gerikes
Aug 15, 2006, 06:00 PM
I'm stumped. Hopefully someone who has more experience with the WBS files can help you. Sorry :blush:

Splinter13
Aug 15, 2006, 11:31 PM
I'm stumped. Hopefully someone who has more experience with the WBS files can help you. Sorry :blush:

It's cool, thanks a lot for the help though.

I also do hope that somone can fix this because it's really frustrating..
oh well