okay so i extracted the 2 files in the src folder
ackmapper.h
ackmapper.c
i edited the makefile and added ackmapper.c
what now? i compiled it and i got like
make -s smaug
Compiling o/ackmapper.o....
In file included from ackmapper.c:47:
ackmapper.h:29:1: "/*" within comment
ackmapper.h:40:18: merc.h: No such file or directory
In file included from ackmapper.c:47:
ackmapper.h:43: error: parse error before '/' token
In file included from ackmapper.c:47:
ackmapper.h:67: warning: redundant redeclaration of `rev_dir' in same scope
mud.h:3455: warning: previous declaration of `rev_dir'
ackmapper.h:82: error: parse error before "_of_sight"
ackmapper.h:82: warning: function declaration isn't a prototype
ackmapper.c:48:17: gsn.h: No such file or directory
ackmapper.c:121: error: `SECT_TREE' undeclared here (not in a function)
ackmapper.c:121: error: initializer element is not constant
ackmapper.c:121: error: (near initialization for `map_info[17].sector_type')
ackmapper.c:121: error: initializer element is not constant
ackmapper.c:121: error: (near initialization for `map_info[17]')
ackmapper.c:122: error: `SECT_FIRE' undeclared here (not in a function)
ackmapper.c:122: error: initializer element is not constant
ackmapper.c:122: error: (near initialization for `map_info[18].sector_type')
ackmapper.c:122: error: initializer element is not constant
ackmapper.c:122: error: (near initialization for `map_info[18]')
ackmapper.c:123: error: `SECT_QUICKSAND' undeclared here (not in a function)
ackmapper.c:123: error: initializer element is not constant
ackmapper.c:123: error: (near initialization for `map_info[19].sector_type')
ackmapper.c:123: error: initializer element is not constant
ackmapper.c:123: error: (near initialization for `map_info[19]')
ackmapper.c:124: error: `SECT_ETHER' undeclared here (not in a function)
ackmapper.c:124: error: initializer element is not constant
ackmapper.c:124: error: (near initialization for `map_info[20].sector_type')
ackmapper.c:124: error: initializer element is not constant
ackmapper.c:124: error: (near initialization for `map_info[20]')
ackmapper.c:125: error: `SECT_GLACIER' undeclared here (not in a function)
ackmapper.c:125: error: initializer element is not constant
ackmapper.c:125: error: (near initialization for `map_info[21].sector_type')
ackmapper.c:125: error: initializer element is not constant
ackmapper.c:125: error: (near initialization for `map_info[21]')
ackmapper.c:126: error: `SECT_EARTH' undeclared here (not in a function)
ackmapper.c:126: error: initializer element is not constant
ackmapper.c:126: error: (near initialization for `map_info[22].sector_type')
ackmapper.c:126: error: initializer element is not constant
ackmapper.c:126: error: (near initialization for `map_info[22]')
ackmapper.c:128: error: initializer element is not constant
ackmapper.c:128: error: (near initialization for `map_info[23]')
ackmapper.c:489:5: "/*" within comment
ackmapper.c: In function `string_justify':
ackmapper.c:491: error: `pbuf' undeclared (first use in this function)
ackmapper.c:491: error: (Each undeclared identifier is reported only once
ackmapper.c:491: error: for each function it appears in.)
ackmapper.c:496: error: `last' undeclared (first use in this function)
ackmapper.c:506: error: `currline' undeclared (first use in this function)
ackmapper.c:507: error: `pret' undeclared (first use in this function)
ackmapper.c:508: error: `blen' undeclared (first use in this function)
ackmapper.c:508: error: `term_width' undeclared (first use in this function)
ackmapper.c:516: error: `numlines' undeclared (first use in this function)
ackmapper.c:518: error: `ret' undeclared (first use in this function)
ackmapper.c:510: warning: value computed is not used
ackmapper.c: At top level:
ackmapper.c:552: warning: declaration of `map' shadows a global declaration
ackmapper.h:65: warning: shadowed declaration is here
ackmapper.c: In function `disp_map':
ackmapper.c:594: warning: implicit declaration of function `map_format'
ackmapper.c:594: warning: passing arg 2 of `strcpy' makes pointer from integer
ithout a cast
ackmapper.c:596: error: `ro' undeclared (first use in this function)
ackmapper.c:596: error: parse error before "ws"
ackmapper.c:598: warning: passing arg 2 of `strcat' makes pointer from integer
ithout a cast
ackmapper.c: In function `MapArea':
ackmapper.c:639: error: structure has no member named `nex'
ackmapper.c:640: error: parse error before "t_in_room"
ackmapper.c:694: error: `door_' undeclared (first use in this function)
ackmapper.c:694: error: parse error before "type"
ackmapper.c:699: error: `SE' undeclared (first use in this function)
ackmapper.c:699: error: parse error before "CT_UNSEEN"
ackmapper.c: At top level:
ackmapper.c:709: error: parse error before "return"
ackmapper.c: In function `ShowRoom':
ackmapper.c:714: warning: declaration of `map' shadows a global declaration
ackmapper.h:65: warning: shadowed declaration is here
ackmapper.c:714: warning: declaration of `ch' shadows a parameter
ackmapper.c:712: warning: shadowed declaration is here
ackmapper.c:714: warning: redundant redeclaration of `disp_map' in same scope
ackmapper.c:553: warning: previous declaration of `disp_map'
ackmapper.c: In function `do_mapper':
ackmapper.c:883: error: `gsn_spy' undeclared (first use in this function)
make[1]: *** [o/ackmapper.o] Error 1
make: *** [all] Error 2
i think i am doing something wrong. Or maybe i have to edit the do_look and the other map functions.
Ackmapper... i see. But one more question. Does the smaugfuss already have the automapper thing or okay nevermind... Thanks i am downloading it RIGHT NOW. weesh me luck
i did everything that it said but when i compile it i get this.
make -s smaug
Compiling o/imc.o....
Compiling o/i3.o....
Compiling o/act_comm.o....
Compiling o/act_info.o....
Compiling o/act_move.o....
Compiling o/act_obj.o....
Compiling o/act_wiz.o....
Compiling o/ban.o....
Compiling o/boards.o....
Compiling o/build.o....
Compiling o/clans.o....
Compiling o/color.o....
Compiling o/comm.o....
Compiling o/comments.o....
Compiling o/const.o....
Compiling o/db.o....
Compiling o/deity.o....
Compiling o/fight.o....
Compiling o/handler.o....
Compiling o/hashstr.o....
Compiling o/hotboot.o....
Compiling o/imm_host.o....
Compiling o/interp.o....
Compiling o/magic.o....
Compiling o/makeobjs.o....
Compiling o/mapout.o....
mapout.c:55: error: parse error before "byte"
mapout.c:55: warning: function declaration isn't a prototype
mapout.c:56: error: parse error before "byte"
mapout.c:56: warning: function declaration isn't a prototype
mapout.c:57: error: parse error before "byte"
mapout.c:57: warning: function declaration isn't a prototype
mapout.c:208: error: parse error before "byte"
mapout.c:209: warning: function declaration isn't a prototype
mapout.c: In function `draw_map':
mapout.c:217: error: `map' undeclared (first use in this function)
mapout.c:217: error: (Each undeclared identifier is reported only once
mapout.c:217: error: for each function it appears in.)
mapout.c:275: error: `ch' undeclared (first use in this function)
mapout.c: In function `do_lookmap':
mapout.c:384: error: `byte' undeclared (first use in this function)
mapout.c:384: error: parse error before "map"
mapout.c:404: error: `map' undeclared (first use in this function)
mapout.c: At top level:
mapout.c:415: error: parse error before "byte"
mapout.c:416: warning: function declaration isn't a prototype
mapout.c: In function `CheckRoom':
mapout.c:419: error: `CX' undeclared (first use in this function)
mapout.c:419: error: `CY' undeclared (first use in this function)
mapout.c:421: error: `location' undeclared (first use in this function)
mapout.c:421: error: `map' undeclared (first use in this function)
mapout.c: At top level:
mapout.c:447: error: parse error before "byte"
mapout.c:448: warning: function declaration isn't a prototype
mapout.c: In function `CheckExitDir':
mapout.c:451: error: `location' undeclared (first use in this function)
mapout.c:451: error: `ExD' undeclared (first use in this function)
mapout.c:454: error: `map' undeclared (first use in this function)
mapout.c:454: error: `X' undeclared (first use in this function)
mapout.c:454: error: `Y' undeclared (first use in this function)
make[1]: *** [o/mapout.o] Error 1
make: *** [all] Error 2
bash-2.05b$
can someone tell me whats goin on? Am i doing something wrong? It says you can put that code in smaug but its not working. I followed everything this time and i thought this was gonna be my first successful snippet but nooo...
EDIT: BTW i am using smaugfuss that i downloaded from this website
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.