swe // User Search

swe // User Search

1  2  3  4  5  6  ...  66  |  

encryption

Apr 4, 2002, 9:27pm
soory, just that i dont like people repling things like that back to me..no
offence intended
[View Quote]

encryption

Apr 5, 2002, 4:00pm
lol, thing is i forgot bout the fact that there is those lines that explain
the code in PSC :) u know those lines begining with / . well thanx anyway,
to everyone.

P.S sorry for being rude to u binary... just that i get pissed off easily
[View Quote]

project (best I could do heh)

Apr 6, 2002, 6:35pm
heh i'll help if in whatever way i can :)

[View Quote]

yab (yet another bot)

Oct 13, 2002, 7:43am
dont reply to replyies replying to 5 month old threads...im bored lol.

[View Quote]

Needed: C/C++ Programmers!

Oct 31, 2002, 10:27am
and you, wasting even more by complaining, about the personson complaining,
about the person complaining about the html post. :)

AW deserve to get there bandwidth wasted! :)

[View Quote]

VB SDK

Nov 30, 2002, 1:30pm
www.grimmsoft.com?
[View Quote]

Grimmsoft AW SDK OCX 3.4

Apr 28, 2003, 8:21am
2! i've gone from pretending to try to learn vb, to pretending to try to
learn c++! :) *taps on brand new never before used cup restttt i mean c++
book* :)

-SWE

[View Quote]

3.4 VB sdk

Apr 16, 2003, 11:17am
when did u say it the first time? lol

[View Quote]

hellppp! n00b! :)

Jul 13, 2003, 8:26pm
Sorry about the crossposting, but really need help, not sure where to put it
:) so put it in both bots and sdk! :)
____________________________________________

hey, im having this problem with c++, problem is hard to explain, but it
only takes the citnum, nothing else, heres the source code and the output:

[Source code]
#include "aw.h"
#include <iostream>

int awLogin();

int main()
{


int CitNum,NS,EW,Alt,AvNum;
char PPW[26],BotName[26],World[20];
std::cout <<"Please enter citizen number:";
std::cin >> CitNum;
//std::cout <<CitNum;

std::cout <<"Please enter your privillige password:";
std::cin.get (PPW,25);
//std::cout << "\n";

std::cout<<"Please enter your bots name:";
std::cin.get(BotName,25);
std::cout << "\n";

std::cout<<"Please enter world:";
std::cin.get (World, 19);
//std::cout << "\n";

std::cout<<"Please enter N/S coordinates:";
std::cin >>NS;
//std::cout << "\n";

std::cout<<"Please enter E/W coordinates:";
std::cin >>EW;
//std::cout << "\n";

std::cout<<"Please enter altitude:";
std::cin >>Alt;
//std::cout << "\n";

std::cout<<"Please enter avatar number:";
std::cin >>AvNum;
//std::cout << "\n";




return 0;
}

int awLogin()
{
int rc;

// if (rc = aw_init(AW_BUILD)){
// std::cout <<"\nUnable to initilize API (reason:";
// }
std::cout<<"test\n";
return 0;
}


_____________________________________________
[OUTPUT]

Please enter citizen number:444
Please enter your privillige password:Please enter your bots name:
Please enter world:Please enter N/S coordinates:Please enter E/W
coordinates:Please enter altitude:Please enter avatar number:Press any key
to continue

_______________________________________________
anyone know what the problem is? :)

-SWE

hellppp! n00b! :)

Jul 14, 2003, 11:50am
didnt work either, get the same problem, skips all the inputs. :)

-SWE

[View Quote]

Avatar location

Jul 31, 2003, 11:25am
hey, i need a little help with getting an avatars location. i want to know
if there is anyway of finding an avatars location, without the need of
keeping a database which updates every time an avatar moves?

thanx :)
-SWE

Avatar location

Jul 31, 2003, 5:45pm
btw, anyone know how to get a newline in aw with the aw_whisper thing? :)
dont wanna make the poor bot keep on whispering to the same person, waste of
bandwidth and cpu and all :)

-SWE

[View Quote]

object changing help

Sep 11, 2003, 9:33pm
hey, i need help with changing the action of an object when i already have
the object number. heres the code i have:

aw_int_set (AW_OBJECT_OLD_NUMBER, screenNumber);
aw_string_set(AW_OBJECT_ACTION,newDes);
aw_object_change();

so, can anyone help me? :) i keep on getting an error 204:
RC_CANT_FIND_OLD_ELEMENT, so not sure what im doing wrong, since im pretty
sure the object number is right, i get it when the user clicks the screen.
:)

-SWE

object changing help

Sep 12, 2003, 1:04pm
i actually already done that, but it still wouldnt find it odly enough.
thanx for the help though! :)

-SWE

[View Quote]

object changing help

