The World of Layonara  Forums

Author Topic: Log/Chat Recorder  (Read 377 times)

LordCove

Log/Chat Recorder
« on: June 13, 2007, 12:38:01 am »
What is it?
Where is it?
How do I work it?

:)

Thanks
 

Interia_Discordius

Re: Log/Chat Recorder
« Reply #1 on: June 13, 2007, 12:41:32 am »
 

LordCove

Re: Log/Chat Recorder
« Reply #2 on: June 13, 2007, 12:44:31 am »
Mucha gracias  ;)
 

Tanman

Re: Log/Chat Recorder
« Reply #3 on: June 13, 2007, 12:50:57 am »
I have also added in a line so that you double click on the shortcut..and it will take you straight to the server you want west,  and do the logging. I can provide that if you want it too.

UPDATE:
here is an example cmd script that I use, once you have installed the GLR (works on PCs only). It logs onto West Server and starts logging :

@echo off
SET NWN_PATH="C:\\NeverwinterNights\\NWN"
SET GLR_PATH="C:\\Program Files\\Gnomish Log Rotator"
cd %NWN_PATH%
start /w nwmain.exe  +connect 69.80.198.68:5121 +password PASSWORD
cd %GLR_PATH%
glr.exe


This assumes that:

Neverwinternights is installed in C:\\NeverwinterNights\\NWN. If it is not then change it in the SET NWN_PATH section.

Also assumes that the GLR is installed to C:\\Program Files\\Gnomish Log Rotator

You can download the glr from this place and follow orth's instructions on setting it up in the nwn.ini file in the c:\\neverwinternights\\nwn\\nwn.ini directory. Please note that you replace PASSWORD with the layonara password that you were given.

So here is what you do. Copy the above text. Open up a text file, paste the text into it. Save the file, and enclose it in quotation marks with the .cmd extension eg, "Layonara West Server.cmd".

If it is done properly, you should be able to type in your player name and password and choose your character all the while having the GLR in the background logging your chats.
 

hawklen

Re: Log/Chat Recorder
« Reply #4 on: June 13, 2007, 03:30:16 am »
Quote from: Tanman
I have also added in a line so that you double click on the shortcut..and it will take you straight to the server you want west,  and do the logging. I can provide that if you want it too.

UPDATE:
here is an example cmd script that I use, once you have installed the GLR (works on PCs only). It logs onto West Server and starts logging :

@echo off
SET NWN_PATH="C:\\NeverwinterNights\\NWN"
SET GLR_PATH="C:\\Program Files\\Gnomish Log Rotator"
cd %NWN_PATH%
start /w nwmain.exe  +connect 69.80.198.68:5121 +password PASSWORD
cd %GLR_PATH%
glr.exe


This assumes that:

Neverwinternights is installed in C:\\NeverwinterNights\\NWN. If it is not then change it in the SET NWN_PATH section.

Also assumes that the GLR is installed to C:\\Program Files\\Gnomish Log Rotator

You can download the glr from this place and follow orth's instructions on setting it up in the nwn.ini file in the c:\\neverwinternights\\nwn\\nwn.ini directory. Please note that you replace PASSWORD with the layonara password that you were given.

So here is what you do. Copy the above text. Open up a text file, paste the text into it. Save the file, and enclose it in quotation marks with the .cmd extension eg, "Layonara West Server.cmd".

If it is done properly, you should be able to type in your player name and password and choose your character all the while having the GLR in the background logging your chats.

Nice Tan :) Quite usefull, for window users. Now make one for the linux/mac users *winks* Note, dont forget to setup a cron job for log rotations *he grins*
 

bytor

  • Jr. Member
  • **
    • Posts: 93
      • View Profile
    Re: Log/Chat Recorder
    « Reply #5 on: June 13, 2007, 05:54:37 am »
    Quote from: hawklen
    Note, dont forget to setup a cron job for log rotations *he grins*

    How about a simple modification to nwn script?
    Quote
    #!/bin/sh

    # This script runs Neverwinter Nights from the current directory
    export SDL_MOUSE_RELATIVE=0
    export SDL_VIDEO_X11_DGAMOUSE=0

    # Make name of the log file for current month
    MONTH_LOG_FILE="logs/GameLog-"`date +"%Y-%m"`".txt"

    # If you do not wish to use the SDL library included in the package, remove
    # ./lib from LD_LIBRARY_PATH
    export LD_LIBRARY_PATH=./lib:./miles:$LD_LIBRARY_PATH
    #export LD_LIBRARY_PATH=./miles:$LD_LIBRARY_PATH


    # Begin logging block
    echo "=-=-=-=-=-=-=-=-=-=- BEGIN LOG -=-=-=-=-=-=-=-=-=" >> $MONTH_LOG_FILE
    echo `date` >> $MONTH_LOG_FILE
    echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" >> $MONTH_LOG_FILE

    # Run the game
    ./nwmain $@

    # Log
    cat logs/nwclientLog1.txt >> $MONTH_LOG_FILE

    # End logging block
    echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" >> $MONTH_LOG_FILE
    echo `date` >> $MONTH_LOG_FILE
    echo "=-=-=-=-=-=-=-=-=-=- END LOG -=-=-=-=-=-=-=-=-=-=" >> $MONTH_LOG_FILE
     

    hawklen

    Re: Log/Chat Recorder
    « Reply #6 on: June 13, 2007, 01:46:58 pm »
    Makes a lot of little log files! *winks* I perfer a cron job once a day ;)
     

     

    anything