|
kah // User Search
kah // User Search
Nov 24, 2001, 3:44pm
some ppl have requested a PHP SDK, but that's not really necesary. I have
written an example of how you can make PHP interact with the SDK, in this
case a webform where the user puts in a chat string that a bot will say. you
can download it from http://home.no.net/kahbot/phps.zip. it consits of tree
files, the PHP script where the user submits a chat string and a VB project
(2 files) which contains the bot which the PHP script shells. I have only
tested this on Apache 1.3.22 with PHP 4.0.6.
Requirements:
Win32 webserver with PHP4 installed, PHP Safe Mode OFF. Disk access. VB
with AwSdkOcx4 registered.
Instructions:
Open PHPSayer.vbp in VB, change the cit# and PPW (and location settings if
you want to) then compile it as PHPSayer.exe
Open phpsayer.php in a text-editor and set the BotPath variable to the path
of PHPSayer.exe. example: if PHPSayer.exe is located in C:\AW\Bots\ then put
"C:\\AW\\Bots\\". Put the script in your webserver's document area
Ok, now you've set everything up, just remains to see if it works :-)) Open
the script in a webbrowser, go to the location where the bot is set to
appear, specify your nick and the desired chat string, click the "Say"
button and wait for the bot to appear :-))
KAH
PS. if anybody would like to translate the bot to C++ or Delphi, I'd
appreciate it a lot :-))
Nov 25, 2001, 12:24pm
I assume it's either on commatron.com or athnex.com, just too bad the DNS
entry of commatron.com pointed to an unexisting IP and that athnex.com
displayed a DNS2Go status page... maybe you should upload it to a dedicated
server?
KAH
[View Quote]"trekkerx" <troop2 at empirenet.com> wrote in message
news:3C004FFF.69341AB6 at empirenet.com...
> Okay, I made a animal bot thats kinda screwy, but it works. Read the
> readMe.txt (It explains some stuff) If anyone wants the source e-mail
> me. (Its probly not a good idea to use it as a learning tool lol, but oh
> well)
>
> I hope it works for yall
>
> --
> TrekkerX - CEO
> Commatron
> http://www.commatron.com
> http://www.athnex.com (when its up)
>
>
|
Nov 25, 2001, 12:34pm
hi, I'm playing around with C++, but when I compile the sample project the
..exe crashes with an "illegal operation" error when it gets to the SDK
commands... I use Bloodshed Dev-C++ 4 (Mingw compiler), SDK build 22,
AW_STATIC.LIB. any ideas to why this happens?
KAH
Nov 25, 2001, 12:44pm
hi, I'm trying to use Query5x5 in VB with AwSdkOcx4, but I don't know what
to do from the first CallbackQuery and on. for starting the query I use the
sample code that came in the query5x5.txt file distributed with AwSdkOcx4,
this is my CallBackQuery code:
If Not sdk.AwQueryComplete Then
rc = sdk.AwQuery5x5(XSector, ZSector, m_seq)
Debug.Print "this is where I am: " & sdk.AwCellSequence
Else
ConsoleMsg "all done! Found " & ObjCount & " objects."
End If
and this is my sdk_EventCellBegin code (adapted from AwQuery, I guess this
is where the problem is):
Private Sub sdk_EventCellBegin()
Dim X As Long, Z As Long
XCell = sdk.AwCellX
ZCell = sdk.AwCellZ
X = sdk.AwSectorFromCell(XCell) - XSector
Z = sdk.AwSectorFromCell(ZCell) - ZSector
If (X < -1 Or X > 1 Or Z < -1 Or Z > 1) Then
Exit Sub
End If
m_seq(Z + 1, X + 1) = sdk.AwCellSequence
End Sub
when I tryed doing sdk.AwQuery5x5 m_seq(1, 1) the SDK crashed with runtime
error 440.
KAH
Nov 27, 2001, 4:54pm
good idea, I tryed adventuring myself into the world of C++ SDK programming
this weekend, but with the (free) Mingw compiler all I got was a "Illegal
operation" error when the program tryed to execute SDK commands. and that
was the SDK sample...
KAH
[View Quote]"ananas" <vha at oct31.de> wrote in message news:3C0170FB.6C71E71F at oct31.de...
> A wish to the AW SDK developers :
>
> Please add a VS_VERSION_INFO ressource to your DLL
> so you can right-click a DLL and see which version
> it belongs to.
>
> Optional, and even better, have the DLL version in
> the name of the distributed files.
>
> Best would be, you did both.
>
>
> A DLL makes more sense if you can really share it
> between several applications. Currently each bot has
> to have its own DLL in the directory, because no bot
> uses the really dynamic loading of libraries with
> LoadModule(), and the import-library linked bots are
> not compatible with different DLL versions.
>
> This would help bot users and bot developers to
> organize the current DLL chaos.
>
> --
> "_
> |
> /\
> \ /
> __/ /_
|
Dec 11, 2001, 3:36pm
I hate those LOL... no point in them, just ineffective and silly
KAH
[View Quote]"the derek" <imthederek at yahoo.com> wrote in message
news:3c11bb30 at server1.Activeworlds.com...
> is it possible to have the menus that are in office 2000 (the ones where
it
> hides stuff you dont use often until you click the double arrows) in VB?
>
>
|
Dec 17, 2001, 4:47pm
even better, write your own config file parser, OCXs tend to bloat the
app... I can provide anyone interested with code I've used
KAH
[View Quote]"brant" <awteen at shoemakervillage.org> wrote in message
news:3c1d2db7$1 at server1.Activeworlds.com...
> Use the Kupex INI Tools ocx that I use in all my programs. I'll find it
and
> send it to you. It makes writing INI files quick and easy :)
>
> "gamer" <robbie at oriox.com> wrote in message
> news:3c1d2001 at server1.Activeworlds.com...
prevent
I'd
for
I'd
> the
> :o)
>
>
|
Dec 17, 2001, 5:00pm
go to AWUniv, it's been added to the Marcusian language course ;-))
KAH
[View Quote]"foxmccloud" <FoxMcCloud at cyberbrain.com> wrote in message
news:3c1e3f3d at server1.Activeworlds.com...
> Where did you take your ssgotenian 101 lesson? I'm interested.
>
> Fox Mc Cloud
>
> "bowen" <bowen at omegauniverse.com> a écrit dans le message news:
3c1d3b79$1 at server1.Activeworlds.com...
program
if
want
:).
>
>
|
Dec 23, 2001, 3:38pm
hehe, may I recommend RC4 next time, Gamer...
KAH
[View Quote]"swampthing" <swampthing at sverige.nu> wrote in message
news:3c25c167$1 at server1.Activeworlds.com...
> Nice little christmas puzzle, see attached file for solution ;)
>
> "gamer" <robbie at oriox.com> skrev i meddelandet
news:3c252bee at server1.Activeworlds.com...
will
Object
Improved
the
>
>
>
|
Dec 30, 2001, 3:29pm
put in the max value, when you get the string with a load of spaces, use
Trim() on it, will trim all leading and trailing spaces :-))
KAH
[View Quote]"gamer" <robbie at oriox.com> wrote in message
news:3c2e1750 at server1.Activeworlds.com...
> Okay, I've sorted the problem (thanks to Grimble), I was using the
variables
> as local variables in a seperate Sub. I've made them all global now.
>
> I've come across another problem now however, I get a compile error on my
> GetPrivateProfileString lines:
>
> e.g. iCreated = GetPrivateProfileString(Param, "Created", , , , filepath)
>
> I know why...it wont let me do , , , , I have to fill each section.
Hwoever
> that means I have to specify the legnth of the string to return...and
since
> the users are creating the content of each key, I dont know what the
legnth
> is...I can put the max value in...but will return a load of spaces after
the
> actual text I want? I tried doing an example program to test it out but
was
> having problems with the kernel...does anyone know whether it does? and if
> it does, is there a better way to do it or a way or removing the spaces?
>
> -Gamer
>
> "gamer" <robbie at oriox.com> wrote in message
> news:3c2de370 at server1.Activeworlds.com...
into
> a
> when
> WritePrivateProfileString.
holds
> this
writting
> just
String,
lpFileName
FilePath)
> difference
I
>
>
|
Jan 2, 2002, 2:28pm
try http://planet-source-code.com/vb/ :-)) great source of code and tuts,
even some really awesome apps there... Open Source for Windows, with MS' own
programming language haha :-))
KAH
[View Quote]"pig" <vr0.pig at ntlworld.com> wrote in message
news:3c31f8f9 at server1.Activeworlds.com...
> i need VB Tutorials.
>
>
>
|
Jan 15, 2002, 7:18pm
Obviously MrGrimm did one some time ago, but I don't think it's up to date
or anything... You could try my bot network,
http://home.no.net/kahbot/vbubn.htm, it might be a bit easyer to set up
too... a new version is on it's way as well, even though I'm gonna have to
postpone encryption even longer, in lack of a good encryption procedure that
works well (the one I tryed to implement for this version would not allways
decrypt right on the other end), I'm planning to get a book on encryption so
I can write my own thing...
KAH
[View Quote]"johnf" <johnfricker at lineone.net> wrote in message
news:3c4359e3 at server1.Activeworlds.com...
> http://www.imabot.com/bone/sdk/
>
> Sdk for VB?
>
>
|
Feb 27, 2002, 4:17pm
he didn't need to post his rude comment anyway, though
KAH
[View Quote]"sw chris" <chrisw10 at nckcn.com> wrote in message
news:3c7c2a9e at server1.Activeworlds.com...
> Don't be so quick to judge, you. Jbell made a simple mistake. There was
> nothing idiotic about it.
>
> SW Chris
>
> "dion" <GovDion at subdimension.com> wrote in message
> news:3c7b9069$1 at server1.Activeworlds.com...
old,
Writing
People
All
> Longer
>
>
>
|
Jan 25, 2002, 7:23pm
BTW the base for my standard login code was written by Baron, and dates from
the VB sample project he posted that made me understand VB and SDK
programming :-)) Thanks Baron!
KAH
[View Quote]"swe" <m_swehli at hotmail.com> wrote in message
news:3c5158a3 at server1.Activeworlds.com...
> 'Read Start world
> world = txtWorld.Text
> 'Bot Enters the world
> rc = sdk.AwEnter(world)
> If rc Then
> MsgBox "Unable to enter " & world & " (reason " & rc & ")"
> Exit Sub
> End If
>
> 'Announce position in the world. Avatar coordinates are in centimeters.
> 'x coordinate specifies the avatar's position along the east/west axis,
> 'with west being positive.
> sdk.AwMyX = Val(txtMyX.Text) * 1000
> 'The z coordinate specifies the avatar's position along the north/south
> axis,
> 'with north being positive
> sdk.AwMyZ = Val(txtMyZ.Text) * 1000
> 'The y coordinate specifies the avatar's elevation
> sdk.AwMyY = Val(txtMyY.Text) * 1000
> 'Yaw is given in units of one tenth of a degree and can range in value
from
> _
> '0 to 3599. A yaw of 0 is facing directly north, 900 is facing west, 1800
_
> 'is facing south, and 2700 is facing east
> sdk.AwMyYaw = 0
> 'The avatar type is a zero-based index into the world's avatar list
> sdk.AwMyType = txtMyType.Text
>
> 'Inform the server of your current state.
> rc = sdk.AwStateChange
> If rc Then
> MsgBox "Unable to change state (reason " & rc & ")"
> Exit Sub
> Else
> 'Log bot entry in main text
>
> MsgBox "(" & Time & ") succesfully logged into " & world
> End If
>
>
>
> End Sub
> ____________________________________________________
>
>
> k, well u can thank KAH for that code :) well read it throw and understand
> everything.
>
> SWE
> God created me with ignorance in mind :)
> www.emptyco.com (the still empty site)
>
>
> "thafrek" <1 at 1.com> wrote in message
> news:3c4f2f37$1 at server1.Activeworlds.com...
> connect
>
>
|
Jan 25, 2002, 7:23pm
AwQuery5x5 works fine, if you know how to use it :-)) I contacted the person
who should know best (MrGrimm off course) when the 3.2 SDK was released and
your code should work fine, so if you used that I don't know why it failed
for you...
KAH
[View Quote]"billybob" <vbillybob87 at aol.com> wrote in message
news:3c50dbf3 at server1.Activeworlds.com...
> First of all, I'm not even sure if the 5x5 Query works in VB...I tryed
> myself but it failed.....second, all of the "1"s in the EventCellBegin sub
> need to be changed to "2"....
>
> Private Sub sdk_EventCellBegin()
> Dim X As Long, Z As Long
> XCell = sdk.AwCellX
> ZCell = sdk.AwCellZ
> X = sdk.AwSectorFromCell(XCell) - XSector
> Z = sdk.AwSectorFromCell(ZCell) - ZSector
> If (X < -2 Or X > 2 Or Z < -2 Or Z > 2) Then
> Exit Sub
> End If
> m_seq(Z + 2, X + 2) = sdk.AwCellSequence
> End Sub
>
> if you don't do this then it will query forever. Also make sure m_seq has
> enough space....(5)(5)
>
>
|
Jan 19, 2001, 7:10pm
for my bot-developper group, the MBE/KAHBOT (http://www.kahbot.com/), I
would like to have a bot forum. I made one with the wizard in FrontPage
2000, but that requires the webserver to have the server extensions
installed and the server I use doesn't, so nobody can post to the forum...
So could anyone host it for me (for free)? I would accept to display a
banner on the page.
KAH
Jan 27, 2002, 12:19pm
you can make SSTab look normal I think, there's a setting for it.
KAH
[View Quote]"grimble" <grimble2000 at btinternet.com> wrote in message
news:3c540317 at server1.Activeworlds.com...
> Dammit! ... fingers are crap this morning ... As I was saying ...
>
> If you use the Sheridan control (SSTab - I never liked the look of
Sheridan
> controls, but at least they work like you expect), then each tab is a
> container in its own right and you can drop controls onto the respective
> tabs at design time. With the Tab Strip (it appears that MS didn't quite
> grasp the concept of RAD with this control), you'll need to put the
controls
> in frames (i.e. manually make one container per page) and write the code
> under the tab click events to hide/show the correct frames. Its a total
pain
> and if you don't mind the look of the SSTab control not conforming to that
> of the Microsoft controls, I would strongly suggest you use that as a
first
> attempt.
>
> I got it woefully wrong in the previous post ... SSTab is in the Microsoft
> Tabbed Dialog Control component, and Tab Strip is in Microsoft Windows
> Common Controls 6.0.
>
> Hope that's of some use ...
>
> Grims
>
>
> "grimble" <grimble2000 at btinternet.com> wrote in message
> news:3c540093 at server1.Activeworlds.com...
with
so
>
>
|
Jan 21, 2001, 10:45am
I think Andras have made a HunterBot thingy... http://www.andras.net
KAH
[View Quote]trekker wrote in message <3A6A7CA9.D4199D3F at empirenet.com>...
>Dose any one have or know of a animal bot that runs away from u or when
>u clcik it it dies or some thing like that?
>
|
Jan 21, 2001, 4:23pm
and you also have animal bots from JKMT, but I dunno if they become "scared"
or "die"...
http://www.jkmt.com
KAH
[View Quote]kah wrote in message <3a6ad9df$1 at server1.Activeworlds.com>...
>I think Andras have made a HunterBot thingy... http://www.andras.net
>
>KAH
>trekker wrote in message <3A6A7CA9.D4199D3F at empirenet.com>...
>
>
|
Jan 22, 2001, 2:58pm
check the site...and I know that those bots are good!
KAH
[View Quote]irish berserker wrote in message <3a6b40a0 at server1.Activeworlds.com>...
>trekker,
>Rumor has it they have folded,but this like everything is subject to change
>or confirmation.
>
>trekker wrote:
>Lol, yea kinda like that. But JKMT's world is closed to the public, dose
>anyone
>know why?
>
>
>
>
|
Jan 28, 2002, 4:50pm
the lib is required for the OCX to work, and I think the OCX is required for
the lib to have any function too... with ActiveX controls, other things
apply to ActiveX DLLs
KAH
[View Quote]"cozmo" <b.nolan2 at verizon.net> wrote in message
news:3c55914f at server1.Activeworlds.com...
> i was making my bot and i couldnt add the ocx file so i was looking
through
> the object browser and the lib was in it. i didnt add it but i guess it
just
> went in by itself somehow....
>
> well i want to know whats the difference between them and which one would
be
> the best to use
>
>
|
Jan 29, 2002, 4:10pm
are you sure MS got that right? lol
KAH
[View Quote]"ananas" <vha at oct31.de> wrote in message news:3C563165.B3A4A850 at oct31.de...
> That is complete nonsense
>
> 1. a LIB can ONLY be used to compile it into a program
> so you never need it outside
>
> 2. an OCX (and DLL) can not be compiled into a program
> at all, so you always need it outside
>
>
> trekkerx wrote:
your
>
> --
> "_
> |
> /\
> \ /
> __/ /_
|
Feb 1, 2002, 9:57pm
after trying some methods I found this method, that works very well:
create a custom type for objects, example:
Private Type AwObject
Model As String
Number As Long
Action As String
Owner As Long
End Type
this example only contains a few properties, I recommend putting all of
them, since not re-specifying all properties of an object in a world where
you have ED can result in objects changing owner, position, model, action,
description etc. At least this has happened to me many times. Declare it as
an array ( Dim Obj(50000) As AwObject ), an array scope of 0 - 50000 should
be largely enough I'd say, then declare a long that will contain the last
array index ( Dim ObjIndex As Long ) so we put the objects at the right
place. then on _EventCellObject increment the array index and set the
values, like this:
ObjIndex = ObjIndex + 1
Obj(ObjIndex).Model = sdk.AwObjectModel
Obj(ObjIndex).Number = sdk.AwObjectNumber 'and so on...
and when the query is done search through your array like this (declare a
long called i in the declarations first):
For i = 0 to ObjIndex
If Obj(i).Action Like "*name object1*" Then
NumberOfObjectOne = Obj(i).Number
End If
Next i
I hope this helps :-))
KAH
[View Quote]"flammable goat" <robbie at oriox.com> wrote in message
news:3c5ada16 at server1.Activeworlds.com...
> Hey there all, in the hope of expanding my knowledge, could anyone tell me
> how (code if possible) to find an object based on its action (e.g. find an
> object within range of the bot that has 'create name object1' on it) then
> aquire it's co-ords? I can then use this information to Select, Change and
> Delete Objects. :o)
>
> Thanks in advance to anyone who can help :)
>
>
|
Feb 12, 2002, 3:59pm
you need to know the size of the road object to calculate if objects are in
the way... first you just query the area in question, then you have it
calculate the area the road would take up (a rectangle if you're doing a
straight road), and then go through the query result and check for any
objects that would be inside the area where the road should be, get their X
and Z location, their number and use aw_object_delete() (look in the SDK
help for info on how to set this up) to remove the offending objects. If my
vague explanation doesn't take you very far, I can try to write you a bit of
code :-))
KAH
[View Quote]"icydee" <docherty-group at panlok.com> wrote in message
news:3C693C0D.9E03B66B at panlok.com...
> I have written code to generate propdump files and then use XelaGot to
> build the objects. This has worked fine up to now. I have generated
> roads, monorails, domes and forests. (about 4 million objects)
>
> However this approach cannot remove objects that have already been
> built. For example if I run a new road through a forest I get trees
> growing through the asphalt (tarmac). You can see my problem at AW
> 23768N 18072W
>
> Ideally I need a bot that can survey an area, identify the road objects
> and remove trees and shrubs (but not manhole covers!) from the area
> covered by the road.
>
> Any ideas? I tried once to use the SDK and MS C compiler but did not get
> very far!
>
> IcyDee.
>
|
Feb 15, 2002, 12:07pm
not sure how instancing works in VB, my way is just to set up an array of
SDK objects and use the Index var supplyed by the events to know which bot
it was (works perfectly fine for me)
KAH
[View Quote]"tacoguy" <jeff at jefftech.net> wrote in message
news:ndqo6u47un8csshn1ic89b199hmgcrnlsh at 4ax.com...
> Hello all
>
> I am using MrGrimm OCX (Thanks !) to make a bot to extend chat range
> in my world. I am a somewhat experienced VB programmer but am an AWSDK
> novice. I would appreciate any help and thanks in advance !
>
> I am instantizing 3 bots (which works fine) using this code for each :
>
> *************
>
> sdk.AwInit AW_BUILD
> sdk.AwCreate Universe, Port
> sdk.EnableDefaultEvents
> sdk.AwLoginApplication = Application
> sdk.AwLoginOwner = Cit
> sdk.AwLoginPrivilegePassword = Pass
> sdk.AwLoginName = BotName1
>
> ***************
>
> I am also calling a timer for each bot :
>
> timAwWait1.Interval = 1000
> timAwWait1.Enabled = True
>
> **************
>
> In the timer sub (1 for each of the 3 instances) I am using (latest
> itteration) :
>
> Private Sub timAwWait1_Timer()
>
> sdk.AwWait 0
> sdk.AwEventSet AW_EVENT_CHAT
> sdk.AwStateChange
>
> End Sub
>
> **************
>
> What happens is when bot1 logs in, it receives chat events but when
> bot2 logs in, bot2 receives the events and bot1 loses them. Same when
> bot3 logs in ... both bot1 and bot2 have lost events.
>
> I have looked everywhere to try to resolve this (including hours of
> scanning this newsgroup) and just cant find it.
>
> Any help would be most appreciated :-)
>
> Best as always
> Taco
|
Feb 16, 2002, 4:35pm
remember to ALLWAYS call .AwEventSet() for all events you want to receive
and to call .AwWait 0 at least once every second.
KAH
[View Quote]"robbie" <robbie at oriox.com> wrote in message
news:3c6e7caa at server1.Activeworlds.com...
> It appears a bot I have written can log okay (I'm using the long method)
and
> can send things to the Uniserver like sdk.awsay but cannot recieve
messages
> from the server, like sdk_eventchat and sdk_eventavataradd. From I can see
> everything is set up correctly, does anyone have ny suggestions? I can
post
> the code if nessacery, its nothing elaborate.
>
> -Robbie
>
>
|
Mar 4, 2002, 8:07pm
Dim x As Integer
x = 0
Do While x < 3
'login stuff
x = x +1
Loop 'or was it Wend?
that should do that in VB
[View Quote]"silenced" <nospam at privacy.com> wrote in message
news:3c83db80$1 at server1.Activeworlds.com...
> use a while statement (not sure if you're using VB or if there's a while
> statement in VB)
>
> such as this in c++
> int x = 0;
> while ( x < 3 )
> {
> Do the login stuff here
> x++;
> }
>
> That should work .. or just convert it to your friendly neighboorhood VB
> code.
>
> -Silenced
>
> "strike rapier" <strike at rapiercom.freeserve.co.uk> wrote in message
> news:3c83da9a at server1.Activeworlds.com...
> the
times
> (I
>
>
|
Mar 5, 2002, 3:35pm
I think the most used version is
Do Until x = 1
'blablabla
Loop
and I also think it's easyest to read anyway.
KAH
[View Quote]"dion" <GovDion at subdimension.com> wrote in message
news:3c83f253$1 at server1.Activeworlds.com...
> Off-Topic Question:
> Does VB use regulary DO...LOOPs as well?
> DO
> LOOP UNTIL x = 1
> ??
|
Mar 9, 2002, 1:38pm
you should allways make installers for your VB projects because of just
ActiveX controls and DLLs :-))
KAH
[View Quote]"strike rapier" <strike at rapiercom.freeserve.co.uk> wrote in message
news:3c89eaca at server1.Activeworlds.com...
> It wont be included in windows update - at least i dont think it will, if
> anyone else is having problems, juts say, ill create a installer, for it
>
> "dion" <GovDion at subdimension.com> wrote in message
> news:3c894fde$1 at server1.Activeworlds.com...
else
> to
> the
> but
installation.
controls,
> message
created
> a
> with
> Systems -
> This
with
>
>
|
Mar 19, 2002, 3:00pm
look in the MSDN library (got reference of all MS controls:
http://msdn.microsoft.com
KAH
[View Quote]"alexthemartian" <beggfam at earthlink.net> wrote in message
news:3c96d8d5$1 at server1.Activeworlds.com...
> ok thanks for ini thing.. and i am and been using a richtext box. so if
> anyone knows how to have diffrent colors for diffrent text please let me
> know.
>
> AlexTheMartian
>
> "zeo toxion" <cozmo at activeworlds.com> wrote in message
> news:3c95de6c$1 at server1.Activeworlds.com...
> to
and
ACUTALLY
> visual
it
>
>
|
|