Sep 12, 2003, 10:13pm
i get the info when the user clicks the object, so im pretty sure its
correct.

-SWE

[View Quote]

object changing help

Sep 12, 2003, 11:18pm
alright, well heres my complete code! i guess it code also be helpful to
people if they are tring to make like a projector bot or something :), or
just a win 32 console which gets info from a txt file, well, heres the code!
p.s: its not commented, and is very very messy! ^_^: oh, to get it to work,
you will need 2 text files, one called cit.txt and the other called
pictures.txt, check the code to see the infomation needed, quite obvious i
think. but i'll put a sample txt file here anyway.

====================[code]============================

//SWE's projector bot!


#include <iostream>
#include <fstream.h>
#include "aw.h"

void citLogin();
void getUrl();

void chatHandle();
void objectClick();
char Speaker[100];
char urls[256][256];
char uniUrl[256];
int uniPort;

int screenNumber,screenX,screenZ;
int frameNum = 0;

int main(){

citLogin();
std::cout<<"\nBack in main from citLogin\n";
getUrl();
std::cout<<"\nback in main from getUrl\n";




while (!aw_wait (-1))
;


return 0;
}

void citLogin(){

int citnum,NS,EW,Alt,Av,i,rc;
char password[256],world[256],botName[256];
fstream file;
file.open("cit.txt",ios::in);
if (file.is_open()){
std::cout<<"opened";
}

else{
std::cout<<"failed";
}


file >> citnum >> password >> botName >> world >> NS >> EW >> Alt >> Av >>
Speaker >> uniUrl >> uniPort;

if (rc=aw_init(AW_BUILD)){
std::cout << "unable to login, reason :" <<rc;
}
aw_event_set(AW_EVENT_CHAT,chatHandle);

aw_event_set(AW_EVENT_OBJECT_CLICK,objectClick);

std::cout<<"\ncreated\n";

if (rc=aw_create(uniUrl,uniPort,0)){
std::cout << "unable to login, reason :" <<rc;
}

std::cout<<"\nloging in uni\n";

aw_int_set (AW_LOGIN_OWNER, citnum);
aw_string_set (AW_LOGIN_PRIVILEGE_PASSWORD, password);
aw_string_set (AW_LOGIN_APPLICATION, "SWE's projector bot");
aw_string_set (AW_LOGIN_NAME, botName);

if (rc = aw_login ()) {
printf ("Unable to login (reason %d)\n", rc);
exit (1);
}
std::cout<<"logged in";

if (rc = aw_enter (world)) {
printf ("Unable to enter world (reason %d)\n", rc);
exit (1);
}
std::cout<<"\nentered world\n";

/* announce our position in the world */
aw_int_set (AW_MY_X, EW*1000); /* 1W */
aw_int_set (AW_MY_Z, NS*1000); /* 1N */
aw_int_set (AW_MY_YAW, 0); /* face towards GZ */
if (rc = aw_state_change ()) {
printf ("Unable to change state (reason %d)\n", rc);
exit (1);
}
std::cout<<"\nmoved to position\n";
file.close;
/* main event loop */
}

