Re: [CODE][NEWBIE]: errors

From: Peter Ajamian (pajamian@access1.net)
Date: 08/11/99


Sorry about continuing to repost on the same subject, this is the last time I
promise (no really)  ;)...

Peter Ajamian wrote:

<snip>

> 1.  Here's what is probably happening, one of your players has zMUD
> incorectly configured so it does not recognize the prompt, that player walks
> away when playing and goes to do something else for a period of time, the
> player then times out in the game and gets disconnected...
>
> 2.  zMUD reconnects the player, but since the login is not correctly
> configured, it just sits at the prompt until it times out and disconnects,
> this generates the "Losing descriptor without char." entry.
>
> 3. zMUD reconnects the player, but since.... you get the idea.

If you want to find out which player is causing your troubles you can make the
following modification to comm.c...

Find the following lines in comm.c...

  } else
    mudlog("Losing descriptor without char.", CMP, LVL_IMMORT, TRUE);

...and replace them with the following...

  } else {
    if (d->host && *d->host)
      sprintf(buf, "[%s]", d->host);
    else
      strcpy(buf, "[Hostname unknown]");

    sprintf(buf1, "Losing descriptor without char: %d:  %s", d->desc_num, buf);
    mudlog(buf1, CMP, LVL_IMMORT, TRUE);
  }

This will give you the descriptor number as well as the hostname in the log
entry.  You can probably use the hostname to figure out who is giving you your
headaches and reprimand him/her appropriately.  ;)

Regards,


Peter


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST