llDeleteSubString and 1.6
|
Kelly Linden
Linden Developer
Join date: 29 Mar 2004
Posts: 896
|
03-08-2005 09:06
As strife pointed out in the 1.6 Feature Feedback forum llDeleteSubString does not currently work correctly in 1.5. It seems most likely that it has never worked correctly.
The problem seems to be with the use of any negative index. The negative index should count back from the end of the list and otherwise behave normally. In 1.5 the negative index counts past the end of the list. For example an index of -5 on a list of length 10 would be interpreted as an index of 15 rather than 5.
If this were to get fixed, would it break your existing scripts?
_____________________
- Kelly Linden
|
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
|
03-08-2005 09:21
I don't think so, I tend to find the index and delete it as a positive number. I am sure there are others who will find it more awkward though...
|
Lex Neva
wears dorky glasses
Join date: 27 Nov 2004
Posts: 1,361
|
03-08-2005 09:50
No, I don't think so. I ran into this problem myself, and I think I submitted a bug report on it. I don't think llDeleteSubString was the only function that had this problem with negative indices -- check llDeleteSubList too, for starters. I worked around it by figuring out positive indices to use, so this wouldn't mess me up.
|
Hank Ramos
Lifetime Scripter
Join date: 15 Nov 2003
Posts: 2,328
|
03-08-2005 10:02
Won't affect my scripts. I avoid using the negative wrap-around features of functions like this since it just confuses what I want to do.
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
03-08-2005 10:18
i don't expect it will break my scripts, i don't use llDeleteSubString often, and usualy not with negative indices. But i'm tickled it's getting fixed 
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
|
03-08-2005 10:42
Oh. It worked that way? I was trying to figure out what Strife had meant by that. No, I don't think it will break any of my scripts either. 
_____________________
---
|
Tiger Crossing
The Prim Maker
Join date: 18 Aug 2003
Posts: 1,560
|
03-08-2005 11:39
GO for fixing...
_____________________
~ Tiger Crossing ~ (Nonsanity)
|
Kelly Linden
Linden Developer
Join date: 29 Mar 2004
Posts: 896
|
03-08-2005 11:51
The new preview, which should be open shortly, has the 'fixed' code for llDeleteSubString. If anyone has some time to test some existing scripts and play around with it on the preview I would greatly appreciate the feedback.
Also, please pass the word around to any scripters who may not visit this forum.
_____________________
- Kelly Linden
|
Kelly Linden
Linden Developer
Join date: 29 Mar 2004
Posts: 896
|
03-09-2005 10:39
Now that preview is back up with the fixed code for llDeleteSubString it would be great if I could get some more feed back from anyone who has a chance to check out old or new content as of this patch.
_____________________
- Kelly Linden
|
Jimmy Loveless
Hello, avatar!
Join date: 1 Oct 2004
Posts: 35
|
03-09-2005 12:22
It is noted in the wiki that this same problem exists with llInsertString().
Maybe that could/should be fixed at the same time.
Cheers, JL
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
03-09-2005 12:40
^_^' I never knew there was an llInsertString function. opps
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|