/* Checks if the room is within the wilderness */ #define IN_WILDERNESS(v) ((v) >= WILDERNESS_LOW_VNUM && \ (v) <= WILDERNESS_HIGH_VNUM)
/****************************************************************************** Required operation prototypes for wild_data.c ******************************************************************************/
char map_data args( ( int x, int y ) ); void set_map_data args( ( int x, int y, char room_type ) ); bool map_changed args( ( int x, int y ) ); void set_map_changed args( ( int x, int y, bool changed ) ); MAP_T map_big args( ( int x, int y ) ); void set_world_saving args( ( bool save_world ) ); bool check_world_saving args( ( void ) );
/****************************************************************************** Required operation prototypes for wild_io.c ******************************************************************************/
void wild_write args( ( int x, int y ) ); void wild_read args( ( int x, int y ) ); void world_read args( ( void ) );
/****************************************************************************** Required operation prototypes for wild_move.c ******************************************************************************/
void put_area_vnum args( ( int vnum ) ); int next_home args( ( CHAR_DATA *ch, int door ) ); RID_T * next_room args( ( int x, int y, int room ) ); void char_from_wilderness args( ( CHAR_DATA *ch ) ); RID_T * wilderness_room args( ( CHAR_DATA *ch, RID_T *room ) );
/****************************************************************************** Required operation prototypes for wild_info.c ******************************************************************************/
void draw_map args( ( CHAR_DATA *ch ) );
/****************************************************************************** Required operation prototypes for wild_spec.c ******************************************************************************/
/****************************************************************************** Required operation prototypes for wild_update.c ******************************************************************************/
void wilderness_update args( ( void ) );
not familiar with fixing this error.. any help would be appreciated.
07 Aug, 2010, Chris Bailey wrote in the 2nd comment:
Votes: 0
Sounds like some missing definitions? Maybe forgetting to include a header file? I dunno, but if you include a header in a header watch out for redefinition problems! :P
Could i have been getting these errors because wild.h was included in merc.h as well as the seven wild.c files? I took the include for wild.h out of merc.h and all the files compiled, the 7 wilderness files also compiled, and they have the wild.h include.
07 Aug, 2010, Chris Bailey wrote in the 4th comment:
Votes: 0
Seems like a reasonable explanation. I have a very limited knowledge of C, hopefully somebody else will be able to shine more light on the situation soon. =)
Could i have been getting these errors because wild.h was included in merc.h as well as the seven wild.c files? I took the include for wild.h out of merc.h and all the files compiled, the 7 wilderness files also compiled, and they have the wild.h include.
It sounds like when wild.h was included in merc.h, it was included at the top of the file before the definition of the args() macro (and before the declaration of whatever type RID_T is, etc), and the compiler choked on it.
Could i have been getting these errors because wild.h was included in merc.h as well as the seven wild.c files? I took the include for wild.h out of merc.h and all the files compiled, the 7 wilderness files also compiled, and they have the wild.h include.
The snippet comes with a "wild.txt" diff file, showing you which changes you need to make to which files. The only addition you need to make to merc.h is to add a #define, there's no need to add a #include "wild.h".
However the snippet was released 12 years ago, and even then it was pretty raw - thus the disclaimer about it requiring some work to get running.
your right kavir.. my bad.. it doesnt say anywhere in the txt file to include it in merc.h and for every file u edit it says to include it in each edited file.. Thanks, -Xrak
Hi.. i got wilderness installed.. but have a few questions..
in wilderness it looks like this for me.. You are standing in the middle of nowhere.
<oo>
/—-MAP—-\ [60000] < * > Rocky, steep terrain leads up into these mountain peaks. You < | > dont see any blood sprayed on the surroundings. The sun rises < *-*-* > in the east. It is raining. There is lightning. < | | | > < *-*-X-*-* > < | | | > < *-*-* > < | > < * > \___________/
is the map of the wilderness suposed to be differant?
Also.. the wilderness seems unpopulated with geographic features.. seems every 'room' is the same..
is there a way to have wilderness lay out a random landscape?
i left read_world out when i put it in, so it would save then i was gonna put read back in.. tijer pointed out i forgot to do so.. only problem now is x and y coordinates arnt changing.. -Xrakisis
Well i just added the snippet to a GodWars 1995 based mud and i got it working with no problems apart from not remembering HOW to link areas to it… but other than that all is fine.. so im thinking perhaps you missed an important part of the patching!!
wild.h:183: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'args'
wild.h:184: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'args'
wild.h:185: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'map_changed'
wild.h:186: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'args'
wild.h:187: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'args'
wild.h:188: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'args'
wild.h:189: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'check_world_saving'
wild.h:195: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'args'
wild.h:196: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'args'
wild.h:197: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'args'
wild.h:203: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'args'
wild.h:204: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'args'
wild.h:205: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
wild.h:206: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'args'
wild.h:207: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
wild.h:213: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'args'
wild.h:226: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'args'
not familiar with fixing this error.. any help would be appreciated.