Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
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
Users Online
CommonCrawl, Yahoo!, Yandex

Members: 0
Guests: 3
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
612
Jacki72H
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Smaug Snippets » Zarius AFKMud ASCII Automapper
Forum Rules | Mark all | Recent Posts

Zarius AFKMud ASCII Automapper
< Newer Topic :: Older Topic > some problems with 1.7 codebase and

Pages:<< prev 1 next >>
Post is unread #1 Apr 10, 2005, 6:26 am
Go to the top of the page
Go to the bottom of the page

Kekkonen

GroupMembers
Posts3
JoinedApr 10, 2005

Hi, i was wondering if anybody has succesfully imported zarius ascii mapper to new 1.7 codebase. Seem's that it works fine with the 1.64 version just out-of-the-box. Is something done differently in 1.7 so that i have to also tweak the snippet?

-Kekkonen the utter newbie
       
Post is unread #2 Apr 10, 2005, 5:02 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Can you post some error messages or other things to give some kind of indication as to why it's broken? I'm sure Zarius as well as ourselves would appreciate a little more information to go on :)
       
Post is unread #3 Apr 14, 2005, 9:07 am
Go to the top of the page
Go to the bottom of the page

Kekkonen

GroupMembers
Posts3
JoinedApr 10, 2005

Sure, i have been testing this out couple days now, and pretty sure it contains no typos, and everything is done like in earlier version...Spam warning!

 rm -f o/*.o afkmud afkmud.def afkmud.exp core resolver resolver.o
make all
make[1]: Entering directory `/afki/afkmud/src'
make -s afkmud
make[2]: Entering directory `/afki/afkmud/src'
  Compiling o/act_comm.o....
  Compiling o/act_info.o....
cc1plus: warnings being treated as errors
act_info.c: In function `void do_look(CHAR_DATA*, char*)':
act_info.c:1501: warning: unused variable `char arg[2048]'
act_info.c:1502: warning: unused variable `char*pdesc'
act_info.c:1503: warning: unused variable `EXIT_DATA*pexit'
act_info.c:1504: warning: unused variable `CHAR_DATA*victim'
act_info.c:1505: warning: unused variable `OBJ_DATA*obj'
act_info.c:1506: warning: unused variable `ROOM_INDEX_DATA*original'
act_info.c:1507: warning: unused variable `sh_int door'
act_info.c:1508: warning: unused variable `int number'
act_info.c:1508: warning: unused variable `int cnt'
act_info.c: At global scope:
act_info.c:1645: parse error before `if'
act_info.c:1672: `ch' was not declared in this scope
act_info.c:1672: ISO C++ forbids declaration of `interpret' with no type
act_info.c:1672: `int interpret' redeclared as different kind of symbol
mud.h:2490: previous declaration of `void interpret(CHAR_DATA*, char*)'
act_info.c:1672: initializer list being treated as compound expression
act_info.c:1673: parse error before `return'
act_info.c:1684: `ch' was not declared in this scope
act_info.c:1684: ISO C++ forbids declaration of `interpret' with no type
act_info.c:1684: redefinition of `int interpret'
act_info.c:1672: `int interpret' previously defined here
act_info.c:1684: initializer list being treated as compound expression
act_info.c:1685: parse error before `return'
act_info.c:1716: ISO C++ forbids declaration of `count' with no type
act_info.c:1716: `obj' was not declared in this scope
act_info.c:1717: syntax error before `->' token
act_info.c:1718: `ch' was not declared in this scope
act_info.c:1718: `obj' was not declared in this scope
act_info.c:1718: ISO C++ forbids declaration of `act' with no type
act_info.c:1718: `int act' redeclared as different kind of symbol
mud.h:2295: previous declaration of `void act(short int, const char*, 
   CHAR_DATA*, void*, void*, int)'
act_info.c:1718: initializer list being treated as compound expression
act_info.c:1719: `ch' was not declared in this scope
act_info.c:1719: `obj' was not declared in this scope
act_info.c:1719: ISO C++ forbids declaration of `act' with no type
act_info.c:1719: redefinition of `int act'
act_info.c:1718: `int act' previously defined here
act_info.c:1719: initializer list being treated as compound expression
act_info.c:1720: syntax error before `->' token
act_info.c:1722: ISO C++ forbids declaration of `mxpobjmenu' with no type
act_info.c:1723: `obj' was not declared in this scope
act_info.c:1723: ISO C++ forbids declaration of `snprintf' with no type
act_info.c:1723: `int snprintf' redeclared as different kind of symbol
/usr/include/stdio.h:321: previous declaration of `int snprintf(char*, unsigned 
   int, const char*, ...)'
act_info.c:1723: initializer list being treated as compound expression
act_info.c:1725: parse error before `if'
act_info.c:1773: `ch' was not declared in this scope
act_info.c:1773: `obj' was not declared in this scope
act_info.c:1773: `obj' was not declared in this scope
act_info.c:1774: `obj' was not declared in this scope
act_info.c:1774: `obj' was not declared in this scope
act_info.c:1775: `obj' was not declared in this scope
act_info.c:1775: `obj' was not declared in this scope
act_info.c:1776: `obj' was not declared in this scope
act_info.c:1776: `obj' was not declared in this scope
act_info.c:1776: `liq' was not declared in this scope
act_info.c:1776: ISO C++ forbids declaration of `ch_printf' with no type
act_info.c:1776: `int ch_printf' redeclared as different kind of symbol
mud.h:2287: previous declaration of `void ch_printf(CHAR_DATA*, const char*, 
   ...)'
act_info.c:1776: initializer list being treated as compound expression
act_info.c:1777: parse error before `}' token
act_info.c:1783: ISO C++ forbids declaration of `pexit' with no type
act_info.c:1783: ISO C++ forbids declaration of `pexit' with no type
act_info.c:1783: redefinition of `int pexit'
act_info.c:1783: `int pexit' previously declared here
act_info.c:1783: base operand of `->' is not a pointer
act_info.c:1783: parse error before `)' token
act_info.c:1796: `ch' was not declared in this scope
act_info.c:1796: base operand of `->' is not a pointer
act_info.c:1796: base operand of `->' is not a pointer
act_info.c:1796: ISO C++ forbids declaration of `enter_map' with no type
act_info.c:1796: `int enter_map' redeclared as different kind of symbol
mud.h:2532: previous declaration of `void enter_map(CHAR_DATA*, EXIT_DATA*, 
   int, int, int)'
act_info.c:1796: initializer list being treated as compound expression
act_info.c:1797: `ch' was not declared in this scope
act_info.c:1797: `original' was not declared in this scope
act_info.c:1797: ISO C++ forbids declaration of `leave_map' with no type
act_info.c:1797: `int leave_map' redeclared as different kind of symbol
mud.h:2533: previous declaration of `void leave_map(CHAR_DATA*, CHAR_DATA*, 
   ROOM_INDEX_DATA*)'
act_info.c:1797: initializer list being treated as compound expression
act_info.c:1798: parse error before `}' token
act_info.c:1803: ISO C++ forbids declaration of `visited' with no type
act_info.c:1803: `ch' was not declared in this scope
act_info.c:1803: base operand of `->' is not a pointer
act_info.c:1804: ISO C++ forbids declaration of `original' with no type
act_info.c:1804: `ch' was not declared in this scope
act_info.c:1805: `ch' was not declared in this scope
act_info.c:1805: ISO C++ forbids declaration of `char_from_room' with no type
act_info.c:1805: `int char_from_room' redeclared as different kind of symbol
mud.h:2408: previous declaration of `void char_from_room(CHAR_DATA*)'
act_info.c:1806: parse error before `if'
act_info.c:1808: `ch' was not declared in this scope
act_info.c:1808: ISO C++ forbids declaration of `do_look' with no type
act_info.c:1808: `int do_look' redeclared as different kind of symbol
act_info.c:1500: previous declaration of `void do_look(CHAR_DATA*, char*)'
act_info.c:1808: initializer list being treated as compound expression
act_info.c:1809: `ch' was not declared in this scope
act_info.c:1809: ISO C++ forbids declaration of `char_from_room' with no type
act_info.c:1809: redefinition of `int char_from_room'
act_info.c:1805: `int char_from_room' previously defined here
act_info.c:1810: parse error before `if'
act_info.c:1817: `ch' was not declared in this scope
act_info.c:1817: ISO C++ forbids declaration of `send_to_char' with no type
act_info.c:1817: `int send_to_char' redeclared as different kind of symbol
mud.h:2283: previous declaration of `void send_to_char(const char*, CHAR_DATA*)
   '
act_info.c:1817: initializer list being treated as compound expression
act_info.c:1818: parse error before `break'
act_info.c:1829: ISO C++ forbids declaration of `count' with no type
act_info.c:1829: redefinition of `int count'
act_info.c:1716: `int count' previously defined here
act_info.c:1829: `obj' was not declared in this scope
act_info.c:1830: syntax error before `->' token
act_info.c:1835: syntax error before `->' token
act_info.c:1837: ISO C++ forbids declaration of `mxpobjmenu' with no type
act_info.c:1837: redefinition of `int mxpobjmenu'
act_info.c:1722: `int mxpobjmenu' previously defined here
act_info.c:1838: `obj' was not declared in this scope
act_info.c:1838: ISO C++ forbids declaration of `snprintf' with no type
act_info.c:1838: redefinition of `int snprintf'
act_info.c:1723: `int snprintf' previously defined here
act_info.c:1838: initializer list being treated as compound expression
act_info.c:1839: `obj' was not declared in this scope
act_info.c:1839: `ch' was not declared in this scope
act_info.c:1839: ISO C++ forbids declaration of `show_list_to_char' with no 
   type
act_info.c:1839: `int show_list_to_char' redeclared as different kind of symbol
act_info.c:474: previous declaration of `void show_list_to_char(OBJ_DATA*, 
   CHAR_DATA*, bool, bool)'
act_info.c:1839: initializer list being treated as compound expression
act_info.c:1840: parse error before `if'
act_info.c:1850: ISO C++ forbids declaration of `number' with no type
act_info.c:1850: `arg1' was not declared in this scope
act_info.c:1850: `arg' was not declared in this scope
act_info.c:1851: parse error before `for'
act_info.c:1851: ISO C++ forbids declaration of `obj' with no type
act_info.c:1851: ISO C++ forbids declaration of `obj' with no type
act_info.c:1851: redefinition of `int obj'
act_info.c:1851: `int obj' previously declared here
act_info.c:1851: base operand of `->' is not a pointer
act_info.c:1851: parse error before `)' token
act_info.c:1859: `pdesc' was not declared in this scope
act_info.c:1859: `ch' was not declared in this scope
act_info.c:1859: ISO C++ forbids declaration of `send_to_char' with no type
act_info.c:1859: redefinition of `int send_to_char'
act_info.c:1817: `int send_to_char' previously defined here
act_info.c:1859: initializer list being treated as compound expression
act_info.c:1860: parse error before `if'
act_info.c:1868: `pdesc' was not declared in this scope
act_info.c:1868: `ch' was not declared in this scope
act_info.c:1868: ISO C++ forbids declaration of `send_to_char' with no type
act_info.c:1868: redefinition of `int send_to_char'
act_info.c:1859: `int send_to_char' previously defined here
act_info.c:1868: initializer list being treated as compound expression
act_info.c:1869: parse error before `if'
act_info.c:1877: ISO C++ forbids declaration of `pdesc' with no type
act_info.c:1877: base operand of `->' is not a pointer
act_info.c:1877: base operand of `->' is not a pointer
act_info.c:1878: parse error before `if'
act_info.c:1891: ISO C++ forbids declaration of `obj' with no type
act_info.c:1891: redefinition of `int obj'
act_info.c:1851: `int obj' previously defined here
act_info.c:1891: ISO C++ forbids declaration of `obj' with no type
act_info.c:1891: redefinition of `int obj'
act_info.c:1891: `int obj' previously declared here
act_info.c:1891: base operand of `->' is not a pointer
act_info.c:1891: parse error before `)' token
act_info.c:1899: `ch' was not declared in this scope
act_info.c:1899: ISO C++ forbids declaration of `send_to_char' with no type
act_info.c:1899: redefinition of `int send_to_char'
act_info.c:1868: `int send_to_char' previously defined here
act_info.c:1899: initializer list being treated as compound expression
act_info.c:1900: parse error before `if'
act_info.c:1908: `ch' was not declared in this scope
act_info.c:1908: ISO C++ forbids declaration of `send_to_char' with no type
act_info.c:1908: redefinition of `int send_to_char'
act_info.c:1899: `int send_to_char' previously defined here
act_info.c:1908: initializer list being treated as compound expression
act_info.c:1909: parse error before `if'
act_info.c:1917: ISO C++ forbids declaration of `pdesc' with no type
act_info.c:1917: redefinition of `int pdesc'
act_info.c:1877: `int pdesc' previously defined here
act_info.c:1917: base operand of `->' is not a pointer
act_info.c:1917: base operand of `->' is not a pointer
act_info.c:1918: parse error before `if'
act_info.c:1937: ISO C++ forbids declaration of `door' with no type
act_info.c:1937: `arg1' was not declared in this scope
act_info.c:1938: parse error before `if'
act_info.c:1954: `ch' was not declared in this scope
act_info.c:1954: ISO C++ forbids declaration of `send_to_char' with no type
act_info.c:1954: redefinition of `int send_to_char'
act_info.c:1908: `int send_to_char' previously defined here
act_info.c:1954: initializer list being treated as compound expression
act_info.c:1955: parse error before `}' token
act_info.c:1998: ISO C++ forbids declaration of `percent' with no type
act_info.c:1998: `ch' was not declared in this scope
act_info.c:1998: `skill' was not declared in this scope
act_info.c:1999: parse error before `if'
act_info.c:2018: `ch' was not declared in this scope
act_info.c:2018: base operand of `->' is not a pointer
act_info.c:2018: base operand of `->' is not a pointer
act_info.c:2018: ISO C++ forbids declaration of `enter_map' with no type
act_info.c:2018: redefinition of `int enter_map'
act_info.c:1796: `int enter_map' previously defined here
act_info.c:2018: initializer list being treated as compound expression
act_info.c:2019: `ch' was not declared in this scope
act_info.c:2019: ISO C++ forbids declaration of `char_from_room' with no type
act_info.c:2019: redefinition of `int char_from_room'
act_info.c:1809: `int char_from_room' previously defined here
act_info.c:2020: parse error before `if'
act_info.c:2022: `ch' was not declared in this scope
act_info.c:2022: ISO C++ forbids declaration of `leave_map' with no type
act_info.c:2022: redefinition of `int leave_map'
act_info.c:1797: `int leave_map' previously defined here
act_info.c:2022: initializer list being treated as compound expression
act_info.c:2023: parse error before `}' token
act_info.c:2028: ISO C++ forbids declaration of `visited' with no type
act_info.c:2028: redefinition of `int visited'
act_info.c:1803: `int visited' previously defined here
act_info.c:2028: `ch' was not declared in this scope
act_info.c:2028: base operand of `->' is not a pointer
act_info.c:2029: ISO C++ forbids declaration of `original' with no type
act_info.c:2029: redefinition of `int original'
act_info.c:1804: `int original' previously defined here
act_info.c:2029: `ch' was not declared in this scope
act_info.c:2030: `ch' was not declared in this scope
act_info.c:2030: ISO C++ forbids declaration of `char_from_room' with no type
act_info.c:2030: redefinition of `int char_from_room'
act_info.c:2019: `int char_from_room' previously defined here
act_info.c:2031: parse error before `if'
act_info.c:2033: `ch' was not declared in this scope
act_info.c:2033: ISO C++ forbids declaration of `do_look' with no type
act_info.c:2033: redefinition of `int do_look'
act_info.c:1808: `int do_look' previously defined here
act_info.c:2033: initializer list being treated as compound expression
act_info.c:2034: `ch' was not declared in this scope
act_info.c:2034: ISO C++ forbids declaration of `char_from_room' with no type
act_info.c:2034: redefinition of `int char_from_room'
act_info.c:2030: `int char_from_room' previously defined here
act_info.c:2035: parse error before `if'
act_info.c:2058: `ch' was not declared in this scope
act_info.c:2058: ISO C++ forbids declaration of `send_to_char' with no type
act_info.c:2058: redefinition of `int send_to_char'
act_info.c:1954: `int send_to_char' previously defined here
act_info.c:2058: initializer list being treated as compound expression
act_info.c:2059: parse error before `return'
act_info.c: In function `void do_glance(CHAR_DATA*, char*)':
act_info.c:2077: `send_to_char' cannot be used as a function
act_info.c:2083: `send_to_char' cannot be used as a function
act_info.c:2099: `do_look' cannot be used as a function
act_info.c:2107: `send_to_char' cannot be used as a function
act_info.c:2114: `act' cannot be used as a function
act_info.c:2115: `act' cannot be used as a function
act_info.c:2120: `ch_printf' cannot be used as a function
act_info.c:2122: `ch_printf' cannot be used as a function
act_info.c:2133: `ch_printf' cannot be used as a function
act_info.c: In function `void do_examine(CHAR_DATA*, char*)':
act_info.c:2145: warning: declaration of `obj' shadows a global declaration
act_info.c:1891: warning: shadowed declaration is here
act_info.c:2156: `send_to_char' cannot be used as a function
act_info.c:2161: `do_look' cannot be used as a function
act_info.c:2176: `ch_printf' cannot be used as a function
act_info.c:2178: `ch_printf' cannot be used as a function
act_info.c:2180: `ch_printf' cannot be used as a function
act_info.c:2182: `ch_printf' cannot be used as a function
act_info.c:2184: `ch_printf' cannot be used as a function
act_info.c:2189: `ch_printf' cannot be used as a function
act_info.c:2191: `ch_printf' cannot be used as a function
act_info.c:2193: `ch_printf' cannot be used as a function
act_info.c:2195: `ch_printf' cannot be used as a function
act_info.c:2197: `ch_printf' cannot be used as a function
act_info.c:2201: `ch_printf' cannot be used as a function
act_info.c:2216: `send_to_char' cannot be used as a function
act_info.c:2249: `send_to_char' cannot be used as a function
act_info.c:2257: `send_to_char' cannot be used as a function
act_info.c:2259: `send_to_char' cannot be used as a function
act_info.c:2264: `send_to_char' cannot be used as a function
act_info.c:2266: `send_to_char' cannot be used as a function
act_info.c:2279: `send_to_char' cannot be used as a function
act_info.c:2282: `send_to_char' cannot be used as a function
act_info.c:2285: `send_to_char' cannot be used as a function
act_info.c:2288: `send_to_char' cannot be used as a function
act_info.c:2292: `send_to_char' cannot be used as a function
act_info.c:2301: `send_to_char' cannot be used as a function
act_info.c: In function `void do_weather(CHAR_DATA*, char*)':
act_info.c:2340: `send_to_char' cannot be used as a function
act_info.c:2349: `ch_printf' cannot be used as a function
act_info.c:2351: `ch_printf' cannot be used as a function
act_info.c: In function `void do_compare(CHAR_DATA*, char*)':
act_info.c:2365: `send_to_char' cannot be used as a function
act_info.c:2371: `send_to_char' cannot be used as a function
act_info.c:2386: `send_to_char' cannot be used as a function
act_info.c:2394: `send_to_char' cannot be used as a function
act_info.c:2401: `ch_printf' cannot be used as a function
act_info.c:2441: `act' cannot be used as a function
act_info.c: In function `void do_oldwhere(CHAR_DATA*, char*)':
act_info.c:2472: `send_to_char' cannot be used as a function
act_info.c:2486: `act' cannot be used as a function
act_info.c: In function `void do_consider(CHAR_DATA*, char*)':
act_info.c:2499: `send_to_char' cannot be used as a function
act_info.c:2505: `send_to_char' cannot be used as a function
act_info.c:2511: `send_to_char' cannot be used as a function
act_info.c:2531: `act' cannot be used as a function
act_info.c:2555: `act' cannot be used as a function
act_info.c: In function `void do_wimpy(CHAR_DATA*, char*)':
act_info.c:2578: `send_to_char' cannot be used as a function
act_info.c:2583: `send_to_char' cannot be used as a function
act_info.c:2588: `send_to_char' cannot be used as a function
act_info.c:2592: `ch_printf' cannot be used as a function
act_info.c: In function `void do_password(CHAR_DATA*, char*)':
act_info.c:2650: `send_to_char' cannot be used as a function
act_info.c:2659: `send_to_char' cannot be used as a function
act_info.c:2665: `send_to_char' cannot be used as a function
act_info.c:2671: `send_to_char' cannot be used as a function
act_info.c:2684: `send_to_char' cannot be used as a function
act_info.c:2692: `send_to_char' cannot be used as a function
act_info.c: In function `void do_commands(CHAR_DATA*, char*)':
act_info.c:2757: `ch_printf' cannot be used as a function
act_info.c: In function `void do_config(CHAR_DATA*, char*)':
act_info.c:2787: `send_to_char' cannot be used as a function
act_info.c:2788: `send_to_char' cannot be used as a function
act_info.c:2789: `send_to_char' cannot be used as a function
act_info.c:2790: `send_to_char' cannot be used as a function
act_info.c:2791: `ch_printf' cannot be used as a function
act_info.c:2792: `ch_printf' cannot be used as a function
act_info.c:2793: `ch_printf' cannot be used as a function
act_info.c:2794: `ch_printf' cannot be used as a function
act_info.c:2795: `ch_printf' cannot be used as a function
act_info.c:2796: `ch_printf' cannot be used as a function
act_info.c:2797: `ch_printf' cannot be used as a function
act_info.c:2798: `ch_printf' cannot be used as a function
act_info.c:2799: `ch_printf' cannot be used as a function
act_info.c:2805: `send_to_char' cannot be used as a function
act_info.c:2806: `ch_printf' cannot be used as a function
act_info.c:2807: `ch_printf' cannot be used as a function
act_info.c:2808: `ch_printf' cannot be used as a function
act_info.c:2809: `ch_printf' cannot be used as a function
act_info.c:2810: `ch_printf' cannot be used as a function
act_info.c:2811: `ch_printf' cannot be used as a function
act_info.c:2812: `ch_printf' cannot be used as a function
act_info.c:2813: `ch_printf' cannot be used as a function
act_info.c:2818: `send_to_char' cannot be used as a function
act_info.c:2819: `ch_printf' cannot be used as a function
act_info.c:2820: `ch_printf' cannot be used as a function
act_info.c:2821: `ch_printf' cannot be used as a function
act_info.c:2825: `ch_printf' cannot be used as a function
act_info.c:2826: `ch_printf' cannot be used as a function
act_info.c:2829: `ch_printf' cannot be used as a function
act_info.c:2831: `send_to_char' cannot be used as a function
act_info.c:2832: `ch_printf' cannot be used as a function
act_info.c:2833: `ch_printf' cannot be used as a function
act_info.c:2834: `ch_printf' cannot be used as a function
act_info.c:2835: `ch_printf' cannot be used as a function
act_info.c:2836: `ch_printf' cannot be used as a function
act_info.c:2837: `ch_printf' cannot be used as a function
act_info.c:2838: `ch_printf' cannot be used as a function
act_info.c:2839: `ch_printf' cannot be used as a function
act_info.c:2856: `send_to_char' cannot be used as a function
act_info.c:2857: `ch_printf' cannot be used as a function
act_info.c:2858: `ch_printf' cannot be used as a function
act_info.c:2859: `ch_printf' cannot be used as a function
act_info.c:2860: `ch_printf' cannot be used as a function
act_info.c:2861: `ch_printf' cannot be used as a function
act_info.c:2864: `send_to_char' cannot be used as a function
act_info.c:2865: `ch_printf' cannot be used as a function
act_info.c:2874: `send_to_char' cannot be used as a function
act_info.c:2884: `ch_printf' cannot be used as a function
act_info.c:2898: `send_to_char' cannot be used as a function
act_info.c:2952: `send_to_char' cannot be used as a function
act_info.c:2959: `ch_printf' cannot be used as a function
act_info.c:2964: `ch_printf' cannot be used as a function
act_info.c:3004: `send_to_char' cannot be used as a function
act_info.c:3010: `send_to_char' cannot be used as a function
act_info.c:3017: `ch_printf' cannot be used as a function
act_info.c:3022: `ch_printf' cannot be used as a function
act_info.c: In function `void do_credits(CHAR_DATA*, char*)':
act_info.c:3034: `interpret' cannot be used as a function
act_info.c: In function `void do_news(CHAR_DATA*, char*)':
act_info.c:3047: `interpret' cannot be used as a function
act_info.c: In function `void do_world(CHAR_DATA*, char*)':
act_info.c:3053: `send_to_char' cannot be used as a function
act_info.c:3054: `ch_printf' cannot be used as a function
act_info.c:3055: `send_to_char' cannot be used as a function
act_info.c:3056: `ch_printf' cannot be used as a function
act_info.c:3057: `ch_printf' cannot be used as a function
act_info.c:3058: `ch_printf' cannot be used as a function
act_info.c:3059: `ch_printf' cannot be used as a function
act_info.c:3060: `ch_printf' cannot be used as a function
act_info.c:3061: `ch_printf' cannot be used as a function
act_info.c:3062: `ch_printf' cannot be used as a function
act_info.c:3063: `ch_printf' cannot be used as a function
act_info.c:3064: `ch_printf' cannot be used as a function
act_info.c:3065: `ch_printf' cannot be used as a function
act_info.c:3066: `ch_printf' cannot be used as a function
act_info.c: In function `void do_afk(CHAR_DATA*, char*)':
act_info.c:3078: `send_to_char' cannot be used as a function
act_info.c:3080: `act' cannot be used as a function
act_info.c:3085: `send_to_char' cannot be used as a function
act_info.c:3089: `act' cannot be used as a function
act_info.c: In function `void do_busy(CHAR_DATA*, char*)':
act_info.c:3102: `send_to_char' cannot be used as a function
act_info.c:3103: `act' cannot be used as a function
act_info.c:3108: `send_to_char' cannot be used as a function
act_info.c:3109: `act' cannot be used as a function
act_info.c: In function `void do_slist(CHAR_DATA*, char*)':
act_info.c:3139: `ch_printf' cannot be used as a function
act_info.c:3150: `ch_printf' cannot be used as a function
act_info.c:3163: `ch_printf' cannot be used as a function
act_info.c:3174: `ch_printf' cannot be used as a function
act_info.c:3183: `ch_printf' cannot be used as a function
act_info.c: In function `void do_pager(CHAR_DATA*, char*)':
act_info.c:3244: `send_to_char' cannot be used as a function
act_info.c:3249: `ch_printf' cannot be used as a function
act_info.c:3256: `send_to_char' cannot be used as a function
act_info.c:3262: `ch_printf' cannot be used as a function
act_info.c: In function `void do_motdedit(CHAR_DATA*, char*)':
act_info.c:3334: `send_to_char' cannot be used as a function
act_info.c:3344: `send_to_char' cannot be used as a function
act_info.c:3356: `send_to_char' cannot be used as a function
act_info.c:3364: `send_to_char' cannot be used as a function
act_info.c:3365: `send_to_char' cannot be used as a function
act_info.c:3366: `send_to_char' cannot be used as a function
act_info.c:3367: `send_to_char' cannot be used as a function
act_info.c:3375: `send_to_char' cannot be used as a function
act_info.c:3380: `send_to_char' cannot be used as a function
act_info.c:3386: `send_to_char' cannot be used as a function
act_info.c:3395: `send_to_char' cannot be used as a function
act_info.c: In function `void load_ignores(CHAR_DATA*, FILE*)':
act_info.c:3474: `snprintf' cannot be used as a function
act_info.c: In function `void do_ignore(CHAR_DATA*, char*)':
act_info.c:3540: `send_to_char' cannot be used as a function
act_info.c:3541: `send_to_char' cannot be used as a function
act_info.c:3542: `send_to_char' cannot be used as a function
act_info.c:3546: `send_to_char' cannot be used as a function
act_info.c:3550: `send_to_char' cannot be used as a function
act_info.c:3552: `ch_printf' cannot be used as a function
act_info.c:3568: `send_to_char' cannot be used as a function
act_info.c:3577: `send_to_char' cannot be used as a function
act_info.c:3585: `snprintf' cannot be used as a function
act_info.c:3586: `snprintf' cannot be used as a function
act_info.c:3597: `ch_printf' cannot be used as a function
act_info.c:3615: `ch_printf' cannot be used as a function
act_info.c:3630: `ch_printf' cannot be used as a function
act_info.c:3636: `send_to_char' cannot be used as a function
act_info.c:3642: `send_to_char' cannot be used as a function
act_info.c:3658: `ch_printf' cannot be used as a function
act_info.c:3663: `ch_printf' cannot be used as a function
{standard input}: Assembler messages:
{standard input}:6800: Error: symbol `interpret' is already defined
{standard input}:6821: Error: symbol `act' is already defined
{standard input}:6857: Error: symbol `pexit' is already defined
{standard input}:6906: Error: symbol `char_from_room' is already defined
{standard input}:6920: Error: symbol `count' is already defined
{standard input}:6927: Error: symbol `mxpobjmenu' is already defined
{standard input}:6935: Error: symbol `snprintf' is already defined
{standard input}:6963: Error: symbol `obj' is already defined
{standard input}:6970: Error: symbol `send_to_char' is already defined
{standard input}:6977: Error: symbol `send_to_char' is already defined
{standard input}:6991: Error: symbol `obj' is already defined
{standard input}:6998: Error: symbol `obj' is already defined
{standard input}:7005: Error: symbol `send_to_char' is already defined
{standard input}:7012: Error: symbol `send_to_char' is already defined
{standard input}:7019: Error: symbol `pdesc' is already defined
{standard input}:7033: Error: symbol `send_to_char' is already defined
{standard input}:7047: Error: symbol `enter_map' is already defined
{standard input}:7054: Error: symbol `char_from_room' is already defined
{standard input}:7061: Error: symbol `leave_map' is already defined
{standard input}:7068: Error: symbol `visited' is already defined
{standard input}:7075: Error: symbol `original' is already defined
{standard input}:7082: Error: symbol `char_from_room' is already defined
{standard input}:7089: Error: symbol `do_look' is already defined
{standard input}:7096: Error: symbol `char_from_room' is already defined
{standard input}:7103: Error: symbol `send_to_char' is already defined
make[2]: *** [o/act_info.o] Error 1
make[2]: Leaving directory `/afki/afkmud/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/afki/afkmud/src'
make: *** [clean] Error 2
       
Post is unread #4 Apr 14, 2005, 7:28 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

It looks like you may have mis-pasted the code into your act_info.c file. You've got alot of parse type errors showing up. I'd check carefully at the point the instructions said to add the new code. Make sure you didn't leave out a parentheses, bracket, brace, semicolon, or anything else of that sort.
       
Post is unread #5 Jun 30, 2006, 9:39 pm   Last edited Nov 22, 2007, 3:47 pm by Samson
Go to the top of the page
Go to the bottom of the page

greymouser69

GroupMembers
Posts1
JoinedJun 30, 2006

Sorry about this but I felt I should resurrect this old thread rather than start a new one on the subject.

I added in the automap code to the latest afkmud sources from here. Got everything installed, in game config command shows automap status. config +automap enables it, etc. everything works EXCEPT when I enable the automap I get something like the following (converted an old smaug 1.4a area for testing - school2.are):
+-----------+ [Exits: East South->(Closed)]
|           | This is the entranceway to the Newbie Nursery | | School here at AnonyMUD.  Walking through the school will help | O | to prepare you for the real world.  Our world is probably | | | different than any world you've ever been to, so even if you | X-O | consider yourself "experienced", humor us and read all the | | | signs.  There is a big sign on the wall which says, "to read me, | O-O-O | type LOOK sign".  A door leads south into the playground but you | | | have to go to school before you play...  

|     O     | 
+-----------+ 


Near as I can determine the offending code segment is in mapper.c the function show_map, particularly this segment:
        /* Write out the main map area with text */
        for( y = 0; y <= MAPY; y++ )
        {
                mudstrlcat( buf, "&z|&D", MSL );

                for( x = 0; x <= MAPX; x++ )
                {
                        switch(map[x][y].tegn)
                        {
                                case '-':
                                case '|':
                                case '\\':
                                case '/':
                                        sprintf(buf + strlen(buf), "&O%c&D", map[x][y].tegn);
                                        break;
                                case 'X':
                                        sprintf(buf + strlen(buf), "&R%c&d", map[x][y].tegn);
                                        break;
                                case '*':
                                        sprintf(buf + strlen(buf), "&g%c&d", map[x][y].tegn);
                                        break;
                                case '@':
                                        sprintf(buf + strlen(buf), "&r%c&d", map[x][y].tegn);
                                        break;
                                case '=':
                                        sprintf(buf + strlen(buf), "&B%c&d", map[x][y].tegn);
                                        break;
                                case '~':
                                        sprintf(buf + strlen(buf), "&C%c&d", map[x][y].tegn);
                                        break;
                                case '+':
                                        sprintf(buf + strlen(buf), "&Y%c&d", map[x][y].tegn);
                                        break;
                                case 'O':
                                        sprintf(buf + strlen(buf), "&w%c&d", map[x][y].tegn);
                                        break;
                                default:
                                        sprintf( buf + strlen( buf ), "%c", map[x][y].tegn );
                        }
                }
                        mudstrlcat( buf, "&z|&D ", MSL );

                        //if (y == 0 && IS_PLR_FLAG( ch, PLR_AUTOEXIT))  /* the autoexits */
                        //{
                        //{
                        //      sprintf(buf + strlen( buf ), "%s", get_exits(ch));
                        //      continue;
                        //}

                        /* Add the text, if necessary */
                        if ( !alldesc )
                        {
                                pos = get_line( p, 63 );
                                if ( pos > 0 )
                                {
                                        mudstrlcat( buf, color_str(AT_RMDESC, ch), MSL);
                                        // strncat( buf, p, pos );
                                        mudstrlcat( buf, p, pos );
                                        p += pos;
                                }
                                else
                                {
                                        mudstrlcat( buf, color_str(AT_RMDESC, ch), MSL);
                                        mudstrlcat( buf, p, MSL );
                                        alldesc = TRUE;
                                }
                        }
                        mudstrlcat( buf, "\n\r", MSL );
                }

                        /* Finish off map area */
                        mudstrlcat( buf, "&z+-----------+&D ", MSL );


