give ai their own logfile
Moderator: Moderator
give ai their own logfile
I suggest that ai get it's own logfile. Logfiles are becoming pretty big, but about 50% of it or more is ai messages. That big a contribution deserves its own logfile.
Re: give ai their own logfile
bump!
I had an 85mb log file... I think moving the AI out would make it easier for us to see when issues occur what occurred, smaller to attach and search through, etc.
I had an 85mb log file... I think moving the AI out would make it easier for us to see when issues occur what occurred, smaller to attach and search through, etc.
Re: give ai their own logfile
Do you have a good idea for how to keep time between the two different logs? That is the main issue that I see with the proposed change. For example, you wouldn't know if the monster tried to retreat (or heal, or recover etc...) before or after you hit it with an attack (or moved, or summoned, or healed, or another monster showed up).
Re: give ai their own logfile
At the very least, it would be nice if all AI messages had a "[AI]" tag at the beginning of the message in the standard log file. That way, one could easily filter out AI messages (`grep -v '^.AI' log.out`) or look at only the AI messages (`grep '^.AI' log.out`).
Re: give ai their own logfile
Timestamp the AI stuff and where it would be in the main log? Could also use "game turn since creation/last load" counter as a unique identifier for AI calculations. E.g.:lukep wrote:Do you have a good idea for how to keep time between the two different logs? That is the main issue that I see with the proposed change. For example, you wouldn't know if the monster tried to retreat (or heal, or recover etc...) before or after you hit it with an attack (or moved, or summoned, or healed, or another monster showed up).
te4_log.txt would have:
Code: Select all
AI report: naga psyren 21456 (UTC)
Code: Select all
============================== TACTICAL AI naga psyren 21456 (UTC)
naga psyren 21456 tactical ai talents testing Silence T_SILENCE
naga psyren 21456 tactical ai talents testing Mana Pool T_MANA_POOL
naga psyren 21456 tactical ai talents testing Equilibrium Pool T_EQUILIBRIUM_POOL
naga psyren 21456 tactical ai talents testing Attack T_ATTACK
naga psyren 21456 tactical ai talents testing Rune: Heat Beam T_RUNE:_HEAT_BEAM_2
naga psyren 21456 tactical ai talents testing Infusion: Heroism T_INFUSION:_HEROISM_1
naga psyren 21456 tactical ai talents can use Infusion: Heroism T_INFUSION:_HEROISM_1 buff weight 24.769598150092
naga psyren 21456 tactical ai talents testing Mind Sear T_MIND_SEAR
naga psyren 21456 tactical ai talents testing Mind Disruption T_MIND_DISRUPTION
naga psyren 21456 tactical ai talents testing Telekinetic Blast T_TELEKINETIC_BLAST
Tactical ai report for naga psyren