ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
First Bot, help please (Sdk)
First Bot, help please // SdkicydeeAug 19, 2001, 7:17pm
OK.
I finally got around the problem of using developer studio 97 (I created my own lib file) and I ran the demo bot. I now get error "unable to login, reason code 43 " which is because I am using my ordinary password. What is, and how do I get, an AW_LOGIN_PRIVILEGE_PASSWORD I want to be able to run a bot in AlphaWorld. Am I going to be able to do this? IcyDee agent1Aug 19, 2001, 7:20pm
First, enter AW and set a Privilege Password (Options->Citizen... ). Then use *that* to login with the bot.
-Agent1 [View Quote] icydeeAug 19, 2001, 9:35pm
Thanks, obvious now I see it!
On another subject, are bots somehow inhibited at ground zero on AlphaWorld? When my bot was there it only seemed to say hello to one person. When I moved it way-out it seemed to behave normally. [View Quote] > First, enter AW and set a Privilege Password (Options->Citizen... ). Then use *that* to login with the bot. > > -Agent1 > kahAug 20, 2001, 10:24am
start by using others' bots so you get a clue of how bots work at all... or
I doubt you'll ever make much of a bot... KAH [View Quote] lanezeriAug 20, 2001, 6:03pm
Why not supply helpful information? I've learned it's easier to help by
typing a few lines than to dog them in several lines. So next time don't say anything pud! [View Quote] kahAug 20, 2001, 6:36pm
it is help to give advices... I adviced him to actually *USE* bots before he
started programming them, so that he gets an understanding of how they work... KAH [View Quote] lanezeriAug 20, 2001, 6:40pm
I barely used a bot before I started programming, are you saying my bots are
worthless? [View Quote] icydeeAug 20, 2001, 6:53pm
Kah
thanks for that advice, it is true that looking at other peoples code is useful. Where do you suggest I obtain simple source code from. I only have the samples in the help files to go on so far. I have written my first bot, a build bot that spirals out from a start location and tiles the area fully to 'reserve' the land. (Of course respecting the 1km by 1km limit!) Now I am working on understanding the aw_query command to determine what objects are currently on the land so that I can 'survey' for suitable building land. Problem now is the various co-ordinate systems which I don't think I have straight in my mind yet. AW_OBJECT_X/Z is the co-ordinate in meters from ground zero Teleport co-ordinate system is in cells (10m by 10m) aw_query is in sectors? (80m by 80m) A zone is determined by the co-ordinate of it's middle sector? Is this right? IcyDee [View Quote] > start by using others' bots so you get a clue of how bots work at all... or > I doubt you'll ever make much of a bot... > > KAH > icydeeAug 20, 2001, 7:00pm
lanezeri
Don't worry, I did not take offence. I have seen many posts like mine from people with no idea what to do. I don't class myself quite in that catagory, I just have a few initial hurdles to overcome before I can do anything useful! (like sorting out compiler library incompatibilites and understanding about different passwords!) I have been programming for 27 years so I am not a total novice! On a different note, I see that there are libraries for VB, C, and Delphi. Has anyone thought of a library for perl? I think it would be a good way to program if someone developed a perl interface (perhaps it is something I should try and do myself!). [View Quote] > Why not supply helpful information? I've learned it's easier to help by > typing a few lines than to dog them in several lines. So next time don't > say anything pud! > [View Quote] [View Quote] > Why not supply helpful information? I've learned it's easier to help by > typing a few lines than to dog them in several lines. So next time don't > say anything pud! > [View Quote] [View Quote] > Why not supply helpful information? I've learned it's easier to help by > typing a few lines than to dog them in several lines. So next time don't > say anything pud! > [View Quote] [View Quote] > Why not supply helpful information? I've learned it's easier to help by > typing a few lines than to dog them in several lines. So next time don't > say anything pud! > [View Quote] [View Quote] > Why not supply helpful information? I've learned it's easier to help by > typing a few lines than to dog them in several lines. So next time don't > say anything pud! > [View Quote] [View Quote] > Why not supply helpful information? I've learned it's easier to help by > typing a few lines than to dog them in several lines. So next time don't > say anything pud! kahAug 20, 2001, 8:12pm
all about aw_query, zones, sectors, cells, anything about property is in the
property section of the SDK website :-)) a cell is 1 coord x 1 coord (1 coord = 10m), and all coords are given in cm (you simply multiply the values by 1000 to get the AW coord) KAH PS. also, you might want to check out the Xelagot (http://www.imatowns.com/xelagot/), it's a rather powerfull bot, use it a bit and you'll understand much of how bots work in general, and you'll find it easier to program it. [View Quote] trekkerxAug 21, 2001, 1:04am
To bad you 'dog' everyone.
[View Quote] > Why not supply helpful information? I've learned it's easier to help by > typing a few lines than to dog them in several lines. So next time don't > say anything pud! > [View Quote] trekkerxAug 21, 2001, 1:06am
Hey icdee, take the time to sit down one day, and read the SDK, propterys and
how it all works. Im shure it will help very much. [View Quote] > all about aw_query, zones, sectors, cells, anything about property is in the > property section of the SDK website :-)) a cell is 1 coord x 1 coord (1 > coord = 10m), and all coords are given in cm (you simply multiply the values > by 1000 to get the AW coord) > > KAH > PS. also, you might want to check out the Xelagot > (http://www.imatowns.com/xelagot/), it's a rather powerfull bot, use it a > bit and you'll understand much of how bots work in general, and you'll find > it easier to program it. > [View Quote] lanezeriAug 21, 2001, 9:06am
Hey TrekkerX, take the time to learn how to reply to the right person, it
would help me not have to flame your ass all the damn time. [View Quote] grimbleAug 21, 2001, 2:30pm
How about you two stop turning every thread into a personal bitching match
between you? Its getting really tiresome now. [View Quote] lanezeriAug 21, 2001, 5:52pm
All you people bitch at me for not helping the people when they post, I do,
then tell someone else to do it, like you people did to me, and I get bitched at yet again. [View Quote] dkellOct 17, 2001, 3:38pm
Hi,
I'm wondering how you implement event handlers in Visual C++ for the AW SDK. I know hold to do it with standard C since you can just call aw_event_set(event, 'function name'). But in C++ I get the error message : error C2664: 'aw_event_set' : cannot convert parameter 2 from 'void (void)' to 'void (__cdecl *)(void)' I just don't really know where to put the handling function (eg in the same class with public privledges, can i put it in and different class?) and how to refer to it. I'd really appreacite some help, thankyou, damian dkellOct 17, 2001, 3:38pm
Hi,
I'm wondering how you implement event handlers in Visual C++ for the AW SDK. I know hold to do it with standard C since you can just call aw_event_set(event, 'function name'). But in C++ I get the error message : error C2664: 'aw_event_set' : cannot convert parameter 2 from 'void (void)' to 'void (__cdecl *)(void)' I just don't really know where to put the handling function (eg in the same class with public privledges, can i put it in and different class?) and how to refer to it. I'd really appreacite some help, thankyou, damian foxmccloudOct 17, 2001, 4:05pm
As far as i know, you can't pass as an argument to a function, a method that comes from a class. it has to be a straight C-style
function that's not embedded in a class. if you have to have it in a class, you could use the function just as a wrapper to your class method if the class is global, like in void event_avatar_add() { Avatars.Add(); } "dkell" <naimadk at hotmail.com> a écrit dans le message news: 3bcdc206$1 at server1.Activeworlds.com... > Hi, > > I'm wondering how you implement event handlers in Visual C++ for the AW SDK. > > I know hold to do it with standard C since you can just call > aw_event_set(event, 'function name'). But in C++ I get > the error message : > > error C2664: 'aw_event_set' : cannot convert parameter 2 from 'void (void)' > to 'void (__cdecl *)(void)' > > I just don't really know where to put the handling function (eg in the same > class with public privledges, can i put it in and different class?) and how > to refer to it. > > I'd really appreacite some help, > thankyou, > damian trekkerxOct 18, 2001, 12:57am
Yeah, what you have to do is declar a public void function. It cannot be in a class otherwise it gives you error C2664.
Declar in the stdafx.h, or any other h file without being in a class, this... void Handle_Av_Enter (void) and in another cpp file put void Handle_Ac_Enter (void) { //message handlers go hear } [View Quote] > As far as i know, you can't pass as an argument to a function, a method that comes from a class. it has to be a straight C-style > function that's not embedded in a class. > if you have to have it in a class, you could use the function just as a wrapper to your class method if the class is global, like in > > void event_avatar_add() > { > Avatars.Add(); > } > > "dkell" <naimadk at hotmail.com> a écrit dans le message news: 3bcdc206$1 at server1.Activeworlds.com... -- TrekkerX - CEO Commatron http://www.commatron.com trekkerxOct 18, 2001, 12:58am
[View Quote]
> Yeah, what you have to do is declar a public void function. It cannot be in a class otherwise it gives you error C2664.
> > Declar in the stdafx.h, or any other h file without being in a class, this... > > void Handle_Av_Enter (void) > > and in another cpp file put The Ac should be Av, my bad > > > void Handle_Ac_Enter (void) > { > //message handlers go hear > } > [View Quote] -- TrekkerX - CEO Commatron http://www.commatron.com |