jw // User Search

jw // User Search

1  2  3  |  

unresolved external symbols

Oct 11, 1998, 5:04pm
and in vc4.0?

[View Quote] > Well,
>
> in VC5 for example you go to Project Settings, select the linker tab, and
> enter "aw.lib" in the "additional libraries" field. If you forget that, you
> get the linker errors below.
>
> Could it be that you compiled other sample bots or programms using different
> settings ? or using a makefile ?
>
> Walter
>
> Jan-willem De Bleser schrieb in Nachricht
> <3620C42B.7AEFB4EE at mediaone.net>...
> change
>
> other
> aw.lib

unresolved external symbols

Oct 11, 1998, 5:06pm
Thanks. it worked. roadbuilder will soon be posted and source if you want

[View Quote] > Well,
>
> in VC5 for example you go to Project Settings, select the linker tab, and
> enter "aw.lib" in the "additional libraries" field. If you forget that, you
> get the linker errors below.
>
> Could it be that you compiled other sample bots or programms using different
> settings ? or using a makefile ?
>
> Walter
>
> Jan-willem De Bleser schrieb in Nachricht
> <3620C42B.7AEFB4EE at mediaone.net>...
> change
>
> other
> aw.lib

unresolved external symbols

Oct 11, 1998, 5:19pm
ok. now i have another problem. i have the program. it seems fine, but when i run
it, nothing is displayed. i know that the account is wrong, but it doesnt display
the error message. nothing happens.

[View Quote] > Thanks. it worked. roadbuilder will soon be posted and source if you want
>
[View Quote]

unresolved external symbols

Oct 11, 1998, 8:08pm
#include <aw.h>
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <fstream.h>
#include <iostream.h>
#include <string.h>

main (int argc, char *argv[])
{

int rc;
char junk[1], input[81];

printf("Created by Jan-willem De Bleser. Debleser at mediaone.net\n\n");

if (rc = aw_init (AW_BUILD)) {
fprintf(stderr, "Unable to initialize API (reason %d)\n", rc);
printf("Press any key to continue");
gets (junk);
exit (1);
}

if (rc = aw_create (0, 0, 0)) {
fprintf(stderr, "Unable to create bot instance (reason %d)\n", rc);
printf("Press any key to continue");
gets (junk);
exit (1);
}

aw_int_set (AW_LOGIN_OWNER, 268211);
aw_string_set (AW_LOGIN_PRIVILEGE_PASSWORD, "5402");
aw_string_set (AW_LOGIN_APPLICATION, "");
aw_string_set (AW_LOGIN_NAME, "NULL");
if (rc = aw_login ()) {
fprintf(stderr, "Unable to login (reason %d)\n", rc);
printf("Press any key to continue");
gets (junk);
exit (1);
}

if (rc = aw_enter (argv[1], 0)) {
fprintf(stderr, "Unable to enter world (reason %d)\n", rc);
printf("Press any key to continue");
gets (junk);
exit (1);
}

aw_int_set (AW_MY_X, 0); /* E/W */
aw_int_set (AW_MY_Z, 0); /* N/S */
aw_int_set (AW_MY_YAW, 0); /* angle facing */
aw_int_set (AW_MY_TYPE, 0);
if (rc = aw_state_change ()) {
fprintf(stderr, "Unable to change state (reason %d)\n", rc);
printf("Press any key to continue");
gets (junk);
exit (1);
}

while (!aw_wait (1))
{
if(_kbhit())
{
gets(input);
if(strstr(input, "build"))
{
int north, west, length, rc, count;

printf("\nNorth?");
scanf("%d", north);

printf("\nWest?");
scanf("%d", west);

printf("\nHow long?");
scanf("%d", length);

for(count = 0; count < length; count++)
{
aw_int_set (AW_OBJECT_X, west * 1000);
aw_int_set (AW_OBJECT_Y, 0);
aw_int_set (AW_OBJECT_Z, north * 1000);
aw_string_set (AW_OBJECT_MODEL, "street1.rwx");
if (rc = aw_object_add ())
printf ("Unable to add object (reason %d)\n", rc);
else
puts ("Object added");

west = west + 500;
north = north + 500;
}
}

if(strstr(input, "exit"))
exit(0);
}
}

aw_destroy ();
aw_term ();
return 0;

}

