Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Automapper

Automapper

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Halyanth   (1 post)  Bio
Date Mon 06 Jun 2005 08:04 AM (UTC)
Message
I am looking for an automapper snipet? Does anyone know of a really good one? Any help would be greatly appreciated.

Thanks!
Halyanth
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #1 on Mon 06 Jun 2005 11:01 AM (UTC)
Message
Sort of. There is the overland code from AFKMUD on afkmud.org and the Ackmapper code by DOTD also on afkmud.org

There's also another ANSII map snippet but I cannot seem to locate it right now.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Robert Powell   Australia  (367 posts)  Bio
Date Reply #2 on Mon 06 Jun 2005 11:37 AM (UTC)
Message
There is AckMapper, from the dodt website.

Just a guy having a bit of fun. Nothing more, nothing less, I do not need I WIN to feel validated.
Top

Posted by Dralnu   USA  (277 posts)  Bio
Date Reply #3 on Mon 06 Jun 2005 01:20 PM (UTC)
Message
I think there is the begining of one in SmaugFUSS, but I'm not sure.
Top

Posted by Lt_noodle   (39 posts)  Bio
Date Reply #4 on Sun 12 Jun 2005 05:39 AM (UTC)

Amended on Sun 12 Jun 2005 06:04 AM (UTC) by Lt_noodle

Message
i got this one. i think this is what you are looking for.

http://ftp.mudmagic.com/diku/merc/snippets/map.txt

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
Top

Posted by Robert Powell   Australia  (367 posts)  Bio
Date Reply #5 on Sun 12 Jun 2005 11:33 AM (UTC)
Message
I wouldnt use that snippet, ackmapper will pretty much drop in and compile, after change the sectors to suit.

Just a guy having a bit of fun. Nothing more, nothing less, I do not need I WIN to feel validated.
Top

Posted by Lt_noodle   (39 posts)  Bio
Date Reply #6 on Sun 12 Jun 2005 05:39 PM (UTC)
Message
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
Top

Posted by Lt_noodle   (39 posts)  Bio
Date Reply #7 on Sun 12 Jun 2005 06:06 PM (UTC)
Message
i downloaded ackmapper from here

http://www.afkmud.com/downloads.php?cat=other

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.
Top

Posted by Gatewaysysop2   USA  (146 posts)  Bio
Date Reply #8 on Sun 12 Jun 2005 07:15 PM (UTC)
Message
Quote:

ackmapper.h:29:1: "/*" within comment
ackmapper.h:40:18: merc.h: No such file or directory


Might be a good indication of where your problems are starting. I'm not saying this is the only problem, indeed that's probably far from the truth.

Still, look at what your errors are telling you.

"The world of men is dreaming, it has gone mad in its sleep, and a snake is strangling it, but it can't wake up." -D.H. Lawrence
Top

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.


27,703 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.