I'm working on a mod and am having seemingly random crashes when starting a new game to test out my changes. At first I thought it had to do with the updates I was making, but after spending a lot of time with trial and error I'm getting really strange results. It will work fine one load, I'll quit and go into the RaceConfig.xml and do something simple like remove one of the tags (or add one in), at which pont it will crash when starting the next game. After playing around with it some more and getting things working again by making other seemingly unrelated changes, I can go back in and make the exact same change that caused it to crash before and it will work fine. Then some other simple, random change will cause it to crash next time. I'm quite familiar with XML, how the mod folder structure is supposed to work, the relationship between items in Techs, Types, Planet Improvements, etc. I think the problem lies elsewhere. My debug.err info is below. Any help?
Debug Message: Version v1.3 beta 2a last updated on: Tue Aug 8 16:18:51 2006
Debug Message: *********DXDiag info follows.*********
System Info
Time: 8/13/2006, 22:58:36
DirectX Version: DirectX 9.0c (4.09.0000.0904)
Machine Name: DDVK7P61
Operating System: Windows XP Home Edition (5.1, Build 2600) Service Pack 2 (2600.xpsp_sp2_gdr.050301-1519)
Languages: English (Regional Setting: English)
System Manufacturer: Dell Inc.
System Model: Dimension 8400
BIOS: Phoenix ROM BIOS PLUS Version 1.10 A03
Processor: Intel(R) Pentium(R) 4 CPU 3.40GHz (2 CPUs)
Physical Memory: 1022MB RAM
Page File: 287MB used, 2171MB available
Windows Dir: C:\WINDOWS
Display Info
Display device 1:
Device Name: \\.\DISPLAY1
Card Name: NVIDIA GeForce 6800 GTO
Manufacturer: NVIDIA
Chip Type: GeForce 6800 Series GPU
DAC Type: Integrated RAMDAC
Key Device: Enum\PCI\VEN_10DE&DEV_00F9&SUBSYS_026D10DE&REV_A2
Display Memory: 256.0 MB
Current Display Mode: 1024 x 768 (32 bit) (60Hz)
Monitor Name: Dell D1028L
Monitor Max Resolution: 1280,1024
Driver Name: nv4_disp.dll
Driver Version: 6.14.0010.6687
Driver Date: 11/11/2004 18:11:00
DirectX Acceleration Enabled: Yes
Sound info
Sound device 1:
Description: SoundMAX Digital Audio
Default Sound Playback: Yes
Default Voice Playback: Yes
Hardware ID: PCI\VEN_8086&DEV_266E&SUBSYS_01771028&REV_03
Manufacturer ID: 65535
Product ID: 65535
Driver Name: smwdm.sys
Provider: Analog Devices
Driver Version: 5.12.0001.5243
Driver Date: 10/29/2004 15:14:44
Type: WDM
Other Drivers:
Acceleration Level: 3
Cap Flags: 0
Min/Max Sample Rate: 0, 0
Debug Message: *********END dxdiag info.*********
Debug Message: Entering WinMain
Debug Message: ******* Starting Game Shell *******
Debug Message: Going Fullscreen
Debug Message: Preparing to change display settings.
Debug Message: Using multilsample setting: D3DMULTISAMPLE_4_SAMPLES
Debug Message: Game Resolution: 1024 x 768
Debug Message: Running fullscreen.
Debug Message: HAL (hw vp): NVIDIA GeForce 6800 GTO
Debug Message: D3DPRESENT_INTERVAL_DEFAULT
Debug Message: Refresh rate: 60
Debug Message: Bit Depth: 32 bit.
Debug Message: *********Checking D3DDevice Caps***********************
Debug Message: A full-color cursor is supported in hardware at high resolution modes.
Debug Message: RGB in format 6:6:6, Masks reported as ff0000:ff00:ff
Debug Message: Now Fullscreen
Debug Message: Shell initialization complete
Debug Message: ***** Initializing Game *****
Debug Message: Timer Frequency is 0 ca26f230
Debug Message: Initializing sound card.
Debug Message: initailizing bink
Debug Message: No string tables in C:\Program Files\GalCiv2\Mods\KultanMod/Data/*.str
Debug Message: No files found matching mask C:\Program Files\GalCiv2\Mods\KultanMod\Movies\*.bik
Debug Message: No files found matching mask C:\Program Files\GalCiv2\Mods\KultanMod\Movies\techs\*.bik
Debug Message: No files found matching mask C:\Program Files\GalCiv2\Mods\KultanMod\Gfx\*.png
Debug Message: No files found matching mask C:\Program Files\GalCiv2\Mods\KultanMod\Gfx\Race\*.png
Debug Message: No files found matching mask C:\Program Files\GalCiv2\Mods\KultanMod\Music\*.mp3
Debug Message: No files found matching mask C:\Program Files\GalCiv2\Mods\KultanMod\Event Music\*.mp3
Debug Message: Create setup screens.
Debug Message: Clear galaxy settings.
Debug Message: Clear influence.
Debug Message: Clear up laws.
Debug Message: Clear first time events.
Debug Message: Clear wonders and trade goods.
Debug Message: Clear sector mapper.
Debug Message: Set mouse.
Debug Message: Set update timer.
Debug Message: Clear data definitions.
Debug Message: No files found matching mask C:\Program Files\GalCiv2\Mods\KultanMod\Data\Techs\*.xml
Debug Message: No files found matching mask C:\Program Files\GalCiv2\Mods\KultanMod\Data\ShipComponents\*.xml
Debug Message: No files found matching mask C:\Program Files\GalCiv2\Mods\KultanMod\Data\ShipDefs\*.xml
Debug Message: No files found matching mask C:\Program Files\GalCiv2\Mods\KultanMod\Gfx\Planets\C0*.png
Debug Message: No files found matching mask C:\Program Files\GalCiv2\Mods\KultanMod\Data\PlanetImprovements\*.xml
Debug Message: No files found matching mask C:\Program Files\GalCiv2\Mods\KultanMod\Data\TerrainColorSchemes\*.xml
Debug Message: No files found matching mask C:\Program Files\GalCiv2\Mods\KultanMod\Data\PlanetDescriptions\*.xml
Debug Message: No files found matching mask C:\Program Files\GalCiv2\Mods\KultanMod\Data\Anomalies\*.xml
Debug Message: No files found matching mask C:\Program Files\GalCiv2\Mods\KultanMod\Data\Events\*.xml
Debug Message: No files found matching mask C:\Program Files\GalCiv2\Mods\KultanMod\Data\UPIssues\*.xml
Debug Message: No files found matching mask C:\Program Files\GalCiv2\Mods\KultanMod\Data\Invasions\*.xml
Debug Message: No files found matching mask C:\Program Files\GalCiv2\Mods\KultanMod\Data\PoliticalParties\*.xml
Debug Message: No files found matching mask C:\Program Files\GalCiv2\Mods\KultanMod\Data\StarTypes\*.xml
Debug Message: No files found matching mask C:\Program Files\GalCiv2\Mods\KultanMod\Data\StarbaseModules\*.xml
Debug Message: Reading Star Names
Debug Message: Reading Star Names... Done
Debug Message: No files found matching mask C:\Program Files\GalCiv2\Mods\KultanMod\Data\CustomMaps\*.gc2map
Debug Message: No files found matching mask C:\Program Files\GalCiv2\Mods\KultanMod\Data\Scenarios\*.gc2scenario
Debug Message: Creating Galaxy
Debug Message: Killing threads.
Debug Message: Kiling civs.
Debug Message: Killing ships.
Debug Message: Killing rallypoints.
Debug Message: Killing misc objects.
Debug Message: Killing stars.
Debug Message: Killing anomalies.
Debug Message: Killing space resources.
Debug Message: Killing colonies and planets.
Debug Message: killing scenario.
Debug Message: Clearing Turn Event Log
Debug Message: Clear galaxy settings.
Debug Message: Clear influence.
Debug Message: Clear up laws.
Debug Message: Clear first time events.
Debug Message: Clear wonders and trade goods.
Debug Message: Clear sector mapper.
Debug Message: Galaxy Size Set: 8 x 8
Debug Message: Creating Random Map
Debug Message: Creating Random Map... Stars
Debug Message: Number of Unplaced Stars: 46.
Debug Message: Creating Random Map... Planets
Debug Message: *************** Failed To Place Planet ***************
Debug Message: *************** Failed To Place Planet ***************
Debug Message: *************** Failed To Place Planet ***************
Debug Message: Creating Random Map... Anomalies
Debug Message: Num Anomalies: 28
Debug Message: Creating Random Map... Resources
Debug Message: Creating Random Map... Done
Debug Message: Setting Game Options
Debug Message: Creating Civs
Debug Message: Drengin Empire: Intellence -> 15
Debug Message: Altarian Republic: Intellence -> 80
Debug Message: Creating Civs... Done
Debug Message: Updating ZOC.
Debug Message: Updating ZOC.
Debug Message: Galaxy Create... Done
Debug Message: UIBeginGame called with g_ulLocalPlayerID = 0
Debug Message: UIBeginGameHelper: New Game Started
Debug Message: UIBeginGameHelper: Mods are Enabled