trekkerx // User Search

trekkerx // User Search

1  2  3  4  5  6  ...  12  |  

First Bot, help please

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

First Bot, help please

Oct 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

First Bot, help please

Oct 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

AwWait in C++

Sep 30, 2001, 11:21pm
Dose anyone know a good way to call AwWait instead of using

while (!aw_wait (-1));

because when i do that it just loops and i cant change the windows.
--
TrekkerX - CEO
Commatron
http://www.commatron.com

Sample C++ Bot

Oct 2, 2001, 2:48am
Dose anyone have (Or made) a sample bot with the source code in C++, or
C?

--
TrekkerX - CEO
Commatron
http://www.commatron.com

Sample C++ Bot

Oct 3, 2001, 9:53pm
yea a real complex example. I have no clue what half the commands are in there.
I just want one that dose stuff like respond to people, and stuff, a little bit
more that whan the AW ones are. Im having problems with responding in my bot.

[View Quote] > but it's still an example..
>
> --
>
> Lanezeri
> Lead Bot Programmer at Stuff-X
> http://aw.stuff-x.com
>
[View Quote] --
TrekkerX - CEO
Commatron Inc
http://www.commatron.com

Sample C++ Bot

Oct 4, 2001, 2:31am
Mostly getting the bot to respond to a person. There are some minor other problems to.

[View Quote] > What sorts of problems?
>
> -Agent1
>
[View Quote] --
TrekkerX - CEO
Commatron Inc
http://www.commatron.com

WHAT THE HECK IS WRONG WITH THIS

Oct 3, 2001, 12:59am
Ive been messing with this for ever and it wont work. I cant get my bot
to respond to anything.
This is what I have...

void handle_avatar_chat (void)
{
char* chatmsg;
char reply[256];
char* temp;
int speakerSN;

chatmsg = aw_string (AW_CHAT_MESSAGE);/
speakerSN = aw_int (AW_CHAT_SESSION);

temp = _T("hi");

if (chatmsg == temp) {
sprintf (reply,"Hello %s", speakerSN);
aw_say (reply);
}
}

--
TrekkerX - CEO
Commatron
http://www.commatron.com

WHAT THE HECK IS WRONG WITH THIS

Oct 4, 2001, 9:28pm
yes now I know why it didnt work, thanks phalpha.

[View Quote] > well I did forget that one %s thing :) Anyways, _T is for Unicode compatibility, if you plan on
> using it on your computer, no need for it (if you use Windows 9x that is), and all chat messages
> and replys should be initialized to 256 bytes (or 255?)...
>
[View Quote] --
TrekkerX - CEO
Commatron
http://www.commatron.com

WHAT THE HECK IS WRONG WITH THIS

Oct 4, 2001, 9:46pm
It works now, but If I use sprintf(temp, "hello %s", aw_string (AW_LOGIN_NAME). It just frezes and
preforms an illegal operation.
Ive tryed using the Debug, but it gives me an error in the sprintf.c file.

[View Quote] > well I did forget that one %s thing :) Anyways, _T is for Unicode compatibility, if you plan on
> using it on your computer, no need for it (if you use Windows 9x that is), and all chat messages
> and replys should be initialized to 256 bytes (or 255?)...
>
[View Quote] --
TrekkerX - CEO
Commatron
http://www.commatron.com

WHAT THE HECK IS WRONG WITH THIS

Oct 5, 2001, 3:13am
i was using the AW_LOGIN_NAME so when you said 'hello (botname)' and such, but the sprintf just
wont add it to the temp character. It gives me a
write_char(int 104, _iobuf * 0x0064f654, int * 0x0064f3f8) line 1083 + 32 bytes
error in line 1083 in the output.c
i have no clue what it means, it just dose that.

[View Quote] > try:
>
> sprintf(temp, "hello %s", aw_string(AW_AVATAR_NAME)); // AW_AVATAR_NAME is defined during this
> event as the person who speaks...
>
[View Quote] --
TrekkerX - CEO
Commatron
http://www.commatron.com

WHAT THE HECK IS WRONG WITH THIS