unresolved external symbols

Oct 11, 1998, 8:10pm
i trust nobody will steal it.

[View Quote] > Post the code dude.
>
> Edward Sumerfield.
>
[View Quote]

unresolved external symbols

Oct 11, 1998, 8:10pm
i trust nobody will steal it and release a roadbuilder of their own bfore me.

[View Quote] > Post the code dude.
>
> Edward Sumerfield.
>
[View Quote]

unresolved external symbols

Oct 11, 1998, 8:45pm
i did exactly what you said, but got a blank console. im gonna try it in msdos
mode

[View Quote] > Jw,
>
> your code compiles, links and runs fine here, and displays a login error as
> you expected.
>
> i can't see a problem in the source.
>
> you would have to give as much information as possible about what you tried,
> what you entered and so on.
>
> walter
>
> Jw schrieb in Nachricht <36212CF1.3DCE681F at mediaone.net>...
> me.
> when
> doesnt

unresolved external symbols

Oct 11, 1998, 8:52pm
i fixed it. it was an error. i rebooted and it went away

[View Quote] > Jw,
>
> your code compiles, links and runs fine here, and displays a login error as
> you expected.
>
> i can't see a problem in the source.
>
> you would have to give as much information as possible about what you tried,
> what you entered and so on.
>
> walter
>
> Jw schrieb in Nachricht <36212CF1.3DCE681F at mediaone.net>...
> me.
> when
> doesnt

unresolved external symbols

Oct 11, 1998, 8:54pm
can anyone lend me a privelege pass because cof hasnt renewed my account, so i
cant try the bot.

[View Quote] > i fixed it. it was an error. i rebooted and it went away
>
[View Quote]

SDK update

Oct 13, 1998, 9:31pm
didnt you read what i said in the last message, Eep? go away

[View Quote] > Add more non-bot application ideas...
>
[View Quote]

SDK update

Oct 13, 1998, 10:14pm
i know, but eep is an a**hole

[View Quote] > He doesn't have to, Jw. And more non-bot-like application ideas WOULD be
> nice :) For example, how about a PROGRAM that creates weather conditions
> at a world's GZ based on RL conditions (got off the Web) for a city...
> it would build rain.rwx, snow.rwx, clouds.rwx, sun.rwx, etc. at the
> world's GZ...
>
[View Quote]

roadbuilder

Oct 14, 1998, 8:51am
good ideas. ill think about it

[View Quote] > Suggest you mention that size of the download in the subject line. 227K
> takes my machine down for a while.
>
> Having said that I would have downloaded it anyway. Nice work.
>
> I notice it is accepting commands from the robot runners keyboard. Might I
> suggest adding an avatar_add event and a chat event and allowing anyone to
> use the robot that is running on your machine. You could have a "road
> builder storage closet". When someone wants to build a road they go to your
> closet, checkout a road builder and tell it what to build.
>
> I would think that could be run by world owners as a utility to use in their
> world. This would remove the problem of everyone having to learn how to
> install and run robobuilder. They just use an in-world robot.
>
> Good work.
>
> Edward Sumerfield.
>
[View Quote]

SDK apps tied to other programs ?

Oct 15, 1998, 6:45pm
[View Quote] > Okay, jstu something i was talking to about with someone else today, we
> were talking about wishing there was Forte VFX VR helmet support for AW,
> for that true cyberspace feel ( forte's are cheap cheap VR helmets for
> about $300 US), that go us onto thinking about not being able to type
> while we had it on . ..theenn, i started thinking "would it be possible
> for AW to take data from one of the many (tho not by any means perfect)
> voice to text proggies around via SDK functions ?

if you had a program that took your voice, stored it as text in a file, then
sdk could open it. you simply have to use the C command to open the file in
ASCII mode. tell it to open, maybe, every 30sec, and if there is new text,
say it in aw. but that would only work in the bot, not actually
activeworlds.

>
>
> thats th jist really, can the SDK take data from an external program in
> that way ? Im not sure if im getting this across properly. ... but hay,
> oh well , im an idea kinda person =)
>
> Fac.

SDK apps tied to other programs ?

