jan-willem de bleser // User Search

jan-willem de bleser // User Search

1  2  |  

SDK beta version now available

Sep 18, 1998, 10:14pm
This is a multi-part message in MIME format.
--------------A3CDAE5466E0AD5DA0E898B5
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

There are quite a few bots in Beta

[View Quote] > There aren't currently any SDK bots running 24 hours a day, but we should
> start seeing some set up within the next few weeks.
>
> -Roland
>
[View Quote]

--------------A3CDAE5466E0AD5DA0E898B5
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jan-willem De Bleser
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jan-willem De Bleser
n: De Bleser;Jan-willem
org: High school
email;internet: debleser at mediaone.net
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------A3CDAE5466E0AD5DA0E898B5--

GNU compiler

Sep 30, 1998, 9:57pm
This is a multi-part message in MIME format.
--------------75282AB7A8FB6BE990822715
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Whats a GUI compiler?

[View Quote] > FYI, the GNU C compiler (GCC) requires a different object format to the
> aw.lib so can not be used.
>
> Roland, would it be possible to create a version of the the lib with
> this compiler so that we poor people can use it. The best place to get
> it is http://www.delorie.com/djgpp/ . The windows package is called
> djgpp.
>
> Edward Sumerfield, esumerfd at poboxes.com



--------------75282AB7A8FB6BE990822715
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jan-willem De Bleser
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jan-willem De Bleser
n: De Bleser;Jan-willem
org: High school
email;internet: debleser at mediaone.net
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------75282AB7A8FB6BE990822715--

GNU compiler

Sep 30, 1998, 9:58pm
This is a multi-part message in MIME format.
--------------71146D6973FBE09FE09ED543
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Whats a GNU compiler?

[View Quote] > FYI, the GNU C compiler (GCC) requires a different object format to the
> aw.lib so can not be used.
>
> Roland, would it be possible to create a version of the the lib with
> this compiler so that we poor people can use it. The best place to get
> it is http://www.delorie.com/djgpp/ . The windows package is called
> djgpp.
>
> Edward Sumerfield, esumerfd at poboxes.com



--------------71146D6973FBE09FE09ED543
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jan-willem De Bleser
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jan-willem De Bleser
n: De Bleser;Jan-willem
org: High school
email;internet: debleser at mediaone.net
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------71146D6973FBE09FE09ED543--

GNU compiler

Oct 1, 1998, 6:42pm
This is a multi-part message in MIME format.
--------------3BA2118A553C66176895BBE0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit



[View Quote] > It's a free, open source compiler

whats that?

> which can be compiled and installed on
> many platforms, including the PC.

whats the difference between it and other c compilers?

>
>
> Check out http://www.cygnus.com/
>
> --
> Andrew C. Esh mailto:andrew_esh at cnt.com
> http://www.mtn.org/~andrewes - ACE Home Page
>
[View Quote]

--------------3BA2118A553C66176895BBE0
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jan-willem De Bleser
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jan-willem De Bleser
n: De Bleser;Jan-willem
org: High school
email;internet: debleser at mediaone.net
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------3BA2118A553C66176895BBE0--

A little help with a program

