Jump to content

Counter time of visitors


You are about to reply to a thread that has been inactive for 93 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Probably something like that on MP. This subforum is for actual scripting advice, you should post into the Wanted section.

Doing it from scratch is complicated without an external database. (Even then it's complicated.)

Edited by Wulfie Reanimator
  • Like 1
Link to post
Share on other sites

As a thought exercise in how to do this, wouldn't it be possible to use something like Maria Korolov's visitor script from HypergridBusiness?  She posted one a few years ago that records visitors to a Google Sheet, first removing duplicates who were already recorded.  It seems like it should be possible to modify her script to also record when an avatar disappears from a region.  Then have Sheets calculate the amount of time they spent there.

I'm sure that this is not as easy-peasy as it sounds in my head. :)

Link to post
Share on other sites

Unless you are dealing with a high traffic area, so you expect to generate a huge amount of data and need to save it for a long time, you don't truly need to go to great extremes.  Systems like the ones you describe or that Wulfie is thinking about are necessary if you are running a club or an in-world shop that gets a lot of business.  If you're just interested in finding out how long someone stays in your house, and you don't really care about saving reams of data until you log in to weeks from now,  you can probably collect the information you need and put it into the Description field of a prim somewhere -- or IM/e-mail it to yourself periodically.  You can modify almost any greeter/counter script to do that.  My own counter in the script library is ten years old now but could do the job with a little tweaking.  It has the advantage of having a fairly high capacity, as long as you don't care about saving visitor names.

Edited by Rolig Loon
Cleaner wording
Link to post
Share on other sites

If the names are stored in the script it is a memory hog. So, it can be very easy to do, but it can crash also very easily.

Now if you are looking for a specific person like a dancer or host then it's different.

Edited by Sabrina Tamerlane
Link to post
Share on other sites
1 hour ago, Sabrina Tamerlane said:

If the names are stored in the script it is a memory hog. So, it can be very easy to do, but it can crash also very easily.

That's quite true.  That's why I said that it's not practical to use local storage if you are trying to track traffic stats on a busy parcel.  Traffic in your own house is likely to be pretty light, though, so it's a decent idea for that sort of place.  Mine own greeter/counter can store stats for something like 1000 visitors before it starts lopping off the oldest ones to make space, so it's not bad for a private home or a quiet area.  Because it always checks free memory, it never gets close enough to being so full that it crashes.

Link to post
Share on other sites
You are about to reply to a thread that has been inactive for 93 days.

Please take a moment to consider if this thread is worth bumping.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...