Thread

Object Changing, & x,y,z,& yaw co-ords (Bots)

Object Changing, & x,y,z,& yaw co-ords // Bots

1  |  

barbarossa

May 13, 2001, 12:39pm
To: All Avid AW Users:
I created a bot, & it's supposed to
do the following: every second, to
display the date & time on a sign in
the world beta. It says that the object
has been changed, but it has not. Can
anyone clue me in on how you determin
x,y,z & yaw values, for they are
obviously not like the aw N,S,E,W, A,DEG
values. This ISN'T my first bot! Please
assist me,

Distressed Bot Programmer,
Barbarossa

P.S. (If anyone can also clue me in on
this "secret" on how to
determine x,y,z,& yw values, then I
could use the teleport event to finally
move my bot off of the G.Z. Of Beta!)

kah

May 13, 2001, 2:41pm
all position values should be indicated in centimeters. this means that if
you wanna build something at 10n 5e 1a 180 (facing south) you should use
X = -5000 (this is the W/E axis)
Y = 10000 (this is the altitude)
Z = 10000 (this is the N/S axis)
Yaw = 1800 (this is the yaw/rotation)

KAH

[View Quote]

andras

May 13, 2001, 5:22pm
Correction inline ...
[View Quote] Y = 1000 would make 1a (1000 cm = 10m = 1 aw unit)

> Z = 10000 (this is the N/S axis)
> Yaw = 1800 (this is the yaw/rotation)
Otherwise it is correct!
Andras


>
> KAH
>
[View Quote]

kah

May 13, 2001, 7:34pm
yeah, that bit worryed me a bit... to Barbarossa: this is rather a matter
for the SDK newsgroup, so next time you have such a question, please post it
there :-))

KAH

[View Quote]

m a k a v e l i

May 13, 2001, 8:50pm
Yes, all of these posts go there, and also, all the questions he/she asks is
on MrGrimm's Help pages.

[View Quote]

barbarossa

May 13, 2001, 9:23pm
Hy, mr Arrogant makaveli, who has yelled at my respectable questions, has
arrogance for having only done 1 bot, which can't be downloaded now. I have
posted this on mr.grimms, & I have yet to recieve a relevsnt & effective
respomse from there!

[View Quote]

trekkerx

May 13, 2001, 10:08pm
Anyways, Barbarossa, in VB (since I thinck thats what you are using) you would
have to move a bot by a number on the X, Y, and Z cordnaces.
So if you wanted to be at 1n 2e 1a facing South it would be like this...

awsdocx.AwMyX = -2000
AwSdkOcx.AwMyZ = 1000
AwSdkOcx.AwMyY = 1000
AwSdkOcx.AwMyYaw = 160
AwSdkOcx.AwStateChange

Since 1000 would equel 1n or 1w, and a Negtive number would equel a South or
East cordnant.
I hope I explaned it to you. I am shure you know how to Use the mutaplaction
and Division in VB, so You can use Text boxes
and only need to put in 1 to get 1000.

[View Quote] > Hy, mr Arrogant makaveli, who has yelled at my respectable questions, has
> arrogance for having only done 1 bot, which can't be downloaded now. I have
> posted this on mr.grimms, & I have yet to recieve a relevsnt & effective
> respomse from there!
>
[View Quote]

m a k a v e l i

May 14, 2001, 12:53am
No, MrGrimm works, he does things all the time, he doesn't have time to
respond to everyone's questions when he has already put a help section that
explains almsot everything. EVERY question you've asked is in them files,
just read them.


[View Quote]

xelag

May 14, 2001, 5:50am
1. you need to query the area for property. Once you got that, you are in
live update.
2. search for the sign either while you are querying, or at the end if you
made a database, and collect the object number and the position (X and Z are
required).
3. use the correct commands to change the sign, keeping the new object
number you get there.
4. wait longer than one second (or wait for the callback), due to lag this
may be too short, then change again.

It's a lot of steps and you have to master them all before you can do what
you want.


[View Quote]

kah

May 14, 2001, 2:36pm
easy way of doing it on login : sdk.AwMyX = txtMyX.Text & "000" and so on
:-))

KAH

[View Quote]

m a k a v e l i

May 14, 2001, 6:13pm
?????? To make it look good:

<code>

sdk.AwMyX = txtMyX & 1000

<end code>

Your way would not work for decimals (see below)

txtMyX = 10 & "000"
txtMyX's text is 10000

Works so far.

txtMyX = 10.5 & "000"
txtMyX's text is 10.5000 which is the same as 10.5


[View Quote]

trekkerx

May 15, 2001, 12:10am
They all work.... As Grimble said programming style...

[View Quote] > ?????? To make it look good:
>
> <code>
>
> sdk.AwMyX = txtMyX & 1000
>
> <end code>
>
> Your way would not work for decimals (see below)
>
> txtMyX = 10 & "000"
> txtMyX's text is 10000
>
> Works so far.
>
> txtMyX = 10.5 & "000"
> txtMyX's text is 10.5000 which is the same as 10.5
>
[View Quote]

mrgrimm

