elias israel // User Search

elias israel // User Search

1  |  

Help Needed: Bot can't login?

Dec 15, 1998, 4:07pm
I'm trying to put together a simple 'bot using the sdk. Everything seems
fine, but login attempts keep coming back as rc=43 (password incorrect).
I've double checked the citizen number and the privilege password, and both
seem to be right. Is there some other reason why the bot wouldn't be able to
log in?

Oh, I'm using SDK build 10 and Metrowerks CodeWarrior C++ on Windows NT 4.0
(sp3) in case that makes any difference.


Thanks,

Elias Israel
eli at promanage-inc.com

Help Needed: Bot can't login?

Dec 15, 1998, 4:26pm
This is a multi-part message in MIME format.

------=_NextPart_000_000A_01BE282E.7A6441B0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


Here's a snippet. Because this is all C++ code, there isn't a simple =
code flow that you can follow as in the SDK sample programs provided on =
the activeworlds web page. Modularity is nice, said an old professor of =
mine, but it has a habit of using up lots of paper.



bool Robot::Create(void)
{
int rc;
=20
rc =3D aw_create(universe_name, universe_port, &instanceID);

return (rc =3D=3D 0);
}

bool Robot::Login(void)
{
int rc;

cout << "Login Name =3D " << login_name << "\n";
cout << "Login Owner =3D " << login_owner << "\n";
cout << "Login Password =3D " << login_passwd << "\n";
=20
aw_string_set(AW_LOGIN_NAME, login_name);
aw_int_set(AW_LOGIN_OWNER, login_owner);
aw_string_set(AW_LOGIN_PASSWORD, login_passwd);
aw_string_set(AW_LOGIN_APPLICATION, "Benjamin Sample SDK Bot");
rc =3D aw_login();
=20
cout << "Login Result =3D " << rc << "\n";

return (rc =3D=3D 0);
}

When Login is run, it prints:

Login Name =3D GreetBot
Login Owner =3D 291967
Login Password =3D XXXXXXXX
Login Result =3D 43

