Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

not hearing llDialog button messages

Shack Dougall
self become: Object new
Join date: 9 Aug 2004
Posts: 1,028
11-05-2004 14:59
An attachment opens a dialog with llDialog, telling the attached avatar to move somewhere.

When the avatar is finished, they press one of the dialog buttons.

If the avatar moves far enough, then the attachment doesn't hear the dialog chat. It appears that the origin of the chat is set at the time the dialog is opened! Thus, even though the attachment is moving with the avatar, the chat still appears at the attachment's previous position which is now out of chat range.

At least, this is what I think is happening. It could also be some related weirdness about crossing sim boundaries. I haven't done a thorough investigation yet.

Has anyone else noticed something like this?
_____________________
Prim Composer for 3dsMax
-- complete offline builder for prims and sculpties in 3ds Max
http://liferain.com/downloads/primcomposer/

Hierarchical Prim Archive (HPA)
-- HPA is is a fully-documented, platform-independent specification for storing and transferring builds between Second Life-compatible platforms and tools.
https://liferain.com/projects/hpa
Zuzi Martinez
goth dachshund
Join date: 4 Sep 2004
Posts: 1,860
11-05-2004 15:11
the wiki says the llDialog chat comes from the same place as the object and since the chat doesn't happen til you hit a button i'm guessing you can't move away from the place where it's coming from. are you sure your listen is alright like listening to the right channel?

it also says "Note that llDialog will only work if the user identified by id is in the same region or if they have been to that region and left but have not yet logged out" so that might apply.
Shack Dougall
self become: Object new
Join date: 9 Aug 2004
Posts: 1,028
llDialog does not currently work across sim boundaries
11-05-2004 15:55
From: Zuzi Martinez
the wiki says the llDialog chat comes from the same place as the object and since the chat doesn't happen til you hit a button i'm guessing you can't move away from the place where it's coming from. are you sure your listen is alright like listening to the right channel?

it also says "Note that llDialog will only work if the user identified by id is in the same region or if they have been to that region and left but have not yet logged out" so that might apply.


Thanks for the Wiki summary. I tried to go there, but I'm not quite sure where it is now. :D

I did some tests.

Bottom Line: llDialog only seems to work in the sim that it was created.

Used this code:

CODE

default
{
state_entry()
{
llSay(0, "Hello, Avatar!");
}

touch_start(integer total_number)
{
llSay(0, "Touched.");
llDialog(llGetOwner(),"Hello",["goodby"], 0);
}
}


A little awkward to work with.

I touched it to get the dialog, then attached it and walked. Then, pressed the button.
Or I touched it, then walked away (leaving it on the ground). Then, pressed the button.

It worked as expected in all cases, except when I carried it across a sim boundary.

That is, this did NOT work:
1) touch it to get dialog
2) attach it
3) walk across sim boundary
4) press dialog button

Interestingly, this DID work:
1) touch it to get dialog
2) attach and walk across sim boundary.
3) walk back across boundary to original sim.
4) press dialog button.

So, I guess I'm mostly agreeing with the wiki except that I'm not seeing the"or if they have been to the region..." behavior.
_____________________
Prim Composer for 3dsMax
-- complete offline builder for prims and sculpties in 3ds Max
http://liferain.com/downloads/primcomposer/

Hierarchical Prim Archive (HPA)
-- HPA is is a fully-documented, platform-independent specification for storing and transferring builds between Second Life-compatible platforms and tools.
https://liferain.com/projects/hpa
Shack Dougall
self become: Object new
Join date: 9 Aug 2004
Posts: 1,028
11-05-2004 16:05
Actually, to be more precise. llDialog doesn't work if the object that created it is in a different sim from the sim in which the llDialog was created. If that makes sense.
_____________________
Prim Composer for 3dsMax
-- complete offline builder for prims and sculpties in 3ds Max
http://liferain.com/downloads/primcomposer/

Hierarchical Prim Archive (HPA)
-- HPA is is a fully-documented, platform-independent specification for storing and transferring builds between Second Life-compatible platforms and tools.
https://liferain.com/projects/hpa
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
11-05-2004 17:10
sounds like llDialog needs some fixing...
report it as a bug.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey