-
Posts
39,055 -
Joined
-
Last visited
-
Days Won
190
Content Type
Forums
Blogs
Knowledge Base
Everything posted by Love Zhaoying
-
Script doesn't wait for functions to return
Love Zhaoying replied to Rhiannon Arkin's topic in LSL Scripting
Ok, here's an example (this is pseudo-code not real code). key NotecardQueryID=""; // Will be used if reading from Notecard via llGetNotecardLine handlenotecardresponse(string message) { llWhisper(0,question +"\n\n\n"); listenhandle=llListen(0,"",id,""); // Note that you will need to add code for the listen() event for handling any responses to this llSetTimerEvent(gap); // Note that you will need to add code for the timer() event } default { touch_start(integer total_number) { NotecardQueryID=llGetNotecardLine("NotecardName", 1); // Get first notecard line, save query id!! // Don't bother doing else in this function, we need to wait for the notecard } // end touch_start dataserver(key queryid, string data) { if (querid==NotecardQuerID) { // Yes! We got a notecard line back! handlenotecardresponse(data); } } // end dataserver } -
Script doesn't wait for functions to return
Love Zhaoying replied to Rhiannon Arkin's topic in LSL Scripting
Notecard operations are "asynchronous"; the code will not wait, as the "read response" occurs in an event. The reader function would have to call llGetNotecardLine(), which will trigger a dataserver() event response. You would have to have your dataserver() event call another function after it gets the notecard line to continue processing. -
Anyone know of a large train station made in SL?
Love Zhaoying replied to anselm Hexicola's question in Everything Else
Beware the trolley at Luna, it goes off the tracks at the terminal stop for years now. I think it works OK in the other direction though. -
Where are the furry avi hangouts?
Love Zhaoying replied to Josie Enchanted's topic in Favorite Destinations
Recommend GYC (Gay Yiffy Club) and Club Yiff. -
Putting it in one call, the actions occur faster - especially if you use lLSetLinkPrimitiveParmsFast()! (Except for any specific calls that have built-in delays). This is the main reason to use certain "multiple-call" formats. The code is clear if you structure it so that you can see each individual call llSetlinkPrimitiveParamsFast(link_number, [CONSTANT1, parm1, parm2, parm3, CONSTANT2, parm1, parm2, parm3, parm4]); etc.
-
Deploy plans for the week of 2016-06-20
Love Zhaoying replied to Caleb Linden's topic in Second Life Server
"If your stool is blue for more than 1 week, contact your doctor." -
I sense a pattern.
-
And Using Random Capital Letters Makes The Review Seem More Legit!
-
Step 1 in "How To NOT Get Muted": Don't be a dick.
-
Thanks! I was happy to see that Solarian has lion mods.
-
You got my attention with "cat furry" since I'm a years-long neko. Could you please provide a link or specific search criteria to find the Solarian? Thanks!
-
True, although I forgot to mention 2 things: 1) I got a "bargain" because someone listed it lower than they intended (they were trying to sell it to a specific person who was slow to buy and I jumped on it after seeing it listed for a few days), and 2) it is coastal adult. Even more true, in that I myself am in the situation you describe! I guess if everyone tries to sell their mainland to get private sims, there will be a land price crash. :-/
-
With the private region "buydown", I'm considering selling my mainland. However, between the forums, auctions, etc. I cannot find many other people selling full adult mainland regions to compare. Can someone please tell me what a "good" price is these days (for the seller)? I'm hoping to make enough to help with my private region purchase/buydown.
-
I saw this as a reason to get a private sim again. I have not had one for years, and recently bought mainland for the lower tier. Now, for an apparently investment of US$1200 ($600 setup + $600 "buydown"), I can get a private sim with the same $195 tier fee as I am paying now for mainland. Maybe, just maybe, since my mainland is adult coastal, I can somehow break even if I sell it first. Any thoughts?
-
I hang out at a sim where griefers take delight in harrassing av's there with group chats. I am frequently sent instructions on how to block these unwanted chats, but only for 3rd-party viewers. How so you do it with the official LL viewer?
-
Hello! Over the years I've had zero problems with the SL viewer. Twice in the last couple weeks, I click the icon to launch the viewer and the shortcut is invalid! Should I assume my antivirus software (Norton 360) is quarantining/deleting the EXE? A re-install fixes it (the rest of the SL installation is still present just the EXE is missing so far as I can tell). Any advice is appreciated. Thanks, LZ
-
Ok, but you agree with what ObviousAlt is telling me, that the error table is the values that will come back from calling llGetExperienceDetails() for list parameters "integer state, string state_message"?
-
So..it's just the same error code/message for the current "experience state" which may be XP_ERROR_NONE/"No error "? How useful, not! Thanks! Was hoping there is some more useful "state" information than just "OK" vs. "last error".
-
I've been studying the new Experience functions now that they are finally available. At http://wiki.secondlife.com/wiki/LlGetExperienceDetails, the returned list elements include "[string experience_name, key owner_id, key experience_id, integer state, string state_message, key group_id]" Nowhere does it say what "state" or "state_message" are. Any clue? The other new Experience functions seems to be documented a little better. Thanks!
-
Thanks, I have ideas at my office when I can't try them. The reason I want a "special" character is, to be a real and true "flag" I have to choose something that can't be part of normal data. This is because I am coding something that needs to be able to handle any value for the data (for strings at least). The "heart" was just an example I chose from the link. If it were me, I would choose an odd ASCII character but I haven't figured out if those are actually available, or not available for use in LSL. The fact that only a few "special characters" are defined under "escape codes" (tab, newline, double quote, backslash) and I could not find any examples of using "control characters" (low/high ASCII) let me to think that the UTF-8 is the best chance at a "flag" that I will get: the point being to select a character that will almost definitely never be part of the data; I can select some strange symbol that is hopefully ugly enough noone will choose it on purpose. But, I'll make it "changeable" in my code just in case. Thanks, as always!
-
I need to choose a "relatively unused" special character that I can use as a "flag" in messages sent between my scripts. I've been studying the use of UTF-8 via llUnescapeURL(), etc. From this, I had the idea that I could perhaps use a UTF-8 character.. However, how would I compare for it? Idea: Can you compare two strings that have the same special UTF-8 value? For instance, I could use the Chr() function from the library (http://wiki.secondlife.com/wiki/Chr) to encode 0x2665 as the "heart" character and save that in a string variable: string sHeart=Chr(0x2665); a) Is it then valid to compare this using normal string methods? For example: if (llSubStringIndex(otherstring, sHeart)==0) // Found heart at the start! b) Can you suggest another way to do this without having to use the Chr() functions to "build" the character into a string in the first place? Thanks!