Thread

Reason 416 (Sdk)

Reason 416 // Sdk

1  |  

insik choi

Sep 22, 1998, 4:05am
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 .

jan-willem de bleser

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--

roland vilett

Sep 22, 1998, 3:47pm
RC_RECEIVE_FAILED means that the low-level socket read call (recv) failed.
It's hard to be more specific than that because this can occur for any
number of reasons. But in general, it means some kind of network
communication problem has occurred. It could be that your network
connection dropped, the world server went down, or anything that would
interfere with socket communications.

Does this happen every time you try to run your app? When your app fails,
can you run the AW browser from the same PC without problems?

-Roland

[View Quote]

insik choi

Sep 23, 1998, 8:26am
[View Quote] >




I now enjoy active world browser.
and I can login galaxy server with hambot.

but my sdk samplebot can't login galaxy server.

my citzen number -> aw_login_owner
my privilege password -> aw_privilege_password
my citzen name -> aw_login_name

my source code





#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include "Aw.h"



void handle_avatar_add (void);

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

// char req, command[81];
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);

/* create bot instance */
if (rc = aw_create ("aw.haasmedia.com", 5670, 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, "test1");



if (rc = aw_login ()) {
printf ("Unable to login (reason %d)\n", rc);
printf ("Press any key to continue");
gets (junk);
exit (1);
}

/*** rc value = 416 ***/


/* log bot into the world called "beta" */
if (rc = aw_enter ("dear", 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 */


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));

}


I compiled this code with visual c++ 6.0

hambot can login my galaxy server .

roland vilett

Sep 23, 1998, 4:16pm
Ah! Okay, your problem is that during the beta test of the SDK, SDK apps
will *only* work within the main COF universe. I'm sorry if this was not
made very clear.

The additional functionality of the SDK requires version 2.1 of our
uniserver, which is still in testing here at COF. The main COF universe is
running a prototype of the 2.1 uniserver, which is why SDK apps do work in
our universe.

To write SDK apps that work within your galaxy, you will have to wait until
version 2.1 of Active Worlds is released later on this year. In the
meantime, you are welcome to use the world called "beta" in our universe for
any and all SDK testing and development.

By default Hambot does not use the new SDK functionality, so that is why
Hambot does work in your galaxy.

-Roland

[View Quote]

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