I'm on macOS so it's probably a bit different, but how do you work out what units are tagged with what?
I saw some log/debug options, but couldn't quite work out which ones to enable and where the results would go.
So, you can mess with the "BATTLETECH\BattleTech_Data\StreamingAssets\data\debug\setting.json" and manually add the various logging bits copied from the AI.json in the folder. Prior to 1.1, I found it way easier to get the same info out of adding these three variables in to the global.json and setting them to true.
{
/* Whether to log influence map calculations. */
"k" : "Bool_LogInfluenceMapCalculations",
"v" : {
"type" : "Bool",
"boolVal" : true,
}
},
{
/* Whether to log influence map calculation profiling
information. */
"k" : "Bool_ProfileInfluenceMapCalculations",
"v" : {
"type" : "Bool",
"boolVal" : true,
}
},
{
/* Whether to log behavior tree logic. */
"k" : "Bool_LogBehaviorTreeLogic",
"v" : {
"type" : "Bool",
"boolVal" : true,
}
},
The first two are part of a pair, they will create a .csv that lists a single units move phase, its mood, its dynamic role (turrets and vehicles would be undefined as they have static roles) and a list of the values for each spot of movement, but not where that location is in the map. So I really just used this for checking roles and moods. The last option makes a .txt log similar to what you get with the settings.json add-ins with a chronological listing of everything the AI does for one team. All of these files are dumped in "
\BATTLETECH\AI_Logs" on Windows.
NEW TO 1.1
In the "BATTLETECH\BattleTech_Data\StreamingAssets\data\debug\setting.json" there is a new variable
"aiLogCacheWriteImmediate": false and turning just that to true makes a lot of neat, easy to read .txt files that are broken down by each units turn. Files for threat sorting, firing choices, that .csv for movements and even a list of how the AI made its way down the behavior tree nodes. This one setting generates a lot of files, but they are really helpful and I'm probably just going to use that from now on. Also dumps files in the AI Logs folder.