----- Original Message -----
From: Rama <rama@biella.alpcom.it>
To: <CIRCLE@post.queensu.ca>
Sent: Monday, July 26, 1999 1:13 PM
Subject: Re: question for a newbie
*snip*
> 4 the error are in this part of code
> mapfile = fopen("c:\\surface.map", "r");
>
> //fscanf(mapfile, "%d %d", &MAP_ROWS, &MAP_COLS);
>
> for (rowcounter = 0; rowcounter <= MAP_ROWS; rowcounter++) {
> for (colcounter = 0; colcounter <= MAP_COLS; colcounter++) {
> fscanf(mapfile, "%d", &vnum_read);
> mapnums[rowcounter][colcounter] = real_room(vnum_read);
Heh, that mapsnippet is a pain in the butt to get working. I'd almost call
it not a snippet at all, but anyway:
In Linux, there is no "C:\", make that "c:\\surface.map" actually point to
the file.
There are a LOT of bugs in that snippet, and you'll use hordes of memory if
you have a large world. I'd suggest actually coding your own wilderness,
and save yourself time and heartbreak.
-k.
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST