Change font size
It is currently Wed Oct 23, 2019 11:10 am

Forum rules


{L_IMAGE}



Post a new topicPost a reply Page 1 of 2   [ 20 posts ]
Go to page 1, 2  Next
Author Message
 Post subject: Separate SIM Chat Relay
PostPosted: Sun Jun 02, 2013 8:32 pm 
Furious Typer
User avatar

Joined: Tue Oct 16, 2012 8:46 pm
Posts: 109
Location: Orlando, Florida
This is a simple chat relay. It takes a chat that is said over a channel and you place this script in one prim on the edge of one SIM and on the edge of a neighboring SIM close to each, but on separate SIM's. For ssome reason the relazy isn't broadcasting to the second SIM in OpenSIM.

{L_CODE}:
integer cross=-4121;
integer sim=-534824;
integer listen1;
integer listen2;
default
{
    state_entry()
    {
        listen1=llListen(cross,"","","");
        listen2=llListen(sim,"","","");
    }

    listen(integer chan, string nam, key id, string msg)
    {
        if(chan == sim)
        {
            llSay(cross,msg);
        }
        if(chan == cross)
        {
            llRegionSay(sim,msg);
        }
    }
}


Top
 Profile  
 
 Post subject: Re: Separate SIM Chat Relay
PostPosted: Mon Jun 03, 2013 1:48 am 
Furious Typer
User avatar

Joined: Sat May 26, 2012 8:56 pm
Posts: 279
As far as I know, chat using llSay or llRegionSay (or any chat command) will not cross region boundries in SL or Opensim.
Also, a prim can not hear itself, though it will hear another prim in the linkset.
However, I do remember playing with a graffiti board script that used proprietry email that got around this, though it was cumbersome, and each graffiti board had to know the other graffiti board's UUID in order to function.


Top
 Profile  
 
 Post subject: Re: Separate SIM Chat Relay
PostPosted: Mon Jun 03, 2013 7:02 am 
Furious Typer
User avatar

Joined: Tue Oct 16, 2012 8:46 pm
Posts: 109
Location: Orlando, Florida
We have this working in SL to cross the different SIMs. Works great. Simple and doesn't cause much lag. Just doesn't want to work in OpenSIM.


Top
 Profile  
 
 Post subject: Re: Separate SIM Chat Relay
PostPosted: Mon Jun 03, 2013 12:36 pm 
OSG Elite
User avatar

Joined: Sat Nov 06, 2010 10:19 am
Posts: 1047
Location: Czech Republic
I would use IRC in role of the messenger. You can check on http://wiki.secondlife.com/wiki/User:Ro ... LSL_Bridge or directly use the http://opensimulator.org/wiki/IRCBridgeModule

That would also allow you to monitor the "talk" from outside.

Bo


Top
 Profile  
 
 Post subject: Re: Separate SIM Chat Relay
PostPosted: Tue Jun 04, 2013 2:21 pm 
Furious Typer
User avatar

Joined: Tue Oct 16, 2012 8:46 pm
Posts: 109
Location: Orlando, Florida
I take it that there is no way for that script to work in OpenSIM? It works really well and causes very little lag in SL and we communicate between 5 SIM's all connected with this script.


Top
 Profile  
 
 Post subject: Re: Separate SIM Chat Relay
PostPosted: Wed Jun 05, 2013 5:29 am 
Furious Typer
User avatar

Joined: Sat May 26, 2012 8:56 pm
Posts: 279
I will have a tinker and get back to you. Usually there is more than one way to skin a cat.


Top
 Profile  
 
 Post subject: Re: Separate SIM Chat Relay
PostPosted: Mon Nov 25, 2013 2:41 pm 
Furious Typer
User avatar

Joined: Tue Oct 16, 2012 8:46 pm
Posts: 109
Location: Orlando, Florida
The original post didn't include both scripts. Still not able to cross regions in a channel.

Script A
{L_CODE}:
integer cross=-4121;
integer sim=-534824;
integer listen1;
integer listen2;
default
{
    state_entry()
    {
        listen1=llListen(cross,"","","");
        listen2=llListen(sim,"","","");
    }

    listen(integer chan, string nam, key id, string msg)
    {
        if(chan == sim)
        {
            llSay(cross,msg);
        }
        if(chan == cross)
        {
            llRegionSay(sim,msg);
        }
    }
}



Script B "Directly across SIM border 2M apart from the object with Script A in it.

{L_CODE}:
integer cross=-4121;
integer sim=-534824;
integer listen1;
integer listen2;
default
{
    state_entry()
    {
        listen1=llListen(cross,"","","");
        listen2=llListen(sim,"","","");
    }

    listen(integer chan, string nam, key id, string msg)
    {
        if(chan == sim)
        {
            llSay(cross,msg);
        }
        if(chan == cross)
        {
            llRegionSay(sim,msg);
        }
    }
}


Top
 Profile  
 
 Post subject: Re: Separate SIM Chat Relay
PostPosted: Tue Nov 26, 2013 6:59 am 
Furious Typer
User avatar

Joined: Sat May 26, 2012 8:56 pm
Posts: 279
Those scripts don't and won't work in Osgrid.
I have tried similar experiments in the past. However, have a read of the article below, and it opens up a lot of possibilities.
http://www.hypergridbusiness.com/2012/12/free-database-for-opensim-scripts/


Top
 Profile  
 
 Post subject: Re: Separate SIM Chat Relay
PostPosted: Tue Nov 26, 2013 7:55 am 
Furious Typer
User avatar

Joined: Tue Oct 16, 2012 8:46 pm
Posts: 109
Location: Orlando, Florida
Thanks for the link I'll check it out. Do we know why it works in SL, but doesn't work in opensim?

Would it be possible to have a script receive the message and then instead of using like llsay user llinstantmessage to another prim and have that prim broadcast the message?


Top
 Profile  
 
 Post subject: Re: Separate SIM Chat Relay
PostPosted: Wed Nov 27, 2013 1:49 am 
Furious Typer
User avatar

Joined: Sat May 26, 2012 8:56 pm
Posts: 279
llInstantMessage can only be used with AV's and not prims.

Have a read of that link I sent you. I am sure you can do what you need, with that external database. For example, I am making a hud using that external database, and with that hud, I can send a message to all hud wearers, no matter what sim or grid they are on..


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 2   [ 20 posts ]
Go to page 1, 2  Next


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
610nm Style by Daniel St. Jules of Gamexe.net