please note the "mudstrlcat" line that is commented out right after strlncat is my addition for testing and when I enable that line commenting out strlncat my output is this:
+-----------+ [Exits: East South->(Closed)]
|           | 
|           | 
|       O   | 
|       |   | 
|     X-O   | 
|     |     | 
|   O-O-O   | 
|     |     | have to go to school before you play... 
|     O     | 
+-----------+ 


I'm no c/c++ expert but the section of code is pretty simple to display that... get_line returns basically the position of the space after the last word that will fit on one line of display fyi Now I'll admit I don't completely know what mudstrlcat does but from what I could gather it was pretty straightforward, or seemed that way at least

as you can see, either the map is all strange when using strlncat with line breaks seeming to disappear, or the map is perfect but only the last line of text is displayed... :cry: oh, and if I add another mudstrlcat with \n\r and use strncat in the if statement above, the output looks like this:
+-----------+ [Exits: East South->(Closed)]
|           | This is the entranceway to the Newbie Nursery 

| | School here at AnonyMUD.  Walking through the school will help 

| O | to prepare you for the real world.  Our world is probably 

| | | different than any world you've ever been to, so even if you 

| X-O | consider yourself "experienced", humor us and read all the 

| | | signs.  There is a big sign on the wall which says, "to read me, 

| O-O-O | type LOOK sign".  A door leads south into the playground but you 