Oct 15, 1998, 11:01pm
ive only seen software that has its own wordprocessing stuff

[View Quote] > The main use for voice recognition software is that you use it to type. type
> in word processors, in excel sheets and in whatever.
>
> that means almost every software of this kind is able to input characters as
> keystrokes into other applications.
>
> since you can write a GUI bot for use to talk and listen inside aw, you can
> easily have TrueVoice or ViaVoice or whatever they'calles talk through a bot
> AND, of course talk in the AW browser itself.
>
> no need for transfer using a text file.
>
> Jw schrieb in Nachricht <36265EDC.BF1656EB at mediaone.net>...
> then

A bit of help :)

Oct 16, 1998, 7:24pm
i worked on that a while ago. i created a simple ini file reader which
may be useful:

source:
#include <time.h>
#include <math.h>
#include <errno.h>
#include <ctype.h>
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdargs.h>

main()
{
char *file_loc = "E:\\BORLANDC\\OUTPUT\\test.ini";
char line1[81], line1_default[] = "user=";
char line2[81], line2_default[] = "install dir=";
FILE *fp;
size_t change_loc;
int count = 0, count_to = 0;

fp = fopen(file_loc, "r"); /* this */
fgets(line1, 80, fp); /* code */
fgets(line2, 80, fp); /* area */
/* checks */
change_loc = strspn(line1, line1_default); /* the */
if(change_loc < 5) /* ini */
{ /* file */
printf("Corrupt ini file. Please reinstall."); /* for */
exit(1); /* changes */
} /* to */
/* the */
change_loc = strspn(line2, line2_default);/* setup */
if(change_loc < 12) /* of */
{ /* the */
printf("Corrupt ini file. Please reinstall."); /* ini */
exit(1); /* prog */
} /* file */


//start ini file line 1
fseek(fp, 5, 0);

count_to = (strlen(line1) - 5);

line1_count_start:;
if(line1[count] != '\n' && line1[count] != '\0' && line1[count] !=
'\r')
line1[count++] = fgetc(fp);
if(count < count_to)
goto line1_count_start;

line1[--count] = '\0';
//end ini file line 1


//start ini file line 2
fseek(fp, (strlen(line1) + 19), 0);

count_to = (strlen(line2) - 12);
count = 0;

line2_count_start:;
if(line2[count] != '\n' && line2[count] != '\0' && line2[count] !=
'\r')
line2[count++] = fgetc(fp);
if(count < count_to)
goto line2_count_start;

line2[count] = '\0';
//end ini file line 2





printf("Hello %s. This program is installed to %s", line1, line2);
}

User counts

Oct 20, 1998, 9:26am
the bot doesnt count as a person, so cof lets him have 8+1

[View Quote] > Alright... I've heard a lot of talk about the 2.1 Server and Browser... but I
> don't know much about it, myself... is there somewhere that the information on
> it is posted?
> Next point... I'm wondering bout the world bot user counts... I was on a
> friends world, that had a user limit of 8 people. There were 8 people in there
> that night, plus his bot. The worlds list showed a user count of 9 people...
> what accounts for that?
>
[View Quote]

Bot logging...

Oct 20, 1998, 10:15pm
or in c++

function()
....
ofstream outfile("chat.log", ios::app); //opens a file to append(add) to
outfile << "written to file" << endl; //adds text to the end, much like
cout
....
outfile.close() //i think this is correct
}


[View Quote] > These days you have to specify the language you are programming in. This is
> such a diverse SDK that its hard to tell.
>
> Let me assume C.
>
> #include <stdio.h>
> main() {
>
> FILE *log_file;
> char *text="the meaning of life the world and everythin is";
>
> log_file = fopen("log_file.txt", "w+");
> if (!log_file) {
> printf("Doh.");
> } else {
> fprintf(log_file, "This is writting to the log file: %s %d.\n",
> text, 42);
> close(log_file);
> }
> }
>
> Edward Sumerfield.
>
[View Quote]

Bot logging...

Oct 21, 1998, 8:16pm
fprintf(log_file, "message here as in printf")

[View Quote] > I got this program you listed here to work, but how would I get the bot to....
> for instance, greet people and then log the event to the file?
>
[View Quote]

Bot logging...

