Jump to content

Sunbleached

Resident
  • Posts

    264
  • Joined

  • Last visited

Posts posted by Sunbleached

  1. 11 minutes ago, Fox Wijaya said:

    you can, but keep in mind you can put yourself in a position that's not making you very popular and can make you get a reputation as pushy
    For example posts with remarks as "urgent" are skipped by many people that are potential good helpers.
    Also tagging specific people, make others pass the post without answering.
    If you need private help hire a personal assistent ?

    Hi! Thanks for your answer!

    Well if I wrote somewhere an "urgent", then it really was an urgent matter. For me at least.

    I do pay and hire when its serious.

    And i am here for help, not to be popular.

     

  2. Hello! Can I post in connection with my questions the tags with the names of forum participants who are competent in a particular area and asking for help? In the case of for example, if I can not get a response for a long time.

  3. @Fenix Eldritch

    Wow! Thanks for such a comprehensive answer! Yes, I will most likely do it, the more so that the script and without it works perfectly and does what I need.


    Until the next question has arisen why the main script does not have an idle running sound, with such a variety of other sounds like jumps, brake, land (6-7 sounds). but most likely i need to ask the author of the script.

  4. Hello! I want to create a hoverboard (YEAH!) using a Ferd Frederix's open source script. I guess will have a lot of questions about this later. here is the first one.

    In addition to the main script, there is such a short script, which seems to be placed in child prim. What is it for and why does it not do anything for me?

    integer stuck = 0;
    
    default {
    
    timer() {
    if (!llGetStatus(STATUS_PHYSICS)) {
    if (stuck < 1) {
    llSetStatus(STATUS_PHYSICS, TRUE);
    stuck++;
    }
    else {
    llSetPos(llGetPos() + <0.0, 0.0, 0.5>);
    llSetStatus(STATUS_PHYSICS, TRUE);
    }
    }
    else {
    stuck = 0;
    }
    }
    
    link_message(integer sender, integer num, string str, key id) {
    if (str == "idle") {
    llResetScript();
    }
    else if (str == "get_on") {
    llSetTimerEvent(1.0);
    }
    }
    }

    Actually it does something. It makes hoverboard physical, when i rez it, but what is the purpose of this? and perhaps it does something else?

  5. Hello! there is a need to make the airport runway, the lighting to it, with the possibility to on/off, including some effects such as blinking. and for this i need a script. but so far it has not come to it, since an interesting problem has emerged. the length of the runway is 256 meters. uploadable objects have a maximum of 64 meters in length, linking a few 64 meter objects together does not work, because the objects are too far away. How do they usually act in such a situation?

  6. Hello! What are the ways to stream online video/audio stream to sl, so that only the owner has control.

    So I found the best way is parcel media. Everything s fine but a problem:

    I can not click on the screen... Buttons do not work or should it be this way? I cant go full screen, etc... Please help!

  7. 2 hours ago, Nova Convair said:

     😁

    😎

    @Sunbleachedit's good to know when and under what conditions an event fires. http://wiki.secondlife.com/wiki/Category:LSL_Events

     

    Hello! Thanks for the link! I really did not know that there are 39! events!


    I do not know how much this relates to the topic, but here is the question. Sometimes some changes in the script do not take effect until i manually reset the script, sometimes even this does not save and i have to rez the object to the ground, reset the script and take the object to wear it again.
    I think i just need to add a reset script, a mystery is why it happens and in which place to insert it? For example, if it is a typer effects script (animations, particles, sounds).

  8. 11 hours ago, Rolig Loon said:

    Well, for starters,  you told the script in the state_entry event that you wanted it to ask the owner for permissions.  If you are still the owner,  nobody else can use the device.  I suggest restarting the script on CHANGED_OWNER 

     

     

    Thank you so much! I added this lines before CHANGED_TELEPORT and now it works perfectly!

            changed (integer change)
    {
        
            if (change & CHANGED_OWNER) 
            {
                llResetScript();
            }
        
        
        
        if (change & CHANGED_TELEPORT)

     

    • Like 2
  9. @Mollymews@Rolig Loon

    And still what is wrong with this script? When i use it - it works fine, but when another avatar - it gives an error! This is the latest version of the script. I skipped particle systems to make it shorter. Any help please!

    default
    {
        
            state_entry()
        {
            llRequestPermissions(llGetOwner(),  PERMISSION_TRIGGER_ANIMATION);
        }
        
            run_time_permissions(integer perm)
        {
            if (perm & PERMISSION_TRIGGER_ANIMATION)
            {
                llOwnerSay("animation will end in 10 seconds");
                llSetTimerEvent(7.0);
            }
        }
            changed (integer change)
    {
        if (change & CHANGED_TELEPORT)
       {
                       llStartAnimation("Maleficent");  
    
    llParticleSystem([///skipped]);
    
    
    llSleep(6);
    
    llParticleSystem([///skipped]);
    
    llSleep(1);
    
    llTriggerSound ("thunder", 1);
    
    llParticleSystem([///skipped]);
    
    llSleep(2);
    
    llParticleSystem([///skipped]);
    
    llSleep(1);
    
    llParticleSystem([]);
    
        }
    }
        timer()
        {
    //        llSetTimerEvent(0.0);
            llStopAnimation("Maleficent");
        }
    }

     

  10. 4 hours ago, Kyrah Abattoir said:

    Or if you want to make it configurable

    Private: If( id == llGetOwner())

    Public/Private: if(public || id == llGetOwner())

    Hi! Thanks! Yes, of course, I would like to! But how it works?

    I have come across versions in which you can give permission to others. Is this the case?

  11. 55 minutes ago, Qie Niangao said:

    Oh, sorry, I guess "source code" is a kinda jargon term, meaning the ability to see the text of the program, which in Second Life script permissions also entails the ability to modify it.

     

    27 minutes ago, Rolig Loon said:

    As Qie says,  we can't tell you much without seeing the script,  but if you can read it yourself,  you should be able to make the small necessary changes with little trouble. It's pretty obvious coding. 

    Thank you both very much! Yes I have permission to mod, even more, i got it from my vehicle script generator hud. And i d love to put a whole script here, but its 118 lines so only this. Could you help please, what should i remove?

    changed(integer change)
    {
        if(change & CHANGED_LINK)
        {
            key agent = llAvatarOnSitTarget() ;
            if(agent)
            {
                if(agent == llGetOwner())
                {
                    llRequestPermissions(agent, PERMISSION_TAKE_CONTROLS);
                }
                else
                {
                    llInstantMessage(agent, "You are not the owner!");
                    llUnSit(agent);
                }
            }
            else
            {
                llResetScript();
            }
        }
    }

    (no touch events so far)

  12. 1 hour ago, Qie Niangao said:

    If you have the source for the script, it's usually not a big deal, just remove some checks in the CHANGED_LINK event (for when the driver sits on the vehicle) and possibly the touch-related event handlers. It can be a little trickier than that if the scripter lazily assumed the driver is always the owner (such as listening to the owner for menus, etc.) but that's fairly uncommon.

    If on the other hand you don't have source for the script, you'll need to replace it. Physical vehicle scripts aren't that complex, really, once you understand how scripts handle controls, but they're insanely fussy, so it can be an exercise in patience.

    (Of course this all assumes the vehicle itself is modifiable. If not, it's just garbage anyway.)

    Hi! Thank you so much for the answer!

    May i ask what is script source?

  13.             ///Edit start / stop reset
                
                
                ///On Start:
                
                llSetVehicleVectorParam(VEHICLE_ANGULAR_MOTOR_DIRECTION, <0,0,0>);

                
                ///On Stop:
                
                vector actrot = llRot2Euler(llGetRot());
                llSetRot(llEuler2Rot (<0,0,actrot.z>));
                llSetVehicleRotationParam(VEHICLE_REFERENCE_FRAME, llEuler2Rot (<0,0,0>));
                llSetVehicleVectorParam(VEHICLE_LINEAR_MOTOR_DIRECTION, <0,0,0>);
                
                ///

    In fact it works even if i move both last lines to On Start:

                ///On Start:
                
                llSetVehicleVectorParam(VEHICLE_ANGULAR_MOTOR_DIRECTION, <0,0,0>);

                llSetVehicleRotationParam(VEHICLE_REFERENCE_FRAME, llEuler2Rot (<0,0,0>));
                llSetVehicleVectorParam(VEHICLE_LINEAR_MOTOR_DIRECTION, <0,0,0>);

                
                ///On Stop:
                
                vector actrot = llRot2Euler(llGetRot());
                llSetRot(llEuler2Rot (<0,0,actrot.z>));
                
                ///

     

  14. 1 hour ago, Profaitchikenz Haiku said:

    When you hit stop, reset the nose angle variable to the level value, what you have described is the result of calling the function with the previous angle for a certain gear still assigned to the variable.

    Similarly, when you stop, set and variable controlling speed to the appropriate stop or default value.

    Thank you very much! Thats what i got. It works as expected. Did I do it right?

                vector actrot = llRot2Euler(llGetRot());
                llSetRot(llEuler2Rot(<0,0,actrot.z>));
                llSetVehicleRotationParam(VEHICLE_REFERENCE_FRAME, llEuler2Rot (<0,0,0> ) );
                llSetVehicleVectorParam(VEHICLE_LINEAR_MOTOR_DIRECTION, <0,0,0>);

    @Profaitchikenz Haiku @Nova Convair Thank you very much again! I got it working!

  15. @Nova Convair @Profaitchikenz Haiku

    I am very sorry about this... But as it turned out there is still a very little problem. the fact is that my boat has an option to lift the nose. when i hit stop, everything is just perfect! the position is leveled. but if I press the stop at full speed with the nose raised, the position is aligned, of course and its perfect, but when again i hit Start, the boat lifts its nose, as if it were before off and then slowly goes down... Oh, and by the way if speed was too fast it keeps moving after restart... Maybe I should put the same lines before vehicle start? Thank you in advance!

    Actually I already tried it but no success...

×
×
  • Create New...