corrade-lsl-templates – Diff between revs 29 and 31
?pathlinks?
Rev 29 | Rev 31 | |||
---|---|---|---|---|
Line 314... | Line 314... | |||
314 | } |
314 | } |
|
Line 315... | Line 315... | |||
315 | |
315 | |
|
316 | state scan { |
316 | state scan { |
|
317 | state_entry() { |
317 | state_entry() { |
|
318 | // DEBUG |
318 | // DEBUG |
|
319 | llOwnerSay("Getting objects..."); |
319 | llOwnerSay("Getting primitives..."); |
|
320 | llInstantMessage( |
320 | llInstantMessage( |
|
321 | wasKeyValueGet( |
321 | wasKeyValueGet( |
|
322 | "corrade", |
322 | "corrade", |
|
323 | configuration |
323 | configuration |
|
324 | ), |
324 | ), |
|
325 | wasKeyValueEncode( |
325 | wasKeyValueEncode( |
|
326 | [ |
326 | [ |
|
327 | "command", "getobjectsdata", |
327 | "command", "getprimitivesdata", |
|
328 | "group", wasURLEscape( |
328 | "group", wasURLEscape( |
|
329 | wasKeyValueGet( |
329 | wasKeyValueGet( |
|
330 | "group", |
330 | "group", |
|
331 | configuration |
331 | configuration |
|
Line 364... | Line 364... | |||
364 | llSetColor(<.5,0,0>, ALL_SIDES); |
364 | llSetColor(<.5,0,0>, ALL_SIDES); |
|
365 | llResetScript(); |
365 | llResetScript(); |
|
366 | } |
366 | } |
|
367 | http_request(key id, string method, string body) { |
367 | http_request(key id, string method, string body) { |
|
368 | llHTTPResponse(id, 200, "OK"); |
368 | llHTTPResponse(id, 200, "OK"); |
|
369 | if(wasKeyValueGet("command", body) != "getobjectsdata" || |
369 | if(wasKeyValueGet("command", body) != "getprimitivesdata" || |
|
370 | wasKeyValueGet("success", body) != "True") { |
370 | wasKeyValueGet("success", body) != "True") { |
|
371 | // DEBUG |
371 | // DEBUG |
|
372 | llOwnerSay("Unable to query primitives data: " + |
372 | llOwnerSay("Unable to query primitives data: " + |
|
373 | wasURLUnescape( |
373 | wasURLUnescape( |
|
374 | wasKeyValueGet( |
374 | wasKeyValueGet( |