Oct 6, 2001, 7:54pm
ahhh, now it works. Thanks

[View Quote] > hm, maybe a little more explanation
>
> char *temp;
>
> This does not give you a buffer where you can store characters,
> so it is just an uninitialized pointer that points to some
> place in memory, it might be yours, it might belong to a different
> program or it might even be program code that you destroy when
> you copy (or sprintf) stuff there
>
> char temp[40];
>
> This can be used to actually store a string with up to 39
> characters (plus 0x00 character at the end). Such an array
> always consists of storage that you may use and (implicite)
> a pointer too, so it can be used like a pointer but this
> pointer is already initialized when it is created.
>
> --
> "_
> |
> /\
> \ /
> __/ /_

--
TrekkerX - CEO
Commatron
http://www.commatron.com

Programing Eroor c++

Oct 3, 2001, 11:17am
I think it meand that your disk is full, or that the files you compiling over
are read only.

[View Quote] [View Quote] --
TrekkerX - CEO
Commatron Inc
http://www.commatron.com

Error Codes

Nov 11, 2001, 6:31pm
Heres a little command I made for my C++ bots. It returns the error, and
stuff. I give it out so it can save some people some typing. Im gonna go
eat some lunch now... (not that you people care) Have fun with it.


//######################################################

char* ErrCode(int rcErr)
{

switch (rcErr)
{
case 0:
return "Success";
break;

case 1:
return "Citizenship Expired";
break;

case 3:
return "No Such Citizen";
break;

case 4:
return "Message length is bad";
break;

case 5:
return "Access denied";
break;

case 6:
return "The handle is invalid";
break;

case 7:
return "Password to short";
break;

case 8:
return "Lisens to long";
break;

case 9:
return "Lisens to small";
break;

case 13:
return "Invalid password";
break;

case 17:
return "Server out of Memory";
break;

case 27:
return "World not running";
break;

case 31:
return "Not logged in";
break;

case 32:
return "Unauthorized";
break;

case 42:
return "No such acting Citizen";
break;

case 43:
return "Invalid privlage password";
break;

case 58:
return "Software is out of date";
break;

case 59:
return "Bot limit Exceeded";
break;

case 66:
return "No such ejection";
break;

case 67:
return "No such session";
break;

case 77:
return "Citizenship disabled";
break;

case 107:
return "Name aready in use";
break;

case 108:
return "Name contains invalid characters";
break;

case 109:
return "Too many spaces";
break;

case 111:
return "Name ends with space";
break;

case 112:
return "Name too long";
break;

case 113:
return "Name to short";
break;

case 114:
return "Name unused";
break;

case 115:
return "Password too long";
break;

case 116:
return "Password too short";
break;

case 117:
return "Password incorrect";
break;

case 128:
return "Privlage password too long";
break;

case 204:
return "Could not find old element";
break;

case 211:
return "Cannot change owner";
break;

case 216:
return "Cannot build here";
break;

case 232:
return "Not allowed";
break;

case 300:
return "Encroachment";
break;

case 301:
return "No Such object";
break;

case 302:
return "Not Delete owner";
break;

case 303:
return "To many bytes";
break;

case 306:
return "Unregisterd object";
break;

case 308:
return "Element already exist";
break;

case 310:
return "No building rights";
break;

case 311:
return "Out of bounds";
break;

case 313:
return "Restricted object";
break;

case 314:
return "Restricted area";
break;

case 400:
return "Out of memory";
break;

case 401:
return "Not Yet";
break;

case 402:
return "Communications timed out";
break;

case 403:
return "Null pointer";
break;

case 404:
return "Unable to contact universe server";
break;

case 405:
return "Unable to contact world server";
break;

case 406:
return "Invalid world name";
break;

case 415:
return "Send failed";
break;

case 416:
return "Recived failed";
break;

case 421:
return "Stream empty";
break;

case 422:
return "Stream message too long";
break;

case 423:
return "World name too long";
break;

case 426:
return "Message too long";
break;

case 429:
return "Unable to connect";
break;

case 439:
return "No internet connection";
break;

case 442:
return "Unable to initialize network";
break;

case 443:
return "Incorrect message length";
break;

case 444:
return "Not initialized";
break;

case 445:
return "No instance";
break;

case 446:
return "Out buffer full";
break;

case 447:
return "Invalid calback";
break;

case 448:
return "Invalid attribute";
break;

case 449:
return "Type mismatch";
break;

case 450:
return "String too long";
break;

case 451:
return "Read only";
break;

case 453:
return "Invalid instance";
break;

case 454:
return "Version mismatch";
break;

case 461:
return "Buffer full";
break;

case 463:
return "Protocall error";
break;

case 464:
return "Query in progress";
break;

case 466:
return "Ejected";
break;

case 467:
return "Not welcome";
break;

case 471:
return "Connection lost";
break;

case 474:
return "Not available";
break;

case 11001:
return "No internet connection";
break;

}
return "Unknown Error";
}

