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.
Entire forum
➜ SMAUG
➜ Compiling the server
➜ Infinite loop at startup
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1 2
Posted by
| Daraku
(15 posts) Bio
|
Date
| Tue 15 Dec 2009 09:37 PM (UTC) |
Message
| I don't know how it happened, or where it may have happened, I had the entire thing running earlier, and now that I've tried to get it public, I get this. Since I'm really rusty on the entire coding thing, and new to Cygwin, where do I start to look for this loop? | Top |
|
Posted by
| Nick Gammon
Australia (23,120 posts) Bio
Forum Administrator |
Date
| Reply #1 on Tue 15 Dec 2009 10:20 PM (UTC) |
Message
| Do you mean CPU usage goes up to 100%? How do you know it is in a loop? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Daraku
(15 posts) Bio
|
Date
| Reply #2 on Tue 15 Dec 2009 10:30 PM (UTC) |
Message
| You have a point, I suppose. Then my problem is a crash at login... I've been testing some, but again, not sure where to look or how. :/ | Top |
|
Posted by
| Hanaisse
Canada (114 posts) Bio
|
Date
| Reply #3 on Tue 15 Dec 2009 10:37 PM (UTC) Amended on Tue 15 Dec 2009 10:38 PM (UTC) by Hanaisse
|
Message
| Could you be more specific about "tried to get it public" and what, if any, errors you are getting?
Does it crash? When does it crash? What is the last command before it crashes? Have you checked your logs for bug or error messages? |
aka: Hana
Owner in Training of: Fury of the Gods
alm-dev.org:4000 | Top |
|
Posted by
| Daraku
(15 posts) Bio
|
Date
| Reply #4 on Tue 15 Dec 2009 10:54 PM (UTC) |
Message
| Well, I'm running a router, and through various posts and whatnot, I found I'd have to port forward through it to my PC. That didn't work, as no-one could connect, and as soon as I was kicked, I couldn't connect again. ./startup would do nothing, no output, MUD still down. I gave up, deleted the src, and went back and started once more, doing what I did before, and even doing what you suggested with the uncommenting of the logs, Hanaisse. Make displays no errors that I can see, and when I ./startup 6000, it doesn't display anything. When I connect, I get "Connecting...", then next line is "Disconnected" in my MUD client.
Make-
Quote:
Vengeance@user1 ~/dbs/src
$ make
make dbs
make[1]: Entering directory `/home/Vengeance/dbs/src'
rm -f dbsaga
gcc -o dbsaga act_comm.o act_info.o act_move.o act_obj.o act_wiz.o ban.o board.
o boards.o bounty.o build.o clans.o colorize.o comm.o comments.o const.o db.o de
ity.o editor.o fight.o finger.o grub.o handler.o hashstr.o hiscores.o hotboot.o
house.o ibuild.o ident.o imm_host.o interp.o magic.o makeobjs.o malloc.o mapout.
o marry.o misc.o mpxset.o mud_comm.o mud_prog.o new_fun.o pfiles.o planes.o plan
et.o player.o polymorph.o rare.o requests.o reset.o save.o services.o shops.o sk
ills.o skills_android.o skills_dbs.o space.o special.o stat_obj.o tables.o track
.o update.o dns.o -lcrypt -lm -lz
chmod g+w dbsaga
chmod a+x dbsaga
chmod g+w act_comm.o act_info.o act_move.o act_obj.o act_wiz.o ban.o board.o boa
rds.o bounty.o build.o clans.o colorize.o comm.o comments.o const.o db.o deity.o
editor.o fight.o finger.o grub.o handler.o hashstr.o hiscores.o hotboot.o house
.o ibuild.o ident.o imm_host.o interp.o magic.o makeobjs.o malloc.o mapout.o mar
ry.o misc.o mpxset.o mud_comm.o mud_prog.o new_fun.o pfiles.o planes.o planet.o
player.o polymorph.o rare.o requests.o reset.o save.o services.o shops.o skills.
o skills_android.o skills_dbs.o space.o special.o stat_obj.o tables.o track.o up
date.o dns.o
make[1]: Leaving directory `/home/Vengeance/dbs/src'
Vengeance@user1 ~/dbs/src
$
and ./startup
Quote:
Vengeance@user1 ~/dbs/src
$ ./startup 6000
From my understanding, the MUD should be up, no? But when I go to connect:
Quote:
%%% Connecting to <localhost ip> on port 6000
%%% Connected to localhost on port 6000.
%%% Disconnected from server.
I've checked the logs, but there's nothing in them, just that the MUD started up as it was supposed to. | Top |
|
Posted by
| Nick Gammon
Australia (23,120 posts) Bio
Forum Administrator |
Date
| Reply #5 on Tue 15 Dec 2009 10:59 PM (UTC) |
Message
| Instead of startup, try running manually:
cd ../area
../src/dbsaga 6000
Then watch the messages fly by. If it doesn't immediately return to the command prompt with an error message, then try connecting and see what happens. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Daraku
(15 posts) Bio
|
Date
| Reply #6 on Tue 15 Dec 2009 11:20 PM (UTC) |
Message
| This is wierd. It started up fine again, housing errors aside, and when I went to log in, kicked to the prompt and disconnected me from the MUD client, no errors that I can see in Cygwin.
Quote:
Tue Dec 15 19:11:56 2009 :: Building wizinfo
Tue Dec 15 19:11:56 2009 :: Initializing request pipe
Tue Dec 15 19:11:56 2009 :: Initializing random number generator
Tue Dec 15 19:11:56 2009 :: Setting time and weather
Tue Dec 15 19:11:56 2009 :: Assigning gsn's
ASSIGN_GSN: Skill multi-form not found.
ASSIGN_GSN: Skill tri-form not found.
ASSIGN_GSN: Skill mystic not found.
ASSIGN_GSN: Skill super kamikaze ghost attack not found.
Tue Dec 15 19:11:56 2009 :: Loading DNS cache...
Tue Dec 15 19:11:56 2009 :: Reading in area files...
******AREAS here*******
Tue Dec 15 19:11:56 2009 :: Fixing exits
Tue Dec 15 19:11:56 2009 :: Initializing economy
Tue Dec 15 19:11:56 2009 :: Resetting areas
*****AREA resets here******
Tue Dec 15 19:11:56 2009 :: Loading buildlist
Tue Dec 15 19:11:56 2009 :: ../gods/Daraku
Tue Dec 15 19:11:56 2009 :: Loading boards
Tue Dec 15 19:11:56 2009 :: Loading Global Boards
Tue Dec 15 19:11:56 2009 :: Loading clans
Tue Dec 15 19:11:56 2009 :: Loading clans...
Tue Dec 15 19:11:56 2009 :: vesania
Tue Dec 15 19:11:56 2009 :: Storeroom not found
Tue Dec 15 19:11:56 2009 :: remnant
Tue Dec 15 19:11:56 2009 :: Storeroom not found
Tue Dec 15 19:11:56 2009 :: zfight
Tue Dec 15 19:11:56 2009 :: Storeroom not found
Tue Dec 15 19:11:56 2009 :: sacred
Tue Dec 15 19:11:56 2009 :: Storeroom not found
Tue Dec 15 19:11:56 2009 :: spf
Tue Dec 15 19:11:56 2009 :: Storeroom not found
Tue Dec 15 19:11:56 2009 :: icerianempire.clan
Tue Dec 15 19:11:56 2009 :: Storeroom not found
Tue Dec 15 19:11:56 2009 :: united
Tue Dec 15 19:11:56 2009 :: Storeroom not found
Tue Dec 15 19:11:56 2009 :: rra.clan
Tue Dec 15 19:11:56 2009 :: Storeroom not found
Tue Dec 15 19:11:56 2009 :: mystic.clan
Tue Dec 15 19:11:56 2009 :: Storeroom not found
Tue Dec 15 19:11:56 2009 :: $
Tue Dec 15 19:11:56 2009 :: Loading alliance data
Tue Dec 15 19:11:56 2009 :: Done clans
Tue Dec 15 19:11:56 2009 :: Loading deities
Tue Dec 15 19:11:56 2009 :: Loading deities...
Tue Dec 15 19:11:56 2009 :: $
Tue Dec 15 19:11:56 2009 :: Done deities
Tue Dec 15 19:11:56 2009 :: Loading councils
Tue Dec 15 19:11:56 2009 :: Loading councils...
Tue Dec 15 19:11:56 2009 :: newbie_council
Tue Dec 15 19:11:56 2009 :: hoi.council
Tue Dec 15 19:11:56 2009 :: dua.council
Tue Dec 15 19:11:56 2009 :: ac.council
Tue Dec 15 19:11:56 2009 :: $
Tue Dec 15 19:11:56 2009 :: Done councils
Tue Dec 15 19:11:56 2009 :: Loading watches
Tue Dec 15 19:11:56 2009 :: Loading bans
Tue Dec 15 19:11:56 2009 :: Done.
Tue Dec 15 19:11:56 2009 :: Loading reserved names
Tue Dec 15 19:11:56 2009 :: Loading censored words
Tue Dec 15 19:11:56 2009 :: Updating rare/unique item counts.....
Tue Dec 15 19:11:56 2009 :: Checking player files....
Tue Dec 15 19:11:56 2009 :: Checking corpses....
Tue Dec 15 19:11:56 2009 :: Loading corpses
Tue Dec 15 19:11:56 2009 :: Loading space
Tue Dec 15 19:11:56 2009 :: Loading space...
Tue Dec 15 19:11:56 2009 :: Done starsystems
Tue Dec 15 19:11:56 2009 :: Loading ships
Tue Dec 15 19:11:56 2009 :: Loading ships...
Tue Dec 15 19:11:56 2009 :: Done ships
Tue Dec 15 19:11:56 2009 :: Loading governments
Tue Dec 15 19:11:56 2009 :: Loading planets...
Tue Dec 15 19:11:56 2009 :: earth.planet
Tue Dec 15 19:11:56 2009 :: cou.planet
Tue Dec 15 19:11:56 2009 :: vegeta.planet
Tue Dec 15 19:11:56 2009 :: namek.planet
Tue Dec 15 19:11:56 2009 :: furiza.planet
Tue Dec 15 19:11:56 2009 :: fakenamek.planet
Tue Dec 15 19:11:56 2009 :: $
Tue Dec 15 19:11:56 2009 :: Done planets
Tue Dec 15 19:11:56 2009 :: Loading Immortal Hosts
Tue Dec 15 19:11:56 2009 :: Done.
Tue Dec 15 19:11:56 2009 :: Loading Projects
Tue Dec 15 19:11:56 2009 :: Loading Morphs
Tue Dec 15 19:11:56 2009 :: Optimizing Morphs.
Tue Dec 15 19:11:56 2009 :: Done.
Tue Dec 15 19:11:56 2009 :: Loading Colors
Tue Dec 15 19:11:56 2009 :: Loading Housing System, Home Accessories Data, and H
ome Auctioning System
Tue Dec 15 19:11:56 2009 :: [*****] BUG: Cannot load house file: Aburame
****Tons of house files go here********
Tue Dec 15 19:11:56 2009 :: [*****] BUG: Cannot load house file: Zyon
Tue Dec 15 19:11:56 2009 :: [*****] BUG: Fread_accessories: Accessory doesn't ex
ist
Tue Dec 15 19:11:56 2009 :: [*****] BUG: Fread_accessories: Accessory doesn't ex
ist
Tue Dec 15 19:11:56 2009 :: [*****] BUG: Fread_accessories: Accessory doesn't ex
ist
Tue Dec 15 19:11:56 2009 :: Loading hiscore tables
Tue Dec 15 19:11:56 2009 :: Initializing socket
Tue Dec 15 19:11:56 2009 :: DragonBall Saga ready at address user1 on port 6000
.
Tue Dec 15 19:11:58 2009 :: Log invis card dropper: mpoload 100729
Tue Dec 15 19:12:08 2009 :: [*****] BUG: NULL ROOM: echo_to_room() The turbocar
doors close and it speeds out of the station.
Vengeance@user1 ~/dbs/area
$
I don't see anything about me attempting to connect, nor do I see anything buggy when I try to connect. :/
This thing is a pain. I had it working earlier | Top |
|
Posted by
| Nick Gammon
Australia (23,120 posts) Bio
Forum Administrator |
Date
| Reply #7 on Tue 15 Dec 2009 11:41 PM (UTC) |
Message
| It looks to me like the bug re echo_to_room() is a fatal error, causing the server to exit, since that was the last thing you saw.
I would be a bit worried about the bugs like "BUG: Cannot load house file: Aburame" - sounds like some files aren't there.
Try and get rid of all those loading bug errors. If that doesn't help you may have to fire up gdb and work out exactly what is happening:
http://mushclient.com/gdb
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Daraku
(15 posts) Bio
|
Date
| Reply #8 on Tue 15 Dec 2009 11:46 PM (UTC) |
Message
| All I can say is those bugs were already there when I had it running before. I'll clean them up, but I'm more focused on getting the MUD back up and running right now, so gdb it is. | Top |
|
Posted by
| Hanaisse
Canada (114 posts) Bio
|
Date
| Reply #9 on Tue 15 Dec 2009 11:52 PM (UTC) |
Message
| Was this an existing MUD you're restarting? A clean copy of DBSC doesn't contain houses. What I would do is go to the /houses folder and remove all the files, except for the required ones;
homeaccessories.dat
homebuy.dat
house.lst
Save the actual house files to another folder on your HD if you want to keep them. Then update house.lst so it looks like this;
It appears to me to be something wrong with the house files. Removing them from startup may allow you to at least connect to your mud and debug from there. |
aka: Hana
Owner in Training of: Fury of the Gods
alm-dev.org:4000 | Top |
|
Posted by
| Daraku
(15 posts) Bio
|
Date
| Reply #10 on Wed 16 Dec 2009 12:22 AM (UTC) |
Message
| Removed the house files, still can't get passed the "disconnected" from MUD client upon connecting. I'm just going to take a break from this for now, I've been working on it all day. | Top |
|
Posted by
| Hanaisse
Canada (114 posts) Bio
|
Date
| Reply #11 on Wed 16 Dec 2009 12:32 AM (UTC) |
Message
| Did you make clean/make?
What errors do you see on startup now? |
aka: Hana
Owner in Training of: Fury of the Gods
alm-dev.org:4000 | Top |
|
Posted by
| Daraku
(15 posts) Bio
|
Date
| Reply #12 on Wed 16 Dec 2009 11:26 AM (UTC) |
Message
| Alright, cleaned it up, did 'make' again. I'm seeing all the same things in startup as before, minus the house problems. And same as before, it seems to start, syslog shows it starting up, but the second I try to log into the game from my MUD client, I get the
Quote:
%%% Connecting to <localhost ip> on port 6000
%%% Connected to localhost on port 6000.
%%% Disconnected from server.
All I can say is, there's gotta be something wrong in one of the files associated with people logging in... I don't know... -.- | Top |
|
Posted by
| Hanaisse
Canada (114 posts) Bio
|
Date
| Reply #13 on Wed 16 Dec 2009 01:32 PM (UTC) Amended on Wed 16 Dec 2009 01:39 PM (UTC) by Hanaisse
|
Message
| Is there a reason you're using port 6000 instead of typical 4000? A quick google search brings up many pages that basically say..
Quote: This is pretty much an obvious sign of a firewall or other security program getting in the way. You might have gotten a pop-up window warning that a program (either XWin.exe or ssh.exe) was trying to make or accept a connection on port 6000. If you told the firewall to block it, that's the problem.
If your firewall or security program is set to block unexpected connections without even asking you, that could be the problem.
The easiest way to check this would be to teporarily turn off your firewall and security software, then try launching an X client again.
Change to port 4000 in your startup file and try again.
If that doesn't work, gdb it is then.
Instead of going into your src directory and using the startup go to your area directory and type;
and then;
Post the results. |
aka: Hana
Owner in Training of: Fury of the Gods
alm-dev.org:4000 | Top |
|
Posted by
| Nick Gammon
Australia (23,120 posts) Bio
Forum Administrator |
Date
| Reply #14 on Wed 16 Dec 2009 07:24 PM (UTC) |
Message
| I added a bit to my gdb posting, on this page:
http://www.mushclient.com/gdb
It mentions you can put a breakpoint on "exit" in case the MUD is choosing to exit. Then you can see why. |
- 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.
57,762 views.
This is page 1, subject is 2 pages long: 1 2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top