| | | have to go to school before you play...  


|     O     | 
+-----------+ 

:stare: :mad:
I'm sure its something simple I'm missing but I've pulled out enough hair on my own and need some help!

Thanks!
       
Post is unread #6 Jul 6, 2006, 4:54 am
Go to the top of the page
Go to the bottom of the page

tophe

GroupMembers
Posts13
JoinedJul 4, 2006

I just included this automapper code in AFKmud 1.77 and it works like a charm for me.
There are some things I found that need to be corrected from the original README file from Zarius I downloaded from I will also specify some things I did for people like me who are no C/C++ gurus :wink:
Sorry I won't use the Code tag so i can outline the changes I made.


Step 2. Changes in the makefile:
C_FILES = act_comm.c act_info.c act_move.c act_obj.c act_wiz.c \
archery.c areaconvert.c auction.c ban.c bits.c boards.c \
build.c calendar.c channels.c clans.c color.c comm.c comments.c connhist.c \
const.c db.c deity.c editor.c environment.c event.c event_handler.c features.c \
fight.c finger.c handler.c hashstr.c help.c hotboot.c iafk.c idale.c imm_host.c \
interface.c interp.c ismaug.c liquids.c magic.c md5.c \
misc.c mspecial.c mudcfg.c mud_comm.c mud_prog.c \
new_auth.c olcmob.c olcobj.c olcroom.c overland.c \
pfiles.c player.c polymorph.c rent.c renumber.c reset.c \
save.c sha256.c ships.c shops.c skills.c skyship.c slay.c \
tables.c track.c treasure.c update.c mapper.c

