After reboot my computer crashes

Posted by Yakir on Wed 15 Aug 2001 12:33 PM — 2 posts, 11,705 views.

#0
Every time I reboot the mud my computer crashes when I try to or soon after I connect to it with Zmud through localhost:4000.

In one of the earlier messages I read about how I might reboot the mud by making a batch file with the following commands:




if EXIST \Dist\area\shutdown.txt DEL shutdown.txt

:loop
smaug.exe
if EXIST area/shutdown.txt goto end
wait.exe
goto loop

:end
DEL area/shutdown.txt




The 'wait.exe' is the program that Nick Gammon wrote and has for download from his ftp site, I think. Anyway, I figure that this should work, but for some reason my computer crashes almost every time. I'm pretty sure it has to do with zMUD, but It also happened with Gmud, once. If anyone has any idea of what I could that would be great. Oh, and thanks to everyone whos posted answers to all the questions. Many of the questions, I myself had.
Australia Forum Administrator #1
I think there might be a bug in some versions of zMUD, because I have had this report before, and the problem seems to go away with MUSHclient.

First, I would try booting the mud "manually", ie. just type:

smaug.exe

That eliminates possible problems caused by wait.exe, although I really don't think that program is the problem. Here is the source code, and if anyone can find a bug I will be pleased to hear of it:


#include <stdlib.h>
#include <stdio.h>
#include <windows.h>

int nDelay = 10;

int main(int argc, char* argv[])
{

  if (argc > 1)
    {
    nDelay = atoi (argv [1]);
    if (nDelay <= 0)
      {
      printf ("Wait period of \"%s\" is invalid.\n", argv [1]);
      return 1;
      }
    }

  printf ("Waiting %i seconds ...\n", nDelay);
  Sleep (nDelay * 1000L);

  return 0;
}



You might want to post a query to the Zugg forum about zMUD, and ensure you have the latest version of it.