|
swe // User Search
swe // User Search
Apr 4, 2002, 9:27pm
soory, just that i dont like people repling things like that back to me..no
offence intended
[View Quote]"swe" <m_swehli at hotmail.com> wrote in message
news:3cacde44 at server1.Activeworlds.com...
> thats what im tring to do! thats why i need tutorials to explain
> everything!! Sheesh......
> "andras" <andras at andras.net> wrote in message
> news:3CACD886.DD8CE4CA at andras.net...
>
>
|
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]"binarybud" <lmauk at traverse.net> wrote in message
news:3cade113$1 at server1.Activeworlds.com...
> FYI the fastest way to learn is from others source code.... been doing
it for over 25 years..... NEVER read a book on
> programming ....EVER...... once you learn to READ others code you can
then create some of your own...:) Start with simple
> programs and learn how they work..... "hello world" :) load
them.....run them...see what they do...then change the source and see
> what happens when you run it again....:)
>
> Leo :)
>
>
>
>
> "swe" <m_swehli at hotmail.com> wrote in message
news:3cace149 at server1.Activeworlds.com...
me..no
>
>
|
Apr 6, 2002, 6:35pm
heh i'll help if in whatever way i can :)
[View Quote]"kah" <kah at kahnews.cjb.net> wrote in message
news:3caf208c at server1.Activeworlds.com...
> Hi, I'm thinking of starting a project relating to bots and bot
programming:
> in short, the Planet Source Code concept, for AW bots/utilities. If you
> don't know Planet Source Code, the concept is that users submit source
code
> to a source code library where other programmers can get the code freely.
> Many find it very usefull for learning, and I think it would be nice to do
> something similar for AW. What do you all think? and are some of you
> interested in helping out creating it? please reply to this post or emial
me
> [kah at kahnews.cjb.net] :-))
>
> KAH
> PS. please don't flame me for crossposting, this seems relevant to both
> groups ;-))
>
>
|
Oct 13, 2002, 7:43am
dont reply to replyies replying to 5 month old threads...im bored lol.
[View Quote]"binarybud" <leom at knorrinteractive.com> wrote in message
news:3da734a1$1 at server1.Activeworlds.com...
> Don't reply to people replying to 5 month old threads....Ignore them and
everyone is happy..:) after all this is all just DejaMoo
> "the feeling you've milked this cow before"
>
> hehehe
> Leo :)
>
>
> "kah" <kah at kahnews.cjb.net> wrote in message
news:Xns92A4C15242C05kahatkahnewsdotcjbdo at 64.94.241.201...
could
>
>
|
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]"johnny b" <jbitt2ATjuno.com> wrote in message
news:3dc11b0d$1 at server1.Activeworlds.com...
> wasting more bandwidth complaining about complaining about html ;O)
> hahahaha
>
> JB
> gimme back my bytes :O)
>
> "chiklit" <chiklit at funetwork.net> wrote in message
> news:3dc0a131$1 at server1.Activeworlds.com...
> god,
advantage
> of
C/C++
a
bot
>
>
|
Nov 30, 2002, 1:30pm
www.grimmsoft.com?
[View Quote]"strike rapier" <strike at rapiercom.freeserve.co.uk> wrote in message
news:3de8bf46 at server1.Activeworlds.com...
> Can someone please give me the URL to where they are keeping the VB SDK?
Seems to have dissapeared...
>
> - Mark
>
>
|
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]"bowen" <thisguyrules at 7k2.4mg.com.ANTISPAM> wrote in message
news:3e9c3f16 at server1.Activeworlds.com...
>
> "strike rapier" <strike at rapiercom.freeserve.co.uk> wrote in message
> news:3e9c3d4a at server1.Activeworlds.com...
>
> Yay, we converted one.
>
> --Bowen--
>
>
|
Apr 16, 2003, 11:17am
when did u say it the first time? lol
[View Quote]"equin0x" <equin0x at activeworlds.com> wrote in message
news:3e9d1a14 at server1.Activeworlds.com...
> I will say this again, and this time EVERYONE listen:
>
> IT WILL BE RELEASED A FEW DAYS AFTER 3.4 IS RELEASED.
>
> "scuz" <webmaster at awscape.com> wrote in message
> news:3e9cc8c9$1 at server1.Activeworlds.com...
> and
> would
>
>
|
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
Jul 14, 2003, 11:50am
didnt work either, get the same problem, skips all the inputs. :)
-SWE
[View Quote]"andras" <andras at andras.net> wrote in message
news:3f12180a$2 at server1.Activeworlds.com...
> swe wrote:
>
put it
> <snip>
>
> try the following syntax:
> std::cin.get(PPW,25) >> PPW;
>
>
> --
> Andras
> "It's MY computer" (tm Steve Gibson)
>
|
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
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]"swe" <swe at swe-e.com> wrote in message
news:3f2918c3 at server1.Activeworlds.com...
> 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
>
>
|
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
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]"andras" <andras at andras.net> wrote in message
news:3f617251 at server1.Activeworlds.com...
> swe wrote:
have
pretty
screen.
>
> You need to provide the address of the object too:
>
> Excerpt from the SDK help:
>
> "
> The object to be changed is uniquely identified by the attributes
AW_OBJECT_OLD_NUMBER, AW_OBJECT_OLD_X, and AW_OBJECT_OLD_Z. These values
are typically taken from the attributes AW_OBJECT_NUMBER, AW_OBJECT_X, and
AW_OBJECT_Z within the context of either the AW_EVENT_CELL_OBJECT or
AW_EVENT_OBJECT_ADD event.
>
> XAMPLE
>
> int rc;
>
> aw_int_set (AW_OBJECT_OLD_NUMBER, 1278643762);
> aw_int_set (AW_OBJECT_OLD_X, 0);
> aw_int_set (AW_OBJECT_OLD_Z, 0);
> aw_int_set (AW_OBJECT_X, -200);
> aw_int_set (AW_OBJECT_Y, 0);
> aw_int_set (AW_OBJECT_Z, 0);
> aw_int_set (AW_OBJECT_YAW, 0);
> aw_int_set (AW_OBJECT_TILT, 0);
> aw_int_set (AW_OBJECT_ROLL, 0);
> aw_int_set (AW_OBJECT_OWNER, my_number);
> aw_string_set (AW_OBJECT_MODEL, "street1.rwx");
> aw_string_set (AW_OBJECT_DESCRIPTION, "Cornerstone");
> aw_string_set (AW_OBJECT_ACTION, "create sound xyz.mid");
> if (rc = aw_object_change ())
> printf ("Unable to change object (reason %d)\n", rc);
> else
> puts ("Object changed");
>
>
> "
>
>
>
> --
> Andras
> "It's MY computer" (tm Steve Gibson)
>
|
Sep 12, 2003, 10:13pm
i get the info when the user clicks the object, so im pretty sure its
correct.
-SWE
[View Quote]"strike rapier" <strike at Rapiercom.freeserve.co.uk> wrote in message
news:3f620369 at server1.Activeworlds.com...
> Are you basing it off a query? Only ever deal with 'live' data, thats data
> that you know exists....
>
> While the code Andras posted its correct, you have to be absolutly sure
that
> you have the live data for the objects X and Z coordinate, as well as its
> number... then use this...
>
> aw_int_set(AW_OBJECT_OLD_NUMBER, lngObjectNumber);
> aw_int_set(AW_OBJECT_OLD_X, lngObjectX);
> aw_int_set(AW_OBJECT_OLD_Z, lngObjectZ);
>
> That will fully reference what you are after... coordinate X and Z are
> needed for the database to find the object in a relitivly quick time...
can
> you imagine trying to query 10,000,000 database records every single time
> you change an object? There is always a user-based local store but thats
> getting too much to elaborate on here.
>
> - Mark
>
> "swe" <swe at swe-e.com> wrote in message
> news:3f61e072$1 at server1.Activeworlds.com...
>
>
|
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
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]"swe" <swe at swe-e.com> wrote in message
news:3f627055 at server1.Activeworlds.com...
> 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
>
>
|
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
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]"codewarrior" <pete at accelr8r.com> wrote in message
news:3f94d1b2 at server1.Activeworlds.com...
> The AW_EVENT_WORLD_INFO event in the current release
> build of the SDK seems to report when hidden worlds are stopped,
> thus providing a mechanism for anyone who can log a bot into a given
> universe to discover the names of any hidden worlds they may have.
>
> This will happen even if the bot is not logged in under the PPW of
> the hidden worlds owner, and even if the bot is just logged into the
> universe and not into any world at all.
>
> So the hidden worlds aren't really hidden that well.
>
> Of course I wish this were fixed.
>
>
|
Oct 21, 2003, 7:02pm
aw europe. :)
-SWE
[View Quote]"codewarrior" <pete at accelr8r.com> wrote in message
news:3f95469f at server1.Activeworlds.com...
> Nope.. just reporting a bug.
>
> CWLab.. look for it... somewhere. It's not in Spiral Matrix.
>
> "swe" <swe at swe-e.com> wrote in message
> news:3f953f36 at server1.Activeworlds.com...
>
>
|
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]"codewarrior" <pete at accelr8r.com> wrote in message
news:3f95a174$1 at server1.Activeworlds.com...
> Oh geez.. you spammed the NG's with advertising!!
>
> :-)
>
> "swe" <swe at swe-e.com> wrote in message
> news:3f959efa at server1.Activeworlds.com...
>
>
|
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]"john" <johnf at 3d-reality.com> wrote in message
news:3f97e6f2 at server1.Activeworlds.com...
> You mentioned it twice after you said you wouldnt.
>
> ~John
>
> :P
>
> "swe" <swe at swe-e.com> wrote in message
> news:3f969aa0 at server1.Activeworlds.com...
> even
hear
> me
>
>
|
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]"strike rapier" <strike at Rapiercom.freeserve.co.uk> wrote in message
news:3fd33b07 at server1.Activeworlds.com...
> Erm... they all have the same...
>
> I suppose VB has things like Long2IP and such... but then again C++ has
the
> proper stuff.
>
> - MR
>
> "insane axel" <axel364 at noos.fr> wrote in message
> news:3fd3393c at server1.Activeworlds.com...
functions
>
>
|
Jan 23, 2004, 9:54pm
i got it free with a £25 book.
-SWE
[View Quote]"johnf" <johnf at 3d-reality.com> wrote in message
news:401042e1 at server1.Activeworlds.com...
> Yeah well I paid £95 for it
>
> ~John
>
> "bowen" <newoB at sardna.ten> wrote in message
> news:40103816$2 at server1.Activeworlds.com...
>
http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=3656539973&ssPageName=A
>
>
|
Mar 1, 2004, 8:41pm
or RC_STOP_DA_DAMN_RCS
-SWE
[View Quote]"bowen" <newoB at sardna.ten> wrote in message
news:40439bc6$2 at server1.Activeworlds.com...
> strike rapier wrote:
>
> or RC_CRASHED_AND_BURNED
|
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]"roomie" <lisastump at netscape.net> wrote in message
news:40683c71$1 at server1.Activeworlds.com...
> 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
>
>
> roomie wrote:
>
|
Jul 6, 2004, 8:01pm
what exactly is new in the 3.6 sdk? O_O
-SWE
[View Quote]"strike rapier" <strike at rapiercom.freeserve.co.uk> wrote in message
news:40eaf6ed at server1.Activeworlds.com...
> I, personally, am going to flip if the programmers don't get the C++ and
VB
> 3.6 SDK's released pronto... I know theyre busy buy cmon guys this is
beyond
> a joke. Your not the only people who have programming interests in Active
> Worlds, think about it, theres more of us than there are of you so it
makes
> sense that applications will be developed far more rapidly than the
browser,
> but to do that and give AW some cutting edge bots to use we need the
latest
> SDK so when you do catch up to the SDK coders ideas with the browsers were
> ready.
>
> - MR
>
>
> "xelag" <xelag at digitalspace.com> wrote in message
> news:hs3he05tv4uvlshq6go5s4vdoobh0fss9h at 4ax.com...
> new
>
>
|
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]"xelag" <xelag at digitalspace.com> wrote in message
news:fnv7f09de5c3h8jvbr3vmt5upp19shp91j at 4ax.com...
> The xelagot man doesn't know really, but since it is a string, I guess
> you can add the currency symbol:
>
> ? 9,99
>
> (with the internationally used comma :)
>
> Alex (XelaG)
> Xelagot Man
>
> On 12 Jul 2004 14:48:16 -0400, "ksg"
> <kingsmallguy at my.activeworlds.com> wrote:
>
been
say
need
>
|
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]"xelag" <xelag at digitalspace.com> wrote in message
news:dqt8f0hoj0llfvfv4fgs97rtipb7j36vbe at 4ax.com...
> Wrong.
>
> I was brought up in Uruguay and Argentina in the 50s-60s. We use the
> comma there. When I came to live in Europe (Netherlands) in the 70s
> up to now, the comma we use here too. When I was in the USSR in the
> 70s, they used the comma there too. The strange Europeans you mention
> are probably strange to you because of recent events: no more french
> fries in the USA!
>
> I personally prefer the decimal point. But what the heck :)
>
> Alex
>
> On 13 Jul 2004 19:13:47 -0400, "swe" <swe at swehli.com> wrote:
>
(by
monthly /
I've
uniserver
I
report...
are
>
|
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]"xelag" <xelag at digitalspace.com> wrote in message
news:o2haf0lkb7ithhjc6tbc5r8vbj9885gth4 at 4ax.com...
> The fact, SWE, is that there are two main systems in use for the
> decimal separator. As programmer, you need to take this into account,
> or your programs may only work on some locales and not on others. I
> shared my experience with Delphi, maybe VB and C programmers can now
> tell us how they solve this?
>
> Alex
>
>
> On 14 Jul 2004 10:20:58 -0400, "swe" <swe at swehli.com> wrote:
>
both
then
>
|
|