Global 'Master' Buffer

Posted by Tricuspa on Sun 05 May 2002 05:03 PM — 2 posts, 13,703 views.

USA #0
Presuming it hasn't been yet mentioned or already mentioned.

I wonder if its possible to set up an auto buffer for all worlds. What this would do is simply log a number of lines chosen by the user for all worlds. A master log per se. As well this would have the option to automatically save after a speicifed time.

Once in a blue moon the system crashes and can't be recovered (you have to close out). This prevents you from saving any logs or data you may have (and sometimes losing where you last left off). You lose the log data or may not even have it on. Being able to have this emergency log would be helpful.

The master log would record like this

<Name of World 1> Soinso says....
<Name of World 1> You pose
<Name of World 2> Someoneelse poses
<Name of World 1> Soinso says....
<Name of World 2> You pose...

etc...

Anyway hope this explains this idea!
Australia Forum Administrator #1
You could do that now with a bit of scripting. What you need is a "master" world - maybe an existing one, or maybe one you aren't using for anything else.

The master world would have a log file open, and maybe a trigger set up to "omit from log" everything that happens in it (eg. match on "*", omit from log).

Then each other world has an appropriate trigger set to catch the things you want to log. That trigger calls a script, like this:


sub LogIt (sName, sLine, aryWildcards)
dim w

  set w = world.GetWorld ("Master World")

  if not w is nothing then
         w.writelog "<" & world.WorldName & "> " & sLine
   end if

end sub


What this is doing is using GetWorld to find the master world (by name), and then, if found, telling that world to log the line, prepended with the world name.

By using a log file, you get the benefit of automatic saving every couple of minutes.