I keep getting an error when I try to clean it up and compile it so that it will work:
player.o(.text+0x78a3): In function 'do_homepage':
/home/nick/smaug/dist/src/player.c:1501:multiple definition of '_do_homepage'
finger.o(.text+0x16cf):/home/nick/smaug/dist/src/finger.c:476: first defined here
collect2: ld returned 1 exit status
make[1]: *** [smaug] Error 1
make[1]: Leaving directory '/home/nick/smaug/dist/src'
make: *** [all] Error 2
The only time the finger-command snippet mentions finger.c is when it says, "5. In player.c, find and comment out the function do_homepage." I don't think I'm doing that right.
Unfortunately, this is my first time coding, and I have no idea what most of this stuff means that coders take for granted, like when it goes, 'take this and put it in the appropriate spot'. What exactly do they mean by commenting it out? Putting # marks in front of everything, like this:?
This will be a good starting point. You seem to know a little bit, but here is this just in case. also you can search yahoo and google for help with coding.
/* You'll see comments like this all throughout the code */ In a .c or an .h file, when you 'comment out' a piece of code, you simply insert this /* at the beginning and this */ at the end so the compiler treats the entire section as a comment instead of code. # is used in the makefile to comment lines out, apparently.
Note though, that the // style commenting is technically C++ commenting, and you might get some warnings about // comments, depending on what compiler flags your using.
I'm not sure what color modifications you have done, so hopefully this isn't redundant but open smaug\dist\doc\FAQ and implement sections 12-a, b and c. I think you are using smaug1.4a_mxp, so your version should be 12-f compliant already. Stock SMAUG is only partially color - enabled because of certain reasons. Just a caveat tho; there are still some minor color bugs I haven't seen definitive solutions for, i.e., inconsistent color strings ( bright green, dark green, when only &G is used ), duplicate strings persisting after FAQ-12-f compliance, etc... Anyway, getting kosher with section 12 will get you to 90% color compatability, which is better than it ships, eh? :) Hope that helps, and if anyone else knows why duplicate strings appear even w/ the 12-f fix implemented, I'd like to know, myself.
Okay, I can't get that to work. I tried it and everytime I try to recompile, it gives me about ten pages of "undefined reference to '_send_to_pager'" and "undefined reference to '_send_to_char'".
Also, don't forget to make clean or delete all the object files in smaug\dist\src. In Cygwin, you can type rm *.o then make. You should always do that whenever you edit a file w/ an '.h' suffix, just in case you didn't do that -- I don't sometimes, its easy to forget. That could cause an undefined reference error if you don't make clean.
Looks like you commented correctly, at least as compared to how I did it. Try adding the defines after the endif in mud.h then remember to <return> and leave at least one blank line after the last define. Then, just to be safe, rm *.o to remove all object files before doing your make. You never know what other files may be linked even if you didn't alter them. It adds another minute to the compiling process, but lets you be sure -- worth the time, imho. Other than that, it looks like you're on the right track.