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 ➜ Running the server ➜ After reboot my computer crashes

After reboot my computer crashes

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


Posted by Yakir   (17 posts)  Bio
Date Wed 15 Aug 2001 12:33 PM (UTC)
Message
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.
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #1 on Wed 15 Aug 2001 10:01 PM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
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.


9,646 views.

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.