Jump to content

Hawthorne Gray

Resident
  • Posts

    50
  • Joined

  • Last visited

Everything posted by Hawthorne Gray

  1. I removed the lines injecting the switch action and still receive the error message: Script trying to trigger animations but PERMISSION_TRIGGER_ANIMATION permission not set To clarify, the error is reporting a problem with trying to 'trigger' the animation and not as a result of llStopAnimation() function correct? I did add your augmentation to tghe attach() script but receive the same damn error: Script trying to trigger animations but PERMISSION_TRIGGER_ANIMATION permission not set
  2. Here's the de-attach on touch script: key owner; default { state_entry() { owner = llGetOwner(); } touch_start(integer total_number) { key toucher = llDetectedKey(0); if(llGetAttached() && toucher == owner) { llRequestPermissions(toucher,PERMISSION_ATTACH); } } attach(key id) { if(id) { llResetScript(); } } run_time_permissions(integer perm) { if(perm & PERMISSION_ATTACH) { llDetachFromAvatar(); } } } Now, it's absolutely not imperitive that the Item description be switched back to some previous description - in fact I htought about removing that aspect as unnecessarily complicating the script. It was, actually, chatGPT which added the switch. So, I'll remove that bit and see what impact that has and report back. Thanks for the tip.
  3. To your point about using Experiences to handle permissions, count me an advocate, yes - but, I followed your link to the AVsitter page explaining how to use AVsitter in that capacity and to be honest, I'm just not that capable a scripter of being able to follow their instructions and examples and to implement the approach for myself. Whole parts of LL scripting really cause me confusion, even basic stuff like llMessageLinked() and link_message() can make my head spin when you've got scripts on multiple channels funneling data from various inputs being conditionally filtered and then re-outputted. So, I do a lot of perusing on this forum - and thank you guys/gals who take the time to clarify some of this stuff. In any case, the error actually arises when the item is rezzed or attached (TBH, I don't understand exactly what goes on in the process of transferring an item from an object's inventory to an avatar - it seems it's a much more complex series of events than merely depositing an item in an avatar's inventory - it's first rezzed by the script in the object sending the item then made to attach to the avatar by a script in that item?) And while the item does get attached the animation doesn't play and that error message appears. If i just attach the item to myself from my own inventory (with my UID manullay entered into the item's description) it works great. As does the de-attach script when the item is touched ( I did not include that script in this posting, would it help to see that?). And, lastly, I'm unsure of how your two proposals should be implemented or exactly where.
  4. Following your tip and with the help of chatGPT I re-wrote the script as follows: default { state_entry() { } link_message(integer sender_num, integer num, string str, key id) { if (num != -2000) return; if (llSubStringIndex(str, "giveinv ") == 0) { llSay(0, "One Shot coming up!"); string item_name = llStringTrim(llGetSubString(str, 7, -1), STRING_TRIM); integer item_type = llGetInventoryType(item_name); if (item_type == INVENTORY_OBJECT) { // Rez the object near the avatar vector rez_pos = llGetPos() + <0, 0, 1>; // Rez 1 meter above the prim rotation rez_rot = llGetRot(); // Set the owner key in a global variable in the rezzed object string previous_desc = llGetObjectDesc(); llSetObjectDesc((string)id); // Temporarily set the description to the user key llRezObject(item_name, rez_pos, ZERO_VECTOR, rez_rot, 0); llSetObjectDesc(previous_desc); // Restore the original description } else { llSay(0, "The item is not an object and cannot be attached."); } } } } And then the following script for the inventory item being given: default { state_entry() { // Do nothing here initially } on_rez(integer start_param) { // Retrieve the owner key from the description field key owner_id = (key)llGetObjectDesc(); llRequestPermissions(owner_id, PERMISSION_ATTACH | PERMISSION_TRIGGER_ANIMATION); } run_time_permissions(integer perm) { if (perm & PERMISSION_ATTACH && perm & PERMISSION_TRIGGER_ANIMATION) { // Attach to the avatar at the desired attachment point llAttachToAvatarTemp(ATTACH_RHAND); // Change ATTACH_CHEST to desired attachment point // Play the "hold" animation llStartAnimation("hold"); } } attach(key id) { if (id == NULL_KEY) { // Stop the animation when the object is detached llStopAnimation("hold"); } } } And it seems to work except I get the following error message: And I'm not sure why or how to fix the script.
  5. Yes, I am running AVsitter experience on my parcel now - but thank you that gives me a super direction to follow. And thanks for the wiki page link as well!
  6. I've noticed that some objects (for example a six-pack of beer) can directly attach their inventory item (a bottle of beer) onto the user rather than dropping it into a user's inventory using 'llGiveInventory' and having to have them manually attach the item. I'm guessing(emphasis on guessing) that the function 'llAttachToAvatarTemp' is used, but I'm unsure what the mechanics are for transferring an item from an object's inventory to a user would be. In my situation, the object giving an item is using this script to give the user an item with 'llGiveInventory': default { state_entry() { } link_message(integer l, integer n, string t, key id) { if(n != -2000) return; if(llSubStringIndex(t,"giveinv ") == 0) { llGiveInventory(id, llStringTrim(llGetSubString(t,7,-1),STRING_TRIM)); } } }
  7. This is all useful information for me. Especially as my parcel grows more complex and things get moved around and sometimes lost.
  8. Thanks for pointing that out, I was not aware of that, I just assumed a scan was done within a certain, confined, range. In this case, I was up in a small simple 4-wall skybox where i do inventory stuff etc. with minimum lag to slow things down.
  9. It's a mystery. I will say this, it has happened to me before with that very same item, but however the issue got resolved, I forget now what the solution was. And I also promptly forgot about the item altogether until I was cleaning my inventory. I will also admit, that I'm constantly pushing on things in SL, trying things out in weird ways, making them fit or do things they weren't maybe meant to - I get into trouble all the time; but it's how I learn, asp as a non-programmer.
  10. Ah, Qie Niangao, good point - hadn't thought of that, but I don't think i was wearing it, or didn't see it any longer - will check though. Nope, not listed as an attachment. Hmmm.
  11. OK this is weird.Here is the error message i kept receiving: [] Aphrodite brie cheese appetizer: Script trying to trigger animations but PERMISSION_TRIGGER_ANIMATION permission not set Despite my having thrown away the object I kept getting that error message ad nauseam. I did an area search to ensure it was no longer present on the parcel and got zero results - but, nonetheless, I kept getting the error message. So I enlarged my search by putting just the vendor name that sold the item, in this case, 'Aphrodite', as the search parameter and 3 objects were returned in the results, none of them the 'brie cheese appetizer'. On a lark, I selected one of the search result items, '60L <Aphrodite> Choco Cake', and clicked the name and chose Script Info from the menu panel and got a report: Script info: 'Aphrodite Christmas placemate & Thanksgiving placemate': [0/0] running scripts, 0 KB allowed memory size limit, 0.000000 ms of CPU time consumed [etc, etc], which was useless info really since, other than being from the same vendor, the item was unrelated to the 'brie cheese appetizer' item that was sending out the error message. But then, there was silence (or a chat window version of silence) - the error messages from 'Aphrodite brie cheese appetizer' ceased! Stopped. Were no more! Evanesco! This is what I like to call SL Voodoo - for no rhyme or reason and despite whatever logical steps one has applied to a problem in Sl but come up empty-handed, some random action on the part of a despairing user will magically cause said problem to cease. Or? Am I wrong, and this is the SL procedure to follow when encountering the 'PERMISSION_TRIGGER_ANIMATION permission not set' error message, one simply selects another object and asks for a Script Infor report, and all error messages just vanish? Anyway, problem solved. (And I will never ever touch a brie cheese appetize again!
  12. It's not my script. It come from an item that was dispensed to me from a 3rd party created object, in this case from the vendor Aphrodite
  13. I am repeatedly getting this error message: [] Aphrodite brie cheese appetizer: Script trying to trigger animations but PERMISSION_TRIGGER_ANIMATION permission not set I have tried selecting: 'stop Avatar animations and revoke permissions' but that did not help. I have thrown the object away, restarted, moved to different parcels, then regions; I've done an area search for the object and found none. What the hell? It's been doing this for 24 hours now, page after page after page of ... [] Aphrodite brie cheese appetizer: Script trying to trigger animations but PERMISSION_TRIGGER_ANIMATION permission not set Script trying to trigger animations but PERMISSION_TRIGGER_ANIMATION permission not set [] Aphrodite brie cheese appetizer: Script trying to trigger animations but PERMISSION_TRIGGER_ANIMATION permission not set Script trying to trigger animations but PERMISSION_TRIGGER_ANIMATION permission not set [] Aphrodite brie cheese appetizer: Script trying to trigger animations but PERMISSION_TRIGGER_ANIMATION permission not set Script trying to trigger animations but PERMISSION_TRIGGER_ANIMATION permission not set [] Aphrodite brie cheese appetizer: Script trying to trigger animations but PERMISSION_TRIGGER_ANIMATION permission not set Script trying to trigger animations but PERMISSION_TRIGGER_ANIMATION permission not set Anyone?
  14. How well will an M2 Mac mini with 16GB of unified memory run SL v. an M1 Mac mini with 16GB? Would switching from a WiFi connection to ethernet help either machine reduce lag? I know there are a myriad of variables pertinent to producing a proper evaluation between these options but I’m basically looking for some feedback from anyone who has spent time with these machines and what their general impressions are. And doing so without getting mired in Mac v Windows discussion. Thanks.
  15. Ok, now the final (as a test script) version works perfectly and means I can use a function that I've written, like 'checkRESP()' as it's meant to be used, a simple, one-line bit of code that can be inserted into a script to perform a routine task and allow me to keep focused on the larger script at hand - no need to worry about where and how and which variables to declare to get a response the required. My BIGGEST question is why? I have a basic knowledge of JS, PHP, HTML, CSS, Unix, and MySQL - always enough to get me by. And I've wondered why in LSL you couldn't pass variables through functions. Functions written by a scripter, I mean. I just have never seen it done before. This is a huge step up in knowledge for me, so thanks guys for your responses. Thank You!
  16. So, there are two values from the http_response() function which need to be carried over (request_id, body) but I thought to start with just one: request_id. Here's the full script: ...which throws a syntax error error on line 12: checkRESP(key request_id); So not sure what I've done wrong? UPDATE: I rewrote checkRESP(key request_id); to checkRESP(equest_id); and the script compiles and functions correctly!
  17. Wow, I read through this forum a lot but rarely post so, yeh... I'm kinda flattered to have gotten a response from the Quistess Alpha! And! And, one that I can understand and is a promising solution - makes my day - thanks, Quistess.
  18. Ah, the reason I made 'request_id' and 'body' global variables was because I got "Name not defined within scope" errors on the first go-round. So I made them global which allowed the script to successfully compile but then the "ERROR: Request IDs do not match" messages popped up when the script was run. I'm wondering if this will be a problem in other similar functions like listen()?
  19. I've lately been re-using functions collected in include files as a way to ease the chore of scripting. I'm not a programmer, however, so I run into problems I'm unsure how to fix For example, the following script, 'door_VIP.lsl', is a common door script but written to admit only registered visitors who chose 'blue' as their favorite color when they registered. The script queries the database where a user's info is stored to determine whether they may be allowed through or not by calling on the inserted function: ' checkSTAT();'. It then processes the database response using 'checkRESP(); ': 'confirmREGX.lsl' Only this doesn't work properly and results in the error message: ERROR: Request IDs do not match. For some reason, neither of the values assigned to the 'request_id' key or the 'body' string as received by the http_response() function retain their values when processed by the inserted function 'checkRESP()'. After fiddling around for a while I found a work-around. If I assigned those two values to a different pair of variables before calling the 'checkRESP()' function then those values carried over and were processed correctly: with the re-written 'checkRESP()' This worked but left me wondering why is this so? I ended up rewriting checkRESP(); functions like this: I lack the fundamental LSL background tu understanding the underlying principles for why this is so and am hoping someone explain it to me
  20. I appreciate your reply Dano. I'll def check the Dagger Blog out - I prefer reading to watching videos by a long shot. I suppose I need to open up my own topic to get more replies. Not a veteran forum user.
  21. I am trying to learn about mesh… mesh everything. Where is a good resource to find out the basics? Appliers? BOM? Legacy bodies?
  22. I drift in and out of SL - but I always come back hungry to express myself by creating a new environments - through prim design, region building, scripting, graphics to environmental editing. So, I'm no newbie. But I can't make sense of this mesh tech. Mesh heads? Bodies? I've tried demos, have no idea what BOM is and can find no guidance that explains what this is all about except in the most cursory of ways. This whole topic makes me think: maybe I just need to move on, what's the point?
  23. Well as I said, I cleaned out ALL SL files - including those of third party apps - and downloaded a fresh copy of the SL Viewer. I don't see anything in your link to clean installs that offers new information to what I've already done. As for connection problems? My second computer is able to log on just fine.
  24. Model: MacPro Quad-Core Intel Xeon, 2.8 GHz Graphics: ATI Radeon HD 5870 1024 MB graphics Memory: 12GB From the Problem Report generated after force quitting SLviewer application: Command: Second LifeVersion: Second Life version 3.2.5.247236 (3.2.5.247236)Event: hangDuration: 3.91sSteps: 40 (100ms sampling interval)Pageins: 0Pageouts: 0Process: Second Life [6238]Path: /Applications/Second Life Viewer.app/Contents/MacOS/Second LifeArchitecture: i386UID: 501The report goes on and on and makes no sense to me so I come to this forum seeking answers. The crux of the problem is that SL Viewer, along with any 3rd party viewers I've tried, will not fully launch beyond a few seconds into the opening of the viewer window. I get a white screen and a spinning ball and eventually have to do a force quit to close the application down. My machine is fairly new and quite capable of running SL but it has been a few months since I last logged in, using beta version 3.2.4. When I found I could not now open SL I downloaded the latest beta viewer and when it would not open I then cleaned out all existing SL files from my system and started with a freshly downloaded copy of the regular 3.2.5 version of the viewer - still no go. I then downloaded multiple third party viewers and none of them work. So, to say the least, I'm completely flummoxed as to what is occuring and hope somone can point me in the right direction to get this problem fixed.
×
×
  • Create New...