SLUNIVERSE |
| | #1 (permalink) |
| Senior Member ![]() ![]() Join Date: Sep 2007
Posts: 601
| Script run-time error - Too Many Listens Did LL make some change they did not warn us of? I have exactly the same attachments I had lasr week but now I (and lots of others) keep getting this... [21:48] Tess Whitcroft: Script run-time error [21:48] Tess Whitcroft: Too Many Listens Anyone have any ideas? Tess |
| | |
| | #2 (permalink) |
| aircraft manufacturer ![]() ![]()
in the clouds
| That's not new. It sounds like a poorly-made script that starts a new listen without checking for and then removing the previous one. Find the person who made that attachment and smack them over the head a couple of times. ![]() |
| | |
| 1 User Said Thanks: |
| | #3 (permalink) | |
| Senior Member ![]() ![]() Join Date: Sep 2007
Posts: 601
| Quote:
O.o Tess | |
| | |
| | #4 (permalink) |
| The Purple ![]() ![]() ![]()
Kinda at work. Somewhat.
Join Date: Dec 2007 Location: Somewhere purple, Germany
Posts: 1,096
My Mood: | He means that the attachment, on every attach, opens up a new listener without removing the old one. A script only can have 64 concurrent listeners at once..do this: rightclick -> edit the attachment, and in the menu bar on top select tools -> reset scripts in selection. See if that fixes it. |
| | |
| | #5 (permalink) | |
| Doing stuff ![]() ![]() ![]() ![]()
Made new armor ^^
Join Date: Sep 2007 Location: Glasgow, Scotland
Posts: 2,577
SL Join Date: 14/10/2006
Business: MagoTek Industries SLShopper Ads: 1
My Mood: | Chalice's suggestion will throw up a neat little bandaid. Sadly, it will break every 64th time you put it on. I suggest contacting the creator and telling them (politely) that their coding sucks ![]()
__________________ Quote:
| |
| | |
| | #6 (permalink) |
| Doing stuff ![]() ![]() ![]() ![]()
Made new armor ^^
Join Date: Sep 2007 Location: Glasgow, Scotland
Posts: 2,577
SL Join Date: 14/10/2006
Business: MagoTek Industries SLShopper Ads: 1
My Mood: | I find it best to do listeners in state_entry anyways. And I NEVER, EVER key them. Instead, I use this neat little snippet in my listen event. listen(integer channel, string name, key id, string message) { if(id == llGetOwner() || llGetOwnerKey(id) == llGetOwner()) { } } |
| | |
| | #8 (permalink) | |
| Senior Member ![]() ![]() Join Date: Sep 2007
Posts: 601
| Quote:
![]() Tess | |
| | |
| | #10 (permalink) |
| Doing stuff ![]() ![]() ![]() ![]()
Made new armor ^^
Join Date: Sep 2007 Location: Glasgow, Scotland
Posts: 2,577
SL Join Date: 14/10/2006
Business: MagoTek Industries SLShopper Ads: 1
My Mood: | |
| | |
| | #11 (permalink) | |
| Senior Member ![]() ![]() Join Date: Sep 2007
Posts: 245
| Quote:
I treat a full script reset as "First time wearing product." IE, same concept as the first time you run a newly installed program. Script starts out fresh, and you can do any new owner type things. Such as a read me first notecard. Also, saving script memory or not, it's always faster to reference a variable than to call a function. Maybe not critically faster, but it just a little. Also, for those not in the know, every time you LOG IN it counts as attaching your item. (IE fires the attach event in the script)
__________________ | |
| | |
| | #12 (permalink) |
| Senior Member ![]() ![]() Join Date: Sep 2007
Posts: 509
| There's event fired for change of ownership, so it's not big deal to re-do listen filter and/or update constant(s) when it happens. Much more environment friendly that the listen() which doesn't bother to filter the incoming messages and relies on the LSL runtime routine for that. |
| | |
| | #13 (permalink) |
| Senior Member ![]() ![]() Join Date: Sep 2007
Posts: 462
My Mood: | If you use it a lot why not? After all it's not like the compiler is going to do anything sensible with it. No doubt it actually pulls a pointless function call everytime. Resetting scripts on new owner is good practise. I'm not even sure where you would not want that to happen. |
| | |
| 1 User Said Thanks: |
| | #14 (permalink) |
| CS Violator ![]() ![]()
+33
| I seem to be having issues putting this to words. Resetting a script is fine if it does not have much going on in it. But having a script do expensive processes for a large number of variables that should need only be set once but instead need to be redone each time the entire script is reset requires the cutting off of pinky finger! ![]() CLI/MONO will make this even worse, 64 kb memory means multiple scripts can now be compiled into one script, . |
| | |
| 1 User Said Thanks: |
| | #15 (permalink) |
| Doing stuff ![]() ![]() ![]() ![]()
Made new armor ^^
Join Date: Sep 2007 Location: Glasgow, Scotland
Posts: 2,577
SL Join Date: 14/10/2006
Business: MagoTek Industries SLShopper Ads: 1
My Mood: | |
| | |
![]() |
| Thread Tools | |
| Display Modes | |
| |