Allow for continuous logs on the test builds.
Posted: Mon Jun 12, 2017 12:03 pm
The fact that the logs get reset each time you load a game is a nuisance to track down AI's problems that only appear on mid/late game (if the problems only get apparent way after the AI made the decision that caused it, you will have lost the logs in which the AI's decision was logged).
A workaround for this is to backup all the logs each time you exit a game, but this is annoying and awkward, and I very often fail to do so since I mostly play late on night when I'm already tired and not very professional.
Would it be possible to allow test builds of FO to keep the information of the whole game no matter when you (re)load?
I realise it is not as simple as opening the log files with append mode instead of write. If you save a game on turn N, then play until turn N+10, then reload the turn N save, you don't want to just open the logs of turn N+10 to append, you would need the logs that you had on turn N. Moreover, you don't want to have hundreds of previous logs with endless repeated information, so you don't want to keep the logs of previous games, nor to keep the logs of every turn on separated files (because at turn N you will have the info of turn 1 repeated in N files. This could easily snowball and clutter your disk.
So I can reformulate the question as this:
Would it be possible to save the logs along the saved game when using the save game option in the FO test builds?
Thus, auto saves wouldn't keep logs, but user saved games would copy the logs along with the game (for example, using path save/<save name>_<log_name>, like "save/my_last_saved_game_AI_5.log") and on loading it would copy (overwrite) the corresponding logs over the their standard location and open them on append mode.
A workaround for this is to backup all the logs each time you exit a game, but this is annoying and awkward, and I very often fail to do so since I mostly play late on night when I'm already tired and not very professional.
Would it be possible to allow test builds of FO to keep the information of the whole game no matter when you (re)load?
I realise it is not as simple as opening the log files with append mode instead of write. If you save a game on turn N, then play until turn N+10, then reload the turn N save, you don't want to just open the logs of turn N+10 to append, you would need the logs that you had on turn N. Moreover, you don't want to have hundreds of previous logs with endless repeated information, so you don't want to keep the logs of previous games, nor to keep the logs of every turn on separated files (because at turn N you will have the info of turn 1 repeated in N files. This could easily snowball and clutter your disk.
So I can reformulate the question as this:
Would it be possible to save the logs along the saved game when using the save game option in the FO test builds?
Thus, auto saves wouldn't keep logs, but user saved games would copy the logs along with the game (for example, using path save/<save name>_<log_name>, like "save/my_last_saved_game_AI_5.log") and on loading it would copy (overwrite) the corresponding logs over the their standard location and open them on append mode.