Debugging (Civ5): Difference between revisions

From Civilization Modding Wiki
Jump to navigationJump to search
No edit summary
mNo edit summary
Line 2: Line 2:


== Checklist ==
== Checklist ==
* Did you correctly import to the [[VFS (Civ5)|VFS]] the files that need to be?
* Did you correctly set up the actions and content tab in your project?
* Did you restart civ5 after you added new files?


== XML Debugging ==
== XML Debugging ==
Line 17: Line 20:
=== Quick bug reproduction ===
=== Quick bug reproduction ===


== Configuring your installation ==
== Configuration ==
Look for the following files under <code>My Documents/My Games/Sid Meiers' Civilization V</code> and open them in a text editor like the notepad (not in a word processor).
Look for the following files under <code>My Documents/My Games/Sid Meiers' Civilization V</code> and open them in a text editor like the notepad (not in a word processor).
* '''config.ini'''
* '''config.ini'''

Revision as of 09:07, 23 September 2012

This article is under construction, come back in a few days.

Checklist

  • Did you correctly import to the VFS the files that need to be?
  • Did you correctly set up the actions and content tab in your project?
  • Did you restart civ5 after you added new files?

XML Debugging

Reading the logs

Using the snapshots

Lua Debugging

Using the Firetuner console

Print, assert and error

Coroutines stack traces

Handling errors for the end-user

Troubleshooting

Game inspectors

Quick bug reproduction

Configuration

Look for the following files under My Documents/My Games/Sid Meiers' Civilization V and open them in a text editor like the notepad (not in a word processor).

  • config.ini
    • Set LoggingEnabled to 1. Civ5 will write log files under the Logs folder.
    • Set EnableLuaDebugLibrary to 1. Civ5 will display stack traces on Lua errors and you will be able to use the debug object.
    • Set DebugPanel to 1. By pressing the ² key (may be ù or something else depending on your computer's language) during a game, Civ5 will display a debug panel.
  • usersettings.ini
    • Set DebugMode to 1. Needed to enable other features previously mentioned.