//######################################################

--
TrekkerX - CEO
Commatron
http://www.commatron.com

Movin in the SDK

Nov 17, 2001, 6:19pm
Uhh I dont know if this is just me but in the C++ SDK, when I change
postions within a 20x20 area the bot dosent go straight to the postion
its told to. Instead it goes kinda in a messed up lne and may backtrack
or turn elseware sometimes and back into the postion. I don't know if
its just me but dose anyone elses bot do that?

--
TrekkerX - CEO
Commatron
http://www.commatron.com
http://www.athnex.com (when its up)

What would you like to see?

Nov 23, 2001, 10:07pm
Umm... Heres something pratical. Make a bot that enters... greets... and responds to people when they talk. And says something when they leave. Its something good for the beginners... because I had touble with the respond and making new void commands and
stuff when I first started working with the SDK

[View Quote] > Take a look in the attached Zip file :) Hope it helps.
>
[View Quote] --
TrekkerX - CEO
Commatron
http://www.commatron.com
http://www.athnex.com (when its up)

Animal Bot

Nov 25, 2001, 12:06am
Okay, I made a animal bot thats kinda screwy, but it works. Read the
readMe.txt (It explains some stuff) If anyone wants the source e-mail
me. (Its probly not a good idea to use it as a learning tool lol, but oh
well)

I hope it works for yall

--
TrekkerX - CEO
Commatron
http://www.commatron.com
http://www.athnex.com (when its up)

Animal Bot

Nov 25, 2001, 10:08pm
thats what i frogot... lol, www.geocities.com/athnex318/anibot.zip

[View Quote] > I assume it's either on commatron.com or athnex.com, just too bad the DNS
> entry of commatron.com pointed to an unexisting IP and that athnex.com
> displayed a DNS2Go status page... maybe you should upload it to a dedicated
> server?
>
> KAH
>
[View Quote] --
TrekkerX - CEO
Commatron
http://www.commatron.com
http://www.athnex.com (when its up)

vb menus

Dec 9, 2001, 3:36am
It makes it look cooler though!

--


- - - - - - - - - - - - - -
TrekkerX
Commatron & Athnex
http://www.commatron.com
http://www.athnex.com
[View Quote]

dlephi..no sorry

Dec 17, 2001, 1:00am
Talking like he did in chat is okay, but in a letter or e-mail you should
probly spend a bit more time spelling out the words and not use typos :)
(Happy faces are okay though)

--
TrekkerX
Commatron & Athnex
http://www.commatron.com
http://www.athnex.com
[View Quote]

Visual Basic SDK question

Jan 12, 2002, 5:07am
sdk.awcreate( "www.url_for_uniserver", 5670)
^HOST DNS NAME OR IP^ ^ PORT

--
TrekkerX
Commatron & Athnex
http://www.commatron.com
http://www.athnex.com
[View Quote]

Help getting started

Jan 12, 2002, 5:01am
I personaly favor MS VC++, mainly because of its supirorty in the Windows
compilers. and the MFC Wizard, It has a bunch of little things that make it
easer to program without having to tediously type in commands that can be
put there by themselfs.

