JSON Comes to Second Life

JSON is pronounced jay-sun. JSON is a text based way of representing data structures. Some think of it as an alternative to XML. It primarily was developed for use in JavaScript programming for transferring data across a network.

I suspect for many of us the arrival of JSON in the Linden Scripting Language (LSL) is a non-event. But, for scripters it is a big deal.

This week the JSON upgrades will be running on the RC channels, all three. The new stuff added to the LSL is:

  • list llJson2List(string json)
    • Converts the top level of the json string to a list.
  • string llList2Json(string type, list values)
  • string llJsonGetValue(string json, list specifiers)
    • Gets the value indicated by specifiers from the json string.
  • string llJsonSetValue(string json, list specifiers, string value)
    • Returns a new json string that is the json given with the value indicated by specifiers set to value
  • string llJsonValueType(string json, list specifiers)
    • Returns the type constant for the value in json indicated by specifiers.
  • Usage guide: Json_usage_in_LSL (added to Wiki 5/14 – today)

You may have noticed in there the mention of ARRAYS. That is a big thing. I’m not sure it is going to give us arrays as we have with other languages. But, it looks to be closer than the strided lists we use.

Provided this Release Candidate makes it past testing this week another set of JSON features will roll into the RC channels next week. No, no word on what those will be.

Kelly Linden is leading the JSON project. Questions on its implementation can be brought to him at the Tuesday Server & Scripting meetings in Denby.

Kelly says we are seeing JSON added to improve the ability to interface LSL with the larger web. The previous maintenance version expanded the content-type support of http-in and http-out which ties in with this JSON addition.

Second Life Collada Import Problem

I came across a tidbit of news this morning. If you are setting your SL Viewer to any language other than English, the Collada import for mesh may not work.

You’ll see the problem in the import preview window. You’ll see polygons with normals reversed and vertices here and there out of place. If you try more than one import, you’ll see the reversed normal polygons and the out of place vertices change and which are messed up are unpredictable.

Problem w/Mesh Import by Lemon AcidJuice @ Flickr
Problem w/Mesh Import by Lemon AcidJuice @ Flickr

For now the problem is corrected by switching the viewer to use English.

If you are seeing the problem and can reproduce it on demand file a JIRA bug report with all the steps.

The discussion of the problem is in the SL Forum: Unpredictable mesh import.

High-Fidelity Sky

 

High-Fidelity (HF), Rosedale’s new virtual world, is prototyping parts of their planned virtual world. Last week they released a picture of their sky render and promised a ‘long’ blog post. Today the image popped up in my Feedly.

Prototype Sky at High Fidelity VW
Prototype Sky at High Fidelity VW

The sky is interesting. I suppose it could be the night sky.

I also find it interesting that both Cloud Party (CP) and HF are publishing a step-by-step of the development process. CP seems to be taking feedback and ideas from users. HF is not to that point yet. Will they take feedback too? We’ll have to wait to see.

Restrained Life Viewer Update Released

I have not been a fan of RLV until recently, not the viewer the feature. A friend formerly from Land of Nor has been showing me how it could be used to improve roll play and combat games. I was impressed and have sense been spending more time paying with it.

Marine Kelley posted about the recent update to the RLV viewer: RestrainedLove Viewer 2.8.4.1. Marine explains some of the problems integrating the CHUI changes to RLV. It took a couple of months to find bugs and resolve them. The fixes are done and a new version is released.

Second Life Information

I see from Inara’s Living in a Modem World that Designing Worlds has a new show premiering today. This show it titled: Project Materials

You can see the showing at Designing World’s theater:  Designing Worlds Studio at 2 PM SLT (PDT) today Monday, May 13.

As always you can see it via web cast on Treat.TV (live) at the same time.

Usually a day or two after the premier you can find it in the library of shows.