Jump to content

Rachel1206

Resident
  • Posts

    739
  • Joined

  • Last visited

Posts posted by Rachel1206

  1. Ohh Xiija beated me... anyway, always be sure the curly braces are pairwise. Further no need for state changes, just handle the simple rain on/off in the touch event.

    integer bRain= TRUE;

    Particles( integer bState )
    {
        if (bState)
        {
            llParticleSystem(
            [
                PSYS_PART_FLAGS,( PSYS_PART_WIND_MASK| PSYS_PART_FOLLOW_VELOCITY_MASK ),
                PSYS_SRC_PATTERN, PSYS_SRC_PATTERN_EXPLODE,
                PSYS_PART_START_ALPHA, 1,
                PSYS_PART_END_ALPHA, 1,
                PSYS_PART_START_COLOR, <1,1,1> ,
                PSYS_PART_END_COLOR, <1,1,1> ,
                PSYS_PART_START_SCALE, <4,4,0>,
                PSYS_PART_END_SCALE, <4,4,0>,
                PSYS_PART_MAX_AGE, 5,
                PSYS_SRC_MAX_AGE, 0,
                PSYS_SRC_ACCEL, <0,0,-5>,
                PSYS_SRC_BURST_PART_COUNT, 2,
                PSYS_SRC_BURST_RADIUS, 15,
                PSYS_SRC_BURST_RATE, 0.01,
                PSYS_SRC_BURST_SPEED_MIN, 0,
                PSYS_SRC_BURST_SPEED_MAX, 0,
                PSYS_SRC_ANGLE_BEGIN, 1,
                PSYS_SRC_ANGLE_END, 1,
                PSYS_SRC_OMEGA, <0,0,0>,
                PSYS_SRC_TEXTURE, "6918812d-8e7f-b347-4732-456e7918624b"
            ]
            );
        }
        else
            llParticleSystem([]);
    }

    default
    {
        state_entry()
        {
            bRain= TRUE;
            Particles( bRain);
        }

        touch_start(integer num_detected)
        {
           // toggle the boolean FALSE/TRUE
            bRain= !bRain;
            Particles( bRain );
        }
    }

     

    • Like 1
  2. Yes,  and you can make it even simpler use a comma separated string "name", n - which you then add to a single list.

    And most simple , if limited  low number of item to be picked up, just a comma separated string stand alone.

    Another even more simple elegant solution is just to add the pickup unique name/ID to a list and count the unique pickup name/ID in the list to tell player: You picked up 6 corns, 3 apples etc.

    Last the easiest way to handle count.

  3. Does the subroutine handling the doors ever being called?  Normally handling is done by touch or more advanced sliding doors opens by proximity or by a person standing on a trigger.

    Very basic sliding right opening door sample using touch :

    integer bOpen= FALSE;

    default
    {
        state_entry()
        {
        }

        touch_start(integer total_number)
        {
            integer i;
            float d= 0.1;   // delta 10 cm
            
            bOpen= !bOpen;
            if (bOpen) d= -0.1;
            
            vector pos= llGetLocalPos();
            
            for (i=0; i<20; i++)
            {
                pos.y= pos.y+d;
                llSetLinkPrimitiveParamsFast(LINK_THIS, [PRIM_POS_LOCAL, pos]) ;          
            }
        }
    }

  4. On 8/30/2018 at 3:44 PM, cykarushb said:

    If an Ethernet cable works and wifi doesn't, either your router or the wifi adapter in your laptop is dying. It happens mainly to much older systems but sometimes the chips on the cards get too hot and start having faults. Usually indicates by it being unable to hold a connection stable.

     

    Now before writing of hardware, more simple things has to be tested first. And very simple,  using a WIFI channel on the router, where this channels are used by others - this can cripple any WIFI connection.

    Same with any kind of radio signal interfering - machines, old mopeds, televisions - often a simple reorientation or the routers placement can solve this.

    If the problem persists after having ruled out the simple solutions. you can be right and it is an indication of dying hardware.

    • Like 1
  5. 2 hours ago, animats said:

    LSL gets to set the URL, but can't, as far as I can tell, interact with the loaded page.

    Using embedded Java-scripts in the HTML string feed (<script> MyScript;</script>) should make it possible to interact with a given web page, given the web pages interactions are documented. The Linden Lab Map API is quite well documented.

    I would assume, this is how most advanced map based navigation work in world. Adding face layers, we can show position or display relevant information imposed independent of the underlying dynamic map layer. By no means a trivial task to code.

  6. If the texture is full perm and inserted from inventory the name returned is the UUID of the texture.

    If the texture has different permissions, for example NO COPY and you place the texture on a face, the texture is moved into the objects content (root) and the full name of the texture is returned.

    If the texture is placed by another and not full perm NULL_KEY is returned.

    • Like 1
  7. On 8/26/2018 at 5:13 PM, Innula Zenovka said:

    I'm wondering if this demo object with the boxes isn't a rigged mesh, with the two lower boxes rigged to move with the arms.  

    *http://wiki.secondlife.com/wiki/Object#Coalesced_object

    Or it could be some clever use the avatars bounding box, placing a prim (or prims) correct to a predetermined orientation and relative position to say head, would be easy in this way.

  8. For SALE, 1024m parcel, 351 prims - 2,450 L$

    01callisto_233_101_69.thumb.jpg.ff8521dec37ff8cbd6c0601d223c8cd8.jpg

     

    Price idea: 2,450 L$ - good value and same price as I paid for it.

    Lovely roadside mountain plot at, Callisto, Northwestern Sansara. Direct road access to major parts of Sansara, beautiful mountains, snow lands, lakes, rivers. Sansara is the oldest continent and by far the place with the most interesting and has a lot to explore.

    Nice friendly neighborhood, no wild structures, buildings and gardens kept in the low mountain style, quiet region and surroundings.

    02callisto_233_101_69.jpg.3237bb87ebeadefdd316197864e22fe3.jpg

    URL: http://maps.secondlife.com/secondlife/Callisto/233/101/69

    Buy it direct on site or contact me in world on IM: rachel1206

     

  9. Does it make sense to have more states in a script handling simple operations like sitting on a chair?

    A simple check for NULL_KEY value of the variable gSitterId should be enough to handle all events correct.

    IMHO the use of states in this case, just makes the script unnecessary complicated, where logic errors are easy to make and hard to find. And not to mention future maintenance of the script/updates.

     

    • Like 2
  10. 2 hours ago, Qie Niangao said:

    With Mesh, though, it's trivial to make the vast majority of links in the vehicle assembly have Physics Type "None" perhaps layering in a simple transparent shell to handle all the physics. There's simply no reason to have a physics weight over 32 in modern vehicle construction.

    Qie, is this the Weights of Selected->Physics: Physics weight of the selected shown in edit->advanced of an object?

  11. BTW add LSL Preprocessor, all comments get removed - I am surprised this step is necessary, as I thought the compiler server side just would ignore all comments.

    So why is comments removed by the preprocessor?  Is a reminiscent from early SL? OK, the size of the text source file gets smaller, but there must be more to it.

     

  12. As animats says, it looks like wrong set pose position, check out: Avoiding problems with Second Life vehicle poses

    Follow this rule to thumb for vehicle building, if vehicle gets pushed wrong when seated and engine is running ( vehicle changes to using physics ) :

    IF pose(s) are CORRECT THEN CHECK root prim

    IF root prim is CORRECT THEN CHECK vehicle mesh parts bounding boxes

    IF mesh is CORRECT THEN  ? ? ? make a cup of coffee, back to drawing board on how to build your vehicle.. ⛏️

    As earlier recommended, the Linden Vehicle Tutorial is a must read and understand for all basic vehicle building.

     

    • Like 2
  13. For what it is worth, my 2 cents, to me it sounds a little like overkill to use mesh objects to create a HUD.  A HUD is basically just a view port placed on the users screen.

    A more simple solution instead of using mesh, is to use a texture based single prim. If your HUD requires special shapes and an 3D illusion of depth, this can also be obtained by clever usage of textures.

    The sample you refer to is - if I am not wrong - based on the default dialog box used by the viewers, where multi pages are added.  With a texture based solution there is no need for link message handling or listening to internal commands, instead  much simpler handling of the users mouse clicks.

    • Like 1
×
×
  • Create New...