void chatHandle(){
//std::cout <<"\nchat handle\n";
char newAction[256];
char outMessage[256];
int rc;
if(stricmp(aw_string(AW_CHAT_MESSAGE),"next")==0){
//std::cout <<"message is next";
if(stricmp(aw_string(AW_AVATAR_NAME),Speaker)==0){
//std::cout <<"the right speaker"<<"\n";
frameNum++;
sprintf(newAction,"create picture %s",urls[frameNum]);
std::cout<<newAction<<"\n";
sprintf(outMessage,"changing


aw_int_set (AW_OBJECT_OLD_NUMBER, screenNumber);
aw_int_set (AW_OBJECT_OLD_X, screenX);
aw_int_set (AW_OBJECT_OLD_Z, screenZ);
aw_string_set (AW_OBJECT_ACTION, newAction);
if (rc = aw_object_change ())
printf ("Unable to change screen (reason %d)\n", rc);
else {
printf ("screen changed.\n");
screenNumber = aw_int (AW_OBJECT_NUMBER);
}

}
}

}

void objectClick(){
std::cout<<"\nobject clicked\n";
if(stricmp(aw_string(AW_AVATAR_NAME),Speaker)==0){
std::cout<<"object clicked by speaker\n";
if(stricmp(aw_string(AW_OBJECT_DESCRIPTION),"screen")==0){
/*
int
screenNumber,screenX,screenY,screenZ,screenYaw,screenTilt,screenRoll,screenO
wner;
char screenObject[100];*/
screenNumber = aw_int(AW_OBJECT_NUMBER);
screenX = aw_int(AW_OBJECT_Z);
screenZ = aw_int(AW_OBJECT_Z);
std::cout<<"description is screen. object number taken : "<<screenNumber;
aw_say("New projection screen selected!\n");
screenNumber = aw_int(AW_OBJECT_NUMBER);
}
}
}
void getUrl(){

fstream url;
int count,i;
i = 1;

url.open("pictures.txt",ios::in);


url >> count;

while (count >= i){
url >> urls[i];
i++;
}
url.close();
}

/*=====================[cit.txt]===============================
141 password BotName eu-bots 1 1 1 0 SWE auth.activeworlds.com 5702



=====================[pictures.txt]============================
2 www.kkw.com/hhe01.jpg www.kkw.com/hhe02.jpg




thanx for all the help! and your welcome for anyone who this may in someway
help!
-SWE

object changing help

Sep 12, 2003, 11:28pm
found the problem! in the object click, i put the X coords as the Z coords.
thanx everyone! ^_^

-SWE

[View Quote]

projector bot

Sep 13, 2003, 12:00am
aight, well heres some code for a projecter bot i made for aw-europe. ya'll
might it find helpful. isnt commented and is quite messy but hey, better
then nothing! oh, this isnt the same code i posted before! alittle better :)
fixed a few things, and added a back option! to get it to work you will need
2 text files, samples are shown below, under the code! :)

================[Code]========================

//SWE's projector bot!


#include <iostream>
#include <fstream.h>
#include "aw.h"

void citLogin();
void getUrl();

void chatHandle();
void objectClick();
char Speaker[100];
char urls[256][256];
char uniUrl[256];
int uniPort,count;

int screenNumber,screenX,screenZ;
int frameNum = 0;

int main(){

citLogin();
std::cout<<"\nBack in main from citLogin\n";
getUrl();
std::cout<<"\nback in main from getUrl\n";




while (!aw_wait (-1))
;


return 0;
}

void citLogin(){

int citnum,NS,EW,Alt,Av,i,rc;
char password[256],world[256],botName[256];
fstream file;
file.open("cit.txt",ios::in);
if (file.is_open()){
std::cout<<"opened";
}

else{
std::cout<<"failed";
}


file >> citnum >> password >> botName >> world >> NS >> EW >> Alt >> Av >>
Speaker >> uniUrl >> uniPort;

if (rc=aw_init(AW_BUILD)){
std::cout << "unable to login, reason :" <<rc;
}
aw_event_set(AW_EVENT_CHAT,chatHandle);

aw_event_set(AW_EVENT_OBJECT_CLICK,objectClick);

std::cout<<"\ncreated\n";

if (rc=aw_create(uniUrl,uniPort,0)){
std::cout << "unable to login, reason :" <<rc;
}

std::cout<<"\nloging in uni\n";

aw_int_set (AW_LOGIN_OWNER, citnum);
aw_string_set (AW_LOGIN_PRIVILEGE_PASSWORD, password);
aw_string_set (AW_LOGIN_APPLICATION, "SWE's projector bot");
aw_string_set (AW_LOGIN_NAME, botName);

if (rc = aw_login ()) {
printf ("Unable to login (reason %d)\n", rc);
exit (1);
}
std::cout<<"logged in";

if (rc = aw_enter (world)) {
printf ("Unable to enter world (reason %d)\n", rc);
exit (1);
}
std::cout<<"\nentered world\n";

/* announce our position in the world */
aw_int_set (AW_MY_X, EW*1000); /* 1W */
aw_int_set (AW_MY_Z, NS*1000); /* 1N */
aw_int_set (AW_MY_YAW, 0); /* face towards GZ */
if (rc = aw_state_change ()) {
printf ("Unable to change state (reason %d)\n", rc);
exit (1);
}
std::cout<<"\nmoved to position\n";
file.close;
/* main event loop */
}

void chatHandle(){
//std::cout <<"\nchat handle\n";
char newAction[256];
char outMessage[256];
int rc;
if(stricmp(aw_string(AW_CHAT_MESSAGE),"next")==0){
//std::cout <<"message is next";
if(stricmp(aw_string(AW_AVATAR_NAME),Speaker)==0){
//std::cout <<"the right speaker"<<"\n";
frameNum++;
if(frameNum > count)
frameNum=1;
sprintf(newAction,"create picture %s",urls[frameNum]);
std::cout<<newAction<<"\n";
aw_int_set (AW_OBJECT_OLD_NUMBER, screenNumber);
aw_int_set (AW_OBJECT_OLD_X, screenX);
aw_int_set (AW_OBJECT_OLD_Z, screenZ);
aw_string_set (AW_OBJECT_ACTION, newAction);
if (rc = aw_object_change ())
printf ("Unable to change screen (reason %d)\n", rc);
else {
printf ("screen changed.\n");
screenNumber = aw_int (AW_OBJECT_NUMBER);
}

}
}
if (stricmp(aw_string(AW_CHAT_MESSAGE),"last")==0){
if(stricmp(aw_string(AW_AVATAR_NAME),Speaker)==0){
frameNum--;
if(frameNum <= 0)
frameNum=count;
sprintf(newAction,"create picture %s",urls[frameNum]);
std::cout<<newAction<<"\n";
aw_int_set (AW_OBJECT_OLD_NUMBER, screenNumber);
aw_int_set (AW_OBJECT_OLD_X, screenX);
aw_int_set (AW_OBJECT_OLD_Z, screenZ);
aw_string_set (AW_OBJECT_ACTION, newAction);
if (rc = aw_object_change ())
printf ("Unable to change screen (reason %d)\n", rc);
else {
printf ("screen changed.\n");
screenNumber = aw_int (AW_OBJECT_NUMBER);
}

}
}

}

