Thread

aw_server_world_list (Sdk)

aw_server_world_list // Sdk

1  |  

ep0ch

Feb 6, 2004, 2:40am
Using VB, how would I go about listing the worlds on the world server? So
far I have it connecting to it, but aw_server_world_list returns 0. Im
probably barking up the wrong tree with my coding, but any insight on how to
use this would be very nice.

Ep0ch

baron

Feb 6, 2004, 3:39am
In article <40231ad8 at server1.Activeworlds.com>, deltawolf at deltawolf.com says...
> Using VB, how would I go about listing the worlds on the world server? So
> far I have it connecting to it, but aw_server_world_list returns 0. Im
> probably barking up the wrong tree with my coding, but any insight on how to
> use this would be very nice.
>
> Ep0ch
>
>

aw_server_world_list lists all the worlds installed in a world server. Call
http://www.activeworlds.com/sdk/aw_world_list.htm

--
../B

baron

Feb 6, 2004, 3:44am
In article <MPG.1a8d5548ce4e2b179896cf at news.activeworlds.com>, pk39srt at hot
[youknowwhat].com says...
> In article <40231ad8 at server1.Activeworlds.com>, deltawolf at deltawolf.com says...
>
> aw_server_world_list lists all the worlds installed in a world server. Call
> http://www.activeworlds.com/sdk/aw_world_list.htm
>
>

Cancel that, you do want the list on the world server. Make sure the instance
is aw_server_admin and set aw_server_id to 0.

--
../B

ubermonkey

Feb 6, 2004, 3:26pm
0 is actually the return value you're looking for; most of AW's functions
return an integer error code, or 0 if the function worked (as a side note,
outputting this code somewhere will allow you to see what went wrong if
something failed, by looking up said number on the error code table here:
http://www.activeworlds.com/sdk/reason.htm ). You will notice that 0 is
defined as RC_SUCCESS.

I cannot help you with VB specifics as I only work in C++, however from your
post I gather you have not installed an event handler for
AW_EVENT_WORLD_INFO (
http://www.activeworlds.com/sdk/AW_EVENT_WORLD_INFO.htm ). This event will
be called for each world returned by aw_world_list, and will set a number of
variables which you can retrieve in order to actually store/whatever the
world info.

[View Quote]

ep0ch

Feb 6, 2004, 5:33pm
I have looked at that, and converting C++ code to VB code is kind of hard.
Thats why I asked here to see if anyone could tell me how to work it in VB

Ep0ch

[View Quote]

strike rapier

Feb 6, 2004, 9:03pm
replace 'aw_' with 'sdk.aw_' case sensative :) majority SDK conversion in
about 1 easy step, hehehe.

- MR


[View Quote]

ep0ch

Feb 6, 2004, 10:31pm
Im not that dumb, contrary to popular belief.

Ep0ch

[View Quote]

strike rapier

Feb 6, 2004, 10:52pm
Actually... that is the first thing you might as well do when transfering
code... a case sensative replace... you can eliminate a lot of manual work
by taking common factors between the languages and literally swapping them.

Then do replaces to wipe out certain unneeded characters if your going from
VB to C++.

nResult& = sdk.aw_string_set&(AW_WORLD_EJECT_RIGHT&, szEjectRights$)

Moving from C++ to VB, VB will anihalate all your nice near ( )'s from your
subs, making everything look like shite...

Then just replace 'void' with 'sub' and as long as your code isnt too
complex you can then easily go throwing about type def's.... but if its more
advanced C++ code with void*'s etc then your relitivly screwed, so start
over :)

- Marky R
- Marky R
- Marky R
Took 3 clones to write it

[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