neophile // User Search

neophile // User Search

1  |  

problem with AW_MY_PITCH attribute

Jul 8, 2004, 3:26pm
Hi, i'm making a train-bot in C with Dev-Cpp. My problem is i ca'nt seem
to pitch the bot with the AW_MY_PITCH attribute.
The bot is moving accordingly to all other parameters i give it
(AW_MY_X, etc).
Here is the fonction i'm trying to use to refresh the bot's position 4
times per second:

> void refresh(void){
> aw_int_set (AW_MY_X, X);
> aw_int_set (AW_MY_Z, Z);
> aw_int_set (AW_MY_Y, Y);
> aw_int_set (AW_MY_YAW, YAW);
> aw_int_set (AW_MY_PITCH, pitch);
> aw_int_set (AW_MY_GESTURE, gest);
> aw_state_change ();
> }

I have been confirmed this should work, as it does in other languages,
like Delphi..
Any help or comment would be aprreciated.

problem with AW_MY_PITCH attribute

Jul 8, 2004, 3:26pm
Hi, i'm making a train-bot in C with Dev-Cpp. My problem is i ca'nt seem
to pitch the bot with the AW_MY_PITCH attribute.
The bot is moving accordingly to all other parameters i give it
(AW_MY_X, etc).
Here is the fonction i'm trying to use to refresh the bot's position 4
times per second:

> void refresh(void){
> aw_int_set (AW_MY_X, X);
> aw_int_set (AW_MY_Z, Z);
> aw_int_set (AW_MY_Y, Y);
> aw_int_set (AW_MY_YAW, YAW);
> aw_int_set (AW_MY_PITCH, pitch);
> aw_int_set (AW_MY_GESTURE, gest);
> aw_state_change ();
> }

I have been confirmed this should work, as it does in other languages,
like Delphi..
Any help or comment would be aprreciated.

problem with AW_MY_PITCH attribute

Jul 9, 2004, 9:14pm
ok, that seems work correctly now, thank again for your help.

Use SDK event handler inside a class instance

Mar 5, 2005, 3:25pm
Hello, I don't understand how to do for make aw_event_set inside an
instance fonction like (it's not the really code but ligh for the example):

// Constructor
awctrl::awctrl ()
{
aw_init(AW_BUILD); // Work
aw_event_set (AW_EVENT_CHAT, on_chat); // Make my compiler error //message:
// C:\folder\test\CAwCtrl.cpp argument of type `void awctrl::)()'
// does not match `void (*)()'
}

// instance function for a chat event
void awctrl::on_chat (void)
{
...... // code for a chat event
}

can you help me for my problem ?
I am trying to make a class for using SDK

Use SDK event handler inside a class instance

Mar 7, 2005, 4:25pm
tks scifair for your response. I see and prefer to use standard SDK of AW

I ever use static function for making me sure to have only one instance
of the class : defining constructor in private and have a static pointer
create function how return adress of existing instance or if not, create
it and return adress like:
in Ctrlaw.h :

class ctrlaw
{
ctrlaw::ctrlaw();
ctrlaw::~ctrlaw();
static ctrlaw* ptctrlaw;
public:
ctrlaw* Create();
void kill();
}

in ctrlaw.cpp:

ctrlaw* ctrlaw::ptctrlaw=0;

ctrlaw* ctrlaw::Create()
{
if (!ptctrlaw) ptctrlaw=new ctrlaw;
return ptctrlaw;
}

so if I understand your method, just add:

private:
static void InitEvent();
public:
static void On_Chat(void);

in the class proto and for cpp definition:

void ctrlaw::InitEvent()
{
aw_event_set(AW_EVENT_CHAT, On_Chat);
}

void ctrlaw::OnChat()
{
.... code here
}

of course, with the method for having only one instance from the class,
no possibility to have few objects and conflict with using Static handler...

I am not yet try it but, what do you thing about this?

for your info, I try to make meself a class how I'could use in future
for all my bot under AW environment and in the same time, with the
Object Oriented Language....

scifair a écrit :
> neophile-
>
> You can use a static member function as an event handler. If you want an
> instance method to handle the event, you can make the static one call to its
> instances.
>
> I think it is possible to use an instance function as an event handler, but
> you'd have to use an awkward and dangerous hack of some sort. (I know that
> if you wrap the SDK for .NET, you can use delegates that wrap instance
> functions as handlers.)
>
> However, this is a bad idea, and I don't think it will do what you want,
> especially if you are installing the handler in a class constructor. Think
> what happens if you create a second instance of the class: it takes over the
> event handling. Then if you destroy the class, you no longer have a
> functional handler.
>
> You're much better off making a static handler, which need not be a plain C
> function. Maybe you want an event-handling class with static event
> handlers, to which your other objects may register as event listeners?
> Consider deriving classes that will be listeners from an event-listener
> abstract class.
>
> --
> Rich
>
[View Quote]