--
TrekkerX
Commatron & Athnex
http://www.commatron.com
http://www.athnex.com
[View Quote]

ocx and lib

Jan 29, 2002, 2:10am
Unless you compile the libary (lib) and the ocx right into your program your
gonna need it outside :)

--
TrekkerX
Commatron & Athnex
Anti AOL Activist, and some other stuff...
http://www.commatron.com
http://www.athnex.com
[View Quote]

Roadsweeper bot

Feb 13, 2002, 4:50am
Im shure you could re write some of the code for the sample DJ bot, since it
scans for an object then remakes it. Instead of modafying it, you could just
make shure its not touching the road, and that its a tree object and delete
it.

--
TrekkerX
Commatron & Athnex
Anti AOL Activist, and some other stuff...
http://www.commatron.com
http://www.athnex.com
[View Quote]

Hey Lanezeri...I got a bot for you to make....

Feb 28, 2001, 3:59am
Make it minimize into the tray to, lol, cuz thats cool

[View Quote] > Since your always complaining that you have nothing to do, make this bot for
> me. I need a world greeter-helper bot kinda thing, one that is fully
> customizable. I mean, make a bot that responds when it is whispered to, and
> whispers to the person who comes in about what topics it can help about, if
> that's not clear enough, telegram me, or email me at crazyglue3 at hotmail.com
> CrAzY gLuE IL
> --
> We all have atleast ONE crazything in us >:]
> ~Johnathon a.k.a CrAzY gLuE IL
> crazyglue3 at hotmail.com
> Idiots are plentiful these days, what would we do without them?
> Geniuses are rare, but what would it be like without them?
> That's is the question.

Paintball Bot..

Feb 28, 2001, 4:01am
Well, if u goto Survivor, and a at pball, i made a relly nice Xelagot Script, that
keeps score and tells if ur in gz or not. im working on making it better it will
kepp how many times u die and stuff, to, health much more. And guess what... It
cost money to get!!!, or u can.... give me money, lol

[View Quote] > I am making a paintball bot.. for all of you (Mostly JohnF) who wanted one..
> I am making it.. BUT.. I am not releasing it public..
> http://www.stuffx.com/aw/
> Will be selling it tho.. some worlds will have it as soon as it is done
> however, they wont have the release.. Builderz will replace the Xelagot used
> with this one.. (Cyborg, Cyberwar, & Oblivion)
>
> --
> - = [ T e c h n o ] = -
> http://wt.s5.com
> - = [ S t u f f - X ] = -
> http://www.stuffx.com/aw

Paintball Bot..

Feb 28, 2001, 4:05am
Brant isnt gonna relese his bot, he told me after begging for it. He
said hed give it to me for like 15 bucks, so i learnd xelagot and stuff,
made my own. Oh yea... The one in su4rvivor dose work cuz i made it. Go
check it out, no bugs have been found,
Survivor
a at pball

[View Quote] > Never said it was..
>
> --
> - = [ T e c h n o ] = -
> http://wt.s5.com
> - = [ S t u f f - X ] = -
> http://www.stuffx.com/aw

Visual C++

Mar 7, 2001, 11:26pm
Dose anyone know where i can get liek a Trial Version of C++, or one
that dose everything but not compile??? I have a Compiler, and its
script only, so i need Visual C++ to make programs and compile it in
that. I Tryed to get the one from Micro Soft, but the exe, says "Invalid
Win32 Exacutable" So i was wondering where else i can get it

Visual C++

Mar 9, 2001, 11:51pm
I would get MicroSofts, but i dont know where and i dont want to spend 400
bucks for it

[View Quote] > and Microsoft Works, too. (If you don't get that, oh well.)
>
> Anyway, In what way, in your opinion, is VC better than Borland?
>
> *watches flame war brew*
>
> -John Viper
>
[View Quote]

New Paintball bot

Mar 14, 2001, 3:52am
Hey, The Paintball Bots, in a at pball, and Survivor, now have the Shield
function, So... were ahead of all those other pball worlds,

a at pball
Survivor
TrekkerX

1  2  3  4  5  6  ...  12  |  
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