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 ➜ Compiling the server ➜ SWR

SWR

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


Posted by Dolph   (10 posts)  Bio
Date Sat 05 Apr 2003 11:44 AM (UTC)
Message
After much, much trying, I was able to get SWR to compile under CYGWIN, howver when I run the .exe I get:

Sat Apr 5 03:29:34 2003 :: Booting Database
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Sat Apr 5 03:29:34 2003 :: [*****] BOOT: ---------------------[
---------------
Sat Apr 5 03:29:34 2003 :: Loading commands
Sat Apr 5 03:29:34 2003 :: [*****] BUG: Cannot open commands.dat
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #1 on Sat 05 Apr 2003 11:48 AM (UTC)
Message
You should execute it from the "area" subdirectory. At the same level as the area directory should be a "system" directory. In that should be a file "commands.dat".

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Dolph   (10 posts)  Bio
Date Reply #2 on Sat 05 Apr 2003 12:14 PM (UTC)
Message
Yay! It works perfectly now, thanks. However while running it and typing 'score' twice in a row causes it to crash :p
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #3 on Sat 05 Apr 2003 09:28 PM (UTC)

Amended on Sat 05 Apr 2003 09:30 PM (UTC) by Nick Gammon

Message
It works perfectly, except you can't get your score twice? ;)

Hard to say what that is, you could try gdb to find where it crashed. Search this forum for examples of doing that. Possibly an area file that introduces something out of range. Are you using stock areas?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Dolph   (10 posts)  Bio
Date Reply #4 on Sun 06 Apr 2003 01:18 PM (UTC)
Message
Well I ment perfectly except for that :p Yes, I am using stock area files, however I have previously have had binary of it already and it worked just fine, in that area anyways :p

I have looked through the forum and really have only found one other post talking about it, but never said what was wrong or how to fix it.
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #5 on Sun 06 Apr 2003 10:16 PM (UTC)
Message
The code is rather sensitive to things being in range. By "things" I mean that if you previously had (say) 20 races, but the stock server has 10, then the extra 10 are likely to overwrite memory, causing a crash.

Are you using an existing character from your earlier binary release? If so, try creating a new character, and seeing if the problem goes away.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Cash   USA  (626 posts)  Bio
Date Reply #6 on Mon 07 Apr 2003 03:23 AM (UTC)
Message
Hmm. I'm not exactly sure how I fixed the problem in mine but I do know of something that needs to be fixed in stock SWR 1.0. In the do_score command, the line that show's the race looks like this..

ch_printf(ch, "\n\rScore for %s%s.\n\r", ch->pcdata->title);

It should be this..
ch_printf(ch, "\n\rScore for %s.\n\r", ch->pcdata->title);

I don't really know if that would crash it, but I know it needs to be changed. Anyways, good luck.

~Nick Cash
http://www.nick-cash.com
Top

Posted by Dolph   (10 posts)  Bio
Date Reply #7 on Mon 07 Apr 2003 05:10 AM (UTC)
Message
Yes, the char I was using was from the other binary though making a new char didn't work.

But w00t! Taking out that extra %s fixed it, thanks!
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #8 on Mon 07 Apr 2003 07:08 AM (UTC)
Message
It would crash it, saying %s%s means it expects two string arguments, but it only gets one, so the other one will be undefined, and will eventually crash.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Cash   USA  (626 posts)  Bio
Date Reply #9 on Mon 07 Apr 2003 09:46 PM (UTC)
Message
Glad I could help. Now when I make a fully debugged version of SWR I know what causes the score bug, I wasnt really ever sure if that was it. If you have any other questions feel free to ask them. Thanks.

~Nick Cash
http://www.nick-cash.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.


24,693 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.