Use SDK event handler inside a class instance

Mar 7, 2005, 4:39pm
Error of my person : in the .h class define : add static like this :


tks scifair for your response. I see and prefer to use standard SDK of AW

I ever use static function for making me sure to have only one instance
of the class : defining constructor in private and have a static pointer
create function how return adress of existing instance or if not, create
it and return adress like:
in Ctrlaw.h :

class ctrlaw
{
ctrlaw::ctrlaw();
ctrlaw::~ctrlaw();
static ctrlaw* ptctrlaw;
public:
static ctrlaw* Create(); // <--- Here is my mistake now rectified
void kill();
}

in ctrlaw.cpp:

ctrlaw* ctrlaw::ptctrlaw=0;

ctrlaw* ctrlaw::Create()
{
if (!ptctrlaw) ptctrlaw=new ctrlaw;
return ptctrlaw;
}

so if I understand your method, just add:

private:
static void InitEvent();
public:
static void On_Chat(void);

in the class proto and for cpp definition:

void ctrlaw::InitEvent()
{
aw_event_set(AW_EVENT_CHAT, On_Chat);
}

void ctrlaw::OnChat()
{
.... code here
}

of course, with the method for having only one instance from the class,
no possibility to have few objects and conflict with using Static handler...

I am not yet try it but, what do you thing about this?

for your info, I try to make meself a class how I'could use in future
for all my bot under AW environment and in the same time, with the
Object Oriented Language....

scifair a écrit :

> neophile-
>
> You can use a static member function as an event handler. If you
want an instance method to handle the event, you can make the static one
call to its instances.
>
> I think it is possible to use an instance function as an event
handler, but you'd have to use an awkward and dangerous hack of some
sort. (I know that if you wrap the SDK for .NET, you can use delegates
that wrap instance functions as handlers.)
>
> However, this is a bad idea, and I don't think it will do what you
want, especially if you are installing the handler in a class
constructor. Think what happens if you create a second instance of the
class: it takes over the event handling. Then if you destroy the class,
you no longer have a functional handler.
>
> You're much better off making a static handler, which need not be a
plain C function. Maybe you want an event-handling class with static
event handlers, to which your other objects may register as event
listeners? Consider deriving classes that will be listeners from an
event-listener abstract class.
>
> --
> Rich
>
[View Quote]

Dev C++ 4.9.9.2 and AW SDK

Apr 21, 2005, 5:03pm
Hi, I use DevCpp and since I had updated my version 4.9.9.0 to 4.9.9.2 ,
all my compiled applications crash when happen the aw_init(AW_BUILD)
function: My sources codes not change since the upgrade and the
compilation not report any warning or error.
Is someone have an idea or solution?
Thanks in advance.

the next step in programing :P

May 31, 2005, 1:22pm
Giles a écrit :
> ok i made a bot usieng a concel now and i'm pretty happy with it so i
> decided to take the next step up.... a windows GUI and well i've alredy ran
> into troubles -_- for some reason the richedit that i was planing on useing
> for the log dont appear at all i'm programing in C++ useing dev C++ version
> 4.9.9.2 so can anyone help at all with this? i tryed msdn but they dident
> help much so.... yeah
>
>
Maybe you are using aw_wait(-1) ? If yes, the AW SDK take for itself all
the thread time for it. your rich control is not refresh by the windows
system. You have 2 solutions for resolve it : make an aw_wait(20) inside
the windows callback loop (20 ms for exemple) or use a specific thread
for AW. I using Dev CPP 4.9.9.0 with the wxWidgets (better than windows
API for the GUI)

the next step in programing :P

Jun 10, 2005, 3:19pm
Tony M a écrit :
[View Quote] For example , I have my GUI in the main thread and all AW operation are
in this thread.
For the aw_wait(x), I make a specific Thread who I can stop, pause and
resume in normal task priority.But in this specific thread, I don't use
the -1 value because it block my thread, so I use a time like 20 ms.
I'll test it with a 0 value, I'll tell you...

New AW programming site

Mar 24, 2006, 4:33pm
god zedle a écrit :
> Hello everyone. I have decided to start up a site for teaching the AW SDK to
> new users of AW. The sdk is a big reason I use AW and I think there should
> be a more integrated community of programmers. I'd appreciate any help I can
> get. I need the following:
>
> - Web programmer(s)
> - Moderators for forums
> - Graphics designers
> - Tutorials to put on the site, i will put up some for a simplified version
> of the greeterbot from the AW SDK site, but other than that, not sure what
> else to put up.
> - Anything else you'd like to give, it would be appreciated.
> - Donations are appreciated extremely, you will get a special rank on the
> forums. (we will be using IPB)
>
> email me if you'd like to talk, i rarely start up outlook express..
> gsgage at gmail.com
>
> You can also contact me in AW if you'd like, though i'd prefer email at
> first.
>
> Thanks,
> Zedle
>
>
Why not?

