Beach Nightfire
Resident-
Posts
18 -
Joined
-
Last visited
Reputation
6 NeutralRecent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
At Last, A system that will allow me to get rid of "lists". Mainly as they don't clear when using list name = []; So much debugging time spent tracking that stack error. At least LSD seems to delete when you tell it to.
-
Doing Maths calcuations in LSL - help!
Beach Nightfire replied to Emilee Edenflower's topic in LSL Scripting
Helped me as well. -
LlListSortStrided lower case is higher than upper case
Beach Nightfire replied to Beach Nightfire's topic in LSL Scripting
I looked up the ascii table, i figured it was the case. Not what I am used to. There should be a comment in the wiki as to the sort sequence method. Thank you for your time in answering. -
Hello, Is there a way around the LlListSortStrided seeing an "a"(lower case) being sorted higher than a "Z" it is not mentioned in the information/wiki. I could write a script to convert the first character to upper case. Or would this be classed as a bug. Alpha, Bravo, Charlie, Delta, Zulu, aaa The above is how the strided list is being sorted I am using this model list myListSortedNew = llListSortStrided(myList,2 /*#elements per stride*/,0 /*sort based on the 1st element of each stride*/,TRUE /*ascending order*/);
-
I have run into something interesting. Based on this model.. list myListSortedNew = llListSortStrided(myList,2 /*#elements per stride*/,0 /*sort based on the 1st element of each stride*/,TRUE /*ascending order*/); Alpha, Bravo,Charlie,Delta,Zulu is all sorted correctly. However, a lower case character at the beginning. If i used the above list and added aaa, the aaa is sorted after the Zulu. It would seem a lowercase "a" is sorted after an uppercase "Z" If i convert the first "a" to an "A" uppercase, the sort works as expected. Is the sort using ascii character codes based on number of code rather than the actual character? Should i make the script convert the first character to :makeupper" or something
-
Hello. I have noticed that when a script is updated, sometimes a residual script seems to affect the new one. Even list data is retained, even though the ON_START section has a list myList = []; comment. I have tried a prim scrubber, however, that is only clearing a few items. ON_REZ i do a llRest(); is it possible for a prim to retain "memory"? i have been scripting for years, maybe there is an issue (as there is with prim rezzing " at the moment. How it showed up was when i was doing a remote script update experiment and notice the new script was showing old data in a list. Another example is, upon restart i get the current prims location, when the prim is playing up, the location vector is <0.0,0.0,0.0>
-
Once again, Thank you all. I will set a limit on data. delete places in the list if new data comes in under the same name. I tired the sorting, and using this line list myListSortedNew = llListSortStrided(myList,2 /*#elements per stride*/,0 /*sort based on the 1st element of each stride*/,TRUE /*ascending order*/); With changes to suit my lists, works well/ Once again, thank you for your time.
-
Thanks all. I think i am relating to using relational databases in RL. Ie sorting using a key. THank you all for your time I had two lists as i read you cant store much in a single list. I have 300 elements to save As a lot of information can be 10 years old, maybe the limitation isnt there. Lets assume i have one list. With two elements ie index 0 ["some string of some sort", <123.45,123.45,123.45>] index 1 ["some other string", <123.45,123.45,123.45>] if i sort, i only wanted to sort based on the first element
-
Hello, I have spent days trying to get(what i think) is a simple task done, I have two lists. List A is text data whilst list B is vectors. When the two list are added to by external data feeds, they are fed using the same index number. I am trying normal C++ type logic and not getting anywhere. I have tried examples on here, however a lot have errors. psudo code is List A += "Some text"; List B += a vector; I have spent days on this, so i am not being lazy. TIA
-
Beach Nightfire started following Rolig Loon