give ai their own logfile

All new ideas for the upcoming releases of ToME 4.x.x should be discussed here

Moderator: Moderator

Post Reply
Message
Author
Canderel
Sher'Tul
Posts: 1252
Joined: Mon Nov 24, 2003 2:31 pm
Location: South Africa

give ai their own logfile

#1 Post by Canderel »

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.

Canderel
Sher'Tul
Posts: 1252
Joined: Mon Nov 24, 2003 2:31 pm
Location: South Africa

Re: give ai their own logfile

#2 Post by Canderel »

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.

lukep
Sher'Tul Godslayer
Posts: 1712
Joined: Mon Mar 14, 2011 10:32 am
Location: Canada

Re: give ai their own logfile

#3 Post by lukep »

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).
Some of my tools for helping make talents:
Melee Talent Creator
Annotated Talent Code (incomplete)

tiger_eye
Perspiring Physicist
Posts: 889
Joined: Thu Feb 17, 2011 5:20 am

Re: give ai their own logfile

#4 Post by tiger_eye »

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`).

Hedrachi
Uruivellas
Posts: 606
Joined: Tue May 11, 2010 8:58 pm
Location: Ore uh gun, USA

Re: give ai their own logfile

#5 Post by Hedrachi »

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).
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.:

te4_log.txt would have:

Code: Select all

AI report: naga psyren 21456 (UTC)
Which would respond to this entry in ai_log.txt

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
Having satellite internet is a lot like relying on the processes described in those RFC's for your internet. Except, instead of needing to worry about statues interrupting your connection, this time you worry about the weather. I have satellite internet. Fun, no?

Post Reply