As you can see, I just added "mapper.c" to the list of files.


Step 5. In act.info add the following at the top of the file:
#include "mapper.h"
So it looks like:
#include <string.h>
#include <ctype.h>
#include <sys/stat.h>
#include <unistd.h>
#include <math.h>
#include "mud.h"
#include "clans.h"
#include "fight.h"
#include "liquids.h"
#include "mxp.h"
#include "overland.h"
#include "pfiles.h"
#include "polymorph.h"
#include "mapper.h"
#define HISTORY_FILE SYSTEM_DIR "history.txt" /* Used in do_history - Samson 2-12-98 */

Do this instead of the #define "mapper.h" printed in the readme file.


Step 6. in act_info.c find do_config and make appropriate entries (I trust you can do this on your own)
I myself chose to add the AutoMapper toggle to the "Misc" section, so here is the code:
send_to_char( "\n\r&g&uMisc:&d ", ch );
ch_printf( ch, "&wTelnet_GA &z: %3s\t", PLRYN( ch, PLR_TELNET_GA ) );
ch_printf( ch, "&wGroupwho &z: %3s\t", PCFYN( ch, PCFLAG_GROUPWHO ) );
ch_printf( ch, "&wNoIntro &z: %3s\n\r", PCFYN( ch, PCFLAG_NOINTRO ) );
ch_printf( ch, " &wMSP &z: %3s\t", PLRYN( ch, PLR_MSP ) );
ch_printf( ch, "&wMXP &z: %3s\t", PLRYN( ch, PLR_MXP ) );
ch_printf( ch, "&wMXPPrompt &z: %3s\n\r", PLRYN( ch, PLR_MXPPROMPT ) );
ch_printf( ch, " &wCheckboard &z: %3s\t", PCFYN( ch, PCFLAG_CHECKBOARD ) );
ch_printf( ch, "&wNoQuote &z: %3s\t", PCFYN( ch, PCFLAG_NOQUOTE ) );
ch_printf( ch, "&wAutoMapper &z: %3s\n\r", PLRYN( ch, PLR_AUTOMAP ) );

