This function is a big help in these kinds of matters, drop it at the
bottom of db.c and declare it in merc.h if you don't already have it
defined in your code...

void logf (char * fmt, ...)
{
    char buf [2*MSL];
    va_list args;
    va_start (args, fmt);
    vsnprintf (buf, 2*MSL, fmt, args);
    va_end (args);

    log_string (buf);
}

Then in your area loading routine, do something like this:

logf("Loading %s area...",pArea->name);

and maybe since it's crashing so early on (otherwise this could get
really spammy), go into your char *fread_word in save.c, and drop this
in near the bottom of that function, right above the bug statement and
inside a couple of braces, put it right before the "return word;"...

logf("fread_word: %s",word);

that way when you go to start up the mud, it'll log each area file it's
trying to load, and everytime an fread_word is called, it'll show the
word it's returning... so basically you look in the last area name that
was shown, and look at the next word in that area file after the last
one that was popped out via logf, because that's the one that's crashing
you...

Richard Lindsey
Network Administrator
INTERA, Inc.
9111A Research Blvd.
Austin, TX  78758
(512) 425-2006
[EMAIL PROTECTED]
 

-----Original Message-----
From: William Bittick [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 14, 2004 10:17 AM
To: [email protected]
Subject: help with mud

Hello everyone,

Our mud crashed earlier on today and I don't seem to be able to get it
back 
up. Whenever I check the logs it says fread_word is to long and stops 
loading right after it tries loading two things. I've actually checked
the 
files and don't see anything wrong with them, i've also tried reording
the 
way things load in db.c to see if it would load anything else up to
those 
files and it seems to choke as soon as it tries loading the first thing.
If 
anyone can help me out here i'd really appreciate it. I didn't really
think 
it was max string but i tried increasing that as well and it doesn't
make a 
difference.

_________________________________________________________________
Learn how to choose, serve, and enjoy wine at Wine @ MSN. 
http://wine.msn.com/


-- 
ROM mailing list
[email protected]
http://www.rom.org/cgi-bin/mailman/listinfo/rom

Reply via email to