-
Notifications
You must be signed in to change notification settings - Fork 1
CA debugging
mattsc edited this page Sep 9, 2012
·
9 revisions
It is possible to debug the Freelands grunt rush AI (Fred) by evaluating and/or executing individual CAs from the right-click menu. This mode requires two steps for activation:
- Variable 'debug_CA_mode' in function 'debug_CA' in file 'lua/eval_exec_CA.lua' needs to be set to 'true'
- We can leave this set to 'true' for the time being, because of the next requirement:
- Debug mode needs to be activated
- This is as a safeguard, we should never be able to get into this mode in normal gameplay
- If we want CA debugging to be enabled from the beginning of the game, Wesnoth needs to be started with the -d option to activate debug mode
- If we want CA debugging to be used on a savegame, it is sufficient to activate debug mode before loading the game by typing :debug