void objectClick(){
std::cout<<"\nobject clicked\n";
if(stricmp(aw_string(AW_AVATAR_NAME),Speaker)==0){
std::cout<<"object clicked by speaker\n";
if(stricmp(aw_string(AW_OBJECT_DESCRIPTION),"screen")==0){
screenNumber = aw_int(AW_OBJECT_NUMBER);
screenX = aw_int(AW_OBJECT_X);
screenZ = aw_int(AW_OBJECT_Z);
std::cout<<"description is screen. object number taken : "<<screenNumber;
aw_say("New projection screen selected!\n");
screenNumber = aw_int(AW_OBJECT_NUMBER);
}
}
}
void getUrl(){

fstream url;
int i;
i = 1;

url.open("pictures.txt",ios::in);


url >> count;

while (count >= i){
url >> urls[i];
i++;
}
url.close();
}


/*=====================[cit.txt]===============================
141 password BotName eu-bots 1 1 1 0 SWE auth.activeworlds.com 5702



=====================[pictures.txt]============================
2 www.kkw.com/hhe01.jpg www.kkw.com/hhe02.jpg



in pictures.txt, the first number is the amount of pictures to show.

in cit.txt, heres how it works: [Citnum] [PPW] [Botname] [World] [NS coord]
[EW coord] [Altitude] [Speaker Citname] [Universe URL] [Universe port]

hope you find it useful.
-SWE

AW_EVENT_WORLD_INFO and hidden worlds

Oct 21, 2003, 12:14pm
lol, what diffrence does it make? the world would probably be private
anyway. worried about your CWLab being discovered? :)

-SWE

[View Quote]

AW_EVENT_WORLD_INFO and hidden worlds

Oct 21, 2003, 7:02pm
aw europe. :)

-SWE

[View Quote]

AW_EVENT_WORLD_INFO and hidden worlds

Oct 22, 2003, 12:56pm
but i didnt mean to spam www.aw-europe.com in the ngs, i will no longer even
mention AW europe, or the www.aw-europe.com url, ever! you wont ever hear me
say aw-europe!

-SWE :)

[View Quote]

AW_EVENT_WORLD_INFO and hidden worlds

Oct 24, 2003, 6:55am
i did not mention a single thing about aw-europe or the www.aw-europe.com
url! >_< i said i wouldnt mention aw-europe or aw-europe.com so i wont
mention aw-europe or www.aw-europe.com! :)

-SWE

[View Quote]

What language has more functions ?

Dec 7, 2003, 1:43pm
ya, and everything uses the c++ sdk, so impossible for there to be anything
the VB and java sdk can do, that the c++ one cant.

-SWE

[View Quote]

VB 6 Learning Ed

Jan 23, 2004, 9:54pm
i got it free with a £25 book.

-SWE

[View Quote]

Reason 29 ?¿?

Mar 1, 2004, 8:41pm
or RC_STOP_DA_DAMN_RCS

-SWE

[View Quote]

Newbie Bot Programming - can't "see" bot; get 439

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

sooo.... are we ever gonna get...

Jul 6, 2004, 8:01pm
what exactly is new in the 3.6 sdk? O_O

-SWE

[View Quote]

Standards on register price?

Jul 13, 2004, 9:13pm
comma isn't internationally used >_< only them strange europeans use it (by
strange, i mean the germans and french!) eveyrone else uses .s! :)

-SWE

[View Quote]

Standards on register price?

Jul 14, 2004, 12:20pm
well, i lived in england, then moved to libya, and they use commas in both
places! all arab countries use commas! :) plus, the chineese and indians
(actually, i'm not sure about the chineese and indians) so, that's more then
half the world, hahaahaha!

-SWE

[View Quote]

Standards on register price?

Jul 14, 2004, 2:00pm
wow O_O my post took a long time to get posted O_O
ok, didn't quite get the post, but doesn't matter, i'm always right! ^_^

-SWE

[View Quote]

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