Jump to content

Reymundo

Resident
  • Posts

    41
  • Joined

  • Last visited

Everything posted by Reymundo

  1. So I reinstalled Second Life but this time on my D drive and immediately turned the default graphics level down to between Low and Medium (it was by default between High and Ultra) which I've been able to run and there is no crashing. I;m not sure honestly what was causing the crashes between perhaps the drive (though my C and D drives are two partitions of the same drive) and the graphics setting. But I will definitely check those files the next time I have issues.
  2. Well I was able to be on SL long enough to do the Ruth Avatar before it would do the whole "failed to load" attached stuff and body parts before saying it disconnected. I just can't figure out why my desktop would all of a sudden do it. It's been perfectly fine until I recently went to a sim. And from then on proceeded to disconnect no matter where I am. And no matter what account. Again just on the desktop. I also don't get this issue with anything but SL including other graphically heavy programs.
  3. I don't know why but at first it started with Second Life saying it failed to load things attached to me before crashing, now it simply crashes after being logged in for a barely a minute. I have uninstalled every viewer I've tried and reinstalled and the same result occurs. I can login on my Laptop without issues but my PC is what is constantly crashing. Doesn't matter I do. Is there any way of fixing this without formatting my computer?
  4. I will try that script Xiija, as far as the other. I was attempting to copy the portion where it says what to do for 12-22 items, and then add 23-33, etc. That was where it was giving me syntax and I couldn't figure out what the particular issue was as I have found that it can mention one line, but it's actually another line altogether. Also the link you gave before Rolig didn't seem like it gave out items like the script I provided did. EDIT: So it kinda worked but I'm using no copy items so it ended up popping up a script error.
  5. Well when I tried doing what you suggested, I was getting syntax errors. Hence why I'm asking, as for writing the script myself I wouldn't know how, I only know how to edit LSL. If you could possibly explain what I would add and where that would be appreciated.
  6. So I found the following free script online but it has a limit of 22 items, how do I fix that? The script is as follows... list object_list; list object_list2; key user = NULL_KEY; composelist() { integer currentobject = 0; integer totalobjects = llGetInventoryNumber(INVENTORY_OBJECT); if(totalobjects > 0 & totalobjects <= 12) { object_list = []; do { object_list = object_list + llGetInventoryName(INVENTORY_OBJECT, currentobject); currentobject++; } while (currentobject > 0 & currentobject < totalobjects); } if(totalobjects > 12 & totalobjects <= 22) { object_list = ["Next Page"]; do { object_list = object_list + llGetInventoryName(INVENTORY_OBJECT, currentobject); currentobject++; } while (currentobject > 0 & currentobject < 11); object_list2 = ["Last Page"]; do { object_list2 = object_list2 + llGetInventoryName(INVENTORY_OBJECT, currentobject); currentobject++; } while (currentobject >= 11 & currentobject < totalobjects); } if(totalobjects > 22) { llWhisper(0, "You may only have a maximum of 22 Objects. Please remove any extra ones."); } if(totalobjects == 0) { llWhisper(0, "Please add up to 22 Objects to give away. They should be Copy/Transfer."); } } //The Menu integer menu_handler; integer menu_channel; menu(key user,string title,list object_list) { menu_channel = (integer)(llFrand(99999.0) * -1); //random channel menu_handler = llListen(menu_channel,"","",""); llDialog(user,title,object_list,menu_channel); llSetTimerEvent(30.0); //menu channel open for 30 seconds } default { state_entry() { composelist(); //make list from inventory objects } touch_start(integer total_number) { user = llDetectedKey(0); menu(user,"nnPlease select one below.",object_list); } listen(integer channel,string name,key id,string message) { if (channel == menu_channel) { if(message == "Next Page") { menu(user,"nnPlease select one below.",object_list2); } else if(message == "Last Page") { menu(user,"nnPlease select one below.",object_list); } else { llGiveInventory(user,message); //Give Object llSetTimerEvent(0.0); llListenRemove(menu_handler); } } } timer() //Close the Menu Listen or we'll get laggy { llSetTimerEvent(0.0); llListenRemove(menu_handler); } changed(integer change) { if (change & CHANGED_INVENTORY) //inventory has changed { llSleep(0.5); composelist(); //rebuild the list } } }
  7. Okay so let's just say I have the two doors okay, then a two button control panel on the wall. The top button when pressed by the owner locks the doors and then unlocks them when clicked again. The bottom button opens both doors at the same time and then after a short period, closes. Obviously if the doors are locked then someone trying to open the doors is not going to do anything. What scripts would I need in the doors and in the control panel respectively? What you explained in the last post as far as the control panel as confusing.
  8. Well I kinda understand what you're saying though I am somewhat of a noob at scripting, hence why I need the help.
  9. Hi so I have two mesh prims that I've textured into Star Trek doors, my problem is scripting them to both open at the same time and link them to a wall panel that will give lock access to the room's owner, and when locked allow for someone to chime the door to alert someone they have a visitor. Something along the lines of what this door does: https://marketplace.secondlife.com/p/SoverignIntrepid-Trek-Doors-v21/1808032 This is all for a project I'm working on as a Star Trek themed wedding venue I plan to sell once it's finished and have failed to find a script that does what I need it to or rather even works properly.
  10. I asked as it seemed like it was back to back and not 10 seconds after the sound had finished. But thank you.
  11. Yes I had copy and pasted from the website and wasn't sure how to 'clean it up' as you put it. But seems like it works, the only confusing part is the intervals...is that after the first sound plays or after the sound file finishes?
  12. Okay only problem is when I pull it into SL, it oranges out the whole thing...
  13. So basically I could put say 10 sounds in there and it will pick one randomly at a random interval and play it?
  14. So I see this script http://wiki.secondlife.com/wiki/Script:Random_Sounds That seems to pick a random sound file from the item's inventory but is it possible for it to do that sound file at a random time interval? Trying to make something that plays different baby sound effects at random time intervals.
  15. Is there any way to read them once you hit OK on the notification? I got a gift from my partner but didn't realize there was a gift message...
  16. Okay so that actually looks solid, but what if I am intending to add more than just the three buttons? How do I extend the receiving script for more buttons?
  17. Well I get the putting the sending scripts into one, but for some reason the texture stuff is stored in the receiving script. Just how Mesh Workshop did it.
  18. Okay well let me reexplain it. The HUD that has 3 buttons (one for each face of the piece of clothing) has a script that sends commands to the clothing prim, which has the receiving script I'm trying to merge together. When I had 3 scripts of the receiving script in the clothing it accepted things perfectly fine. It's only when I had asked here for help in merging that receiving commands script that it stopped working. So what I'm getting is it's impossible for it to receive the commands unless there is an individual script for each. The following is one of the HUD buttons' scripts. ////////////////////////////////////////////////////////////////////////////////////// [ MESH WORKSHOP SCRIPTS ]///////////////////////////////////////////////////////////////////////////////////////// integer ch=-13577; //Change this to a unique 5 digit number.key tex="272520de-0b34-9ffc-0abd-352548421b17"; //Texture UUID goes here.string txt="Applying, please wait..."; // Touch message goes here.//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////default{ touch_start(integer tn) { llSay(ch,tex); key owner = llGetOwner(); llInstantMessage(owner,txt); }} And this is the script that is in the receiving clothing item, as it stands. ////////////////////////////////////////////////////////////////////////////////////// [ MESH WORKSHOP SCRIPTS ]///////////////////////////////////////////////////////////////////////////////////////// integer ch0=-13577; //Same unique 5 digit number as controller.integer ch1=-13578; //Same unique 5 digit number as controller.integer ch2=-13579; //Same unique 5 digit number as controller.integer side = 5; //Side to apply the texture to. // ALL_SIDES = All sides of the object. // Numbers 1-8 = Face number of the object. integer side2 = 6; //Side to apply the texture to. // ALL_SIDES = All sides of the object. // Numbers 1-8 = Face number of the object. integer side3 = 3; //Side to apply the texture to. // ALL_SIDES = All sides of the object. // Numbers 1-8 = Face number of the object. integer side4 = 2; //Side to apply the texture to. // ALL_SIDES = All sides of the object. // Numbers 1-8 = Face number of the object.key owner;//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////default{ state_entry() { owner = llGetOwner();//set the global owner key llListen(ch0,"","","");//set all the listens to listen to everything on the channel specified llListen(ch1,"","",""); llListen(ch2,"","",""); } listen(integer ch, string name, key id, string msg) { if(llGetOwnerKey(id) == owner)//is the speaking object owned by the same owner as this script? { if(ch==ch0) { llOwnerSay(msg); llSetTexture(llGetSubString(msg,0,-1),side); llSetColor(<0.5, 0.0, 0.0>, side ); llSetTexture(llGetSubString(msg,0,-1),side2); llSetColor(<0.5, 0.0, 0.0>, side2 ); } else if(ch==ch1) { llSetTexture(llGetSubString(msg,0,-1),side3); llSetColor(<0.5, 0.0, 0.0>, side3 ); } else if(ch==ch2) { llSetTexture(llGetSubString(msg,0,-1),side4); llSetColor(<0.5, 0.0, 0.0>, side4 ); } } }//additional closing bracket for added test}
  19. Still not doing anything, I really think I'm gonna have to revert it back to a script per button within the clothing prim. Trying to merge this into one script just doesn't seem to wanna work.
  20. Yes but it's not even changing it to the color in the script and I have no idea if it's even changing the texture.
  21. Alas it's still not working. I think I may just have to keep it in separate scripts. x.x
  22. Okay so it compiled finally...but it's still not applying the texture and color... ////////////////////////////////////////////////////////////////////////////////////// [ MESH WORKSHOP SCRIPTS ]///////////////////////////////////////////////////////////////////////////////////////// integer ch0=-13577; //Same unique 5 digit number as controller.integer ch1=-13578; //Same unique 5 digit number as controller.integer ch2=-13579; //Same unique 5 digit number as controller.integer side = 5; //Side to apply the texture to. // ALL_SIDES = All sides of the object. // Numbers 1-8 = Face number of the object. integer side2 = 6; //Side to apply the texture to. // ALL_SIDES = All sides of the object. // Numbers 1-8 = Face number of the object. integer side3 = 3; //Side to apply the texture to. // ALL_SIDES = All sides of the object. // Numbers 1-8 = Face number of the object. integer side4 = 2; //Side to apply the texture to. // ALL_SIDES = All sides of the object. // Numbers 1-8 = Face number of the object.//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////default{ state_entry() { key owner = llGetOwner(); llListen(ch0,"",owner,""); llListen(ch1,"",owner,""); llListen(ch2,"",owner,""); } listen(integer ch, string name, key id, string msg) { if(ch==ch0) { llSetTexture(llGetSubString(msg,0,-1),side); llSetColor(<0.5, 0.0, 0.0>, side ); llSetTexture(llGetSubString(msg,0,-1),side2); llSetColor(<0.5, 0.0, 0.0>, side2 ); } else if(ch==ch1) { llSetTexture(llGetSubString(msg,0,-1),side3); llSetColor(<0.5, 0.0, 0.0>, side3 ); } else if(ch==ch2) { llSetTexture(llGetSubString(msg,0,-1),side4); llSetColor(<0.5, 0.0, 0.0>, side4 ); } }}
  23. Okay so I did what you said and well, syntax error lol. ////////////////////////////////////////////////////////////////////////////////////// [ MESH WORKSHOP SCRIPTS ]///////////////////////////////////////////////////////////////////////////////////////// integer ch0=-13577; //Same unique 5 digit number as controller.integer ch1=-13578; //Same unique 5 digit number as controller.integer ch2=-13579; //Same unique 5 digit number as controller.integer side = 5; //Side to apply the texture to. // ALL_SIDES = All sides of the object. // Numbers 1-8 = Face number of the object. integer side2 = 6; //Side to apply the texture to. // ALL_SIDES = All sides of the object. // Numbers 1-8 = Face number of the object. integer side3 = 3; //Side to apply the texture to. // ALL_SIDES = All sides of the object. // Numbers 1-8 = Face number of the object. integer side4 = 2; //Side to apply the texture to. // ALL_SIDES = All sides of the object. // Numbers 1-8 = Face number of the object.//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////default{ state_entry() { key owner = llGetOwner(); llListen(ch0,"",owner,""); llListen(ch1,"",owner,""); llListen(ch2,"",owner,""); } listen(integer ch, string name, key id, string msg) { if(ch==ch0) { llSetTexture(llGetSubString(msg,0,-1),side); llSetColor(<0.5, 0.0, 0.0>, side ); llSetTexture(llGetSubString(msg,0,-1),side2); llSetColor(<0.5, 0.0, 0.0>, side2 } else if(ch==ch1) { llSetTexture(llGetSubString(msg,0,-1),side3); llSetColor(<0.5, 0.0, 0.0>, side3 ); } else if(ch==ch2) { llSetTexture(llGetSubString(msg,0,-1),side4); llSetColor(<0.5, 0.0, 0.0>, side4 ); }}
  24. Well as I said the intended purpose is a texture change HUD system, it's just that the way the outfit I have is setup it uses a single texture across it's faces.
  25. So doing it the way you showed should make it do what it's intended purpose is? As I said I took the original script and modified it to suit the changes I was needing so I don't know why the original script used the if and null parts. Just know it worked as separate scripts, but I will try it the way you've shown and see if it works.
×
×
  • Create New...