scottrycroft
Chieftain
- Joined
- Mar 15, 2002
- Messages
- 18
I've been trying to add a list of names for each civ to use as 'governor' or 'official' names for cities. So for I've added the XML code in CIV4CivilizationsSchema and CIV4CivilizationInfos, and now I've started adding it in CvInfos.
I'm copying line for line the input used for importing the city names (m_iNumCityNames and m_paszCityNames), but I've been getting weird and somewhat inconsistent errors.
Sometimes the game crashes on the Init XML stage on load, but then it seems to stop after a few times (one maybe... not sure there). But then it crashes during a new game, right before loading the screen for selecting your civilization. I'm guessing its a cache problem or something.
I first had done a compile with no changes, and that had worked with no problems. Then I started doing changes, but that would produce the errors. Some small changes wouldn't produce them, like simply declaring the new variables. But adding the read/write and XML load seemed to do it.
The odd thing is, the game doesn't crash if I do a complete rebuild (clean). Any ideas on that? Could it be a makefile problem? I'd rather not have to wait 10 minutes each time I add something in. I'm using Visual C++ Express Edition 2005, using the instructions on the site here, and that provided makefile.
I've attached the files I've modded in case that helps, all changes are comment marked with // added by Scott
http://forums.civfanatics.com/uploads/14149/CvInfos.zip
I'm copying line for line the input used for importing the city names (m_iNumCityNames and m_paszCityNames), but I've been getting weird and somewhat inconsistent errors.
Sometimes the game crashes on the Init XML stage on load, but then it seems to stop after a few times (one maybe... not sure there). But then it crashes during a new game, right before loading the screen for selecting your civilization. I'm guessing its a cache problem or something.
I first had done a compile with no changes, and that had worked with no problems. Then I started doing changes, but that would produce the errors. Some small changes wouldn't produce them, like simply declaring the new variables. But adding the read/write and XML load seemed to do it.
The odd thing is, the game doesn't crash if I do a complete rebuild (clean). Any ideas on that? Could it be a makefile problem? I'd rather not have to wait 10 minutes each time I add something in. I'm using Visual C++ Express Edition 2005, using the instructions on the site here, and that provided makefile.
I've attached the files I've modded in case that helps, all changes are comment marked with // added by Scott
http://forums.civfanatics.com/uploads/14149/CvInfos.zip