|
strike rapier // User Search
strike rapier // User Search
Jul 4, 2003, 3:12pm
Try this: Its worked for me a few times... not sure its technically correct
Dim AvatarIP As String
sdk.aw_address (sdk.aw_int(AW_AVATAR_SESSION))
sdk.aw_wait(0)
AvatarIP = sdk.long2ip(sdk.aw_int(AW_AVATAR_ADDRESS))
Jul 4, 2003, 7:20pm
Almost identical :)
Its something like this.
Private sub Form_Load( )
call sdk.aw_callback_set(AW_CALLBACK_ADDRESS)
end sub
private sub Callback_Address(rc as long)
call Msgbox(sdk.Long2IP(sdk.aw_int(AW_AVATAR_ADDRESS))
end sub
[View Quote]"zeofatex" <gzanone at optonline.net> wrote in message
news:3f05e521$1 at server1.Activeworlds.com...
> Emmm where do I put the callback set and stuff, I've never used a callback
> before. I looked on the AWSDK page, but it's in C++ -.-
>
>
|
Jul 5, 2003, 2:29pm
Yer know Baron.. why am I not suprised the first question you asked was
about the security features on aw? :)
- Mark
[View Quote]"baron" <pk39srt at hot[youknowwhat].com> wrote in message
news:MPG.19708167f7b89dad989685 at news.activeworlds.com...
> In article <3f05e521$1 at server1.Activeworlds.com>, gzanone at optonline.net
says...
callback
>
> Before using it it's best to make sure you understand what a callback is
and how it
> works. Check out http://www.activeworlds.com/sdk/asynchro.htm, in brief
callbacks are
> functions that are called by the SDK (not you) when a response from the
server is
> received. You can set your callback where you set your events.
>
> In this case what you do is call aw_address in the content of
AW_EVENT_AVATAR_ADD and
> forget about it (in this event's content). The response from the server is
collected in
> the content of AW_CALLBACK_ADDRESS, you will know which callback is for
which aw_address
> call by checking sdk.aw_int(AW_AVATAR_SESSION) and matching it with your
session table.
> You should also check the return code (rc argument passed by the SDK to
the callback) to
> make sure everything went OK.
>
> --
> ./B
|
Jul 9, 2003, 9:09pm
I don't get why people want to stick with old, out of date stuff, just for
the sake of a hours time. *sigh* Arnt we programmers meant to be adaptive?
- Mark
Jul 12, 2003, 8:34pm
You pick up a mallet... and you hit E N Z O around the head with it for
nuking the newsgroups...
- Mark
[View Quote]"john" <john at 3d-reality.com> wrote in message
news:3f0dcb1c at server1.Activeworlds.com...
> How d'ya query?
>
>
|
Jul 23, 2003, 6:20pm
lol... no comment
[View Quote]"john" <john at 3d-reality.com> wrote in message
news:3f1c6abf at server1.Activeworlds.com...
> Or just make the bot auto-calculate time difference.
>
> "kf" <none at junk.mail> wrote in message news:3F1C076F.161F at junk.mail...
> needs to
> modTimeZone.bas
> local
was
> will not
> they
>
>
|
Jul 23, 2003, 6:19pm
way to waste memory :)
[View Quote]"john" <john at 3d-reality.com> wrote in message
news:3f1c6bf9 at server1.Activeworlds.com...
> Module is at the bottom. This stores up to 100K objects in an array.
This
> is for pre 3.3 universes. This was designed for the OCXs including R i c
h
> a r d's unofficial AwSdkOcx6. The usage code is provided first and then
the
> Module code to be inserted into a module (VB) ~John
>
> This calls the functions which stores, deletes and removes objects as they
> come up in a regular query.
>
> ||---------------------------------------------------------||
>
> Private Function Clear_All_Stored_Objects()
> ResetAll
> End Function
>
> Private Sub sdk_EventCellObject()
> CellObject sdk
> End Sub
>
> Private Sub sdk_EventObjectAdd()
> ObjectAdd sdk
> End Sub
>
> Private Sub sdk_EventObjectClick()
> ObjectClick sdk
> End Sub
>
> Private Sub sdk_EventObjectDeLete()
> ObjectDelete sdk
> End Sub
>
> Private Sub sdk_EventObjectSelect()
> ObjectSelect sdk
> End Sub
>
> ||---------------------------------------------------------||
>
> Private Type ObjectInfo
> X As Long
> Y As Long
> Z As Long
> Yaw As Long
> Number As Long
> Model As String
> Action As String
> Description As String
> Used As Boolean
> End Type
> Dim Objects(0 To 100000) As ObjectInfo
>
> Private Function FindNew() As Integer
> For I = 0 To 100000
> If Objects(I).Used = False Then FindNew = I: Exit Function
> Next
> End Function
>
> Public Function CellObject(ByRef sdk As Object)
> If sdk.AwWorldBuildNumber > 42 Then Exit Function
>
> With Objects(FindNew)
> .Model = sdk.AwObjectModel
> .Action = sdk.AwObjectAction
> .Description = sdk.AwObjectDescription
> .Number = sdk.AwObjectNumber
> .X = sdk.AwObjectX
> .Y = sdk.AwObjectY
> .Z = sdk.AwObjectZ
> .Yaw = sdk.AwObjectYaw
> .Used = True
> End With
>
> End Function
>
> Public Function ObjectAdd(ByRef sdk As Object)
> If sdk.AwWorldBuildNumber > 42 Then Exit Function
>
> With Objects(FindNew)
> .Model = sdk.AwObjectModel
> .Action = sdk.AwObjectAction
> .Description = sdk.AwObjectDescription
> .Number = sdk.AwObjectNumber
> .X = sdk.AwObjectX
> .Y = sdk.AwObjectY
> .Z = sdk.AwObjectZ
> .Yaw = sdk.AwObjectYaw
> .Used = True
> End With
>
> End Function
>
> Public Function ObjectDelete(ByRef sdk As Object)
> If sdk.AwWorldBuildNumber > 42 Then Exit Function
>
> For I = 0 To 100000
> If Objects(I).Used = True And Objects(I).Number =
sdk.AwObjectNumber
> Then Objects(I).Used = False: Exit Function
> Next
>
> End Function
>
> Public Function ObjectSelect(ByRef sdk As Object)
> If sdk.AwWorldBuildNumber > 42 Then Exit Function
>
> For I = 0 To 100000
> If Objects(I).Used = True And Objects(I).Number =
sdk.AwObjectNumber
> Then GetObjectProperties I, sdk: Exit Function
> Next
>
> End Function
>
> Public Function ObjectClick(ByRef sdk As Object)
> If sdk.AwWorldBuildNumber > 42 Then Exit Function
>
> For I = 0 To 100000
> If Objects(I).Used = True And Objects(I).Number =
sdk.AwObjectNumber
> Then GetObjectProperties I, sdk: Exit Function
> Next
>
> End Function
>
> Private Function GetObjectProperties(I, ByRef sdk As Object)
> If sdk.AwWorldBuildNumber > 42 Then Exit Function
>
> With Objects(I)
> sdk.AwObjectModel = .Model
> sdk.AwObjectAction = .Action
> sdk.AwStringSet AW_OBJECT_DESCRIPTION, .Description
> sdk.AwObjectX = .X
> sdk.AwObjectY = .Y
> sdk.AwObjectZ = .Z
> sdk.AwObjectYaw = .Yaw
> End With
>
> End Function
>
> Public Function ResetAll()
> For I = 0 To 100000
> Objects(I).Number = 0
> Objects(I).X = 0
> Objects(I).Y = 0
> Objects(I).Z = 0
> Objects(I).Yaw = 0
> Objects(I).Model = ""
> Objects(I).Description = ""
> Objects(I).Action = ""
> Objects(I).Used = False
> Next
> End Function
>
>
>
|
Jul 23, 2003, 7:01pm
I love pointers :)
[View Quote]"john" <john at 3d-reality.com> wrote in message
news:3f1ef585 at server1.Activeworlds.com...
> Yup, kewl eh?
>
> ~John :-D
|
Jul 24, 2003, 4:03pm
www.imabot.com
www.imatowns.com
www.activeworlds.com
www.mauz.info
www.virtuallylearning.com
http://objects.activeworlds.com
www.aweduserve.org
Off top of my head
[View Quote]"weebo" <weebo at my.activeworlds.com> wrote in message
news:3f201ac3$1 at server1.Activeworlds.com...
> How would anybody (newbies and old timers) that came to AW environment
know
> the difference of the "trusted sources" unless the sources have been
tested,
> approved, and posted on a d/l site?
>
> Weebo
>
>
|
Jul 24, 2003, 5:31pm
my first shortcuts =p .lol
urs is great 2 of course :)
[View Quote]"ananas" <ananas at oct31.de> wrote in message
news:3f2033c5$1 at server1.Activeworlds.com...
> :-/
>
> strike rapier wrote:
>
|
Jul 27, 2003, 6:21am
You are not, by any chance trying to get the session of a chat event are
you?
If so, common mistake (One on my first)
dim lChatSession as long
lChatSession = sdk.aw_int(AW_CHAT_SESSION)
- Mark
[View Quote]"basix" <Ezikial at usa.com> wrote in message
news:3f2330d7$1 at server1.Activeworlds.com...
> This isnt working for me. It only tells me the first session that it
reads
> for the event. After that it says the SAME session over and over. My
codes
> down to the bare essentials, so I don't know how I could fix this?....
>
> Dim CitizenSes As Long
> CitizenSes = sdk.aw_int(AW_AVATAR_SESSION)
>
>
|
Jul 31, 2003, 3:13pm
Isnt that basically... like keeping em in a database?
- Mark
[View Quote]"baron sweetman" <petrossadeletethis at msn.com> wrote in message
news:Xns93C9A97D2A9F4petrossa at 64.94.241.201...
> "swe" <swe at swe-e.com> wrote in news:3f2918c3 at server1.Activeworlds.com:
>
>
> you can store them in memory ofcourse
|
Jul 31, 2003, 7:47pm
It does :)
- Mark
[View Quote]"tony m" <tony at homeunix.uni.cc> wrote in message
news:3f297f00$1 at server1.Activeworlds.com...
> C/C++: aw_whisper(12345, "one\ntwo\nthree");
>
> Whether or not it allows that hasn't been tested [by me] yet.
>
> swe wrote:
:) dont wanna make the poor bot keep on whispering to the same person, waste
of bandwidth and cpu and all :)
>
|
Aug 1, 2003, 3:13pm
Database = Structured list of attributes pertaining to a certain item...
like a struct or class ;)
- Mark
[View Quote]"baron sweetman" <petrossadeletethis at msn.com> wrote in message
news:Xns93CA5E1B8C4Dpetrossa at 64.94.241.201...
> "strike rapier" <strike at Rapiercom.freeserve.co.uk> wrote in news:3f294e47
> at server1.Activeworlds.com:
>
> to
>
> yes only without the database :)
|
Aug 1, 2003, 7:52pm
\n = 2 bytes??? In Hex? I thought
\n = 0x10 and \n\l or whatever the other 1 was was 0x10 and 0x0D
[View Quote]"joeman" <joeman at bootdown.com> wrote in message
news:3f2abc24$1 at server1.Activeworlds.com...
> There's six bytes of overhead in a aw_whisper message. So, considering \n
> is two bytes, we can say that 4 bytes * number of lines that are being
sent
> is saved ;). But, we also have the limitation of maximum message size and
> all that to take into account too :O.
>
> -Joe
>
> "baron sweetman" <petrossadeletethis at msn.com> wrote in message
> news:Xns93CA5E538E29Apetrossa at 64.94.241.201...
or
>
>
|
Aug 2, 2003, 7:37am
Ahh, but this is the programming newsgroup ;)
- Mark
[View Quote]"baron sweetman" <petrossadeletethis at msn.com> wrote in message
news:Xns93CACDC194D78petrossa at 64.94.241.201...
> "strike rapier" <strike at Rapiercom.freeserve.co.uk> wrote in
> news:3f2a9fba$1 at server1.Activeworlds.com:
>
>
> Sorry my mistake i should have had my Oxford with me before answering you
> instead of using the everyday interpretation of the word as in database,
an
> application which stores information permanently on a physical medium for
> later retrieval :)
|
Aug 2, 2003, 9:20am
Hmmm. I always just used chr(10) without problem...
chr(10) and chr(13) for carridge return
- Mark
[View Quote]"baron sweetman" <petrossadeletethis at msn.com> wrote in message
news:Xns93CB5B0E94DBpetrossa at 64.94.241.201...
> "strike rapier" <strike at Rapiercom.freeserve.co.uk> wrote in
> news:3f2ae13b at server1.Activeworlds.com:
>
> its \r \n for newline
|
Aug 2, 2003, 4:02pm
hmmmmm, the \r just gets anihalate when I try it.... only the \n remains.
Try pasting 10 and 13 dec chracters into the AW chat window, and then try
sending them though a bot.
- Mark
[View Quote]"baron sweetman" <petrossadeletethis at msn.com> wrote in message
news:Xns93CB9270D84BDpetrossa at 64.94.241.201...
> "strike rapier" <strike at Rapiercom.freeserve.co.uk> wrote in news:3f2b9e82
> at server1.Activeworlds.com:
>
> lol, well that's \r \n. Anyroad it's 2 bytes which this whole story
started
> with
|
Aug 2, 2003, 7:04pm
Hmmm, i always use \n only in printf's
- Mark
[View Quote]"baron sweetman" <petrossadeletethis at msn.com> wrote in message
news:Xns93CBE8C57A357petrossa at 64.94.241.201...
> "strike rapier" <strike at Rapiercom.freeserve.co.uk> wrote in
> news:3f2bfcc9 at server1.Activeworlds.com:
>
>
> i am talking about using a bot ofcourse :). How the AW browser handles
> special chars i am sure i dont know
>
> The whole issue was you asking why 2 bytes where used for a newline as
> Joe pointed out in response to my remark that the overhead of sending one
> large message filled with newlines was almost the same as sending
> seperate messages so the bandwidth waste would be of no concern.
>
> In C, and i seem to remember the same goes for Basic (but dont hold me to
> it the last time i really used Basic was somewhere in 1982)
>
> The \r stands for carriage return (which is 0A (10))
> The \n stands for new line (which is 0D (13))
>
> So if you create a text, you need to insert \r\n in the sentence to get
> it the go to a newline. The precompiler then translates the \r to hex 0A
> and the \n to 0D
>
> printf("mark\r\nthis is a new line");
>
> ofcourse you can do:
>
> printf("mark\x0A\x0Dthis is a new line");
>
> however this is somewhat cumbersome i think :)
>
> If you use only new line the cursor will stay where it was the last time
> If you use only carriage return the cursor will just return to the
> beginning of the line.
>
> Hence you need the pair to specify a newline, cursor at the start
>
> Us old guys might remember the time when we used a typewriter (you might
> find one in a museum somewhere) where you needed to push a large lever
> which ratcheted the roll a few clicks further while at the same time you
> could move the whole carriage to the left.
>
> Here the newline pair was born.
>
> This translated into a teletype instruction, which in turn was the base
> for this.
>
> I hope this puts this to rest.....
|
Aug 7, 2003, 3:23pm
Thanks for clearing that up Alex, lol
- Mark
[View Quote]"xelag" <xelag at digitalspace.com> wrote in message:
> one byte: "\n" is one byte in binary, and that is what is sent. "\n"
> is only an escape sequence representing one byte and only one byte...
> one byte! :)
>
> Alex
|
Aug 7, 2003, 6:20pm
We know... but try this:
aw_string_set(AW_CONSOLE_MESSAGE, "This is line one\nThis is line 2");
aw_console_msg(<you>);
aw_string_set(AW_CONSOLE_MESSAGE, "This is line one part 2\r\nThis is line 2
part 2");
aw_console_msg(<you>);
The \r is not really valildated, but both will print on 2 lines.
- Mark
[View Quote]"baron sweetman" <petrossadeletethis at msn.com> wrote in message
news:Xns93D0C8DA321C5petrossa at 64.94.241.201...
> "baron sweetman" <petrossadeletethis at msn.com> wrote in
> news:Xns93D0C6E6756BCpetrossa at 64.94.241.201:
>
> one
>
> http://www.hyperdictionary.com/dictionary/crlf
|
Aug 7, 2003, 3:47pm
Movement is not confined to the same world... Teleport, reload the project
in Xelagot and rebuild it.
- Mark
[View Quote]"calt exec" <krishna.gollakota at insead.edu> wrote in message
news:3f329024$1 at server1.Activeworlds.com...
> Hello Everybody,
>
> I would be thankful to anyone who can guide me to be able to exchange/copy
a
> cluster of objects or groups of objects from one world to another. I know
> that bots can be used when objects are to be moved from one place to
another
> when the distances involved are large and the movement is confined to the
> same world. Is it possible to move objects/ groups of objects to different
> worlds and restore their functionality there in a different world?Do we
have
> anything like a cut and paste of objects in Active world?
>
> Please reply to: Krishna.gollakota at insead.edu
>
> Thanks and regards,
>
> Krishna
>
>
|
Aug 7, 2003, 3:49pm
btw..... GAHHH!!!!
Why did you post EVERYWHERE appart from where your not allowed to post to?!
- Mark
[View Quote]"calt exec" <krishna.gollakota at insead.edu> wrote in message
news:3f329024$1 at server1.Activeworlds.com...
> Hello Everybody,
>
> I would be thankful to anyone who can guide me to be able to exchange/copy
a
> cluster of objects or groups of objects from one world to another. I know
> that bots can be used when objects are to be moved from one place to
another
> when the distances involved are large and the movement is confined to the
> same world. Is it possible to move objects/ groups of objects to different
> worlds and restore their functionality there in a different world?Do we
have
> anything like a cut and paste of objects in Active world?
>
> Please reply to: Krishna.gollakota at insead.edu
>
> Thanks and regards,
>
> Krishna
>
>
|
Aug 10, 2003, 10:20am
I have noticed, there is no documentation / examples on either aw_instance
or aw_instance_set. While I can work out most of it (from looking at hambot)
I think that we could do with some documentation on it.
- Mark
Aug 11, 2003, 9:56pm
You cant... decompile any language.. back to the origional language other
than Java JAR files....
[View Quote]"john" <john at 3d-reality.com> wrote in message
news:3f382026 at server1.Activeworlds.com...
> He could.. I heard hes got a VB6 decompiler.. just decompile demeter..
lol!
>
> ~John
>
> "scuz" <webmaster at awscape.com> wrote in message
> news:3f381fb4 at server1.Activeworlds.com...
>
>
|
Aug 11, 2003, 3:10pm
Hello folks!
I thought I would offer a little bit of fun on how NOT to debug your
bots when using DAO....
// Set the avatars position in our JET db...
DB_SetLong(pAvatarEventRc, "X", pMyAvatar->m_X);
DB_SetLong(pAvatarEventRc, "Y", pMyAvatar->m_Y);
DB_SetLong(pAvatarEventRc, "Z", pMyAvatar->m_Z);
What the hell?! I wondered... All I was getting was Zero's absolutly
everywhere! There was no reason for it, it shouldent be happening!!! Are the
variables getting set wrong? Are my DBMS classes I just changed wrong?.....
.....Or am I stood at GZ and not realising it....
- Mark
Aug 14, 2003, 3:19pm
A 200m cube...
So 100m NSEW +-Y... at the extent (a vertex) the chat range is the largest..
its only 200m directly for say 0n 0w and 20n 0w...
:)
- Mark
[View Quote]"tony m" <tony at homeunix.uni.cc> wrote in message
news:3f39d495$1 at server1.Activeworlds.com...
> I noticed something odd while working on the ChatRelayBot's distance-relay
mode -- it seems that the chat range is not absolutely 200m, but now is
around 204.8m.
>
> ==============================================
> OutOfRange(Tony M, [evilbot])
> OutOfRange: XZDist = 20476.8268293698
> OutOfRange: YDist = 2378
> OutOfRange: return true
> ==============================================
>
> And yet, the browser still shows [evilbot] and I now receive double
messages -- evilbot's real chat, and the CRB console msg.
>
> With precise movement on, I take one tinystep back to 204.86m; I'm now
considered out of evilbot's range by the browser/worldserver.
>
> ==============================================
> OutOfRange(Tony M, [evilbot])
> OutOfRange: XZDist = 20486.5896869147
> OutOfRange: YDist = 2378
> OutOfRange: return true
> ==============================================
>
> Did I make a mistake assuming it was flat 200m? Could anybody with a
pre-3.4 worldserver try to test this?
>
> This cannot be due to having Public Speaker rights; I removed everybody
from PS during those two tests. Results were the same even while wearing PS.
>
|
Aug 16, 2003, 4:29pm
True :)
My mistake, I had just been adding a feature to limit it to a diff size on
Zeus.
- Mark
[View Quote]"strike rapier" <strike at Rapiercom.freeserve.co.uk> wrote in message
news:3f3bc4ba at server1.Activeworlds.com...
> A 200m cube...
>
> So 100m NSEW +-Y... at the extent (a vertex) the chat range is the
largest..
> its only 200m directly for say 0n 0w and 20n 0w...
>
> :)
>
> - Mark
|
Aug 16, 2003, 6:28pm
Feck knows.... (Btw, dont use SdkOcx6!!!)...
dim rc as long
rc = sdk.aw_init(AW_BUILD)
if (rc) then
MsgBox "Error Code on Init: " & rc
end if
[View Quote]".duo." <ncommons at comcast.net> wrote in message
news:3f3e9164$1 at server1.Activeworlds.com...
> sdk.QuickStartGlobal = True
> sdk.aw_init AW_BUILD
> Dim rc As Long
> rc = sdk.QuickStart(342836, "PASSWORD REMOVED (-:", "Duobot", "Duobot",
> "jediwrld", 0, 0, 0, 0, 0)
> If rc Then MsgBox rc
> peoplepos = 0
>
> help, lol
>
> BTW, thanks for sdkocx6 richard
>
>
|
Aug 16, 2003, 7:13pm
AwSdkDll2 - www.grimmsoft.com
Then use the RC number given to find the cause of the error on
www.activeworlds.com/sdk/reason.htm
- Mark
[View Quote]".duo." <ncommons at comcast.net> wrote in message
news:3f3e9441$1 at server1.Activeworlds.com...
> What am I supposed to use then? heh heh heh
> umm... thanks? lol
> "strike rapier" <strike at Rapiercom.freeserve.co.uk> wrote in message
> news:3f3e93e7 at server1.Activeworlds.com...
"Duobot",
>
>
|
|