Then, put this later in the file, to create the needed toggle:

else if( !str_prefix( argument + 1, "autoloot" ) )
bit = PLR_AUTOLOOT;
else if( !str_prefix( argument + 1, "automapper" ) )
bit = PLR_AUTOMAP;

else if( !str_prefix( argument + 1, "autosac" ) )
bit = PLR_AUTOSAC;


Step 7. Still in the same file (act_info.c) locate the do_look function and add the code from the original readme file so it looks like this:

void print_compass( CHAR_DATA * ch )
{
EXIT_DATA *pexit;

...*snip snip*...

exit_colors[exit_info[DIR_SOUTH]], exit_info[DIR_SOUTH] ? "S" : "-", exit_colors[exit_info[DIR_SOUTHEAST]],
exit_info[DIR_SOUTHEAST] ? "SE" : " -" );
return;
}

char * roomdesc( CHAR_DATA *ch )
{
static char outbuf[MSL];
/* Build a room desc moved here -- Zarius */
outbuf[0] = '\0';

if(!IS_PLR_FLAG( ch, PLR_BRIEF ))
{
mudstrlcat( outbuf, color_str(AT_RMDESC, ch ), MSL); /* Set the color */
if( MXP_ON( ch ) )
mudstrlcat( outbuf, MXP_TAG_ROOMDESC, MSL );

/* Day */
if( time_info.hour >= sysdata.hoursunrise && time_info.hour <= sysdata.hoursunset )
{
if( ch->in_room->roomdesc && ch->in_room->roomdesc[0] != '\0' )
mudstrlcat( outbuf, ch->in_room->roomdesc, MSL );
}
else /* Night */
{
if( ch->in_room->nitedesc && ch->in_room->nitedesc[0] != '\0' )
mudstrlcat( outbuf, ch->in_room->nitedesc, MSL );
else
{
if( ch->in_room->roomdesc && ch->in_room->roomdesc[0] != '\0' )
mudstrlcat( outbuf, ch->in_room->roomdesc, MSL );
}
}
if( MXP_ON( ch ) )
mudstrlcat( outbuf, MXP_TAG_ROOMDESC_CLOSE, MSL );
}
return outbuf;
}


