The World of Layonara

The Layonara Community => Ask A Gamemaster => Topic started by: LordCove on June 13, 2007, 12:38:01 AM

Title: Log/Chat Recorder
Post by: LordCove on June 13, 2007, 12:38:01 AM
What is it?
Where is it?
How do I work it?

:)

Thanks
Title: Re: Log/Chat Recorder
Post by: Interia_Discordius on June 13, 2007, 12:41:32 AM
It's all detailed in this thread.
http://forums.layonara.com/general-discussion/93636-chat-logging.html
Title: Re: Log/Chat Recorder
Post by: LordCove on June 13, 2007, 12:44:31 AM
Mucha gracias  ;)
Title: Re: Log/Chat Recorder
Post by: Tanman 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 (http://nwvault.ign.com/fms/Download.php?id=19664) 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.
Title: Re: Log/Chat Recorder
Post by: hawklen 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 (http://nwvault.ign.com/fms/Download.php?id=19664) 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*
Title: Re: Log/Chat Recorder
Post by: bytor 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
Title: Re: Log/Chat Recorder
Post by: hawklen on June 13, 2007, 01:46:58 PM
Makes a lot of little log files! *winks* I perfer a cron job once a day ;)
SimplePortal 2.3.7 © 2008-2026, SimplePortal