Sep 18, 1998, 10:54pm
This is a multi-part message in MIME format.
--------------A0DAC8C25DBD29070F78C186
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I have the following program (derived from sample #1) which is a
greetbot. It runs as a console application in dos or windows. Im trying
to get it to accept commands at the console so i can make the bot move
and talk at my command. how would i do that?

the program:
#include <aw.h> //i added the library and header to my program
directories. unless you have done
//that, use "aw.h"
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>

void handle_avatar_add (void);
void object_add (void);
void avatar_delete (void);
void input(char command[100]);

main (int argc, char *argv[])
{

int rc;
char junk[1];

/* check command line */
if (argc < 3) {
printf ("Usage: %s number password\n", argv[0]);
printf ("Press any key to continue");
gets (junk);
exit (1);
}

/* initialize Active Worlds API */
if (rc = aw_init (AW_BUILD)) {
printf ("Unable to initialize API (reason %d)\n", rc);
printf ("Press any key to continue");
gets (junk);
exit (1);
}

/* install handler for avatar_add and object_add event */
aw_event_set (AW_EVENT_AVATAR_ADD, handle_avatar_add);
aw_event_set (AW_EVENT_OBJECT_ADD, object_add);
aw_event_set (AW_EVENT_AVATAR_DELETE, avatar_delete);

/* create bot instance */
if (rc = aw_create (0, 0, 0)) {
printf ("Unable to create bot instance (reason %d)\n", rc);
printf ("Press any key to continue");
gets (junk);
exit (1);
}

/* log bot into the universe */
aw_int_set (AW_LOGIN_OWNER, atoi (argv[1]));
aw_string_set (AW_LOGIN_PRIVILEGE_PASSWORD, argv[2]);
aw_string_set (AW_LOGIN_APPLICATION, "SDK Sample Application #1");
aw_string_set (AW_LOGIN_NAME, "Bot of Zasz");
if (rc = aw_login ()) {
printf ("Unable to login (reason %d)\n", rc);
printf ("Press any key to continue");
gets (junk);
exit (1);
}

/* log bot into the world called "beta" */
if (rc = aw_enter ("Beta", 0)) {
printf ("Unable to enter world (reason %d)\n", rc);
printf ("Press any key to continue");
gets (junk);
exit (1);
}

/* announce our position in the world */
aw_int_set (AW_MY_X, 1000); /* 1W */
aw_int_set (AW_MY_Z, 1000); /* 1N */
aw_int_set (AW_MY_YAW, 2250); /* face towards GZ */
if (rc = aw_state_change ()) {
printf ("Unable to change state (reason %d)\n", rc);
printf ("Press any key to continue");
gets (junk);
exit (1);
}

/* main event loop */
char req, command[81];

while (!aw_wait (-1))
;

/* close everything down */
aw_destroy ();
aw_term ();
return 0;

}

void handle_avatar_add (void)
{

char message[100];

sprintf (message, "Hello %s. Welcome to Beta.", aw_string
(AW_AVATAR_NAME));
aw_say (message);
/* log the event to the console */
printf ("avatar_add: %s\n", aw_string (AW_AVATAR_NAME));

}

void object_add (void)
{

printf ("Someone has added a %s nearby", aw_string (AW_OBJECT_MODEL));

}

void avatar_delete (void)
{

char message[100];

sprintf (message, "%s has left the building\n", aw_string
(AW_AVATAR_NAME));
aw_say (message);
printf ("avatar_delete: %s\n", aw_string (AW_AVATAR_NAME));

}

--------------A0DAC8C25DBD29070F78C186
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jan-willem De Bleser
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jan-willem De Bleser
n: De Bleser;Jan-willem
org: High school
email;internet: debleser at mediaone.net
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------A0DAC8C25DBD29070F78C186--

A little help with a program

Sep 18, 1998, 11:22pm
This is a multi-part message in MIME format.
--------------64CD37FA0AB03E0CF1307409
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Ive seen it done. im guessing you do it somewhere in "while (!aw_wait (-1))
!newline! ;", but i cant get it to work



[View Quote] > I don't know much about programming (I'm just now learning, while I'm
> working on my own SDK bot), but I would think that if you wanted to be able
> to type stuff in while the program is running it would have to have some
> sort of windows interface (a dialog box with text field or something), maybe
> I don't know enough about console applications or something, but as far as I
> know you can't type stuff in while a console app is running... If you can,
> then I'd like to know how to do that too.
>
> PC Wizard
> ICQ-537376
> wizardry at home.com
> http://pcwizard.ml.org
>
[View Quote]

--------------64CD37FA0AB03E0CF1307409
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jan-willem De Bleser
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jan-willem De Bleser
n: De Bleser;Jan-willem
org: High school
email;internet: debleser at mediaone.net
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------64CD37FA0AB03E0CF1307409--

A little help with a program

Sep 21, 1998, 1:16pm
This is a multi-part message in MIME format.
--------------C426617553BF7CC92BCA379B
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit



[View Quote] > You don't need windows unless you want to make the interface pretty. A command
> line interface, like the dos prompt, is possible with a console app and is much
> easier to implement if you haven't done much programming.

I know

>
>
> Your problem is the architectural design of the sdk. It is event driven so while
> your program is in aw_wait it is waiting for a message from the server. It is not
> able to wait for a keystroke at the same time.

ah. thats the problem

>
>
> An extension needs to be made to the sdk for adding user events (Roland?), such as
> keyboard events. For example, aw_add_event(int, function); This would cause the aw
> sdk to wait on your event as well as its own and call your function when it is
> fired.

ill ask roland about that

>
>
> In the mean time you can use polling but it is not ideal. For example call
> aw_wait(10) so it will wait for 10 milliseconds for an sdk event to occur then
> drop back into your program. Then in your console app you can use the standard C
> function gets() which would allow you to enter a string and press enter. You can
> then do what you like based on the command entered.
>
> The problem is that this is a blocking call. Once you have called gets it will not
> return to your program until you press enter. While it is waiting for you, your
> avatar will not be able to react to events.
>
> If you want to get into some more serious programing them you can design a
> multi-threaded solution which would be a little more realistic. Bare in mind that
> the aw sdk is not thread safe so do not allow two different threads to call the
> same api.

How?

>
>
> The design would involve one thread being dedicated to calling the aw functions
> and a second thread being dedicated to accepting input from the keyboard. There
> would be one common command buffer that both threads read and a lock to protect
> that buffer.
>
> So your program would start up and kick off a seperate thread to do all the aw
> init, start, enter and wait(10) stuff while the first thread blocked on the gets()
> function. Now the aw thread would be able to continue running even though the
> gets() was blocked because it is running in a seperate thread.
>
> In the aw thread, each time the aw_wait drops out it would check the command lock,
> if it is unlocked then it would lock it, check the command buffer and act on what
> ever it found before unlocking the lock.
>
> In the gets thread, each time the enter key is pressed the lock is checked, if
> unlocked then it must be locked and the new command copied into the shared command
> buffer, before the lock is unlocked again.
>
> This is a polling solution so is not as cpu efficient as the sdk change but would
> work.
>
> Good luck everyone.
>
> Edward Sumerfield, esumerfd at poboxes.com
>
[View Quote]

--------------C426617553BF7CC92BCA379B
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jan-willem De Bleser
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jan-willem De Bleser
n: De Bleser;Jan-willem
org: High school
email;internet: debleser at mediaone.net
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------C426617553BF7CC92BCA379B--

rc 200

Sep 19, 1998, 12:46pm
This is a multi-part message in MIME format.
--------------FE0E3FE9034A4C46E05755E2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