May 15, 2001, 12:20am
AwMyX is a long, not a string. When handling user input that is supposed to
be numerical you should use val () to convert it. Like so:

sdk.AwMyX = val (txtMyX.Text) * 1000

-MG

[View Quote]

m a k a v e l i

May 15, 2001, 2:14am
Did you even read my post, I explained why it WOULDN'T work. You don't use &
you use *.

[View Quote]

kah

May 15, 2001, 12:40pm
yeah, that's the most correct way, but using pure strings work (as long as
they're made out of numeric characters only)...

KAH

[View Quote]

grimble

May 15, 2001, 3:29pm
Ummm .... you typo'd Makaveli. Don't be so rude if you're gonna correct
people wrongly, eh?

[View Quote]

m a k a v e l i

May 15, 2001, 6:45pm
No, I typed exactly what I wanted to.

I was copying KAH's way not adding my own, if the people would read
MrGrimm's help they would know the answers to their questions but they
choose not to read them.

[View Quote]

grimble

May 15, 2001, 8:48pm
Geesh, you are a dope!

You said .... "You don't use & you use *."

You then followed it up with ... "sdk.AwMyX = txtMyX & 1000" (which NO-ONE
had quoted before) = TYPO!

OK! Get it? Duh!

Grims


[View Quote]

trekkerx

May 15, 2001, 10:44pm
Lol.

[View Quote] > Geesh, you are a dope!
>
> You said .... "You don't use & you use *."
>
> You then followed it up with ... "sdk.AwMyX = txtMyX & 1000" (which NO-ONE
> had quoted before) = TYPO!
>
> OK! Get it? Duh!
>
> Grims
>
[View Quote]

m a k a v e l i

May 15, 2001, 11:18pm
You're the dope! I was explaining why KAH's way wouldn't work.


[View Quote]

kah

May 16, 2001, 3:35pm
it works... but not for decimals with a non-null decimal number.

KAH
PS. If this confuses you, it isn't a typo, and forget about it (if you think
that it's a typo)

[View Quote]

grimble

May 16, 2001, 7:05pm
LOL *sigh*

Kah didn't write ... "sdk.AwMyX = txtMyX & 1000" ... YOU did. READ IT !

Unless of course you DID mean to put that (and it WASN'T a typo) in which
case it simply doesn't make sense! 1000 gets converted into a string,
appended to the end of the contents of txtMyX and the result is then
converted into a number ... If txtMyX contains "22", that line results in a
number of 221000 ... which is utter crap.

You have three choices ... admit you're wrong, admit you're wrong or shut
up! You're just filling up the threads with misleading information.

Grims


[View Quote]

m a k a v e l i

May 16, 2001, 9:03pm
<snip from KAH's post>

easy way of doing it on login : sdk.AwMyX = txtMyX.Text & "000" and so on
:-))

<end snip>

I was restating what KAH said, and then tellin u why it wouldn't work.

[View Quote]

grimble

May 17, 2001, 6:41am
<sobs in corner ...> IDIOT! Last post on this ... If the threads made sense
without your misleading, ill-informed and ultimately utter garbage posts I'd
filter you.

Lets play something a bit more your level shall we .... spot the difference.

-- kah wrote (originally) --------------------------
> easy way of doing it on login : sdk.AwMyX = txtMyX.Text & "000" and so on

-- m a k a v e l i wrote (incorrectly) ---------------
> ?????? To make it look good:
> <code>
> sdk.AwMyX = txtMyX & 1000
> <end code>

Now .... see any difference?? Its not difficult! Either this is a terrible
quote which looks nothing like the original (so its a typo) OR you typoed
with a "&" instead of a "*" OR your offering is incorrect (as described in
my previous post). Now go back and read the posts from 15th onwards.

Grims

m a k a v e l i

May 17, 2001, 5:49pm
| -- kah wrote (originally) --------------------------
| > easy way of doing it on login : sdk.AwMyX = txtMyX.Text & "000" and so
on

Exactly what I said.

| -- m a k a v e l i wrote (correctly) ---------------
| > ?????? To make it look good:
| > <code>
| > sdk.AwMyX = txtMyX & 1000
| > <end code>

I restated what KAH said so I didn't confuse people when I stated while it
wouldn't work.

| Now .... see any difference?? Its not difficult! Either this is a terrible
| quote which looks nothing like the original (so its a typo) OR you typoed
| with a "&" instead of a "*" OR your offering is incorrect (as described in
| my previous post). Now go back and read the posts from 15th onwards.

Must be a terrible quote I quess, maybe I should have said "<KAH's code>"
instead?

kah

May 17, 2001, 6:39pm
stop spamming the newsgroups!!!!! and I'm speaking to the BOTH of you!!!!!!
Your endless word-fight starts getting quite annoying...

KAH

[View Quote]

grimble

May 17, 2001, 9:03pm
Give over! Don't read it then !

[View Quote]

m a k a v e l i

May 17, 2001, 11:18pm
True that.

Ok Grimble, I guess it was a typo, although I seriously thought I was
restating KAH's post.

[View Quote]

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