[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Running the server
. . -> [Subject]  After reboot my computer crashes

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

After reboot my computer crashes

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Yakir   (17 posts)  [Biography] bio
Date Wed 15 Aug 2001 12:33 PM (UTC)  quote  ]
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.
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Wed 15 Aug 2001 10:01 PM (UTC)  quote  ]
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
[Go to top] 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.


1,650 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]