(I've intentionally hidden the password above.)

Eli
[View Quote] I'm trying to put together a simple 'bot using the sdk. =
Everything seems=20
fine, but login attempts keep coming back as rc=3D43 (password =
incorrect).=20
I've double checked the citizen number and the privilege =
password, and both=20
seem to be right. Is there some other reason why the bot =
wouldn't be able to=20
log in?=20
Oh, I'm using SDK build 10 and Metrowerks CodeWarrior C++ on =
Windows NT 4.0=20
(sp3) in case that makes any difference.=20

Thanks,=20

Elias Israel=20
eli at promanage-inc.com


------=_NextPart_000_000A_01BE282E.7A6441B0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type><!doctype html public "-//w3c//dtd html 4.0 =
transitional//en">
<META content=3D'"MSHTML 4.72.2106.6"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>Here's a snippet. Because this is =
all C++ code,=20
there isn't a simple code flow that you can follow as in the SDK sample =
programs=20
provided on the activeworlds web page. Modularity is nice, said an old =
professor=20
of mine, but it has a habit of using up lots of paper.</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>bool=20
Robot::Create(void)<BR>{<BR>&nbsp;&nbsp;&nbsp; int =
rc;<BR>&nbsp;&nbsp;&nbsp;=20
<BR>&nbsp;rc =3D aw_create(universe_name, universe_port,=20
&amp;instanceID);</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>&nbsp;return (rc =3D=3D =
0);</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>}</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>bool=20
Robot::Login(void)<BR>{<BR>&nbsp;&nbsp;&nbsp; int rc;</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>&nbsp;&nbsp;&nbsp; cout &lt;&lt; =
&quot;Login=20
Name =3D &quot; &lt;&lt; login_name &lt;&lt; =
&quot;\n&quot;;<BR>&nbsp;&nbsp;&nbsp;=20
cout &lt;&lt; &quot;Login Owner =3D &quot; &lt;&lt; login_owner &lt;&lt; =

&quot;\n&quot;;<BR>&nbsp;&nbsp;&nbsp; cout &lt;&lt; &quot;Login Password =
=3D=20
&quot; &lt;&lt; login_passwd &lt;&lt; =
&quot;\n&quot;;<BR>&nbsp;&nbsp;&nbsp;=20
<BR>&nbsp;aw_string_set(AW_LOGIN_NAME,=20
login_name);<BR>&nbsp;aw_int_set(AW_LOGIN_OWNER,=20
login_owner);<BR>&nbsp;aw_string_set(AW_LOGIN_PASSWORD,=20
login_passwd);<BR>&nbsp;aw_string_set(AW_LOGIN_APPLICATION, =
&quot;Benjamin=20
Sample SDK Bot&quot;);<BR>&nbsp;rc =3D =
aw_login();<BR>&nbsp;<BR>&nbsp;cout=20
&lt;&lt; &quot;Login Result =3D &quot; &lt;&lt; rc &lt;&lt;=20
&quot;\n&quot;;</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>&nbsp;return (rc =3D=3D =
0);<BR>}<BR></FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>When Login is run, it =
prints:</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>Login Name =3D GreetBot</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>Login Owner =3D 291967</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>Login Password =3D =
XXXXXXXX</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>Login Result =3D 43</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>(I've intentionally hidden the =
password=20
above.)</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>Eli</FONT></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: =
5px">
[View Quote] =
href=3D"mailto:3676A659.FB725736 at poboxes.com">3676A659.FB725736 at poboxes.c=
om</A>&gt;...</DIV>What=20
you are doing sounds right. Can you post your code?=20
[View Quote] ------=_NextPart_000_000A_01BE282E.7A6441B0--

Help Needed: Bot can't login?

Dec 15, 1998, 4:36pm
This is a multi-part message in MIME format.

------=_NextPart_000_0059_01BE282F.ED7B3040
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Aaah!!!

Of course, I had to post it to find the bug...

Where it says AW_LOGIN_PASSWORD below, it should say =
AW_LOGIN_PRIVILEGE_PASSWORD instead!

Thanks, all.

Eli
[View Quote] I'm trying to put together a simple 'bot using the sdk. =
Everything seems=20
fine, but login attempts keep coming back as rc=3D43 =
(password incorrect).=20
I've double checked the citizen number and the privilege =
password, and both=20
seem to be right. Is there some other reason why the bot =
wouldn't be able to=20
log in?=20
Oh, I'm using SDK build 10 and Metrowerks CodeWarrior C++ on =
Windows NT 4.0=20
(sp3) in case that makes any difference.=20

Thanks,=20

Elias Israel=20
eli at promanage-inc.com


------=_NextPart_000_0059_01BE282F.ED7B3040
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type><!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 =
HTML//EN"><!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<META content=3D'"MSHTML 4.72.2106.6"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>Aaah!!!</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Of course, I had to post it to find the =
bug...</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Where it says AW_LOGIN_PASSWORD below, it should say =

AW_LOGIN_PRIVILEGE_PASSWORD instead!</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Thanks, all.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Eli</FONT></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: =
5px">
[View Quote] ------=_NextPart_000_0059_01BE282F.ED7B3040--

a note about bots and special avatars

Dec 19, 1998, 1:16am
This reminds me of a question I've been meaning to ask. Is there a way,
using the SDK, to get a list of the available avatars on a world by name? Is
there a way to get the list of available gestures for a given avatar by
name?

Hambot-based bots seem to know how to do this, but I could be wrong.

Thanks!

Eli Israel
eli at promanage-inc.com


[View Quote]

Bot avatars...

Jan 1, 1999, 5:20pm
[View Quote]
This feature alone (plus a $20 tool for making simple avatars, or a yearly
fee for registering them) would bring in lots of new revenue into COF. I
realize that you're "just the engineer" (so to speak), but I hope everyone
at COF realizes how many people are waiting with bated breath for that
feature.

I used to be involved with the MUD/MUSH text-based worlds that were popular
5-10 years ago and the one thing that came up over and over is that there
are a relatively small number of people who want to build rooms, buildings,
places etc. compared to the number of people who just want to tour around
and express themselves. The *key* item in self-expression is appearance,
both in RL and in VR. Hence the need for custom avs and sequences.

Please take all of this as a vote, I hope, for custom avatars and more
avatar control in the SDK (and in the browser) sometime very soon.

Thanks,

Elias Israel
eli at promanage-inc.com

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