|
Max Pitre
Registered User
Join date: 19 Jul 2006
Posts: 370
|
02-01-2007 22:44
I have group owned land in one sim. Attached to that land is a another piece but in another sim. Is there a way to have my radio change the URL in both? Maybe send a signal to a another receiver in the other sim? I have other devices that work across the sim line like spotlights that are not linked. Thanks
|
|
Max Pitre
Registered User
Join date: 19 Jul 2006
Posts: 370
|
02-06-2007 19:49
Nothing at all?
|
|
Atashi Toshihiko
Frequently Befuddled
Join date: 7 Dec 2006
Posts: 1,423
|
02-06-2007 21:20
You could have the 'main' radio speak the new channel on a non-zero chat channel, and the 'slave' radio listen on the same non-zero chat channel. So when the main radio is changed, it says (or shouts even) the new channel, which nobody hears but the slave radio, which then changes channel as well.
That'd do it and be really easy to set up.
-Atashi
|
|
Max Pitre
Registered User
Join date: 19 Jul 2006
Posts: 370
|
02-07-2007 16:52
From: Atashi Toshihiko
That'd do it and be really easy to set up.
-Atashi
 Easy for you maybe. I can sometimes get lucky with the simple scripts. 
|
|
Max Pitre
Registered User
Join date: 19 Jul 2006
Posts: 370
|
02-10-2007 16:51
I have the radio shouting the url over channel 3234 (for lack of a better channel I guess). I guess thats a good channel. I tested the radio on channel 0 and it indeed shouts the new url out. The receiver is the issue now. I guess it is listening to the channel OK and hearing the new URL as in http://yaddayadda.com:8000. This line is confusing me : if("radio:*.*="==llGetSubString(lmsg,0,6)) Since the radio shouts out the url its shouting out like this (at least in channel 0 it does)- Radio shouts: Rock Station= http://yaddayadda.com:8000so I have the above line to show to hear it like that except there is a wildcard there as the genre can change from rock to jazz or whatever. Does a wildcard work? How can I over come this issue? ANY help is welcome. default { state_entry() { llListen(3234,"",NULL_KEY,""); } listen(integer channel,string name,key id,string msg) { string lmsg=llToLower(msg); if("Radio shouts:*.*="==llGetSubString(lmsg,0,6)) { llSetParcelMusicURL(llGetSubString(msg,7,-1)); } } }
|
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
02-11-2007 07:21
No you cannot use wild cards. You wont actually hear "Radio Shouts" just "Rock Station=http://yaddayadda.com:8000" The name, Radio will be passed in as the name parameter of the listen event handler. Ideally you need to ensure that you are only listening to the correct transmitter, either by using distinct channels for each one, or by encoding soem other id into teh transmitted data listen(integer channel,string name,key id,string msg) { list ldata = llParseString2List(msg, ["="], [""]); string strGenre = llList2String(ldata, 0); string strUrl= llList2String(ldata, 1); llSetParcelMusicURL(strUrl); }
|
|
Max Pitre
Registered User
Join date: 19 Jul 2006
Posts: 370
|
02-11-2007 10:14
Awesome! I had to change a few things around in both the radio and receiver but it now works across sim borders.
Newgate Ludd, is that your in world name?
Thanks for your help!
|