AW sdk for PureBasic

May 15, 2006, 8:16pm
hi,I had adapted the aw.dll sdk for a friend on PureBasic. It work very
fine. you can get it on may download section on
http://www.abyssia.fr/download.php

(there's the greeter bot example include)

SDK 60 and wxsocket

Jun 5, 2006, 1:08pm
Socket = new wxSocketClient ();

The SDK seem not like other TCP socket with wxwidgets...

SDK 60 and wxsocket

Jun 5, 2006, 3:54pm
Neophile a écrit :
> Socket = new wxSocketClient ();
>
> The SDK seem not like other TCP socket with wxwidgets...

I can't use the tray system icon with wxwidgets that crash the SDK.

Please , is it due to me or the new SDK need a specific thread ?

SDK 62 Console bot Application Error when closed

Jul 29, 2006, 3:33pm
Goshenta a écrit :
> Do NOT take aw_term() out. That does not solve the problem at all. You need
> to completely log out your bot before shutting down the program, that will
> solve your problem temporarily until it is fixed.
>
>
On my ChatGlobal I'm sure all bots are Out when I send the aw_term();
I try to put a wait loop unblocked to let time SDK shutdown.
Always the same error at the app closing.
I don't know what to do, I'll back to SDK 61 for moment...

Relay Bot (Not CRB or VectraChat)

May 30, 2005, 10:49am
Steve e a écrit :
> Hello, I am looking for some sort of relay bot, not the kind of relay
> bot that makes chat available to the whole world but a bot that I can
> link the chat in multiple worlds together, I found two such bots in the
> past that did this and they worked OK but one was poorly designed and
> crashed often and the other had only support for three worlds and would
> only work in one universe.
>
> If anyone has any information about this, please let me know. I am
> trying to link about 5 worlds spanning 2 universes. If no one knows I
> guess I got to make my own!
>
> Thanks!
>
> -Steve
HI, I have my chatglobal project who permit you connecting more than 3
bot on different universe. It is a relay chat with common color function
and style, with the possibility to link a lots of chat world trought the
xelagot server. For moment , I give the 1 bot AW only universe on my web
site http://www.abyssia.net, but if you are interesting by my host
version (more than 1 bot)
, send me a mail...

Easy Mover Software

Aug 15, 2005, 2:44pm
I'm pleased to present you my last software for AW in multilanguage
version. It usefull for animation and travelling in a world. It's in
free download on my web site http://www.abyssia.net/EMoverEN.php

You can see it in action on the world Gala (the train called Rosalie)

Easy Mover Software

Aug 30, 2005, 3:37pm
[View Quote]

Linux SDK report

Dec 2, 2005, 4:53pm
Hi, I work actually on the portage of my bots with wxwidgets under linux
(thks to andras for the SDK) I think it's usefully to tell you a curious bug
with my mandrake 2006.

My ChatGlobal bot use an aw_citizen_attribute_by_name command for query the
universe about a citizen after an AW_EVENT_CHAT (it's the only command I
found to get the citizen number, the session number is not enought)
On windows, the command is very fast and not slowing the database for get
user data. But under linux , the same commande take more than one second.

In a first time I had think about the Andras suggest about using a timer
(because the mandrake slowing the SDK).
But when I removed the "aw_citizen_attribute_by_name" command and just only
identify an user by is name, the ChatGlobal time delay seem to be better
than the windows version.
{info : I don't use callbacks, because the engine need to have info
immediatly for displaying the relay chat, and windows version works
perfectly}

Linux SDK report

Dec 3, 2005, 6:16am
For timing my thread , I use a wx Heartbeat for calling aw_wait(0) and it
have the same effect of your timer example I suppose.

I don't use the AVATAR_ENTER because I could have another users on a
different world, and I have only their name returned throught the Tchat
network.

I think ,that I'll go to insert the citizen number in my DB when happen
avatar_enter event like you said.

I was just interested by the time difference between linux and windows about
aw_citizen_attributes command.

"Andras" <andras at andras.net> a écrit dans le message de news:
4390c146$1 at server1.Activeworlds.com...

> The SDK has to interrogate the uniserver for the aw_citizen_attributes
> command and you get only the citizen number, nothing else:
> (Note that all attributes are returned only if this instance is owned by
> the universe root account (citizen #1). Otherwise, only AW_CITIZEN_NUMBER
> and AW_CITIZEN_URL are returned.)
> That info you can already have by the AVATAR_ENTER event (if you use it).
> The timer suggestion I made is speeding up everything (at least on
> Mandrake or Debian for me) without having any actual body of the timer.
> AFAIK the timer interrupt will release the control of the current thread,
> so the TCP stack can work much faster.
>
> --
> Andras
> "It's MY computer" (tm Steve Gibson)

ChatGlobal 3.2.5 Portage Ready

Jul 19, 2006, 5:31pm
Hi, ChatGlobal portage on AW 4.1 is ready. It support French, english
and spanish languages.
Chatglobal is a relay Tchat who give colors and styles, global mode
(hear all the world) or limited distance emulation (like the default T'chat)
It can permit you to connect your world with another (another universe
too) throught a xelagot server using chatglobal network protocol.

you can get it on http://www.abyssia.net/chatglobalen.php

(sorry spanish pages are not yet implanted)

"Walk-insidable" Movers

Feb 2, 2006, 2:55pm
Matt888 a écrit :
> I think when 4.1 comes out, we should be able to create a mover which allows
> it to be following it's own path (Like a train moving on it's track
> preprogrammed) and have multiple users inside, able to walk around inside
> it. I think this would be key for realism in Activeworlds. My question
> about 4.1 movers and pre-programmed moving patterns is, how complicated can
> they be? Is it possible to program a entire length of track in, with twists
> and turns in it?
>
> Maybe there should also be a "record" option, so the builder can actually
> record a path, and that can be used by the auto-mover.
>
> It seems complicated, but I think it would be that extra bit of realism that
> ActiveWorlds needs to beat the competition and make transportation systems
> more realistic.
>
> -Matt
>
>
Try My EMover -> http://www.abyssia.fr/EMoverEN.php
The passengers just can turn on theirself for looking the country. Of
course, the passengers have a fixed place for moment... In work

it s strange

Aug 22, 2003, 7:29pm
I confirm this strange thing, I'm too an resident of gala, and I'have been
very stupefact by the continuous eject from france!(The eject happen
immediatly when we trying enter in this world). So, I have discuss whith
another citizen of gala, and they tell me the same thing. Very strange. I
became very interested by HOW is it possible to select a citizen (and
tourist) at the entrance of the world. So I try to change my IP by
reconnecting, alltime it's impossible to enter. After I tried to delete all
cookies and another spy trace on my computer, and also reinstall my AW
browser, the same thing happen. At the end of my investigation, I install
AW browser on another computer of my LAN who have never go in AW, and
there, that work!!! I can connect on France! in tourist. So, in place, I
changing my connection to citizen mode (neophile) and there, I seen nothing
happen, no eject. After some seconds, I back to gala, and I've received a
telegram from alcior (the caretaker of france! I suppose) whith some
advertice and inssanity (because I've broken his tips for this strange
eject, I suppose) He's telling me he will go carrying complaint to my
provider(How he knows my provider? with my host? or my IP?) and he called
me bloody man! So I think, he use the big brother number of our system for
selecting the people, because with another computer, we can enter in his
world....

it s strange

Aug 23, 2003, 9:24am
No, I don't think, because I have a XP CPU and an SIS chipset on my
motherboard, whithout serial number. Some guys tell me about a Lan Card
adress, Mac adress I think, perhaps that way?

"ewasx" <ewasx at cybernetworlds.net> écrivait
news:3f46bbda at server1.Activeworlds.com:

> Yes, I believe the world eject list can block a user in three
> different ways: By cit number, by IP address and also by the unique
> "machine ID #" (in Intel motherboards starting with P-4). Is that
> correct, guys?
>

it s strange

Aug 23, 2003, 9:53am
"alcior" <alcior at virtuelfrance.com> écrivait
news:3f473232 at server1.Activeworlds.com:
Please alcior, speaks english for all people here, if you want I
translate for you, your last post:
Alcior says:"Great, thanks, in fact I Put my world in private mode, Just
the mind to see you,also in tourist mode, not the idea is for me
insuportable, bye my little guy.
Note: You should must read the help of AW and too the terms and
conditions."

Now, I'm answering you alcior:
ok,I see for your private mode is new, but why, when we have trying enter
your world, The following message was appearing:"You have been ejected
from france!"?, If your world is in private mode we should have this
message:"Sorry, you are not allowed to enter "france!".So your world was
not a private world before this week,when this strange eject happen?
And I'm not your "little", and I don't know you, so please trying stay
correct in your language terms in future. I'm not your enemy.

Note:I remember you, that the use of software on the internet can permiss
you have some private information from anyone with the help of your AW
caretaker world statues, is prohibing, that call hacking.And on your web
page I have see an tracking cookies, very strange.Bye.

> Cool merci en fait je met en privé, rien que de pensé de vous voir
> meme en touriste non l'idée met insurportable, bye mon petit.
> p.s.: tu devrait lire l'aide d'aw et aussi les termes et conditions.
>
>

1  |  
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