Author Topic: chat log  (Read 335 times)

Legacy_Surek

  • Full Member
  • ***
  • Posts: 169
  • Karma: +0/-0
chat log
« on: September 18, 2012, 06:53:46 am »


               I have looked around and have not found anything for what I’m looking for, maybe its not even possible but is their a way to capture a PC’s messages and write it to a log file? 
               
               

               
            

Legacy_Krevett

  • Full Member
  • ***
  • Posts: 203
  • Karma: +0/-0
chat log
« Reply #1 on: September 18, 2012, 07:49:27 am »


               WriteTimestampedLogEntry(string sLogEntry) is what you are looking for. You can use it in the OnChat event of the module to capture messages
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
chat log
« Reply #2 on: September 18, 2012, 09:39:35 pm »


               In nwnplayer.ini  under game options.


ClientChatLogging=0
Setting this to 1 will add all player chat heard by the client to the client log. The file can be found in the "logs" directory of the NWN base install path (eg. nwnclientLog1.txt). Note that the log will overwrite itself; preventing long term chat logging over multiple play sessions. This can be prevented by renaming the log after every session, or using a Log Rotator [1].
               
               

               
            

Legacy_Krevett

  • Full Member
  • ***
  • Posts: 203
  • Karma: +0/-0
chat log
« Reply #3 on: September 19, 2012, 12:59:54 pm »


               Oooops forgot about my silly answer '<img'> I didn't think about the client chat log what a shame! Thankfully the community has people like you L8 ^^