whoward69
DLL Minion
To enable logging, perform the following steps
The log files will now (usually) be written to "C:\Users\{username}\Documents\My Games\Sid Meier's Civilization 5\Logs"
The files of specific interest are
The logs contain several errors generated by the core game. These can be ignored but you need to know what they are for your particular setup.
Look in the log files - any extra messages are your problem!
- Locate the config.ini file (usually in the "C:\Users\{username}\Documents\My Games\Sid Meier's Civilization 5" sub-directory)
- Using a plain text editor (such as Notepad) open it
- Search for the text "ValidateGameDatabase" (it's near the top)
- Change it to
Code:; Validates the game database whenever it is changed. ValidateGameDatabase = 1
- Search for the text "LoggingEnabled" (it's just over half way down)
- Change it to
Code:; Enable the logging system LoggingEnabled = 1
- Save the changes
The log files will now (usually) be written to "C:\Users\{username}\Documents\My Games\Sid Meier's Civilization 5\Logs"
The files of specific interest are
- database.log - contains errors from XML or SQL updates to the GameData database. Nearly all common "noob" errors are in here, so ALWAYS check this first.
- xml.log - contains xml parsing and reference errors
- lua.log - contains programming (lua) errors and messages (from print() statements)
The logs contain several errors generated by the core game. These can be ignored but you need to know what they are for your particular setup.
- Start Civ
- Enable all the mods you need, EXCEPT for the one you will be debugging
- Start a game
- Play the first turn
- Exit Civ
- Now look in the log files - any messages cannot be from your mod so you can ignore them
- Start Civ again
- Enable your mod
- Click the NEXT button - this is the point your mod tries to load
Look in the log files - any extra messages are your problem!