error(integer e) event!
|
|
Ama Omega
Lost Wanderer
Join date: 11 Dec 2002
Posts: 1,770
|
06-30-2003 14:42
Idea from problem someone else is having in the script forum but here is a feature suggestion for a new LSL event:
error(integer e)
e is predefined errors, and here are some that I can think of off the top of my head:
ERROR_SIM_FULL ERROR_NO_MONEY (when something tries to rez or pay and owner doesn't have enough money) ERROR_NO_PERM_DEBIT ERROR_NO_PERM_ANIM ERROR_NO_PERM_* (all the other permissions) ERROR_BEYOND_RANGE (when try to rez or move or something beyond the range limits)
Also I think that if, and only if, this event is defined in a script then no error message should be reported on channel 0.
|
|
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
|
06-30-2003 15:07
Also ERROR_STACK_HEAP ERROR_CHAT_OVERRUN ERROR_GEN_RUNTIME EDIT: Btw, I second it  EDIT #2: Gah! I didnt see that ERROR_PERMISSIONS in your post. (deleted "ERROR_NO_PERMISSION" from post.)
|
|
Nada Epoch
The Librarian
Join date: 4 Nov 2002
Posts: 1,423
|
06-30-2003 16:28
thirded.
_____________________
i've got nothing. 
|
|
Gaudeon Wu
Hermit
Join date: 5 May 2003
Posts: 142
|
06-30-2003 16:31
nice idea, fourthed
|
|
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
|
07-01-2003 16:14
Can I fifth it? Aww F** it I fifth it!  I also want to add one more error call: ERROR_MISSING_INVENTORY -Chris
|
|
Goodwill Epoch
Admiral of Kazenojin
Join date: 20 May 2003
Posts: 121
|
07-01-2003 16:48
From: someone Originally posted by Christopher Omega ERROR_STACK_HEAP ERROR_GEN_RUNTIME
Somehow I don't think any error which will cause the script to stop running is going to be able to be captured by that script But I do like the idea.
_____________________
http://www.narfy.com
|
|
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
|
07-01-2003 16:55
:  igh:: A way to get over stack-heaps are one of the things I most want... eiather that or both a way to read a notecard without the dataserver (in script) and a way to write to notecards.
|
|
Alondria LeFay
Registered User
Join date: 2 May 2003
Posts: 725
|
07-01-2003 17:38
Sixth'd
|
|
Charlie Omega
Registered User
Join date: 2 Dec 2002
Posts: 755
|
07-01-2003 18:54
um I think were up to seventhed  But how about this: ERROR_GET_SOME_SLEEP_SO_YOU_CAN_WRITE_BETTER_SCRIPTS lol long one huh?  bah I hit save too quick hehehe here's my edit: I would get this error alot 
_____________________
From: 5oClock Lach With a game based on acquiring money, sex, and material goods, SL has effectively recreated all the negative aspects of the real world. Mega Prim issues and resolution ideas.... http://blog.secondlife.com/2007/10/04/second-life-havok4-beta-preview-temporarily-offline/
|
|
Ope Rand
Alien
Join date: 14 Mar 2003
Posts: 352
|
07-01-2003 19:41
eighted great idea
_____________________
-OpeRand
|
|
Ama Omega
Lost Wanderer
Join date: 11 Dec 2002
Posts: 1,770
|
07-01-2003 22:36
From: someone Somehow I don't think any error which will cause the script to stop running is going to be able to be captured by that script Actually I think it is theoretically possible to predict when the stack overflow will happen - the system knows how much memory it has and how much is being taken up. Maybe instead an ERROR_ALMOST_STACK_OVERFLOW error when you get really close? I don't think run-times are nearly as "easy" though. 
|
|
Huns Valen
Don't PM me here.
Join date: 3 May 2003
Posts: 2,749
|
07-02-2003 01:08
Ninthed. Exception handling is something you can do without for a while but eventually it becomes a drag.
|
|
Zalandria Zaius
Registered User
Join date: 17 Jan 2004
Posts: 277
|
yes please
07-22-2004 15:42
I'm all for error handling.
Not that I write bad scripts.. (pushes the scripts under the desk) Let's just call it learning through experimentation.
|
|
Grim Lupis
Dark Wolf
Join date: 11 Jul 2003
Posts: 762
|
07-22-2004 16:01
I'll ... umm ... *counts* ... 11thed? Oh, WTH. Endorsed. Anywho, I'd much rather see try{}catch{}finally{} blocks, but ANYTHING is better than what we have now. Or a VB6-style compromise. ON ERROR JUMP label, with an integer llGetLastError() function
_____________________
Grim
"God only made a few perfect heads, the rest of them he put hair on." -- Unknown
|
|
Pete Fats
Geek
Join date: 18 Apr 2003
Posts: 648
|
07-22-2004 16:20
I will pick up the duodenary endorsement of this service and or feature
|
|
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
|
07-22-2004 16:57
From: someone Originally posted by Grim Lupis Or a VB6-style compromise. ON ERROR JUMP label, with an integer llGetLastError() function Try/catch/finally... *drool*. Id settle for this as well.
|
|
Azelda Garcia
Azelda Garcia
Join date: 3 Nov 2003
Posts: 819
|
07-22-2004 19:07
Or a way to do a fast,non-delayed write to a file. Could be a notecard or could be a file on the server called 134regersgerg.tmp or <guid>.log . As long as it's fast, non-delayed and we can read the file later, somehow, it fits the bill.
Azelda
|
|
Zeke Murdock
Junior Member
Join date: 3 Jun 2004
Posts: 7
|
07-25-2004 04:42
agreed. something like this would help me tremendously.
- Zeke Murdock
|
|
Apotheus Silverman
I write code.
Join date: 17 Nov 2003
Posts: 416
|
07-28-2004 10:37
I support this idea.
|
|
McWheelie Baldwin
Registered User
Join date: 9 Apr 2004
Posts: 154
|
I endorse this.
09-10-2004 10:16
I too, support this idea. I have to admit that the suggested try/catch/finally approach would be the method of choice for me, but as stated, any error handling would be welceom. I would like to say though, while the ability to write out to a file/notecard/etc would be a great addition, I think error handling should be considered a separate feature from the true file I/O that we would like to see as well.
McW
|
|
Zeke Murdock
Junior Member
Join date: 3 Jun 2004
Posts: 7
|
09-21-2004 23:55
Anyone heard anything about whether something like this is in the works for some soon release? I was rather hoping for it in 1.5... but so much for that.
|