Board ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
baron sweetman // User Search
baron sweetman // User Search3.4 vb sdkFeb 1, 2003, 7:25pm
"bowen" <thisguyrules at 7k2.4mg.com.ANTISPAM> wrote in news:3e3c1973
at server1.Activeworlds.com: > [View Quote] print? i know printf, sprintf, fprintf never heard of print :) 3.4 vb sdkFeb 17, 2003, 9:29pm
Sorry i really didnt want to mix in to this, but hardcoding citnames? At
least read in the references from a file, sheesh for (int i=0,j=0;i<readfile("whatever.txt");i++) if (check_avnumber(i)) aw_whisper_session("Whisper password to gain rights"); else if(check_password(j=aw_int(AW_AVATAR_SESSION))) processrights(j); "ananas" <vha at oct31.de> wrote in news:3E512C51.213121E1 at oct31.de: why use strdup? ChatMsg = strdup (aw_string(AW_CHAT_MESSAGE)); Chatmsg = (char*)aw_string(AW_CHAT_MESSAGE); saves memory allocation 3.4 vb sdkFeb 19, 2003, 6:36pm
Ment to answer to the original post not to you Pineapple :)
"ananas" <vha at oct31.de> wrote in news:3E53E114.E069AF51 at oct31.de: > Wrong post to answer to, I just commented on the coding style, > not on the concepts. > Getting "my" session numberJun 11, 2003, 10:19am
"xelag" <xelag at digitalspace.com> wrote in
news:81qdevkhodhvrh7q6ipajbhg5edcpafs1l at 4ax.com: > > In practice, I noticed that since the almost first 500 numbers which > could correspond to error codes are seldom used as legitimate session I had a few times a low sessionnumber show up, i decided to leave it in anyway as the counter climbs fast the ostrich algorythm is a good workaround here ;) sdk issues / GLOBAL MODEJun 11, 2003, 7:54pm
IMHO the SDK sends spurious info quite a lot of times, i had to add
quite a lot of code just to sort out spurious returns from actual returns AVATAR_ADD Events are particularly sensitive :( "tony m" <pcgeek05 at myrealbox.com> wrote in news:m17fevkpiucrtkpmdfmk7i8fgtf6omrrl5 at 4ax.com: > One oddity that Xelagots make more of a note of is that sometimes a > global bot will receive an AW_EVENT_AVATAR_CHANGE/DELETE without an > AW_EVENT_AVATAR_ADD event. > [View Quote] Additional Tourist Avatars by Bot????Jun 17, 2003, 10:51am
www.petrossa.com/Chazbot, has a full set of avatar settings on a per
visitor basis "lady barbara" <barbeisner at msn.com> wrote in news:3eeed4a0$1 at server1.Activeworlds.com: > I was just told by Support (Myst) that one could use a bot or > whatever to set avatars. This would somehow allow me to have more > than just the two tourist avatars. > > --------------------------------->Snip<------------------------------ > Yes, you could have more than just the 2 tourist avs if you are > running a 3.4 world. I would suggest asking in the world owners or SDK > newsgroup to see if someone has a bot that chooses avatars for people. > Kellie Williams/Mountain Myst > Community Services > --------------------------------->Snip<------------------------------ > > In the very near future I expect to have a number of tourists from > another universe (chat program) to come visit on a certain day. (More > about that in a few days--AW citizens will also be invited!) I would > like to have the visitors have a wider choice of avatars. Is this > possible? How would it be done? Please keep explanations simple--I > know very little about bots. > > Thanks in advance! > > Lady Barbara of Amberlin > aka Barbara Eisner > > > Additional Tourist Avatars by Bot????Jun 22, 2003, 4:15pm
Lol, tnx for the input, doesnt detract from Chazbot being able to govern
Avatar usage :) "xelag" <xelag at digitalspace.com> wrote in news:kbr5fvs4svk6dseipaiatimdcae46rmr9c at 4ax.com: > The current SDK build 31 has a bug: it will set correctly the avatar > of a tourist to a number higher than 1 (0 and 1 are the tourist > avatars), but the bots will "see" the tourist as wearing avatar 0. > > The bots get in this case two avatar_change events for the tourist: > the first one with the correct avatar number (say avatar number 9), > and inmediately afterwards, one with avatar number 0 for the tourist. > > Avatar_add events for this tourist give avatar 0. > > I file in a bug report to Bill about this. > > Alex > > Unofficial AwSdkOcx6.ocx ixed UniverseTimeJul 21, 2003, 12:25pm
you mean as Chazbot does? :)
"bowen" <Bowen at andras.net> wrote in news:3f1b7e9c$1 at server1.Activeworlds.com: [View Quote] Avatar locationJul 31, 2003, 12:46pm
"swe" <swe at swe-e.com> wrote in news:3f2918c3 at server1.Activeworlds.com:
> hey, i need a little help with getting an avatars location. i want to > know if there is anyway of finding an avatars location, without the > need of keeping a database which updates every time an avatar moves? > > thanx :) > -SWE > > you can store them in memory ofcourse Avatar locationAug 1, 2003, 5:21am
"strike rapier" <strike at Rapiercom.freeserve.co.uk> wrote in news:3f294e47
at server1.Activeworlds.com: > Isnt that basically... like keeping em in a database? > > - Mark > [View Quote] yes only without the database :) Avatar locationAug 1, 2003, 5:23am
"swe" <swe at swe-e.com> wrote in news:3f2971dc at server1.Activeworlds.com:
> btw, anyone know how to get a newline in aw with the aw_whisper thing? > :) dont wanna make the poor bot keep on whispering to the same person, > waste of bandwidth and cpu and all :) > > -SWE > [View Quote] methinks it wastes almost the same bandwidth of you send 1 long message or several short ones. Avatar locationAug 1, 2003, 4:20pm
"strike rapier" <strike at Rapiercom.freeserve.co.uk> wrote in
news:3f2a9fba$1 at server1.Activeworlds.com: > Database = Structured list of attributes pertaining to a certain > item... like a struct or class ;) 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 :) Avatar locationAug 1, 2003, 5:45pm
"joeman" <joeman at bootdown.com> wrote in
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 That AFAIK being 255 bytes the overal savings are minute, so 'almost' as as close to the reality as possible without getting into to much detail :) But it does save on each line being preceded by the bots name which does look nicer i must admit. It would be a good idea if the whole SDK where overhauled taking modern pc's and bandwidth possibilities in mind. I've got a slew of functions i would like to see the limits taken off or extended. However viewing AW's present state is not likely to happen :( Maybe once they will see the light and make it open source. They could leave out the sensitive bits having to do with tunneling... Petrossa Avatar locationAug 2, 2003, 5:03am
"strike rapier" <strike at Rapiercom.freeserve.co.uk> wrote in
news:3f2ae13b at server1.Activeworlds.com: > \n = 2 bytes??? In Hex? I thought > \n = 0x10 and \n\l or whatever the other 1 was was 0x10 and 0x0D > its \r \n for newline Avatar locationAug 2, 2003, 8:19am
"strike rapier" <strike at Rapiercom.freeserve.co.uk> wrote in
news:3f2b8672$1 at server1.Activeworlds.com: > Ahh, but this is the programming newsgroup ;) > > - Mark > strange i always thought it was the SDK newsgroup, another thing learned. Tnx Mark Avatar locationAug 2, 2003, 10:30am
"strike rapier" <strike at Rapiercom.freeserve.co.uk> wrote in news:3f2b9e82
at server1.Activeworlds.com: > Hmmm. I always just used chr(10) without problem... > > chr(10) and chr(13) for carridge return > > - Mark > [View Quote] Avatar locationAug 2, 2003, 6:59pm
"strike rapier" <strike at Rapiercom.freeserve.co.uk> wrote in
news:3f2bfcc9 at server1.Activeworlds.com: > 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 > 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..... Avatar locationAug 2, 2003, 7:11pm
"strike rapier" <strike at Rapiercom.freeserve.co.uk> wrote in
news:3f2c2744 at server1.Activeworlds.com: > Hmmm, i always use \n only in printf's > > - Mark > so then you know why there is 2 bytes overhead for a newline and not one Avatar locationAug 7, 2003, 3:40pm
"xelag" <xelag at digitalspace.com> wrote in
news:q525jvcq957dk69js24e8uil9kftmo56r2 at 4ax.com: > On 2 Aug 2003 17:11:56 -0400, "baron sweetman" [View Quote] \r \n sorry, 2 bytes Avatar locationAug 7, 2003, 3:52pm
"baron sweetman" <petrossadeletethis at msn.com> wrote in
news:Xns93D0C6E6756BCpetrossa at 64.94.241.201: one > > \r \n sorry, 2 bytes > http://www.hyperdictionary.com/dictionary/crlf Avatar locationAug 8, 2003, 3:50am
"strike rapier" <strike at Rapiercom.freeserve.co.uk> wrote in
news:3f32b4a2 at server1.Activeworlds.com: > 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] non standarisation is slowly spreading, what can i say :) Must be said in all fairness the newline was never that standarized anyway, but still on a dos based platform it was pretty much standarized to crlf. Not that i mind its better to have one char then 2 chars for a newline..... Documentation: aw_instance / aw_instance_setAug 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 Documentation: aw_instance / aw_instance_setAug 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 :) Documentation: aw_instance / aw_instance_setAug 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 VB SDK Terrain Height SetAug 12, 2003, 4:09am
"scuz" <webmaster at awscape.com> wrote in
news:3f372c09$1 at server1.Activeworlds.com: > Could somebody please make a tutorial explaining how to change > terrain > heights with the vb sdk, or tell me so I can create one. > ------------------------------------ > Scuz > Awscape.com/.net/.org Webmaster > Visual Basic Programmer > > and in C++ for me please VB SDK Terrain Height SetAug 12, 2003, 4:43am
"bowen" <Bowen at andras.net> wrote in news:3f3887ed$1
at server1.Activeworlds.com: [View Quote] Documentation? you mean that snippet of text describing the function call? VB SDK Terrain Height SetAug 12, 2003, 7:35am
VB SDK Terrain Height SetAug 13, 2003, 3:26am
"milesteg" <MilesTeg at nerim.net> wrote in
news:3f396ca6 at server1.Activeworlds.com: > HI , few months ago, a friend asked me for a bot to modify terrain > so I made Terraformer using Visual C net. it was my first bot in C++ > :) it is a console based bot that let the users interact with it via > the chat it has a basic rights feature so you can allow only few ppl > to have full access to it > it uses only 1 instance and is monothreaded but it still accept > several users requests in the same time ( using a queue to schedule > them) it loads terrain page when necessary so it can build way beyond > world limit. > > It is poorly commented but I hope this will help you > > Regards, > MilesTeg > > PS: if you want to compile it , you will need the boost library ( used > for the regexp) > Vous etes un ange :) -- If polluting the Environment is against the law it follows that human procreation should be outlawed chazbot?Apr 19, 2003, 6:42pm
the writer of chazbot was severly ill from a virus and is now getting
slowly back to health again. Chazbot will be continued, betatesters are sorely needed....... "panther1403" <panther1403 at hotmail.com> wrote in news:3ea18c1f at server1.Activeworlds.com: > Is chazbot still under developement? I have used the beta and it looks > great but still has lots of bugs. The web site for it hasnt been > updated for a long time. > > > chazbotApr 21, 2003, 6:32am
version 0.9 build 134 of Chazbot is now available at
www.petrossa.com/Chazbot |