post the source code so we can check it out

[View Quote] > I just added to my bot where it builds an object that plays a midi when it
> starts... but when it starts up in the console it puts "Cannot add object
> reason 200" I looked for reason 200 on the reason codes page but it wasn't
> in there.... The bot still builds the object in the world though...
>
> PC Wizard
> (ICQ-537376)
> wizardry at home.com
> http://pcwizard.ml.org



--------------FE0E3FE9034A4C46E05755E2
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jan-willem De Bleser
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jan-willem De Bleser
n: De Bleser;Jan-willem
org: High school
email;internet: debleser at mediaone.net
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------FE0E3FE9034A4C46E05755E2--

Bots

Sep 21, 1998, 11:44pm
This is a multi-part message in MIME format.
--------------449382F8C4097DC869CF69BD
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hambot is an excellent bot, but if you want something simple, jsut a
greetbot or something like that, go to
http://members.xoom.com/Jwdb/AWBot/
customizing may be offered eventually

--------------449382F8C4097DC869CF69BD
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jan-willem De Bleser
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jan-willem De Bleser
n: De Bleser;Jan-willem
org: High school
email;internet: debleser at mediaone.net
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------449382F8C4097DC869CF69BD--

Bots

Sep 22, 1998, 12:41pm
This is a multi-part message in MIME format.
--------------DF192E0EEB343613E1B40507
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

One or two things have been brought to my attention. The Password the bot
requires is your PRIVLEGE PASSWORD, not your login password. Also, run the
program in windows and close the program by pushing CTRL-C



--------------DF192E0EEB343613E1B40507
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jan-willem De Bleser
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jan-willem De Bleser
n: De Bleser;Jan-willem
org: High school
email;internet: debleser at mediaone.net
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------DF192E0EEB343613E1B40507--

Bots

Sep 24, 1998, 9:28am
This is a multi-part message in MIME format.
--------------C87205BC33E0C2A1C1863096
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I have just finished a new version of my bot. it will be posted this evening.
you can type teleport(no caps) at the command line and it will teleport your
bot to the locaion you specify. Once AW browser 270 comes out it will no loger
greet everybody out loud, but whisper a greeting to them. that prevents
flooding. further updates are expected.

[View Quote] > Hambot is an excellent bot, but if you want something simple, jsut a
> greetbot or something like that, go to
> http://members.xoom.com/Jwdb/AWBot/
> customizing may be offered eventually
>
> ------------------------------------------------------------------------
>
> Jan-willem De Bleser <debleser at mediaone.net>
> High school
>
> Jan-willem De Bleser
> High school <debleser at mediaone.net>
> Netscape Conference Address
> Netscape Conference DLS Server
> Additional Information:
> Last Name De Bleser
> First Name Jan-willem
> Version 2.1



--------------C87205BC33E0C2A1C1863096
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jan-willem De Bleser
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jan-willem De Bleser
n: De Bleser;Jan-willem
org: High school
email;internet: debleser at mediaone.net
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------C87205BC33E0C2A1C1863096--

Reason 416

Sep 22, 1998, 10:45am
This is a multi-part message in MIME format.
--------------72E4C213EB037C39FD38A8D1
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Wahts your AW name?

[View Quote] > aw_int_set (AW_LOGIN_OWNER, atoi (argv[1]));
> aw_string_set (AW_LOGIN_PRIVILEGE_PASSWORD, argv[2]);
> aw_string_set (AW_LOGIN_APPLICATION, "SDK Sample Application #1");
> aw_string_set (AW_LOGIN_NAME, "Bot of Zasz");
> if (rc = aw_login ()) {
> printf ("Unable to login (reason %d)\n", rc);
> printf ("Press any key to continue");
> gets (junk);
> exit (1);
> }
>
> I looked for reason 416 on the reason codes page but
> it wasn't explain to me.
> would like to teach me for "RC_RECEIVE_FAILED"?
> and I want to get detail reason .



--------------72E4C213EB037C39FD38A8D1
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jan-willem De Bleser
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jan-willem De Bleser
n: De Bleser;Jan-willem
org: High school
email;internet: debleser at mediaone.net
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------72E4C213EB037C39FD38A8D1--

object adding/modification/deletion

Sep 27, 1998, 12:21am
This is a multi-part message in MIME format.
--------------E601EF56B13A29D00DD072D5
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

you know that error 204 means that it cant find the old object, right?
my guess is that the error is in the following code:

