Jump to content

BethTech

Resident
  • Content Count

    19
  • Joined

  • Last visited

Community Reputation

4 Neutral

About BethTech

  1. BethTech

    Checking Color of Linked Prim

    I mean color. Right now it handles textures, but I want to add the color changes in combination. As of right now, the eyes are white, but in the "closed" and "dead" state the white looks odd when compared to the rest of the body. I can't just use a colored texture because of how the color of the body prim changes. And making the eye constantly the color of the body would make the "eye open" texture look horrible. No other script is touching the eye prim color.
  2. BethTech

    Checking Color of Linked Prim

    As I've made only small edits to this script I'm willing to paste the entire thing in here for context. I want it to check the color of a linked prim and then during the "closed" or "dead" states change the "eye" prim this script works with to have that color and change back to white when open. // :CATEGORY:XS Pet // :NAME:Breedable_pet_eye_scripts // :AUTHOR:Ferd Frederix // :CREATED:2012-08-16 10:21:14.630 // :EDITED:2013-09-17 21:48:30 // :ID:116 // :NUM:175 // :REV:1.0 // :WORLD:Second Life // :DESCRIPTION: // Combined eye and particle script. // // This script flips between two textures for eye blinking and also supports a 'dead' eye look. It combines the particle plug-in with eyes together. It may be more useful on non-robot pets. // An article on how to use it, including a set of example eye textures, is located at <a href="http://www.outworldz.com/secondlife/posts/breedable-pet-robot/blinking%20eyes.htm">http://www.outworldz.com/secondlife/posts/breedable-pet-robot/blinking%20eyes.htm</a> // :CODE: // This code is licensed as Creative Commons Attribution/NonCommercial/Share Alike // See http://creativecommons.org/licenses/by-nc-sa/3.0/ // Noncommercial -- You may not use this work for commercial purposes // If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one. // This means that you cannot sell this code but you may share this code. // You must attribute authorship to me and leave this notice intact. // // Exception: I am allowing this script to be sold inside an original build. // You are not selling the script, you are selling the build. // Ferd Frederix // the names of the textures for eyes that shut and close by flipping between them. string OPEN = "eyes open"; string CLOSED = "eyes closed"; string DEAD = "eyes dead"; // could be a copy of eyes closed, or (X)(X) string ANI_DIE = "death"; // a string taught to the pet by the animator when the animal is to die. string ANI_SLEEP = "sleep"; // Sleeping string ANI_STAND = "stand"; // default standing animation integer numberPrim_eyeL = 3; integer numberPrim_eyeR = 4; vector repeatsTexture = <1.2,1.2,0>; float rotationTexture =223.0; vector offsetTexture = ZERO_VECTOR; integer numberSide = ALL_SIDES; float randomTimer = 3.0; float staticTimer = 3.0; float randomSleep = 0.2; float staticSleep = 0.1; integer flags; // Original Particle Script 0.4j // Created by Ama Omega 3-7-2004 // Updated by Jopsy Pendragon 5-11-2004 // For classes/tutorials/tricks, visit the Particle Labratory in Teal // Values marked with (*) are defaults. default { on_rez(integer startparam) { llResetScript(); } state_entry() { llSetLinkPrimitiveParamsFast( numberPrim_eyeL, [ PRIM_TEXTURE, numberSide, CLOSED, repeatsTexture, offsetTexture, rotationTexture, PRIM_LINK_TARGET, numberPrim_eyeR , PRIM_TEXTURE, numberSide, CLOSED , repeatsTexture, offsetTexture, rotationTexture ]); llSetTimerEvent(llFrand(randomTimer) + staticTimer); } timer() { llSetLinkPrimitiveParamsFast( numberPrim_eyeL, [ PRIM_TEXTURE, numberSide, CLOSED, repeatsTexture, offsetTexture, rotationTexture, PRIM_LINK_TARGET, numberPrim_eyeR , PRIM_TEXTURE, numberSide, CLOSED , repeatsTexture, offsetTexture, rotationTexture ]); llSleep( llFrand(randomSleep) + staticSleep ); llSetLinkPrimitiveParamsFast( numberPrim_eyeL, [ PRIM_TEXTURE, numberSide, OPEN, repeatsTexture, offsetTexture, rotationTexture, PRIM_LINK_TARGET, numberPrim_eyeR , PRIM_TEXTURE, numberSide, OPEN, repeatsTexture, offsetTexture, rotationTexture ]); } link_message(integer sender, integer num, string str, key id) { if (num == 1 && str == ANI_SLEEP ) { llSetLinkPrimitiveParamsFast( numberPrim_eyeL, [ PRIM_TEXTURE, numberSide, CLOSED, repeatsTexture, offsetTexture, rotationTexture, PRIM_LINK_TARGET, numberPrim_eyeR , PRIM_TEXTURE, numberSide, CLOSED , repeatsTexture, offsetTexture, rotationTexture ]); //closed llSetTimerEvent(0); // no blink } else if (num == 1 && str == ANI_STAND) { llParticleSystem( [] ); // turn off particle ZZZ's by sending an empty list llSetLinkPrimitiveParamsFast( numberPrim_eyeL, [ PRIM_TEXTURE, numberSide, OPEN, repeatsTexture, offsetTexture, rotationTexture, PRIM_LINK_TARGET, numberPrim_eyeR , PRIM_TEXTURE, numberSide, OPEN, repeatsTexture, offsetTexture, rotationTexture ]); //open llSetTimerEvent(llFrand(3) + 3); } else if (num == 1 && str == ANI_DIE) { llSetLinkPrimitiveParamsFast( numberPrim_eyeL, [ PRIM_TEXTURE, numberSide, CLOSED, repeatsTexture, offsetTexture, rotationTexture, PRIM_LINK_TARGET, numberPrim_eyeR , PRIM_TEXTURE, numberSide, CLOSED , repeatsTexture, offsetTexture, rotationTexture ]); // dead eye (X)(X) texture llParticleSystem( [ ] ); // turn off particle ZZZ's llSetTimerEvent(0); // no blink } } }
  3. BethTech

    Checking Color of Linked Prim

    For some reason, it's giving me a syntax error on the first ( character on any of those lines. I'm not entirely sure what I'm doing wrong here. I'm putting it with the other string, integer, float, and vector lines at the beginning of the script.
  4. BethTech

    How do I stop this?

    What viewer are you using? There should be an option somewhere to stop all animations and revoke permissions.
  5. BethTech

    Black lines :: Look at ::

    Can you go into Help>About Firestorm and paste your info in here? Click "Copy to Clipboard" at the bottom of the window.
  6. BethTech

    Checking Color of Linked Prim

    I'm wanting to find a way for a script to check the color of a linked prim and put it in a string for use in other parts of the script. Something like this: string color=[prim_color 3] How can I do this, or is it something that would have to be done in another way?
  7. BethTech

    Can't Hear Sound or use Mic When Headset is Default

    I looked more into the settings and was able to find some obscure settings. I have no idea why it was only having this issue in only certain programs. Maybe the mic being plugged in was canceling things out. But this is what I have set now in the Device Advanced settings in Realtek HD Manager and it solved my issue.
  8. BethTech

    Can't Hear Sound or use Mic When Headset is Default

    I installed the latest audio drivers and nothing changed. I was also unable to login to or find the Sekaw region. I'll be contacting Firestorm support in world Sunday when I'm off work.
  9. BethTech

    Can't Hear Sound or use Mic When Headset is Default

    I have restarted my computer and checked for driver updates, but I'll try completely reinstalling them. I have never been to Sakaw but I'll try logging in there. Usually logging into Voice Echo Canyon always solved my issues with voice. I'll reply back once I'm at my computer and tried those things.
  10. BethTech

    Can't Hear Sound or use Mic When Headset is Default

    I have just tried Catznip and Voice and media work there. But not any other audio, and Catznip does not have as nice graphics as Firestorm and I like to take pictures.
  11. BethTech

    Wrong forum, please ignore/remove

    Oh no, lol
  12. I'm using Windows 10 64x, and Firestorm 64x 5.1.7.55786 I'm having issues with Sound and Voice that aren't covered in the Firestorm troubleshooter. I have the dot and can hear in-world media through the headset. It works perfectly as long as my headset is not set as default. But I don't want my sound to come out of my monitor, I want it to come out of my headset. This was working fine until recently when I switched the sound to my monitor. It would seem that to SL, both the output and input of the headset are disabled when I make it the default audio. It is not a USB headset but I also tried a Bluetooth one. What I've tried: Rebooting PC and checking for updates The Windows Sound Troubleshooter Making sure the headset was working in other programs Testing a media player in-world (that worked) Logging in at Voice Echo Canyon, from here I kept switching default audio devices and noticed that my mic also stopped working (checked via Voice>Audio Device Settings) inworld when I have the headset on default or set in the Audio Device Settings as output Trying another viewer (Black Dragon), got the same results Completely disabling all other audio output sources Turning off Voice, logging out, and logging back in and turning voice back on after a minute Plugging in a different working headset and earbuds Reinstalling Firestorm Needless to say, I'm at my wit's end trying to figure this out.
  13. BethTech

    Wrong forum, please ignore/remove

    Posted in the wrong forum, sorry
  14. They would have to turn on and allow the media in their viewer. They might also need to click something to start it depending on their settings.
  15. BethTech

    Changing Texture of Linked Prims

    Alright, I've been editing those changes in (modifying where needed) and it seems to work perfectly! Thank you so much.
×