ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
Documentation: aw_instance / aw_instance_set (Sdk)
Documentation: aw_instance / aw_instance_set // Sdkstrike rapierAug 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 bowenAug 10, 2003, 1:42pm
[View Quote]
Well, I _really_ don't want to post this yet since it's completely not
finished or optimized yet (I know it's not by all the wasted memory used by declared variables that don't need to be declared and crap like that). But, this is my bot class that I've been working on, I think the SDK instance crap is done right there... but I have no idea (it seemed to work all the times I've tested it). -- --Bowen-- No of SETI units returned: 69 Processing time: 57 days, 10 hours. (Total hours: 1378) www.setiathome.ssl.berkeley.edu bowenAug 10, 2003, 1:42pm
This is a multi-part message in MIME format.
--------------090106090002070408020007 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit I guess I better _actually_ attach it. -- --Bowen-- No of SETI units returned: 69 Processing time: 57 days, 10 hours. (Total hours: 1378) www.setiathome.ssl.berkeley.edu --------------090106090002070408020007 Content-Type: application/x-zip-compressed; name="bbc.zip" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="bbc.zip" UEsDBBQAAAAIAK5emS5OXyhhdQQAAKYSAAAHAAAAYmJjLmNwcN1Wa4/iNhT9jsR/sKhaBep2 QvttR/MhQIqQeAlmln10hUIwYDXYKDFL6Wr723v9CgkbXjMjrdRoHuCce3187vG1f6AsjLZz giqzWfjrqlIulUt3tYebHlS7e1EQuup53aAGF6jDEhGwkKBmFCTJFUHyme0hdkcYOnq+25qu f54fVC6pNYNoSqo3b3JfHUSZAGIhFWy7xvBhFcSottnscLl0fi0aOeOCBWuCzdcdj6O5HEDV cumLTHF3F0QRDwNB0Jqs0YLHaMv+YnzHUCJiypYoImwpVhKbDIcTk/0BMbJTST8CDCAOcKr+ XP90r4ANPW0h0FA6gCcpqW/BKWEDlwG0qdQAtJZFZVGZRBxu9o6kiSWd++ygoYT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aBmgQAAGJiYy5oUEsFBgAAAAACAAIAaAAAADwHAAAAAA== --------------090106090002070408020007-- andrasAug 10, 2003, 10:05pm
[View Quote]
[View Quote]
It is almost OK except the logout() function. You don't destroy - there are still instances active :)
In a nutshell: aw_instance is the database/memory area where a single bot's communication held. If you use a single bot, there is no need to care about it. In the case of multiple bots, the only way to handle them within the same application is to distinguish their database. The moment you receive an event, it assigns the proper instance and you can find which bot got it. If you want to set one bot's parameters, you have to pick the corresponding instance. It is like an implicit pointer to your current bot. HTH -- Andras "It's MY computer" (tm Steve Gibson) bowenAug 11, 2003, 3:10am
[View Quote]
Ah, I was wondering why they'd still stay there. I'll have to fix that
sooner or later (any pointers on why it's not working?). And, other than that, is it good? :) -- --Bowen-- No of SETI units returned: 69 Processing time: 57 days, 10 hours. (Total hours: 1378) www.setiathome.ssl.berkeley.edu baron sweetmanAug 11, 2003, 4:24am
"bowen" <Bowen at andras.net> wrote in
news:3f37254d$2 at server1.Activeworlds.com: [View Quote] i tend to 'delete' any memory allocated with 'new' in c++, makes for less memory leakage. For the rest it's very straightforward i look forward to the full implementation :). Keep up the good work bowenAug 11, 2003, 4:31am
[View Quote]
I could've sworn I was deleting everything I had 'new'-ed. Oh well,
maybe I missed something. Right now it's at where I originally wanted it to be (save me time from having to keep writing the same login procedure time and time again, but warrenting enough to write a class for multiple bot instances). I may keep adding to it once this school year starts and I get time to do it. And/or my citizenship doesn't hit the boonies like Agent's did. -- --Bowen-- No of SETI units returned: 69 Processing time: 57 days, 10 hours. (Total hours: 1378) www.setiathome.ssl.berkeley.edu baron sweetmanAug 11, 2003, 4:53am
"bowen" <Bowen at andras.net> wrote in
news:3f373839 at server1.Activeworlds.com: [View Quote] pity, i could use a well build botclass :) Grimble was starting one but he stopped, maybe i should post mine if it wasn't so completely uncommented and absolutely not following any rules of design :) bowenAug 11, 2003, 6:30am
[View Quote]
Well, let me start school and get some of my damn free time back. :P
The fast food industry loves me, what can I say. -- --Bowen-- No of SETI units returned: 69 Processing time: 57 days, 10 hours. (Total hours: 1378) www.setiathome.ssl.berkeley.edu baron sweetmanAug 11, 2003, 10:49am
"bowen" <Bowen at andras.net> wrote in news:3f37542f$2
at server1.Activeworlds.com: > > Well, let me start school and get some of my damn free time back. :P > The fast food industry loves me, what can I say. > one Big Mac please bowenAug 11, 2003, 3:10pm
[View Quote]
Perhaps you'd like a double fatty burger with cheese and bacon instead
and extra Mayo hold the lettuce instead? :P -- --Bowen-- No of SETI units returned: 69 Processing time: 57 days, 10 hours. (Total hours: 1378) www.setiathome.ssl.berkeley.edu |