/* Function modified from original form on varying dates - Samson */
CMDF do_look( CHAR_DATA * ch, char *argument )
{
char arg[MIL], arg1[MIL], arg2[MIL];
char *pdesc;
EXIT_DATA *pexit;
CHAR_DATA *victim;
OBJ_DATA *obj;

...*snip snip*...


Step 9. Your code should look like this once you did what is specified in readme file.
/*
* Area name and filename display installed by Samson 12-13-97
*/
if( IS_IMMORTAL( ch ) && IS_PCFLAG( ch, PCFLAG_ANAME ) )
{
ch_printf( ch, "&[aname][Area name: %s] ", ch->in_room->area->name );
if( ch->level >= LEVEL_CREATOR )
ch_printf( ch, "[Area filename: %s]\n\r", ch->in_room->area->filename );
else
send_to_char( "\n\r", ch );
}

set_char_color( AT_RMDESC, ch );

/*
* view desc or nitedesc -- Dracones Modified by Tophe to include Autommapper code
*/
if( IS_PLR_FLAG( ch, PLR_AUTOMAP ))
draw_map( ch, roomdesc( ch ) );
else
send_to_char( roomdesc( ch ), ch );

if( !IS_NPC( ch ) && ch->hunting )
do_track( ch, GET_NAME( ch->hunting->who ) );

mxpobjmenu = MXP_GROUND;
mxptail[0] = '\0';

show_list_to_char( ch->in_room->first_content, ch, FALSE, FALSE );
show_char_to_char( ch->in_room->first_person, ch );
return;
}




Regarding the optional step to create a command to show the map in case users did not want to see it all the time, just do what is said in the readme file, but do not forget to add the command when you are logged in the mud with the cedit command. To do so, just type:
cedit showmap create
The server should send you a "Command added" message.

With all this, I managed to have this sninppet working on AFKmud 1.77. I hope it helps some.

Tophe.


       
Post is unread #7 Jul 6, 2006, 4:14 pm
Go to the top of the page
Go to the bottom of the page

Conner
Sorcerer
GroupMembers
Posts870
JoinedMay 8, 2005

Very nice instruction set, Tophe, the colors really make a difference too. :)
       
Post is unread #8 Jan 1, 2007, 8:27 am
Go to the top of the page
Go to the bottom of the page

Tshorka

GroupMembers
Posts2
JoinedJan 1, 2007

Hi, sorry per this post but...


where i can find this snippet?
       
Post is unread #9 Jan 1, 2007, 11:10 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Must have missed it when transferring files over. It's been added to the files section.
       
Post is unread #10 Jan 1, 2007, 12:13 pm
Go to the top of the page
Go to the bottom of the page

Tshorka

GroupMembers
Posts2
JoinedJan 1, 2007

thank's
       
Pages:<< prev 1 next >>