Jump to content

Rachel1206

Resident
  • Posts

    739
  • Joined

  • Last visited

Posts posted by Rachel1206

  1. 4 hours ago, Innula Zenovka said:

    Is there an LSL syntax checker for Visual Studio?  If there is, how do you get it to work?

    Not to my knowledge - the old user made does not work with newer VS.  It should be possible to import TextMate snippets, but I have not done it.

    I just work on templates based on standard C++/C#, where you get the default syntax highlighting on variable definitions, values, strings. This I find adequate for my programing work with LSL. To me it is working with several open source files of a SL project which makes me prefer VS, where I find it easier to follow say  linked messages etc. and just get an overview of a more complex project with several source-files from an object and its children.

    • Thanks 1
  2. 5 hours ago, Chellynne Bailey said:

    I've used LSL Editor for ages, and it's been wonderful, but I think I've outgrown it. It's just not doing everything I need it to do.

    What editor does everyone use? Frankly, I'm kinda wishing for one that'd let me save snippets for easy insertion. No idea if any of them do that, however. >.>

    I use the build-in editor for small jobs, for larger or complex scripting tasks I use VisualStudio 2017 - an overkill yes, but just love VisualStudio and the advanced search/replace options and being able to work with several files open at the same time.

  3. Well, some basics to get you on the way, example on changing color, when you touch the object, bump into it and automatic change based on a timer- but study the tutorials.

    vector green    = <0.180, 0.800, 0.251>;
    vector red      = <1.000, 0.255, 0.212>;

    integer bToggle = FALSE;

    toggleColors()
    {
            bToggle= !bToggle;
            
            if (bToggle)
            {
                llSetColor( green, ALL_SIDES);
            }
            else
            {
                llSetColor( red, ALL_SIDES);
            }
    }

    default
    {
        state_entry()
        {
            // call timer every 15 second
            llSetTimerEvent(15.0);
        }

        touch_start(integer total_number)
        {
            toggleColors();
            
            llSay(0, "You touched me...");
        }
        
        collision_start(integer num)
        {
            toggleColors();
            llSay(0, "You bumped into me...");
        }
        
        timer()
        {
            toggleColors();
            llSay(0, "Timer changed colors...");
        }
    }

     

    • Like 1
  4. Check out llSetLinkAlpha to fade an object in/out  - see Wiki, there is even a small sample.

    For a little good color change sample, check Wiki on llSetColor - now you write rotation between colors, I assume, you just mean changing between say two colors colors. Else it is normally understood as fading colors into each other based on for example an color wheel using RGB values, which is more complex to do.

    If you are very new to scripting in SL, use a little time to study the Tutorial, both things you want to make are excellent beginner training to do in LSL.

     

  5. Or you could build some sound emitters in the room with the fish tank - that is some objects to which a message is send on a hidden channel or simply let the tank it self send the sounds  instead of the little fishies them self.

     

  6. TCMG20170929.thumb.png.f03f11e823d6a82f4003ebeb8a9964bd.png

    All SIM with TCMG seem to operate normally now (5.30AM SLT). One weird thing though, the whole  week I experienced only a few pink gems given even catching the more dangerous glytches, so now I got a ton load of Epic Glythes.... would have preferred gem payout.

    Further at last I got a blue gem and would have expected something in game play rewarding this effort better, like given better gem ratio.

    When I inspected the bonus levels portals at the beginning of game, it said, it cost 99 pink gems to enter. And I upgraded to the fly The Platinum Flyswatter first time I got 99 pink gems, so I could catch faster and better... in order to get 99 pinks gem again to enter the bonus portals. But after upgrading weapon you need 5/10 blue gems to enter :(

    BTW. I read this on a blog: "After about an hour an a half I came away with an upgraded Glytches catcher (the net)... " Chic at Phil's Place - so clearly LL changed the payout ratio, it took me and others I have asked one week+ just to get the first 99 pink gems.

    With the current payout of gems it will take me maybe nearly 3 months to get the above 10 blue gems to enter the bonus portals, bummer and game stopper - which is a shame since it is an excellent and fun game and great way to be introduced to the several places in Second Life.

    FYI, I filled a JIRA as the  Binaynays Epic unpacking has a bug, where it is not delivered, should be fixed by now.

     

    • Like 1
  7. 42 minutes ago, Love Zhaoying said:

     

    My point was, I don't see anything in the wiki that looks very close to any of the new constants listed in the wiki.

     

     From the wiki:

    OBJECT_SELECT_COUNT
    Gets the total number of agents selecting any links in the object.
    If id is an avatar, 0 is returned.

    OBJECT_SIT_COUNT
    Gets the total number of agents sitting on any links in the object.
    If id is an avatar, 0 is returned.

    Source: http://wiki.secondlife.com/wiki/LlGetObjectDetails

    • Thanks 1
  8. I wish the gem payout was better, after catching 500+ glytches, I only got 21 pink gems... long way to the 99 pink gems and able to upgrade to next weapon - not to mention to enter the 3 portals.

    Riddles or small tasks to be made - giving gems would when solved correct, would have been a nice addition for that little tedious running around.

    But very fun game and the glytyches are so funny and nice catch to keep, especial the rare and epic ones, love it :D

     

  9. Always use braces. Notice, below could be made without braces.

    if (bOn)
    {
       llOwnerSay( "You are clever");
    }
    else
    {
       llOwnerSay( "You are ehmm not so clever");
    }

    This safes your from potential logic program errors, which are the hardest to find as the program will compile and run - but does not do, what is intended. Further, the source code is easier to read and understand - important when you want to change something long time after it was original written.

     

    • Like 1
  10. Notice: Your system specifications

    There is definitely something something wrong, your Allienware17 game laptop has a Nvidea GForce graphic card beside the build in Intel graphics on board.

    What could cause the NVidea not to be shown?

    A) You run on battery and battery level is below a given value, where you system disables advanced features to save power - plug in the laptop to power outlet.

    B) Configuration, settings could be wrong - try to set it to High Performance in Power Settings in Windows.

    In the NVidea Cotrol panel, set SL/Firestorm Viewer to use High Performance NVidea processor.

    You can also change between the integrated and the NVidea graphics with Fn+F5 on an Allienware17- that is toggle between build in on board graphic and Nvidea, but the NVidea requires either plugged into power outlet or as shown above always use on cost of battery.

    If the steps above does not help, get help from a computer wizard friend, who can check BIOS and drivers according to Dell/Allienware knowledge base.

     

    PS
    Do not get scared when the above solution makes your computer faster and SL run better and in high graphics quality! :D

     

    • Like 3
  11. You link TO the ROOT prim - confusion seems to come from video/builders showing, where they select last prim and link items together and refers to this as last prim. It is important to understand root prim, when we work on things more complex.

    The root prim is our anchor point no matter what - orientation, positions of linked items, be it wheels, doors, hands, tentacles - important if we want movements etc.

    Play around with it - best way to learn in SecondLife is learning by doing!

    And rule #1 - always work on an object rezzed facing  to the east - that is rotation <0.0, 0.0, 0.0>

  12. Why use username and not the avatar UUID? Or do you want to use https://my.secondlife.com/XXXXXXX  and do not have the key stored in an external db?

    else the just (pseudocode):

    dataserver( key queryid, string data )
    key keyID (key)data;
    string strUserName= llGetUsername( keyID );
    // Process transaction... based on keyID and strUserName

    • Thanks 1
  13. You did not use a listen handle and you set the listener to NULL_KEY. Using a handle will ensure the listening is active and using her UUID instead of NULL_KEY will make the listening on the public channel 0 less intrusive.

    If your fiancé owns the object - get the UUID with llGetOwner(); or just assign her UUID to the key value. Now we can also get her name direct based on the UUID, which we use later when "talking back" as shown below in the code fragment.

    integer listenHandle;
    key keyUUID;
    string strName;

    state_entry()
    {
        keyUUID= llGetOwner()
        strName= llGetDisplayName( keyUUID );
        listenHandle= llListen(0,"", keyUUID, "");
    }

    listen(integer channel, string name, key id, string message)
    {
        if (message == "boobs")
        {
            string strTmp = llGetObjectName();
            llSetObjectName (  strName);
        
            llSay(0, "Ohh please behave!");
        
            llSetObjectName( strTmp );
        }
    }

  14. Best thing to do is to visit some bike drive sims and ask ppl and often bikers let you try their favorite bike and tell pro/cons about them - just like in RL.

    Further what kind of bike? A bike for slow cruising mainland - or a race bike for blistering fast laps on a race track?

    My favorites are:

    • Kris Harvey, +ROAD RAGE CUSTOMS+ makes excellent cruising bikes.
    • Ilona Kohime,  (IK) makes very fast, good handling race bikes.
    • Like 1
  15. Now we have to distinguish between what kind of item we want to make a demo of.

    • An object - be it a tea pot or vehicle
    • Wearable - for example clothes
    • Attachment - for example a cake given from a dispenser

    There are several ways to do this. An object is easy made disappear using either a timer or when an person unsit from say a vehicle with llDie() - for the other kinds use llAttachToAvatarTemp(). If it is attached direct by the user from  the inventory, one has to do some extra script works and use llDetachFromAvatar() and handle it here.

    Further the permissions set combined with above ensure a basic protection of abuse of the demo item.

    • Like 1
  16. Well, I am also a little perplexed, but Roolig explained very well, why it does not work.

    If you use

        changed(integer change)
        {
            if (change & CHANGED_LINK) //note that it's & and not &&... it's bitwise!
            {
                llOwnerSay("The number of links have changed.");
            }
        } 

    You clearly will notice, how long it takes before the updates have finished. Now, in the change event you could use a combination of a Boolean bReady and a counter and then execute commands to change color etc. And you will have to get right right link number in order to color the correct one - you just color link number 6 at anytime - one way to solve this, is to name the titles in question "ColorMe#x" when creating them and then in the change event using iterations through the linkset and examine llGetLinkName()

    • Like 1
×
×
  • Create New...