Author |
Message |
ZaneZimer
Joined: 2016-06-19 21:33:37 Posts: 384 Location: Columbus area, OH, USA
|
I was mostly curious. I could/can deal with the form as it is. It was just a combination I hadn't expected.
|
2017-06-11 13:14:42 |
|
![](./styles/getaway/theme/images/spacer.gif) |
Henri Beauchamp
Joined: 2009-03-17 18:42:51 Posts: 5899
|
Just a matter of convention... I had to adopt one, which is indeed totally arbitrary. ![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
|
2017-06-11 13:59:16 |
|
![](./styles/getaway/theme/images/spacer.gif) |
ZaneZimer
Joined: 2016-06-19 21:33:37 Posts: 384 Location: Columbus area, OH, USA
|
I have found that the chat type returned in OnReceivedChat() can contain CHAT_TYPE_DIRECT = 9. This seems to come from prims/objects with llInstantMessage() used within them. The id then seems to be the owner of the prim/object and name is the name of the prim/object. The documentation listed at: Lua scripting and viewer automation feature seems to indicate otherwise. I found that chats using llInstantMessage() weren't being processed by my Lua script because I wasn't handling type '9'.
|
2017-07-23 18:17:19 |
|
![](./styles/getaway/theme/images/spacer.gif) |
Henri Beauchamp
Joined: 2009-03-17 18:42:51 Posts: 5899
|
Well, like I wrote in the documentation: So, to get the full list (beside the main examples I gave), you'll have to look into that source file... The same thing goes for all the functions where I give a source file pointer in the Lua doc...
|
2017-07-23 21:55:28 |
|
![](./styles/getaway/theme/images/spacer.gif) |
ZaneZimer
Joined: 2016-06-19 21:33:37 Posts: 384 Location: Columbus area, OH, USA
|
I do use the header files and I even copy the names and values to comments in my automation script for quick reference. I am only referencing where llInstantMessage() is described as being 1 for normal chat. I believe the callback behavior is correct and am perfectly happy with it. ![Smile :-)](./images/smilies/icon_e_smile.gif)
|
2017-07-23 22:18:34 |
|
![](./styles/getaway/theme/images/spacer.gif) |
Henri Beauchamp
Joined: 2009-03-17 18:42:51 Posts: 5899
|
Documentation updated/fixed.
|
2017-07-29 08:05:15 |
|
![](./styles/getaway/theme/images/spacer.gif) |
ZaneZimer
Joined: 2016-06-19 21:33:37 Posts: 384 Location: Columbus area, OH, USA
|
Thanks Henri. I was looking at the Lua Pie Menu functions that you have made available. I have read the documentation and I don't believe it is possible to do 'nested' menu items (like the native browser pie support), correct?
|
2017-07-31 04:24:26 |
|
![](./styles/getaway/theme/images/spacer.gif) |
Henri Beauchamp
Joined: 2009-03-17 18:42:51 Posts: 5899
|
If by "nested", you mean sub-menu pies, then yes, you are correct. One possibility to obtain something in that vein, would be for you to simply dedicate a pie slice to a "pie toggle" item, that would change the Lua pie; but you'd have to re-pick (SHIFT+right click) on the object a second time to get the redefined pie to appear.
|
2017-07-31 07:52:39 |
|
![](./styles/getaway/theme/images/spacer.gif) |
ZaneZimer
Joined: 2016-06-19 21:33:37 Posts: 384 Location: Columbus area, OH, USA
|
I had also thought of your suggestion or using the slice to open a dialog detailing a list of options, selected by a numerical index. I'm just pondering ideas. I have no real need for such a structure yet.
|
2017-07-31 13:03:55 |
|
![](./styles/getaway/theme/images/spacer.gif) |
ZaneZimer
Joined: 2016-06-19 21:33:37 Posts: 384 Location: Columbus area, OH, USA
|
GetAgentInfo() and control_flags:
I've been trying to determine if there is a way to distinguish between sitting on an object vs sitting on the ground. I know GetAgentInfo() provides the `sitting` Boolean, but it is for any type of sit. I thought perhaps the control_flags could indicate this distinction, since indra/llcommon/llagentconstants.h contains AGENT_CONTROL_SIT_ON_GROUND. I'm likely misinterpreting what that flag is used for and/or means, as I have only found it in use at line 5457 in indra/newview/llviewermenu.cpp. A little tracing makes it seem like that flag means that I think it does, but I didn't go too far. I have also tried the various ways to sit on the ground, including the AgentSit() method but the control_flags remain 0 while sitting. I have used AGENT_CONTROL_AWAY from control_flags successfully, however, so I know some of the flags are as I expect them. Cheers and thanks for reading.
|
2018-07-08 18:27:19 |
|
|