ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
Newbie Bot Programming - can't "see" bot; get 439 (Sdk)
Newbie Bot Programming - can't "see" bot; get 439 // SdkroomieMar 29, 2004, 2:32am
Hi Everyone,
I am an experienced C/C++ programmer new to bot programming. I have created a bot which seems to login OK, but I can't "see" the bot when I'm in the same world. I handle the AW_EVENT_AVATAR_ADD and the bot gets a callback for my avatar - good. When I make the bot try to say something or whisper something to my avatar, I get 439 - RC_NO_CONNECTION - bad. Do I have to have certain permissions to run a bot (I'm a new citizen)? Do I have to be in a particular world (I am testing in AW)? What is the AW_MY_STATE attribute for (my bot seems to have state 0)? Thanks!! - me tony mMar 29, 2004, 3:17am
If you're calling aw_state_change(), and your bot appears within the range of the [Customs Aide] robot, it will be auto-ejected. You have to keep your bots at least 300m away from 0N 0E.
[View Quote] ep0chMar 29, 2004, 3:54am
If your state is 0 then your walking, 1 is running etc. You'll want to
impliment some event handlers, specifically AW_EVENT_WORLD_DISCONNECT. Sounds like CA is throwing a tissyfit then ejecting your bot, and cause you dont have the event set it thinks its still connected and so you'll get RC_NO_CONNECTION. -Ep0ch [View Quote] xelagMar 29, 2004, 4:18am
You have to call aw_wait regularly. I set the parameter to 0, and use
a windows timer to call it. I call this the bot's hearbeat. Once a second is minimal, in my opinion. If you don't call it within a minute or so, you get a no connection message. I'm not sure how you handle your code, so I can't say much more :) By default, you have a 3 bot allowance as a cit, this should not be a problem. You can test in Xelagon if you like (my world), there is no creepy Custom HIV bot there to eject yours. AW_MY_STATE is simply the sort of implicit sequence (animation) type that the bot will show to browsers, by default 0 (walking). It can be walking, running, flying, etc. Each state has it partical set of animations, for example, walking includes the walk, idle and wait sequences, flying includes the movement of flying (fly= in the avatars.dat file), and hovering when the bot is not moving (hover=). Check the enums AW_AVATAR_STATES in the H file, they only work in 3.4 or higher worlds and browsers. Alex On 28 Mar 2004 23:32:12 -0500, "roomie" <lisastump at netscape.net> [View Quote] >Hi Everyone, > >I am an experienced C/C++ programmer new to bot programming. I have >created a bot which seems to login OK, but I can't "see" the bot when >I'm in the same world. I handle the AW_EVENT_AVATAR_ADD and the bot >gets a callback for my avatar - good. When I make the bot try to say >something or whisper something to my avatar, I get 439 - >RC_NO_CONNECTION - bad. > >Do I have to have certain permissions to run a bot (I'm a new citizen)? >Do I have to be in a particular world (I am testing in AW)? >What is the AW_MY_STATE attribute for (my bot seems to have state 0)? > >Thanks!! >- me builderzMar 29, 2004, 5:24am
I'm not a programmer so I can't help you with your question, but I just
wanted to say welcome to AW (you said you were a new citizen) and that if you need another place to test your bot in, telegram me and I'll let you use my world if you'd like. Builderz http://www.3dhost.net roomieMar 29, 2004, 1:10pm
Yayy!!!!!!!!!!!!
It worked! It worked! *jumps up and down laughing I tried my bot in Xelagon and all works great now! (I also increased the frequency of calling aw_wait and called it with param 0 - so that might have been it too) Thanks everyone. You have a great community here. By the way, I played around with a Xelagot several months ago when I was working on some webpages for someone else's aw project. I logged in and logged in the bot and told it to "come here." While I waited around for the bot to show up I was creepily reminded by that short horror story about the old couple whose only son is lost tragically at sea (or something like that). The man finds some kind of genie lamp with three wishes and brings it home to his wife. They wish for something innocuous to test it and it comes true with some kind of unforseen twist (can't remember the details). So the wife grabs up the lamp and wishes for her son to come home. Nothing happens, but the man is filled with a sense of foreboding. In the middle of the night, they hear this horrible scratching and moaning at the door. The wife runs to open it and the man in horror realizes that they have raised the undead. He snatches up the lamp and just before the door opens, wishes the son back to the grave. The door opens and nothing is there... Anyway, the bot was very nicely behaved and all - nothing like an undead corpse. :-) Thanks for the great application! I'll let you all know how it goes. Anyone know of any natural language processing bots out there? (cuz that's what I'm working on) Thanks again everyone! - me [View Quote] brantApr 2, 2004, 12:54am
Wasn't there a bot that was adapted by HamFon or so in the late 90s that
used ELIZA to attempt to hold a conversation with a user? I wonder where that bot went.... -Brant [View Quote] xelagApr 2, 2004, 5:28am
On 1 Apr 2004 21:54:02 -0500, "brant" <awteen at shoemakervillage.org>
[View Quote] >Wasn't there a bot that was adapted by HamFon or so in the late 90s that >used ELIZA to attempt to hold a conversation with a user? I wonder where >that bot went.... > >-Brant Hopefully to the trashbin, it was the most annoying bot I've ever encountered :) Alex sweApr 17, 2004, 5:25pm
i remeber a story like that, except it was about a monkey's paw (the story
called the monkey's paw) and thier first wish is for money, then they get the money, but it's compensation to thier sons death, then they wish him back, can't remeber all the details, took in school like 5 years ago :) -SWE [View Quote] |