Re: MAP problems (the mapsnip)

From: Rama (rama@biella.alpcom.it)
Date: 09/22/99


>-----------------------------------------------------
>log("Loading Surface Map. ");
>
>  //Load the map vnums from a file into an array
>
>  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);
>          }



add

FILE *mapfile = NULL;
int rowcounter;
int colcounter;
int vnum_read;


change mapfile = fopen("c:\\surface.map", "r");  to mapfile =
fopen("surface.map", "r");  and put surface.map into lib dir.
then rowcounter <= map_rows must be correct to rowcounter < MAP_ROWS (this
int is give by Peter for my dg script error) ...i also find that you must
have the 1st and last room in your surface.map that are not connect to other
room and that don't have map flag..

bye

(this is my 1st try to help someone mail :))


     +------------------------------------------------------------+
     | 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