ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
wsf and avatar_delete/add, another problem (Sdk)
wsf and avatar_delete/add, another problem // Sdkdecastro@cable.a2000.nl (xelag)Jan 2, 1999, 12:54am
Roland and the ng club:
A problem with wfs. I'd like some advice on this. When there's a problem with the communication with the server, wsf, my bots don't get the aw_avatar_delete() event. As soon as communication is re-established, the bots get aw_avatar_add() events for all present, as if they had never been there in the first place, causing double entries in their presece-lists. Since the session number has also changed (if the problem was due to the world or uni servers, i suppose), i can only cope with clearing the citizens from being entered more than once - i keep their cit. numbers, which i ask from the server at every avatar_add() event. A second problem is that the program freezes for a while during wsf, i suppose due to aw_wait() and other messages it sends to the server. aw_wait() does not return an error code in case of wsf. Is there a neat way to cope with this? I call aw_wait(10) every 0.5 sec, it's heading the loop that processes all communication prom my program to the server. My emergency solution is manually ejecting and re-entering the bot in the world. This causes the presence lists to be cleared on entry. I'd like to make this, or any better solution, an automatic feature. Any suggestions are welcome. XelaG. walter knupeJan 2, 1999, 8:01am
There is a event to be set AW_WORLD_DISCONNECT which might be able to
signal you to clear avatar lists. Walter XelaG schrieb in Nachricht <368d8390.18190586 at news.activeworlds.com>... >Roland and the ng club: > >A problem with wfs. > >I'd like some advice on this. When there's a problem with the >communication with the server, wsf, my bots don't get the >aw_avatar_delete() event. As soon as communication is re-established, >the bots get aw_avatar_add() events for all present, as if they had >never been there in the first place, causing double entries in their >presece-lists. Since the session number has also changed (if the >problem was due to the world or uni servers, i suppose), i can only >cope with clearing the citizens from being entered more than once - i >keep their cit. numbers, which i ask from the server at every >avatar_add() event. > roland vilettJan 2, 1999, 8:44pm
Yes that is correct, to deal with this problem you should install an event
handler for AW_EVENT_WORLD_DISCONNECT and clear your entire avatar list whenever you receive it. This is what the AW browser itself does as well. -Roland [View Quote] decastro@cable.a2000.nl (xelag)Jan 2, 1999, 9:54pm
Thank you both for your help. I've had it installed for a few days
now, but have had no wfs since then, so I can't test it yet. XelaG On Sat, 2 Jan 1999 14:44:23 -0800, "Roland Vilett" <roland at lmi.net> [View Quote] >Yes that is correct, to deal with this problem you should install an event >handler for AW_EVENT_WORLD_DISCONNECT and clear your entire avatar list >whenever you receive it. This is what the AW browser itself does as well. > >-Roland > [View Quote] walter knupeJan 2, 1999, 10:38pm
Sure you can, turn of your modem :)
Walter XelaG schrieb in Nachricht <368eb146.95428278 at news.activeworlds.com>... >Thank you both for your help. I've had it installed for a few days >now, but have had no wfs since then, so I can't test it yet. XelaG > >On Sat, 2 Jan 1999 14:44:23 -0800, "Roland Vilett" <roland at lmi.net> [View Quote] edward sumerfieldJan 4, 1999, 2:32pm
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html> Or unplug the wire if it is an internal. [View Quote] |