Oct 22, 1998, 9:23am
there is a problem with your code: scope. the file variable can only be used in
the main program in your example. here are the changes:
main {
aw_init
aw_create
aw_login
aw_enter
set position

set chat callback.

while aw_wait {
}

aw_destroy
close();
}

chat callback {

fopen(); //you have to do this in every function you want to be able
to save
get chat message
fprintf(log, "Saw chat '%s'.\n", chat message);
}


[View Quote] > All you have to do is make sure that that each part of the small program
> goes in the right place in the greeter bot.
>
> I will use pseudo code to make it quick but it is the same as the sample
> proggie.
>
> main {
> aw_init
> aw_create
> aw_login
> aw_enter
> fopen();
> set position
>
> set chat callback.
>
> while aw_wait {
> }
>
> aw_destroy
> close();
> }
>
> chat callback {
>
> get chat message
> fprintf(log, "Saw chat '%s'.\n", chat message);
> }
>
> Edward Sumerfield.
>
[View Quote]

Bot logging...

Oct 22, 1998, 7:19pm
i told you, this doesnt work. as soon as you call another function, the variable
logfile goes out of scope. i hope you know what scope means.

[View Quote] > Don't use fopen everytime you write a log line unless you use fclose() in
> the same function to close the file again.
>
> its more efficient to keep the log filehandle variable at global scope
>
> FILE *logfile;
>
> main()
> {
> logfile = fopen ("mylog.txt", "a"); // "w" overwrites "a" appends
> to existing log
> if (!logfile)
> {
> printf("warning: can't open logfile for writing. no log is written
> in this session\n");
> }
> aw_init
> aw_create
> aw_login
> aw_enter
> set position
>
> set chat callback.
>
> while aw_wait {
> }
>
> aw_destroy
> if (logfile) fclose(logfile);
> close();
> }
>
> chat callback
> {
> get chat message
> if (logfile)
> {
> fprintf(logfile, "Saw chat '%s'.\n", chat message);
> }
> }
>
> Jw schrieb in Nachricht <362F15A0.AD930AA5 at mediaone.net>...
> used in
> able
> This
> %d.\n",

Bot logging...

Oct 22, 1998, 9:06pm
let me try to explain it easily. a variable declared outside of a function is called
global, and all functions have acess to it. a variable declared inside or in the
parameters of a function are local, and are for that function only. they cant be used
in any other function. thus, when you declare logfile in main, you can only use it in
main. as soon as you enter another function, logfile is unreachable, unless you pass a
pointer to it, which im not gonna get into. i reccomend you check out some internet
references/courses to help you with that. btw, scope is whether a variable can be
acessed globally or locally

[View Quote] > My shaky knowledge of C says it doesn't... in the example below, I *think* a is
> accessible everywhere, b only in the main() function, and c, xx, and yy (the latter
> two parameters) from within the xyz() function. Therefore, logfile should be
> accessible everywhere.
>
> int a;
>
> int xyz(int xx, int yy);
>
> main ()
> {
> int b;
> // code
> }
>
> int xyz (int xx, int yy)
> {
> float c;
> // code
> }
>
[View Quote]

Bot logging...

Oct 22, 1998, 10:37pm
ok. i just wasnt sure. i didnt quite understand your response, so i wrote this one to make
sure. but i can see you do.

[View Quote] > *ahem* both Walter and me said exactly what you said just in code terms - both Walter's
> "FILE *logfile;" and my "int a;" examples are declared before main, outside of a function,
> and thus are globally acessible variables. I know this and I haven't even got to the
> 'variable scope' part of my C book yet (although I think I did read it once, just haven't
> done the examples etc. there)
>
[View Quote]

Bot logging...

Oct 22, 1998, 10:43pm
Walter, i owe you an apology. i did not notice the decleration of the variable outside the
main. if you do it the way you did, then it works.

[View Quote] > *ahem* both Walter and me said exactly what you said just in code terms - both Walter's
> "FILE *logfile;" and my "int a;" examples are declared before main, outside of a function,
> and thus are globally acessible variables. I know this and I haven't even got to the
> 'variable scope' part of my C book yet (although I think I did read it once, just haven't
> done the examples etc. there)
>
[View Quote]

A neat bot

Oct 20, 1998, 10:40pm
if cof were to lift the bot regulation to 9 bots, i know a great bot for
places like a museum or a park, where people come to look around. you
could have one bot that, when avatar_add is called, it creates a new
instance of a bot who can then act as a personal guidebot in worlds of
up to 8 people. has anyone thougth of making something like that?

HamBot using SDK, no entry in Atlantis?

Oct 22, 1998, 9:02pm
[View Quote] > I started using the SDK option in HamBot today. In Beta world it logs
> fine, in Atlantis the program freezes when getting world info. Can
> somebody explain that?
>
> I've been working at a bot script for HamBot for a few days in 'hambot
> mode', and this developmen is frustrating, since I 'live' in Atlantis.
>
> What priviliges do SDK bots have. May they build, send telegrams...
> just as its citizen owner does?

all, yes, no.

>
>
> TIA, XelaG
>
> Alex Grigny de Castro
> name: agrigny
> domain: xs4all.nl
> e-mail: <name> at <domain>

Marketing research(sort of)

Oct 22, 1998, 10:35pm
i dont know why anyone hasnt ever asked the general people what kind of
world they want. I am asking that question now. What do you want in a
world. I am interested in seeing what is popular and maybe making it a
reality.

Jw

Marketing research(sort of)

Oct 23, 1998, 7:55pm
ok. just wanted everyones opinion

[View Quote] > Please do not crosspost your posts to so many newsgroups. At least, please
> don't crosspost to the SDK newsgroup when your post is not related to the
> SDK. Thanks!
>
> -Roland
>
> ps. if you are going to reply to this thread, please be sure to check the
> "Newsgroups:" field of your post and remove "sdk" before posting your reply.
>
[View Quote]

Marketing research(sort of)

Nov 6, 1998, 10:20pm
i might try that with bots and stuff.


[View Quote] > I think that we really need a world where it is like the real world. Where it
> would take money to get supplies to build something. And then you would sell stuff
> or you would do some kind of service. Such as police, fire, hospital,
> construction, autosales (you would drive around not walk) airports, spaceport,
> ect, ect, ect. You would make money to buy food clothes other persoanl items
> (comb, toothpaste) if you wanted that kind of detail. But mostly to buy more
> supplies and make a better building and or make better products to sell for more
> money. What do you think of this. You can change the ideas but i would love to
> see a world that had a point to it not just build for the heck of it. That would
> be so much more fun.
>
[View Quote]

Marketing research(sort of)

Nov 7, 1998, 6:45pm
OVER MY DEAD BODY!! I WAS TALKING ABOUT VIRTUAL MONEY, NOT REAL MONEY!! THAT WOULD RUIN
ACTIVEWORLDS!!

[View Quote] > [Too many cross posts, snip worldbuilders and awcommunity]
>
> As soon as you get financial you are going to have to get AW involved because they will
> have to build in-world interfaces that support secure interactions. Just chatting "heres
> 10 bucks" will not do it.
>
> 1. You are going to have citizen owned objects that represent money and no one, not
> even all powerful, world owners can delete them.
>
> 2. There must be a means to purchase these objects, it would have to be something
> built into the browser that allows you to enter your credit card number then connects to
> the world server to register the purchase.
>
> 3. You will have to be able to have these objects available but not sitting in a pile
> in-world. It would be a shame to have to have a pile of little gold bars sitting in the
> corner of your house that represented all your money. The browser, world interaction
> would have to be able to dynamically create a gold bar when needed.
>
> 4. Once a gold bar is generated you need a secure means of transferring ownership to
> another citizen. Again the browser must have something built into it to support money
> ownership changes that is very secure.
>
> 5. And, of coarse, you need a way of cashing in your money. Maybe putting it back on
> your credit card.
>
> None of this is easy.
>
> Edward Sumerfield.
>
[View Quote]

Marketing research(sort of)

Nov 9, 1998, 7:25pm
Are you saying that you agree with virtual money or real money?

[View Quote] > An interesting concept, not your dead body, but the idea of making money non financial. I
> guess I would have to ask why because I can't see any in-world stuff that I would want to
> purchase with it. Unless you wanted to start a poker league maybe.
>
> Edward Sumerfield
>
[View Quote]

1  2  3  |  
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