Thread

AW_OBJECT_NUMBER (Sdk)

AW_OBJECT_NUMBER // Sdk

1  |  

jerme

Feb 16, 2006, 3:07am
http://www.activeworlds.com/sdk/AW_EVENT_CELL_OBJECT.htm

So... what is it? What's it used for? Is it unique? Can it be changed, ever?

Searched this ng, and didn't turn up anything in the subject lines.

A quick google search turned up this page:
http://www.activeworlds.com/sdk/aw_int_set.htm

In this example AW_OBJECT_NUMBER is set to a random number before adding
an object...

strike rapier

Feb 16, 2006, 5:15am
Its a number that identifies the object unique to the cell, forming part of
the triplet required to identify any single object in the world.

--
- Mark Randall
http://www.temporal-solutions.co.uk
http://zetech.swehli.com

"Those people that think they know everything are a great annoyance to those
of us who do"
Isaac Asimov
[View Quote]

dm mercury

Feb 19, 2006, 3:49am
Theoretically isnt it possible to get 2 object numbers in the same cell? As
far as I know you could theoretically have 2 identical object numbers, but
they would only need to have different x and z values. I don't think the
server would run an intensive enough query to check the entire cell, but
easily could check if the x,z, and number value is present. It would be
hell on the world server with multiple object selection (well depending on
the amount it has to query).

So why would an object number be bound to a specific cell?

Object numbers change any time the object is modified. If you move the
object, the object number changes. Even changing the description or action
changes the object number. If you wish to track the object numbers, any
time you operate on an object the result is stored in AW_OBJECT_NUMBER. I
would check the sdk documentation on object deletion, and changing objects,
they can help clarify the purpose of object numbers and some other
attributes.

DM

[View Quote]

strike rapier

Feb 19, 2006, 11:49pm
[View Quote] 1 in 2^32

> As
> far as I know you could theoretically have 2 identical object numbers, but
> they would only need to have different x and z values. I don't think the
> server would run an intensive enough query to check the entire cell, but
> easily could check if the x,z, and number value is present. It would be
> hell on the world server with multiple object selection (well depending on
> the amount it has to query).
>
> So why would an object number be bound to a specific cell?

No idea, but it sounds logical - the X and Z optimise the efficency while
combined with the number would minimize collisions.

Best bet would be to try aw_object_load giving the same cell and object
number (but diff attributes) for 2 or more calls.

> Object numbers change any time the object is modified. If you move the
> object, the object number changes. Even changing the description or
> action
> changes the object number. If you wish to track the object numbers, any
> time you operate on an object the result is stored in AW_OBJECT_NUMBER. I
> would check the sdk documentation on object deletion, and changing
> objects,
> they can help clarify the purpose of object numbers and some other
> attributes.



> DM

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