|
Object ADD VB-DLL (Sdk)
Object ADD VB-DLL // Sdk
May 23, 2003, 1:56pm
Dim rc As Long
With Form1
.sdk.aw_int_set AW_OBJECT_X, mvarObjectX
.sdk.aw_int_set AW_OBJECT_Y, mvarObjectY
.sdk.aw_int_set AW_OBJECT_Z, mvarObjectZ
.sdk.aw_int_set AW_OBJECT_YAW, mvarObjectYAW
.sdk.aw_int_set AW_OBJECT_TILT, 0
.sdk.aw_int_set AW_OBJECT_ROLL, 0
.sdk.aw_string_set AW_OBJECT_MODEL, mvarObjectGUID
.sdk.aw_string_set AW_OBJECT_DESCRIPTION, mvarNPCDetails
.sdk.aw_string_set AW_OBJECT_ACTION, ""
rc = aw_object_add
If rc <> 0 Then
Form1.sdk.aw_say "NPC Creation FAILURE! Reason[" & rc & "]"
Else
mvarObjectNumber = .sdk.aw_int(AW_OBJECT_NUMBER)
Debug.Print aw_object_load
End If
End With
Doesnt seem to be working correctly. It returns RC = 0 yet, nothing appears
in the world?
Anyone have a sample that works with the COM DLL ?
-BasiX
May 23, 2003, 4:23pm
you HAVE actually checked your aiming at the right place?
- Mark
[View Quote]"basix" <GoldKi at Hotmail.com> wrote in message
news:3ece44a4$1 at server1.Activeworlds.com...
> Dim rc As Long
> With Form1
> .sdk.aw_int_set AW_OBJECT_X, mvarObjectX
> .sdk.aw_int_set AW_OBJECT_Y, mvarObjectY
> .sdk.aw_int_set AW_OBJECT_Z, mvarObjectZ
> .sdk.aw_int_set AW_OBJECT_YAW, mvarObjectYAW
> .sdk.aw_int_set AW_OBJECT_TILT, 0
> .sdk.aw_int_set AW_OBJECT_ROLL, 0
> .sdk.aw_string_set AW_OBJECT_MODEL, mvarObjectGUID
> .sdk.aw_string_set AW_OBJECT_DESCRIPTION, mvarNPCDetails
> .sdk.aw_string_set AW_OBJECT_ACTION, ""
> rc = aw_object_add
> If rc <> 0 Then
> Form1.sdk.aw_say "NPC Creation FAILURE! Reason[" & rc & "]"
> Else
> mvarObjectNumber = .sdk.aw_int(AW_OBJECT_NUMBER)
> Debug.Print aw_object_load
> End If
> End With
>
>
> Doesnt seem to be working correctly. It returns RC = 0 yet, nothing
appears
> in the world?
> Anyone have a sample that works with the COM DLL ?
>
> -BasiX
>
>
|
May 23, 2003, 10:08pm
Yep all of them are at 0,0,0
Even had a preston scan for the object, to no luck.
-Basix
[View Quote]"strike rapier" <strike at rapiercom.freeserve.co.uk> wrote in message
news:3ece671b at server1.Activeworlds.com...
> you HAVE actually checked your aiming at the right place?
>
> - Mark
>
> "basix" <GoldKi at Hotmail.com> wrote in message
> news:3ece44a4$1 at server1.Activeworlds.com...
> appears
>
>
|
May 24, 2003, 2:52am
hmmmmmmm did u think bout use sdk.aw_object_add.
it might be good to call the actual command :P
*chukles*
[View Quote]"basix" <GoldKi at Hotmail.com> wrote in message
news:3ece44a4$1 at server1.Activeworlds.com...
> Dim rc As Long
> With Form1
> .sdk.aw_int_set AW_OBJECT_X, mvarObjectX
> .sdk.aw_int_set AW_OBJECT_Y, mvarObjectY
> .sdk.aw_int_set AW_OBJECT_Z, mvarObjectZ
> .sdk.aw_int_set AW_OBJECT_YAW, mvarObjectYAW
> .sdk.aw_int_set AW_OBJECT_TILT, 0
> .sdk.aw_int_set AW_OBJECT_ROLL, 0
> .sdk.aw_string_set AW_OBJECT_MODEL, mvarObjectGUID
> .sdk.aw_string_set AW_OBJECT_DESCRIPTION, mvarNPCDetails
> .sdk.aw_string_set AW_OBJECT_ACTION, ""
> rc = aw_object_add
> If rc <> 0 Then
> Form1.sdk.aw_say "NPC Creation FAILURE! Reason[" & rc & "]"
> Else
> mvarObjectNumber = .sdk.aw_int(AW_OBJECT_NUMBER)
> Debug.Print aw_object_load
> End If
> End With
>
>
> Doesnt seem to be working correctly. It returns RC = 0 yet, nothing
appears
> in the world?
> Anyone have a sample that works with the COM DLL ?
>
> -BasiX
>
>
|
May 24, 2003, 8:08am
In article <3ecefa78$1 at server1.Activeworlds.com>, webmaster at awscape.com says...
> hmmmmmmm did u think bout use sdk.aw_object_add.
> it might be good to call the actual command :P
> *chukles*
>
[View Quote]> "basix" <GoldKi at Hotmail.com> wrote in message
> news:3ece44a4$1 at server1.Activeworlds.com...
|
Good catch Scuz...in fact it goes back to what I suggested countless times, if
you had used Option Explicit, the compiler would have caught that.
Tools/Options/Editor/Require Variable Declaration.
--
Baron
May 24, 2003, 1:59pm
hehe, took me a while to see it. but then i noticed it was missing sdk.
[View Quote]"baron" <pk39srt at hot[youknowwhat].com> wrote in message
news:MPG.193970bf60a0b1709896a4 at news.activeworlds.com...
> In article <3ecefa78$1 at server1.Activeworlds.com>, webmaster at awscape.com
says...
>
> Good catch Scuz...in fact it goes back to what I suggested countless
times, if
> you had used Option Explicit, the compiler would have caught that.
> Tools/Options/Editor/Require Variable Declaration.
>
> --
> Baron
|
May 24, 2003, 8:34pm
gah I didnt see that until I was looking at it from the other side of the
room >_<.
Personally though I use global functions such as aw_int_set and aw_int etc
and simply replace em using find and replace before I coompile for release.
- Mark
[View Quote]"scuz" <webmaster at awscape.com> wrote in message
news:3ecefa78$1 at server1.Activeworlds.com...
> hmmmmmmm did u think bout use sdk.aw_object_add.
> it might be good to call the actual command :P
> *chukles*
>
> "basix" <GoldKi at Hotmail.com> wrote in message
> news:3ece44a4$1 at server1.Activeworlds.com...
> appears
>
>
|
May 26, 2003, 2:45pm
Well son of a b... haha thanks guys. :-\
|