[Opensim-users] Very bizarre HUD issues

Charlie White charlie.white at thwakk.com
Mon Feb 28 15:52:54 UTC 2011


I am on OpenSim v0.7.0.2 running in StandAlone mode on a Linux (Ubuntu 
64-bit system).  I have noticed a strange phenomena recently that seems 
to be affecting my avatars.  When a player signs in to the sim or signs 
out of the sim, for a brief few seconds, the entering or exiting 
player's HUD is appearing on all other players' viewers.  Most of the 
time just the outline of the HUD appears, along with 1 or 2 textures.  
Then it vanishes after a few seconds.  It also seems as though it is not 
appearing at the attachment point it is designed for (upper left) and 
seems to be grabbing the center of the screen.  It does not rez in the 
environment (on the ground) only as a HUD attachment to the other 
players.  Also, occasionally, a transparent piece of the HUD will 
momentarily attach to the center HUD attachment point and block you from 
clicking on other objects in the environment.  If I right click to see 
the owner/creator there is no information and if you turn left and right 
it disappears. This behavior does not seem to coincide with another 
avatar signing in or out.

I have not seen anything like this in the Mantis (unless I am not 
choosing proper search keywords).  I would logically assume that when 
you sign in or out some event is triggering that is firing an event to 
all viewers.  Perhaps I have coded something incorrectly?  Here is the 
script in my root prim:

integer Version_Channel = 15;
integer attachflag = 0;
default {
     state_entry() {
         llSay(0, "HUD");
     }
     run_time_permissions(integer perm) {
         if (perm & PERMISSION_ATTACH) {
             if(attachflag) {
                 llSetAlpha(1.0,ALL_SIDES);
                 llOwnerSay("attachToAvatar");
                 llAttachToAvatar(ATTACH_HUD_TOP_LEFT);
             }
             else {
                 llOwnerSay("detachFromAvatar");
                 llDetachFromAvatar();
             }
         }
         else {
             llDie();
         }
     }
     attach(key attached) {
         llListen(Version_Channel,"",NULL_KEY,"");
         if (attached != NULL_KEY) // object has been detached
         {
             llRegionSay(Version_Channel,"version");
         }
         else {
             llDie();
         }
     }
     listen(integer channel, string name, key id, string message) {
         if(channel == Version_Channel) {
             if(message != llGetObjectName() && message != "version") {
                 attachflag = 0;
                 llOwnerSay("Old Version of the HUD. Click on game board 
for new version.");
                 llRequestPermissions(llGetOwner(), PERMISSION_ATTACH);
             }
         }
     }
     on_rez(integer total_number) {
         llSetAlpha(0.0,ALL_SIDES);
         attachflag = 1;
         llOwnerSay("attachflag setted.");
         llRequestPermissions(llGetOwner(), PERMISSION_ATTACH);
     }
}
-- 
------------------------------------------------------------------------
Charlie White
Chief Operating Officer/Co-Founder
Thwakk, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-users/attachments/20110228/72ab28ad/attachment.html>


More information about the Opensim-users mailing list