What was the object before it was changed. (Wishlist)

What was the object before it was changed. // Wishlist

1  |  

strike rapier

Nov 8, 2002, 4:28pm
It would be nice if the long int AW_OBJECT_OLD_NUMBER was set at AW_EVENT_OBJECT_ADD if the object was changed using AW_OBJECT_CHANGE as the number is already sent. This way we could find out what changed, which would be perfect for my World tracker bot for AWNewbie...

- Mark

grimble

Nov 8, 2002, 4:50pm
I've said before that I think its time that we have a whole new event for
object changes ... to reflect the SDK methods that causes it. I've got one
(but only for specifically monitored objects) in that enhanced SDK thingie I
mentioned a few days ago, but (like I believe you think, Mark), I feel its
been way too long now that we've had to deal with not knowing if the object
was "added" to a world because of a change or a new object.

Of course, we may not fully appreciate the impact of such a seemingly simple
new feature. It all depends on whether the aw_object_change sends an actual
"object change" request or an "object add" and an "object delete". Maybe
someone who's familiar with the AW messages can help here.

Grims

[View Quote]

swe

Nov 8, 2002, 8:18pm
well, if im not mistaken, whenever someone changes an object, the browser
adds the new one, then deletes the old one anyway, so either way (weather
changed, or just added) it would be a new object.

[View Quote]

grimble

Nov 8, 2002, 8:34pm
I am sure the browser uses aw_object_change method, as exposed in the SDK -
hence the question of how that method works. If there's an "object change"
message sent from the client to the server, then the server must split the
logical event of an object being changed into the AW_EVENT_OBJECT_ADD and
AW_EVENT_OBJECT_DELETE messages distributed to the sessions (bots and
browsers) - in which case the server can be more easily changed to
accomodate a new AW_EVENT_OBJECT_CHANGE event. However, if the
aw_object_change method sends an "object add" and an "object delete" message
to the server, then the server is as in the dark as the bots are about
whether the object was indeed changed or whether it is two separate events.

Grims

[View Quote]

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn