Love Zhaoying Posted July 7, 2015 Share Posted July 7, 2015 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! Link to comment Share on other sites More sharing options...
ObviousAltIsObvious Posted July 7, 2015 Share Posted July 7, 2015 you can use the table in http://wiki.secondlife.com/wiki/LlGetExperienceErrorMessage as a magic decoder ring for those. Link to comment Share on other sites More sharing options...
Love Zhaoying Posted July 7, 2015 Author Share Posted July 7, 2015 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". Link to comment Share on other sites More sharing options...
Rolig Loon Posted July 7, 2015 Share Posted July 7, 2015 Well, no. The right-hand column in that table is actually quite helpful. For example, I find the message XP_ERROR_INVALID_PARAMETERS rather vague, but have found that the description "One of the string arguments was too big to fit in the key-value store" is pretty useful. Same with XP_ERROR_NO_EXPERIENCE , which sounds like a slam against me as a scripter until I discover that it means "This script is not associated with an experience". That's an error I still make a lot, because I forget to check the box at the bottom of the script editor. That table is most useful as a reference when you are trying to make sense of the data that come back from the dataserver whenever you use llReadKeyValue, llCreateKeyValue, or the other basic KVP functions. If the first returned parameter is "0", the second one is an integer that references column #2 in that table. Link to comment Share on other sites More sharing options...
Love Zhaoying Posted July 7, 2015 Author Share Posted July 7, 2015 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"? Link to comment Share on other sites More sharing options...
ObviousAltIsObvious Posted July 7, 2015 Share Posted July 7, 2015 only a subset of those codes would be expected for that particular function. a typical use case might be a portal board, where you would want to show if the experience is available. Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now