Thread

okay this has to be me being stupid I guess:) (Sdk)

okay this has to be me being stupid I guess:) // Sdk

1  |  

moria

May 25, 2001, 5:05am
Problem time...

This is a VB problem, actually its a getting my head sorted problem but I'm
using VB.

I have a bot program, with a master bot and sub bots program. The master
bot does all the main control.. keeps the log of whos in the world and
where, gets the details from previous visits, does the queries and manages
the worlds objects and the individual bots information etc etc. On the
control panel/form for the master bot there are buttons for starting the
other bots and ending the other bots.. which work fine. I can start and end
the other bots add infinitum by clicking on the buttons on the form.

The master bot also tracks where people are, and adds them into seperate
list box if they go into certain areas and removesthem from those lists when
theyleave, so for example, if someone walks into a certain area, they appear
in the list for that area as well as the main in world list.

okay.. now I was running out of my bot limit, so decided that rather than
start all the bots, if someone walked into the area that is already
monitored, the bot would then be started automaticallyif they were the first
person into that area, and when they left the area it would be ended
automatically if no-one was left in that area and based it from the code
that the master bot uses to determine whos where...

Still with me so far?? (grin)

I added a single line of code to start the bot of..

command14_click when the list got an entry and voila the bot loaded
fine.

I then went to delete the bot when they left the area

I added a couple of lines of code to end the bot

command15_click when the list became empty

inother words using the existing code that works fine for a shutdown if you
use the buttons on the form.

(Bots are excluded from appearing on the lists using a block on thechar
for first char)

Problem is, that when the bot leaves automatically the whole program crashes
with..

sdk automation error. I think the number is 10001.

anyone got any ideas, it confusing the heck outta me cause I see no
difference between clicking the button and having the program doing it :) ?

Moria

moria

May 25, 2001, 5:47am
okay error message was way off.. it reads this :-

error -2147417848(80010108)

AWWait of object DAwSdkOcx2 failed

Moria

kah

May 25, 2001, 6:07am
hint: news://kahnews.cjb.net/prog.VB

KAH

[View Quote]

moria

May 25, 2001, 6:18am
and your clue is?? you point to a newsgroup with three posts in it.. two
saying the group has opened and one saying do you really want this group.
personally I would prefer an answer from someone with a clue as to the
problem. If there is no-one, then I'll eventually work outsome sort of
answer, but as to your hint, I think the frequency of posting there from
others has reassured me I am more likely to get a valid response here thank
you. :)

Moria



[View Quote]

kah

May 25, 2001, 6:55am
now, if you actually tought before posting, you would realize that if nobody
posts there, the situation won't change. if you HAD posted there, other ppl
would see it, possibly answer you and ppl would start frequenting the NG.
but if you say that because there are no posts there, you won't post, you're
just being silly! even this SDK NG started off with 0 posts in it, you know!
it's really annoying trying to provide a nice service to ppl and then they
jump on you cuzz nobody has posted there, cuzz when they got what they
wanted they didn't care anymore!

KAH

[View Quote]

mrgrimm

May 25, 2001, 8:42am
Make sure you aren't calling AwTerm when unloading a bot. That would cause
all instances to terminate.

-MG

[View Quote]

grimble

May 25, 2001, 12:52pm
WHO exactly would see it? I checked the newsgroup for a few days before I
went away, and no-one ever posted there!

Grims


[View Quote]

moria

May 25, 2001, 1:02pm
not unless its in quickstop :)

the code it pulls on comand14_click is...

TimAWWait4.Enabled = False
SDK4.QuickStop
Command14.Enabled = False
Command13.Enabled = True

and as I say its fine if you click the button:)

give me a day or so, I'll track it down:)

Moria

[View Quote]

kah

May 25, 2001, 1:47pm
I've had larger traffic on the server today...guess that somebody's read
these posts... now, just like you demonstrated now, if nobody posts, nobody
reads. *try* and be logical, you have to post to get ppl to read and read to
get ppl to post :-))

KAH

[View Quote]

andras

May 25, 2001, 4:44pm
[View Quote]
The more the lame groups - less the ppl post. Don't forget - to open an NG you have to offer something the other (existing) groups doesn't offer. It took me some time to establish my server by offering no moderation but no flaming too. Flames have their own group :)
Anyway - it is your call.
Andras

grimble

May 25, 2001, 10:08pm
Well ...

Firstly, considering its an issue when calling AwWait .... I reckon the SDK
newsgroup is the IDEAL place to raise the question.

Secondly, I'm *try*ing to see your point.

Grims.


[View Quote]

kah

May 26, 2001, 11:11am
he sayd "VB problem"... and remember that it was you that wanted programming
NGs...

KAH

moria

May 26, 2001, 12:50pm
so after all that have you got any ideas KAH? or are you just using this
thread for advertising?

If you haven't got any idea, then why are you posting in it?

Moria


[View Quote]

kah

May 26, 2001, 1:07pm
I have a similar mechanisn on an RPG bot I'm making: it has a var called
AvCount. when an av enters you have AvCount +1 and when an av leaves you
have AvCount - 1. all tough I don't use this for logging in and out, I use
it for tporting the bot, so that it joins somebody when they come, and goes
back to the standby position when they leave/register an account. I had that
problem as well when I was new to bots, it's because of
QuickStart/QuickStop. I'd rather use sdk.AwDestroy if I were you... and to
be sure, use the full login code...

KAH

[View Quote]

grimble

May 26, 2001, 1:55pm
GRRRR. Yep ... but that's not the issue here. And besides, the last two
times I tried to check the news server its not there!! Hence, I don't even
bother checking anymore. *shrug*



[View Quote]

kah

May 26, 2001, 6:00pm
and I've explained why...and also, the redirectors seem to use a bit of time
between a request sent to their server before redirecting it to the DNS
entry for my IP...

KAH

[View Quote]

xelag

May 27, 2001, 12:47am
I have been reading the answers to moria's question., and I am puzzeled. Not
one of the answers has anything to do with his/her question. I myself don't
know the answer, but if no-one else knows it, why carry on a thread? Is
this an disease, like mouth and foot?

XelaG

[View Quote]

kah

May 27, 2001, 12:50pm
I sayd it was QuickStart/QuickStop (this is AwSdkOcx specific)! I'm sure
it'll work if you do it the complete way (login with sdk.AwCreate,
sdk.AwEnter, etc, and logout with sdk.AwDestroy), because I had the exact
same problem when I was new to SDK programming and tryed to use
QuickStart/QuickStop. it should work after using the full process, at least
it did for me.

KAH

[View Quote]

kah

May 27, 2001, 12:51pm
and for the record: Moria wasn't stupid at all, MS are the stupid ones cuzz
they've made some kind of weird error in the OCX stuff (and yes I know that
it's MrGrimm that makes the VB wrapper, but he gave the QuickStart code once
because of a similar problem) ;-))

KAH

[View Quote]

moria

May 27, 2001, 1:30pm
nope, full log in and awsdk.destroy have the same errors. Its somethingto
do with the SDKAWWait and the way VB handles timers when direct driven from
button clicks and program controlled working on interrupt timings. Found a
chunk on the M/Soft website that seems to be a clue.

Once I have the answer and proved it I will post it.

Moria

[View Quote]

m a k a v e l i

May 28, 2001, 3:11am
Give up, no one posts there so why should anyone try to get help there?
Only 3 posts.

[View Quote]

kah

May 28, 2001, 7:03pm
if you'd like to read the rest of the thread containing why your philisophy
won't work before posting...and there should be more than 3 messages there
now...

KAH

[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