if (strstr (aw_string (AW_CHAT_MESSAGE), music1)) {
aw_say ("*starts up the juke box* -KICK-");
aw_int_set (AW_OBJECT_OLD_NUMBER, 1);
aw_int_set (AW_OBJECT_OLD_X, 1000);
aw_int_set (AW_OBJECT_OLD_Z, 700);
aw_int_set (AW_OBJECT_NUMBER, 2);
aw_int_set (AW_OBJECT_X, 1000);
aw_int_set (AW_OBJECT_Y, 0);
aw_int_set (AW_OBJECT_Z, 700);
aw_int_set (AW_OBJECT_YAW, 2250);
aw_string_set (AW_OBJECT_MODEL, "zjuke.rwx");
aw_string_set (AW_OBJECT_DESCRIPTION, "Local H -Bound For The Floor");
aw_string_set (AW_OBJECT_ACTION, "create sound
http://midivault.ml.org:81/bands/Local_H/BoundForTheFloor.mid");

if (rc = aw_object_change ())
printf ("Unable to change object (reason %d)\n", rc);
else
puts ("Object changed");


[View Quote] > Ok.. here's what I'm trying to do:
> I have my bot enter the world (all rights, I'm caretaker...) and it puts an
> object there (zjuke.rwx with create sound on it) and that works... but then
> I'm trying to get it to where they say something (like "start the music")
> and it will change the create sound to a different midi.... the only thing
> is it can't change it.. it always comes up with a reason code 204 (cannot
> find element I think). I tried making something where it deleted the object
> and it does the same thing.. here's part of my code:
>
> #include "aw.h"
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
>
> #define bot_owner "PC Wizard"
>
> #define bot_name "Megahertz"
>
> #define music1 "Start the music"
> #define laugh1 "lol"
> #define laugh2 "roflmao"
>
> void handle_avatar_add (void);
> void avatar_delete (void);
> void chat (void);
> void handle_chat (void);
> void AW_TERM (void);
> int AW_DESTROY (void);
> int AW_WORLD_EJECT (void);
> int AW_OBJECT_CHANGE (void);
>
> main (int argc, char *argv[])
> {
>
> int rc;
>
> /* check command line */
> if (argc < 3) {
> printf ("Usage: %s number password\n", argv[0]);
> exit (1);
> }
>
> /* initialize Active Worlds API */
> if (rc = aw_init (AW_BUILD)) {
> printf ("Unable to initialize API (reason %d)\n", rc);
> exit (1);
> }
>
> /*======================================*/
> /* install handler for avatar_add event */
> /* Handlers ----------------- Handlers */
> aw_event_set (AW_EVENT_AVATAR_ADD, handle_avatar_add);
> aw_event_set (AW_EVENT_AVATAR_DELETE, avatar_delete);
> aw_event_set (AW_EVENT_CHAT, chat);
> aw_event_set (AW_EVENT_CHAT, handle_chat);
> /* Handlers ----------------- Handlers */
> /*======================================*/
>
> /* create bot instance */
> if (rc = aw_create (0, 0, 0)) {
> printf ("Unable to create bot instance (reason %d)\n", rc);
> exit (1);
> }
>
> /* log bot into the universe */
> aw_int_set (AW_LOGIN_OWNER, atoi (argv[1]));
> aw_string_set (AW_LOGIN_PRIVILEGE_PASSWORD, argv[2]);
> aw_string_set (AW_LOGIN_APPLICATION, "PC Wizards bot program");
> aw_string_set (AW_LOGIN_NAME, bot_name);
> //aw_string_set (AW_LOGIN_NAME, argv[3]);
> if (rc = aw_login ()) {
> printf ("Unable to login (reason %d)\n", rc);
> exit (1);
> }
>
> /* log bot into the world called "wizardry" */
> if (rc = aw_enter ("wizardry", 0)) {
> printf ("Unable to enter world (reason %d)\n", rc);
> exit (1);
> }
>
> /* announce our position in the world */
> aw_int_set (AW_MY_X, 800); /* .8W */
> aw_int_set (AW_MY_Z, 800); /* .8N */
> aw_int_set (AW_MY_Y, 0);
> aw_int_set (AW_MY_YAW, 2250); /* face towards GZ */
> aw_int_set (AW_MY_TYPE, 251);
> if (rc = aw_state_change ()) {
> printf ("Unable to change state (reason %d)\n", rc);
> exit (1);
> }
>
> aw_int_set (AW_OBJECT_X, 1000);
> aw_int_set (AW_OBJECT_Y, 0);
> aw_int_set (AW_OBJECT_Z, 700);
> aw_int_set (AW_OBJECT_NUMBER, 1);
> aw_int_set (AW_OBJECT_YAW, 2250);
> aw_string_set (AW_OBJECT_MODEL, "zjuke.rwx");
> aw_string_set (AW_OBJECT_DESCRIPTION, "-Playing-");
> aw_string_set (AW_OBJECT_ACTION, "create sound
> http://midivault.ml.org:81/misc/Nebula.mid");
> if (rc = aw_object_add ())
> printf ("Unable to add object (reason %d)\n", rc);
> else
> puts ("Object added");
>
> /* main event loop */
> while (!aw_wait (-1))
> ;
>
> /* close everything down */
> aw_destroy ();
> aw_term ();
> return 0;
>
> }
>
> void handle_avatar_add (void)
> {
>
> char message[100];
>
> if (!strcmp (aw_string (AW_AVATAR_NAME), bot_owner)) {
> //sprintf (message, "Ah, my master has entered, hello", aw_string
> (AW_AVATAR_NAME));
> sprintf (message, "Ah, my creator has entered! Hello %s", aw_string
> (AW_AVATAR_NAME));
>
> }
>
> else {
> sprintf (message, "Hello %s, I'm %s, and I'll be your host tonight.",
> aw_string (AW_AVATAR_NAME), bot_name);
> }
> aw_say (message);
>
> /* log the event to the console */
> printf ("avatar_add: %s\n", aw_string (AW_AVATAR_NAME));
>
> }
>
> void avatar_delete (void)
> {
>
> char message[101];
>
> sprintf (message, "%s just left" , aw_string (AW_AVATAR_NAME));
> aw_say (message);
> /* message to console */
> printf ("avatar_delete: %s\n", aw_string (AW_AVATAR_NAME));
>
> }
>
> static char* chat_type[] = {"said", "broadcast", "whispered"};
>
> void chat (void)
>
> {
>
> printf ("Session %d %s %s\n", aw_int (AW_CHAT_SESSION),
> chat_type[aw_int (AW_CHAT_TYPE)], aw_string (AW_CHAT_MESSAGE));
>
> }
>
> void handle_chat (void)
> {
> int rc;
> if (strstr (aw_string (AW_CHAT_MESSAGE), bot_name)) {
> aw_say ("That's my name, don't wear it out! :)");
> }
> else if (strstr (aw_string (AW_CHAT_MESSAGE), laugh1)) {
> aw_say ("hahaha");
> }
> else if (strstr (aw_string (AW_CHAT_MESSAGE), laugh2)) {
> aw_say ("LOL!");
> }
>
> }
>
> /*Music=============================Music*/
> if (strstr (aw_string (AW_CHAT_MESSAGE), music1)) {
> aw_say ("*starts up the juke box* -KICK-");
> aw_int_set (AW_OBJECT_OLD_NUMBER, 1);
> aw_int_set (AW_OBJECT_OLD_X, 1000);
> aw_int_set (AW_OBJECT_OLD_Z, 700);
> aw_int_set (AW_OBJECT_NUMBER, 2);
> aw_int_set (AW_OBJECT_X, 1000);
> aw_int_set (AW_OBJECT_Y, 0);
> aw_int_set (AW_OBJECT_Z, 700);
> aw_int_set (AW_OBJECT_YAW, 2250);
> aw_string_set (AW_OBJECT_MODEL, "zjuke.rwx");
> aw_string_set (AW_OBJECT_DESCRIPTION, "Local H -Bound For The Floor");
> aw_string_set (AW_OBJECT_ACTION, "create sound
> http://midivault.ml.org:81/bands/Local_H/BoundForTheFloor.mid");
>
> if (rc = aw_object_change ())
> printf ("Unable to change object (reason %d)\n", rc);
> else
> puts ("Object changed");
> }
>
> }
>
> I used the Sample 1 to start the bot.. then I just added to that. But I've
> tried everything I can think of (which isn't much :)) to get it to change
> the object but it always does a 204 error.... and the object is in the
> world.. Also:
> Can anybody give me an example on how I could get the bot to read what
> someone says from a command and then take a midi address that they said and
> put it in for the create sound? sorta like a request..
>
> PC Wizard (ICQ-537376)
> wizardry at home.com
> http://pcwizard.ml.org



--------------E601EF56B13A29D00DD072D5
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jan-willem De Bleser
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jan-willem De Bleser
n: De Bleser;Jan-willem
org: High school
email;internet: debleser at mediaone.net
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------E601EF56B13A29D00DD072D5--

object adding/modification/deletion

Oct 2, 1998, 9:22am
This is a multi-part message in MIME format.
--------------7F15B42C298FD36F2C295557
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit



[View Quote] > Object creation and manipulation is no doubt by far the most difficult
> aspect of using the SDK. As soon as I get a free moment, I'm going to
> create Sample Application #2 for the SDK which will implement a simple DJ
> bot, much like yours, although I plan to have it simply rotate through a
> fixed list of MIDI files to keep it simpler.
>
> One problem with your app is that it creates the juke box object each time
> you run it. That's fine for testing but for a real bot that's not good
> because you are going to wind up with a pile of juke boxes, one on top of
> the other, one for each time you ran your bot. A better approach I think is
> to create the juke box object yourself (by hand) and instead have the bot
> look for it when it starts up. However this is a bit tricky because it
> involves using aw_query(), probably the single most complex call in the SDK.
> I will illustrate all of this in the next sample application.
>
> One thing that you'll have to change in your code as it currently stands is
> that



> after the aw_object_add() call succeeds, you'll need to query and save
> the value of the AW_OBJECT_NUMBER attribute.

is this done with aw_query?

> This is a 32-bit integer that
> uniquely identifies the object within the cell. Then before the call to
> aw_object_change(), set AW_OBJECT_OLD_NUMBER to this value.
>
> The AW_OBJECT_NUMBER attribute is assigned by the SDK, not by you. The docs
> are not particularly clear on this point right now. Each time you call
> aw_object_change(), you'll need to query the object number again for the
> subsequent call to aw_object_change(), something like this:
>
> int number;
>
> aw_int_set (AW_OBJECT_X, 1000);
> aw_int_set (AW_OBJECT_Y, 0);
> aw_int_set (AW_OBJECT_Z, 700);
> aw_int_set (AW_OBJECT_YAW, 2250);
> aw_string_set (AW_OBJECT_MODEL, "zjuke.rwx");
> aw_string_set (AW_OBJECT_DESCRIPTION, "-Playing-");
> aw_string_set (AW_OBJECT_ACTION, "create sound
> http://midivault.ml.org:81/misc/Nebula.mid");
> if (rc = aw_object_add ())
> printf ("Unable to add object (reason %d)\n", rc);
> else {
> puts ("Object added");
> number = aw_int (AW_OBJECT_NUMBER);
> }
>
> ...
>
> /*Music=============================Music*/
> if (strstr (aw_string (AW_CHAT_MESSAGE), music1)) {
> aw_say ("*starts up the juke box* -KICK-");
> aw_int_set (AW_OBJECT_OLD_NUMBER, number);
> aw_int_set (AW_OBJECT_OLD_X, 1000);
> aw_int_set (AW_OBJECT_OLD_Z, 700);
> aw_int_set (AW_OBJECT_X, 1000);
> aw_int_set (AW_OBJECT_Y, 0);
> aw_int_set (AW_OBJECT_Z, 700);
> aw_int_set (AW_OBJECT_YAW, 2250);
> aw_string_set (AW_OBJECT_MODEL, "zjuke.rwx");
> aw_string_set (AW_OBJECT_DESCRIPTION, "Local H -Bound For The Floor");
> aw_string_set (AW_OBJECT_ACTION, "create sound
> http://midivault.ml.org:81/bands/Local_H/BoundForTheFloor.mid");
>
> if (rc = aw_object_change ())
> printf ("Unable to change object (reason %d)\n", rc);
> else {
> puts ("Object changed");
> number = aw_int (AW_OBJECT_NUMBER);
> }
>
[View Quote]

--------------7F15B42C298FD36F2C295557
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jan-willem De Bleser
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jan-willem De Bleser
n: De Bleser;Jan-willem
org: High school
email;internet: debleser at mediaone.net
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------7F15B42C298FD36F2C295557--

problem with a bot

Sep 27, 1998, 3:56pm
This is a multi-part message in MIME format.
--------------49940954135AC71595FC0F50
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

whats wrong with this?

ofstream outfile("chat.log", ios::app);
while (!aw_wait (1))
{
int sequence[3][3];
for(int i = 0; i < 3; i++)
for(int j = 0; j < 3; j++)
sequence[i][j] = 0;
aw_query (aw_int(AW_MY_X), aw_int(AW_MY_Z), sequence);
outfile << "AW_query called to query the starting location\n";

if(_kbhit())
{
gets(input);
console_command(input);
}
}

it wont even print to the outfile that aw_query was called. can anyone
help me?

--------------49940954135AC71595FC0F50
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jan-willem De Bleser
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jan-willem De Bleser
n: De Bleser;Jan-willem
org: High school
email;internet: debleser at mediaone.net
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------49940954135AC71595FC0F50--

problem with a bot

Sep 27, 1998, 8:18pm
This is a multi-part message in MIME format.
--------------B209C2F0B2FEC3E2BFAABB0A
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit



[View Quote] > Well it probably has something to do with how you are using the ofstream
> class. I'm not a C++ expert so I'll let someone else in this newsgroup look
> at that part.

I know its not that because i can log chat and events with that setup of oftream
in exactly the same way. the thing is that the program ignores ALL the commands
i added which are the following commands, while it doesnt ignore _kbhit()<added
code that it ignores>
int sequence[3][3];
for(int i = 0; i < 3; i++)
for(int j = 0; j < 3; j++)
sequence[i][j] = 0;
aw_query (aw_int(AW_MY_X), aw_int(AW_MY_Z), sequence);
outfile << "AW_query called to query the starting location\n";
</>

>
>
> I should mention that you should not pass aw_int (AW_MY_X) in for the sector
> coordinates to aw_query(). AW_MY_X is in units of centimeters, whereas
> sector coordinates are in units of 80 meters. In sample app #2 I'll show
> how to convert from centimeter coordinates to sector coordinates.
>
> -Roland
>
[View Quote]

--------------B209C2F0B2FEC3E2BFAABB0A
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jan-willem De Bleser
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jan-willem De Bleser
n: De Bleser;Jan-willem
org: High school
email;internet: debleser at mediaone.net
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------B209C2F0B2FEC3E2BFAABB0A--

problem with a bot

Sep 28, 1998, 9:14am
This is a multi-part message in MIME format.
--------------AA2C4CE540CE2C7DCEBF19F3
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

i dont understand callbacks

[View Quote] > It's possible there may be a problem with the aw_query() call in synchronous
> mode then. I assume you haven't installed the AW_CALLBACK_QUERY callback,
> so that means the aw_query() call will not return until the query request
> completes. I'll try to look at this soon.
>
> -Roland
>
[View Quote]

--------------AA2C4CE540CE2C7DCEBF19F3
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jan-willem De Bleser
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jan-willem De Bleser
n: De Bleser;Jan-willem
org: High school
email;internet: debleser at mediaone.net
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------AA2C4CE540CE2C7DCEBF19F3--

problem with a bot

Sep 30, 1998, 12:26pm
This is a multi-part message in MIME format.
--------------6D4EC2303B7C7F351BEE9636
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

when will sample app 2 come out?

[View Quote] > Well it probably has something to do with how you are using the ofstream
> class. I'm not a C++ expert so I'll let someone else in this newsgroup look
> at that part.
>
> I should mention that you should not pass aw_int (AW_MY_X) in for the sector
> coordinates to aw_query(). AW_MY_X is in units of centimeters, whereas
> sector coordinates are in units of 80 meters. In sample app #2 I'll show
> how to convert from centimeter coordinates to sector coordinates.
>
> -Roland
>
[View Quote]

--------------6D4EC2303B7C7F351BEE9636
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jan-willem De Bleser
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jan-willem De Bleser
n: De Bleser;Jan-willem
org: High school
email;internet: debleser at mediaone.net
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------6D4EC2303B7C7F351BEE9636--

problem with a bot

Sep 30, 1998, 12:43pm
This is a multi-part message in MIME format.
--------------1B36F1AA11664268F097CFA6
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

so if i do aw_query (0, 0, sequence); everything from GZ to 8N/S/E/W is queried?

[View Quote] > Well it probably has something to do with how you are using the ofstream
> class. I'm not a C++ expert so I'll let someone else in this newsgroup look
> at that part.
>
> I should mention that you should not pass aw_int (AW_MY_X) in for the sector
> coordinates to aw_query(). AW_MY_X is in units of centimeters, whereas
> sector coordinates are in units of 80 meters. In sample app #2 I'll show
> how to convert from centimeter coordinates to sector coordinates.
>
> -Roland
>
[View Quote]

--------------1B36F1AA11664268F097CFA6
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jan-willem De Bleser
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jan-willem De Bleser
n: De Bleser;Jan-willem
org: High school
email;internet: debleser at mediaone.net
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------1B36F1AA11664268F097CFA6--

Do I need a Universe Server for using sdk ?

Oct 2, 1998, 7:11pm
This is a multi-part message in MIME format.
--------------5B70D25D1E32C1A726C06CEE
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit



[View Quote] > Yes, but in which way can I interfer with the current world ?
>
> Let's do that with exemples:
>
> Suppose I have a world ( personnal server ).
> Could you tell me an very simple exemple of program using the SDK that would
> interfere into my world ?

go to www.activeworlds.com/sdk

>
>
> Now, this program should be running from my personnal computer or from the
> world personnal server ?

your computer

>
>
> thx
> JP



--------------5B70D25D1E32C1A726C06CEE
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jan-willem De Bleser
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jan-willem De Bleser
n: De Bleser;Jan-willem
org: High school
email;internet: debleser at mediaone.net
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------5B70D25D1E32C1A726C06CEE--

When the courses will start ?

Oct 2, 1998, 7:10pm
This is a multi-part message in MIME format.
--------------1E849AA68A3E370A5F51B3C7
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

what course?

[View Quote] > Hi,
>
> I am registered to the course on SDK, and I would like to know when it will
> start.
>
> thx
>
> jeanphi



--------------1E849AA68A3E370A5F51B3C7
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jan-willem De Bleser
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jan-willem De Bleser
n: De Bleser;Jan-willem
org: High school
email;internet: debleser at mediaone.net
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------1E849AA68A3E370A5F51B3C7--

Roland: SDK docs for viewing off-line?

Oct 3, 1998, 1:03pm
This is a multi-part message in MIME format.
--------------AF3A1AD3341D63F706082068
Content-Type: multipart/alternative; boundary="------------FDDD87F811BA4F492CCF19FF"


--------------FDDD87F811BA4F492CCF19FF
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit



[View Quote] > I went looking and found "Web Downloader" which is I
> think what Edward is suggesting.
>
> WebDownloader Home Page:
> http://www.saransk.sitek.net/pages/arny/

this link is broken. bad dns

>
>
> Another application that is very well known to do the
> job of downloading whole web sites is Web Whacker:
> http://www.ffg.com/whacker.html

this page does not exist

>
>
> Enjoy,
> Devon
>
[View Quote]

--------------FDDD87F811BA4F492CCF19FF
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<HTML>
&nbsp;

[View Quote] <P>WebDownloader Home Page:
<BR><A HREF="http://www.saransk.sitek.net/pages/arny/">http://www.saransk.sitek.net/pages/arny/</A></BLOCKQUOTE>
this link is broken. bad dns
<BLOCKQUOTE TYPE=CITE><A HREF="http://www.saransk.sitek.net/pages/arny/"></A>&nbsp;

<P>Another application that is very well known to do the
<BR>job of downloading whole web sites is Web Whacker:
<BR><A HREF="http://www.ffg.com/whacker.html">http://www.ffg.com/whacker.html</A></BLOCKQUOTE>
this page does not exist
<BLOCKQUOTE TYPE=CITE><A HREF="http://www.ffg.com/whacker.html"></A>&nbsp;

<P>Enjoy,
<BR>&nbsp; Devon

[View Quote] --------------FDDD87F811BA4F492CCF19FF--

--------------AF3A1AD3341D63F706082068
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jan-willem De Bleser
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jan-willem De Bleser
n: De Bleser;Jan-willem
org: High school
email;internet: debleser at mediaone.net
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------AF3A1AD3341D63F706082068--

Roland: SDK docs for viewing off-line?

Oct 3, 1998, 3:46pm
This is a multi-part message in MIME format.
--------------FCEAE0E0BC342C608C4CE0D1
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit



[View Quote] [View Quote] i got it. for some reason it wouldnt open at first

>
>
>
> no, but this one does:
> http://www.bluesquirrel.com/whacker/
>
> [snip rest]



--------------FCEAE0E0BC342C608C4CE0D1
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jan-willem De Bleser
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jan-willem De Bleser
n: De Bleser;Jan-willem
org: High school
email;internet: debleser at mediaone.net
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------FCEAE0E0BC342C608C4CE0D1--

Reason 43

Oct 3, 1998, 3:48pm
This is a multi-part message in MIME format.
--------------1E2DDD092AD8E850F19480B3
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

open activeworlds, go to settings, go to citizen settings, and fill in the
privelege password. use that password to allow bots to use your account and, if
you want, allow citizens to build under your name without using your account

[View Quote] > Sorry, I may not understand clearly:
>
> the privilege password is the one I use when I don't want to log as tourist
> but as a citizen right ?
>
> Or is there another topic that I don't know ?
> like the Privilege setting to get somebody else privileges.
>
> thx for your help
>
> jeanphi



--------------1E2DDD092AD8E850F19480B3
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jan-willem De Bleser
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jan-willem De Bleser
n: De Bleser;Jan-willem
org: High school
email;internet: debleser at mediaone.net
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------1E2DDD092AD8E850F19480B3--

callbacks

Oct 3, 1998, 5:02pm
This is a multi-part message in MIME format.
--------------F360428F268B33A9BFB406E4
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Ok. Ive looked over all the docuentation but i still cant figure out
what a callback is. can someone explain to me what it is and how to use
it?

--------------F360428F268B33A9BFB406E4
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jan-willem De Bleser
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jan-willem De Bleser
n: De Bleser;Jan-willem
org: High school
email;internet: debleser at mediaone.net
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------F360428F268B33A9BFB406E4--

callbacks

Oct 5, 1998, 7:10pm
This is a multi-part message in MIME format.
--------------6E497948E93E4073BCF2125C
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

but the function returns the info itself. i reread it a few times and it seems
like you can tell the function to return before it is done so you can continue
the rest of the program. the data is then recieved later.

[View Quote] > Hi,
>
> If I well understood, the callbacks are functions that allow you to get info
> from the server.
>
> like aw_world list_list seems to send you the list of worlds running on the
> universe you are in.
>
> jeanphi



--------------6E497948E93E4073BCF2125C
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jan-willem De Bleser
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jan-willem De Bleser
n: De Bleser;Jan-willem
org: High school
email;internet: debleser at mediaone.net
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------6E497948E93E4073BCF2125C--

callbacks

Oct 7, 1998, 7:09pm
This is a multi-part message in MIME format.
--------------C509948BEBF1FFF67AEC1054
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Roland, can you please slowly explain how to use callbacks and where to use
them?

[View Quote] >
> There is a conceptual difference. Callbacks occur in order to report the
> results to you of specific actions that your app has triggered, e.g. adding
> an object, looking up a citizen, etc. Success or failure of the request is
> common to all callbacks, thus the callback functions take a single int rc
> argument. Meanwhile, events can happen at any time, not necessarily in
> response to your application's actions. They don't have a concept of
> succeeding or failing, thus the event handlers do not take any arguments.
>
> -Roland



--------------C509948BEBF1FFF67AEC1054
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jan-willem De Bleser
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jan-willem De Bleser
n: De Bleser;Jan-willem
org: High school
email;internet: debleser at mediaone.net
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------C509948BEBF1FFF67AEC1054--

callbacks

Oct 7, 1998, 11:32pm
This is a multi-part message in MIME format.
--------------587F2BB06951694049714AB6
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

whats Asynchronous Operation?

[View Quote] > I did the best job I can do of explaining callbacks in the "Asynchronous
> Operation" section of the SDK docs:
>
> http://www.activeworlds.com/sdk/asynchro.htm
>
> -Roland
>
[View Quote]

--------------587F2BB06951694049714AB6
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jan-willem De Bleser
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jan-willem De Bleser
n: De Bleser;Jan-willem
org: High school
email;internet: debleser at mediaone.net
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------587F2BB06951694049714AB6--

callbacks

Oct 8, 1998, 9:19am
This is a multi-part message in MIME format.
--------------71E1C7B33A6FC123844103F5
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

actually, you helped. thanks

[View Quote] > Time to take a programming coarse.
>
> Synchronous operation is one thing after another.
> Asynchronous operation is many things at once.
>
> Well, kind of. Lets use a little bit of psuedo code.
>
> Sync operation:
>
> while do forever
>
> do this thing and wait
> done
>
> Async operation:
>
> while do forever
>
> do this thing and while it is doing it return.
>
> /* so the thing is still goint but this code is continuing anyway.
> */
>
> do another thing.
> done
>
> How about an example.
>
> You want to read a message from a communications line. You can call a read
> function and wait for data to arrive at your machine, sync operation. Or you
> can call a read function to indicate that you wand date but then return. Now
> while you are waiting for data to arrive you can be doing something else.
> When the data arrives the other part of your program calls you.
>
> I think I may be making things more complicated than they need to be. Sorry.
>
> The aw sdk.
>
> aw_callback_set(function);
> aw_query
> while ()
>
> do something.
> }
>
> function() {
>
> this will be called when the query operation is complete.
> }
>
> You know, if you don't need to get into higher efficiency bots I would just
> ignore the issue.
>
> Edward Sumerfield.
>
[View Quote]

--------------71E1C7B33A6FC123844103F5
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jan-willem De Bleser
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jan-willem De Bleser
n: De Bleser;Jan-willem
org: High school
email;internet: debleser at mediaone.net
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------71E1C7B33A6FC123844103F5--

what about an IRC channel ?

Oct 5, 1998, 7:07pm
This is a multi-part message in MIME format.
--------------A217815AED8B0D89C3B82DD3
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

a channel. i have a 24H connection, but whats a channel?

[View Quote] > If someone has 24h/24 connection to Internet, it could be interesting to
> have a channel :)
>
> jeanphi



--------------A217815AED8B0D89C3B82DD3
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jan-willem De Bleser
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jan-willem De Bleser
n: De Bleser;Jan-willem
org: High school
email;internet: debleser at mediaone.net
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------A217815AED8B0D89C3B82DD3--

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