White Nearby Chat From AI Systems Using Radegast!

Lots of people have asked about how to make altbots in Second Life speak using "white chat" instead of the green attachment-talk.  The answer always is - the viewer needs to have support for this, and Firestorm and SL Viewer simply do not.

However, Radegast can do this and is a great low-memory no-video viewer to run a bot with. Only about 200 MB per instantiation!

What you need to do in Radegast is go to Preferences and enable LSL Helper (check box) and
then put the bot's own UUID into the list of allowed users.

What follows is aimed at users of my Submissive Controller and Wearable AI-powered systems but it is very general and can be used for all sorts of LSL codes in Second Life applications.

Then go to the ai-api script in the ai prim (which contains the ai notecard) and comment out 
the line that sends green-chat output (stick // in front of it) so it looks like:

    // llSay(0,output); // if you use Nanite Vox (next line) comment this out

And stick in the line either just above or just after the llSay

    llInstantMessage("uuid of bot", "say^"+output); // for Radegast white chat

Of course put the uuid of your bot between the first pair of quotes.  Now output should go to white chat,
using the Radegast "say" function.  This is an as-yet undocumented feature of Radegast but it seems to solidly work.  If you have a "^" embedded in your ouput string it might fail or you mightrget truncated output (^ is rarely used so not much of a limitation unless you are doing a lot of math).

The say command actually has a couple of more arguments - if you add 

+"^channel^type"

to the text where channel is an integer and type is one of     normal   shout    whisper     you can get Radegast to do that on an channel, e.g.,

 llInstantMessage("uuid of bot", "say^"+output+"^1^shout");

will shout output on channel 1.  Nearby chat is as always channel 0.

The Radegast LSL Helper system does not have online documentation but you can find a backup of the old web pages here.

Currently, the online source of information for this option is in the source code (Github).

Something similar can be done for the Corrade system although it is a little more complex
to set up.  Read the documentation and then stick in code along the lines of the Corrade Test HUD
system available free of charge.


Noted January 12 2024: It seems that this "white chat" feature may sometimes *not work* in Win 11; seems to be reliable in Win 10 and under mono in linux.

December 27 2024: OMG there is a feature to send IMs also, same general story except the llInstantMessage to yourself should have text

 string UUID2 = "uuid2";
 llInstantMessage( "uuid of bot", "send_im^"+UUID2+"^"+output );

will apparently send a real IM off to avatar uuid2.   Not tested yet - now to receive IMs and reasonably send them off to SL... stay tuned!



Comments

Popular posts from this blog

Play With The Bots Over At The West Mill Store!

Welcome to the AI Animesh Sexbot Party @ Sunset Forest!

TTS2 - New Text to Audio Speech System! Hear What You Type In Media Audio!