SRL Archive - Senior Scripts and Snippets

Advanced Chat Logger


masquerader

2007-07-10 04:45:47

Ive spent the last few days working on a program to log the chat window. I know there is already stuff that does that, but if a lot of people are talking or if you dont run the chat logger enough, you will probably miss 3/4 of the text. So thats what this does, it will read every line in the chat box, compare it to the old list, and find the new lines.

This project became a little more involved than I expected. It copies the text to a bitmap, so that chat while its running wont affect it. If the previous methods/font was used for this, it would have taken almost half a second to get all the text, but I tinkered with it, and if you use the font below (just add to the fonts directory) it runs in about 100 ms on my computer. The font is different because I corrected the spacing on a few characters and added a few that were missing (some foreign ones are still needed).

Anyway, here it is. I put did my best with standards, just so you wouldn't all immediately complain, even though I doubt you will be able to get much out of it anyway.

IF YOU DIDNT BOTHER TO READ ABOVE: COPY THE ATTACHED FONT TO FONT DIRECTORY

RAM

2007-07-13 00:45:42

Thanks for your hard work Masq, gonna take a looksie at this :)

~RAM

masquerader

2007-07-13 00:57:45

From: RAM_RUNE
Thanks for your hard work Masq, gonna take a looksie at this :)

~RAM

hehe, you should probably try the newer version. it actually frees bitmaps correctly and can handle mods/admins

it also saves the chat to the log