-
Posts
351 -
Joined
-
Last visited
Content Type
Forums
Blogs
Knowledge Base
Everything posted by Ron Khondji
-
odd script ...bug? ...listen doesnt save formatting
Ron Khondji replied to Xiija's topic in LSL Scripting
message = llDumpList2String(llParseStringKeepNulls(message, ["\\n"], []), "\n"); That does the trick. -
-
Physically based rendering, and all that
Ron Khondji replied to animats's topic in Second Life Viewer
"The idea of building things -- be they social relationships or objects or just building the world around yourself -- is pretty broadly appealing, in particular to soccer moms or teenage girls or people you might not think of conventionally as videogamers," Rosedale said. Found in wiki. -
- 115 replies
-
- 21
-
how to get the web url on a prim face ?
Ron Khondji replied to Skywalker Scofield's topic in LSL Scripting
default { state_entry () { integer i; do { list PM = llGetPrimMediaParams (i, [PRIM_MEDIA_CURRENT_URL]); string URL = llList2String (PM, 0); llOwnerSay (URL); } while (++i < llGetNumberOfSides ()); } } -
how to get the web url on a prim face ?
Ron Khondji replied to Skywalker Scofield's topic in LSL Scripting
LlGetPrimMediaParams is what you're looking for. I think. (But i didn't read the whole question, so sorry for the useless answer.) -
Stupid question: LSL command to get concurrency?
Ron Khondji replied to Nika Talaj's topic in LSL Scripting
Or you can use http://secondlife.com/httprequest/homepage.php Like this: key HTTP; default { state_entry() { HTTP = llHTTPRequest("http://secondlife.com/httprequest/homepage.php", [], ""); } http_response(key request_id, integer status, list metadata, string body) { if (request_id == HTTP) { if (status == 200) { list temp = llParseString2List(body, ["\n"], []); string number = llList2String(temp, llGetListLength(temp) - 1); string update_date = llList2String(llParseString2List(llList2String(temp, llGetListLength(temp) - 3), [" "], []), 0); string update_time = llList2String(llParseString2List(llList2String(temp, llGetListLength(temp) - 3), [" "], []), 1); llSetText ("Avatars in world: " + number + "\nUpdated: " + update_date + " at " + update_time + " SLT.", <.984, .686, .365>, 1.0); } } } } -
Only Accept Alphanumeric and Space Characters in String?
Ron Khondji replied to Galaxy Littlepaws's topic in LSL Scripting
I would do something like: integer AlphaNum (string text) { string alphanum = " abcdefghijklmnopqrstuvwxyz"; integer i; do { if (!~llSubStringIndex(alphanum, llToLower(llGetSubString(text, i, i)))) return FALSE; } while (++i < llStringLength (text)); return TRUE; } And then change name = m to if (AlphaNum (m)) name = m; else llOwnerSay ("Only alphanumerals."); -
External API for basic region info, like world location?
Ron Khondji replied to animats's topic in Second Life Web
You probably do not mean the official Linden Lab map api, but i'm mentioning it anyway. -
llGetNotecardLine - note card permissions
Ron Khondji replied to SmacemanSpiff Grau's topic in LSL Scripting
That won't work. The event in which llGetInventoryKey() gets called is not the problem. According to the wiki: If name is not copy, mod, trans then the return is NULL_KEY. Use llGetInventoryType instead of this function to verify the existence of inventory. Using Qie's solution will work. -
llGetNotecardLine - note card permissions
Ron Khondji replied to SmacemanSpiff Grau's topic in LSL Scripting
I just tried it. The wiki is not wrong. llGetNotecardLine can read a notecard that is no copy / no mod. -
Changing emissivity gradually with PRIM_ALPHA_MODE_EMISSIVE
Ron Khondji replied to Rolig Loon's topic in LSL Scripting
Is that not kinda described on the page about PRIM_ALPHA_MODE? -
Maybe it's a bug, but llSay(0, "http://maps.secondlife.com/ secondlife/Help%20Island%20Public/181/197/23"); (with a space between com/ and secondlife) seems to work as wel.
-
Well I just tried it again. - Imported simplebot-2.5.38079.dae into blender. - Aplied scale. - Exported as "Collada (Default)(.dae)", with "Operator Presets": "Sl + Open Sim Rigged". - Uploaded to the beta grid with all upload settings unchanged. Except for "Include skin weight", which needs to be selected. Found "Simple_Bot" in my inventory, right-clicked 'Wear" and presto. Still no problems. It looks to me like you did not tick "Include skin weight" when uploading the model.
-
Why was 6.4.1.541204 - CEF Special taken away from me?
Ron Khondji replied to Ardy Lay's topic in Second Life Viewer
It's back: CEF Update - 6.4.3.542757 -
Deploy plans for the week of 2020-05-25
Ron Khondji replied to Maestro Linden's topic in Second Life Server
Seems to be fixed allready. Here in Monowai atleast. -
Deploy plans for the week of 2020-05-25
Ron Khondji replied to Maestro Linden's topic in Second Life Server
Second Life Server 2020-05-15T17:44:47.542391 Does the same at http://maps.secondlife.com/secondlife/Monowai/35/131/72 -
Why Do I Have to Keep Logging On??!!
Ron Khondji replied to Prokofy Neva's topic in Second Life Viewer
Solution is: o use the default system browser for all links -
float interval = 40; //put your time after interval integer switch; default { touch_start(integer total_number) { if (switch = !switch) llSetTimerEvent(.1); else llSetTimerEvent(.0); } timer() { llPlaySound("Owl", 1); //put sound file name between between quotes llSetTimerEvent(interval); } } Try this.
-
llHTTPRequest("http://urlhere.com", [HTTP_CUSTOM_HEADER, "HTTP_USER_AGENT", "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36", HTTP_METHOD, "POST",HTTP_MIMETYPE, "application/x-www-form-urlencoded"], "Check=1"); does not give a error.
-
Well, this is also from the wiki: Note: Spaces are not allowed in HTTP User Agent token values, so "My Script Name/1.0" will produce a script error; change the spaces to hyphens ("-")
-
Using 'sim_channel' to get 'Blue Steel' or something doesn't work anymore. See this thread.
-
llGetUsername(llDetectedKey(0)) working on attach(key id) ?
Ron Khondji replied to Bull Vita's topic in LSL Scripting
llGetDisplayName(id) But that only works on attach. Not on 'detach'. -
I was talking about Blender. If you export from Blender with scale applied (scale = 1.0) you can leave the SL upload options as they are. Allthough your way obviously works just as well :).