Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
 Couple bugs
Today, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Sogou, Google

Members: 0
Guests: 9
Stats
Files
Topics
Posts
Members
Newest Member
477
3,705
19,232
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » AFKMud Support & Development » Adding a new Continent
Forum Rules | Mark all | Recent Posts

Adding a new Continent
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Jun 10, 2003, 7:14 pm   Last edited Nov 24, 2007, 8:44 pm by Samson
Go to the top of the page
Go to the bottom of the page

kilroy
Magician
GroupMembers
Posts122
JoinedMay 1, 2002

Heya Guys, and Gals if there are any,
I know that I helped rewrite the newcontinent.txt, but subsiquent changes to the mud, have really got me lost. and I will gladly rewrite version 2 of the new continent helpfile if I could figure what I am doing wrong and fix it.
These are the errors in compile:
 Compiling o/overland.o....
overland.c: In function `find_continent':
overland.c:3154: `OVERLAND_MINTURN' undeclared (first use in this function)
overland.c:3154: (Each undeclared identifier is reported only once
overland.c:3154: for each function it appears in.)
overland.c: In function `enter_map':
overland.c:3186: `OVERLAND_MINTURN' undeclared (first use in this function)
make[2]: *** [o/overland.o] Error 1
make[2]: Leaving directory `/usr/local/mud/afkmud/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/mud/afkmud/src'
make: *** [clean] Error 2

THis tells me that my error is in overland.c -
/* Fairly self-explanitory. It finds out what continent an area is on and drops the PC on the appropriate map for it */
ROOM_INDEX_DATA *find_continent( CHAR_DATA *ch, ROOM_INDEX_DATA *maproom )
{
   ROOM_INDEX_DATA *location = NULL;
     
   if ( maproom->area->continent == ACON_ALSHEROK )
   {
        location = get_room_index( OVERLAND_ALSHEROK );
        ch->map = MAP_ALSHEROK;
   }
   
   if ( maproom->area->continent == ACON_ELETAR )
   {
        location = get_room_index( OVERLAND_ELETAR );
        ch->map = MAP_ELETAR;
   }
     
   if ( maproom->area->continent == ACON_ALATIA )
   {
        location = get_room_index( OVERLAND_ALATIA );
        ch->map = MAP_ALATIA;
   }
   
  if ( maproom->area->continent == ACON_MINTURN )
   {
        location = get_room_index( OVERLAND_MINTURN );
        ch->map = MAP_MINTURN;
   }  
   
   return location;
}

The Minturn part is the offending area of code - as you can see - it is exact in every way to the stock maps.
and I am not going to post the second area of code, suffice it to say that I have double and triple checked the area's of code, and the make dies on that spot every time.
Any help and ideas?
THanks Kilroy
PS. I do have the .raw in the maps, and i do have a minturn.are in the area directory.
       
Post is unread #2 Jun 10, 2003, 9:21 pm   Last edited Nov 24, 2007, 8:44 pm by Samson
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

#define OVERLAND_ALSHEROK 50000
#define OVERLAND_ALATIA 50500
#define OVERLAND_ELETAR 51000


You forgot to add OVERLAND_MINTURN to that list and define it accordingly.
       
Post is unread #3 Jun 11, 2003, 7:46 am   Last edited Nov 24, 2007, 8:44 pm by Samson
Go to the top of the page
Go to the bottom of the page

kilroy
Magician
GroupMembers
Posts122
JoinedMay 1, 2002

Samson !!!!

As Usual you are the Wizard Man

Thanks - I dont know how I missed that part.
I Mean just a few lines below that in overland.h is this part

#define MAP_FILE1 "alsherok.raw"
#define MAP_FILE2 "eletar.raw"
#define MAP_FILE3 "alatia.raw" 
#define MAP_FILE4 "minturn.raw"

mutter


Thanks Again
Kilroy
       
Pages:<< prev 1 next >>