|
Prodigal Maeterlinck
Registered User
Join date: 14 Dec 2005
Posts: 136
|
01-19-2006 16:11
I have two prims in one object with the same script to send link messages, with the exception of a string constant to id them. I two other prims with the same script to receive link_messages, with the exception of the string constant each is supposed to id. But the only prim that seems to be sending is the earliest in the link order, and the only prim receiving is the latest in the link order.
Why is only the first link message sent when they both have the exact code? The link messages are being sent to all other prims in the group, so why is only one receiving it?
tia for help, advice.
|
|
Sky Honey
Coder
Join date: 16 May 2005
Posts: 105
|
01-20-2006 09:06
If you paste some code I'm sure some kind soul will help 
|
|
Alfred Lardner
Mad Scripter.
Join date: 28 Dec 2005
Posts: 28
|
01-20-2006 10:06
Check your link targets. If it's using a string identifier in the script, chances are it's meant to be a broadcast script, and therefore should send all messages to LINK_SET rather than any individual prim.
_____________________
Needlessly complicating LSL since 2005.
|
|
Prodigal Maeterlinck
Registered User
Join date: 14 Dec 2005
Posts: 136
|
01-21-2006 06:44
Two objects in the prim have this script, the only difference is in the string constant. string CHAINID = "chain 1";
callchain() { llMessageLinked(LINK_ALL_OTHERS, 0, CHAINID, llGetLinkKey(llGetLinkNumber())); }
default { state_entry() { callchain(); } on_rez(integer num) { callchain(); } }
Two other objects have this script: string CHAINID = "chain 1";
default { link_message(integer sender, integer n, string chainid, key chainstart) { llOwnerSay("Received from "+chainid+" linked at "+(string)sender+ " keyid: "+(string)chainstart);
if (chainid == CHAINID) { // Fire particles } } }
Whether I send it to LINK_SET or ALL_OTHERS, only the second chain's link message is sent, and only the first receiver receives it.
|
|
Sky Honey
Coder
Join date: 16 May 2005
Posts: 105
|
01-21-2006 12:32
I get this output: From: someone prim3: Received from chain 1 linked at 1 keyid: 0cb05727-484c-7d76-e942-d16557f82baf prim4: Received from chain 1 linked at 1 keyid: 0cb05727-484c-7d76-e942-d16557f82baf prim4: Received from chain 2 linked at 2 keyid: c2777ef2-e205-e2aa-cf4a-f4c70ca64c83 prim3: Received from chain 2 linked at 2 keyid: c2777ef2-e205-e2aa-cf4a-f4c70ca64c83
Is that what you want to get?
|
|
Prodigal Maeterlinck
Registered User
Join date: 14 Dec 2005
Posts: 136
|
01-21-2006 14:13
That's what I expected to get, but I only get: From: someone bar attachment1: Received from chain 2 linked at 9 keyid: 37fc9e1c-e232-0c12-345b-1fc4bb661167
All scripts are in place, linked to the same root, all rezzing together. Why would only one firing and only one receiving? EDIT: Alright, found unchecked 'Running' boxes on the scripts that obviously weren't running. It works now!
|