Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

chat logger (with permissions)

Oshi Leakey
Registered User
Join date: 21 Jan 2008
Posts: 10
03-03-2008 13:58
I've created a chat logger that asks permissions, but i am wondering, what is the best way to email the log to myself (we are doing a study on avatars and their relationship to their real life counterparts). Ive set up the email to send a "dump list to string" to an email address (Ive stored the chat and usernames to lists).

The problem I get is when the list gets too long, I get a crash when trying to convert from list to string. I think lists can only be so long. So what I want to do, regardless of the reason, is send an email after the list gets to say 50 entries. Then reset the list and go again.

Any help? Im basically having trouble resetting the list, using lldeletesublist. I can get it to email after x entries, but it doesnt seem to delete the sublist accordingly. Im a fairly decent programmer with java/c++ but I am not used to lindenscript. I have to get this done by tomorrow. Let me know if anyone can help.

Joshua
Pale Spectre
Registered User
Join date: 2 Sep 2005
Posts: 586
03-03-2008 14:15
list = llDeleteSubList(list, 0, 49);

...would discard the first 50 elements of the list.

list = [];

...would wholly clear the list.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
03-03-2008 19:25
chatList = llDeleteSubList( (chatList = []) + chatList, 0, 49 );
will delete the first 50 without increasing the memory load on the script
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Oshi Leakey
Registered User
Join date: 21 Jan 2008
Posts: 10
03-03-2008 21:55
thanks I got it!
Rock Vacirca
riches to rags
Join date: 18 Oct 2006
Posts: 1,093
03-04-2008 01:20
I have never understood the need to send an email to yourself. Why send chat out on an email into the ether, to be delivered (eventually) back to your PC where it originated from in the first place??

All my chat, IMs, dates and times are stored on my PC in my Second Life chat.txt logfile.

I have a little windows utility that can extract from the chat log all dialog by named avatars or objects (let me know if anyone would like a copy).

Rock
Very Keynes
LSL is a Virus
Join date: 6 May 2006
Posts: 484
03-04-2008 01:34
From: Rock Vacirca
(let me know if anyone would like a copy).

Yes Please :)
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
03-04-2008 02:16
From: Rock Vacirca
I have never understood the need to send an email to yourself.


Let's say you want to keep official logs of a meeting, that you yourself may not be able to attend? Doing something like this, while tedious. does have it's uses. Emails can be CC'd, they can be forwarded, if a web-based mail account is used, they can be accessed from the web (from, let's say a work computer).

Systems like this also have uses in retail locations where perhaps you want to access chatlogs of what's said in your store. (without being forced to BE there 24/7).

I made a visitor counter that shoots me daily emails of the number of visitors that day, and the names of people who have been in my shop since the last email. I did have a chat relay system installed at one point, but it was IMing me, and it got tedious. I never considered emails tho.
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura
Larrie Lane
Registered User
Join date: 9 Feb 2007
Posts: 667
03-04-2008 02:25
From: Rock Vacirca
I have never understood the need to send an email to yourself. Why send chat out on an email into the ether, to be delivered (eventually) back to your PC where it originated from in the first place??

All my chat, IMs, dates and times are stored on my PC in my Second Life chat.txt logfile.

I have a little windows utility that can extract from the chat log all dialog by named avatars or objects (let me know if anyone would like a copy).

Rock


Rock,

does this also include capped messages? or just the the chat and IM whilst online?

If it inludes capped then please send me a copy.
Rock Vacirca
riches to rags
Join date: 18 Oct 2006
Posts: 1,093
03-04-2008 06:37
From: Larrie Lane
Rock,

does this also include capped messages? or just the the chat and IM whilst online?

If it inludes capped then please send me a copy.


Hi Larrie, I am sorry, but I have never fully understood what is meant by 'capped messages', or 'capped IMs'.

Basically, when you check all the IM and Logging functions in Edit, Preferences, Communications tab, all your chat and IMs while you are online are sent to your chat.txt log file, inlcuding all 'green chat text' sent by objects, and is usually located at c:\Documents and Settings\{your user name}\Application Data\Second Life\{your avi name}\chat.txt

All IMs sent to you while you are offline are stored, and delivered to you the next time you log in, and then will be added to the chat.txt file.

The windows utility I wrote, which I called SLeuth, simply allows you to open the chat.txt file and display it in a textbox. You then select the Parse (text search) Pattern tool and enter the pattern data, such as 'Rock Vacirca:', you then click on the Parse tool on the toolbar and all chat initiated by Rocker Vacirca is then filtered out and displayed in the textbox, from where you can save it out as a separate file.

I use this a lot for storing large amounts of permanent data from inworld tools, without using any external calls whatsoever, just by using llSay or llOwnersay from my scripts. One tool, called SimBot the Sailor, rezzes 256 geoprobes (GeoProbe001 thru GeoProbe256), which comb the surface of a sim, measuring the height in every 1sqm plot, and send their results back via llOwnerSay. This all ends up in my Chat.txt logfile, and the SLeuth app can then extract that data from everything else in that file. Another app then converts all that heightfield data (which is in CSV format) into a SL RAW file, so entire sims can be mapped into a RAW file if the original RAW file has been lost or corrupted.

Rock
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
03-04-2008 06:55
From: Rock Vacirca
All IMs sent to you while you are offline are stored, and delivered to you the next time you log in


If ONLY this were true.
Sadly, there is a "cap" on the number of "offline ims" that SL will store for you... and sadly it's not a very large number. One pesky customer on a rant can fill up your offline queue pretty quickly.

From there, of course, you MAY elect to rely on "send offline IMs to email.. but that system has NEVER been reliable.

And as stated in my previous post, this won't actually "CYA" for local-chat. Whereas a nice plywood box in the room could do precisely that. Logging local chat and archiving it to emails for you, even when you're asleep, at work, or off to the ball game with the kids.
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura