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 ➜ Problem with Fingerfiles

Problem with Fingerfiles

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


Pages: 1  2 

Posted by Buck   USA  (23 posts)  Bio
Date Reply #15 on Sat 31 Jul 2004 05:50 PM (UTC)
Message
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.

-Buck.
tbgamecock@yahoo.com
"I am Homer of Borg. Prepare to be assim... ooooo, Doughnuts!"
Top

Posted by Firedraconian   USA  (32 posts)  Bio
Date Reply #16 on Sat 31 Jul 2004 06:20 PM (UTC)
Message
I removed both player.o and comm.o before I tried to make it, and it still gave the eight-million reference errors.

I commented them out so they looked like this:

/*
* Write to one char.
*/
/*
void send_to_char( const char *txt, CHAR_DATA *ch )
{
if ( !ch )
{
bug( "Send_to_char: NULL *ch" );
return;
}
if ( txt && ch->desc )
write_to_buffer( ch->desc, txt, strlen(txt) );
return;
}
*/

/*
* Same as above, but converts &color codes to ANSI sequences..


and:

/*
void send_to_pager( const char *txt, CHAR_DATA *ch )
{
if ( !ch )
{
bug( "Send_to_pager: NULL *ch" );
return;
}
if ( txt && ch->desc )
{
DESCRIPTOR_DATA *d = ch->desc;

ch = d->original ? d->original : d->character;
if ( IS_NPC(ch) || !IS_SET(ch->pcdata->flags, PCFLAG_PAGERON) )
{
send_to_char(txt, d->character);
return;
}
write_to_pager(d, txt, 0);
}
return;
}
*/


The bottom of mud.h is:

*/

#define exit(arg) Win32_Exit(arg)
void Win32_Exit(int exit_code);
#define send_to_char send_to_char_color
#define send_to_pager send_to_pager_color


#endif

X. D. Caeruleus
Draconian Industries
Top

Posted by Buck   USA  (23 posts)  Bio
Date Reply #17 on Sat 31 Jul 2004 07:03 PM (UTC)
Message
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.

-Buck.
tbgamecock@yahoo.com
"I am Homer of Borg. Prepare to be assim... ooooo, Doughnuts!"
Top

Posted by Firedraconian   USA  (32 posts)  Bio
Date Reply #18 on Sat 31 Jul 2004 08:01 PM (UTC)
Message
Jeeze, thank you thank you thank you. It works. For now. *cough*

X. D. Caeruleus
Draconian Industries
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.


75,233 views.

This is page 2, subject is 2 pages long:  [Previous page]  1  2 

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.