[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]  Starting room

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

Starting room

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


Posted by Zeno   USA  (2,867 posts)  [Biography] bio   Moderator
Date Wed 17 Sep 2003 02:05 AM (UTC)  quote  ]
Message
Ok, I know how to change the starting room for Smaug, so I did it. But when a new player enters the game I get this error.


Log: [*****] BUG: Char_to_room: Ziona -> NULL room!  Putting char in limbo (2)


The area is installed, and is not a prototype.
In mud.h, I changed the code to

#define ROOM_VNUM_SCHOOL           1300
#define ROOM_AUTH_START            1301


I'm sitting in 1300 when a player enters, so the room does exist.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Dace K   Canada  (169 posts)  [Biography] bio
Date Reply #1 on Wed 17 Sep 2003 08:18 AM (UTC)  quote  ]
Message
Is your char actually *starting* in the school/auth_start room? :P.
It might be defined as something else.

ASJ Games - .Dimension 2, Resident Evil, and snippets - oh my!
http://asj.mudmagic.com

Drop by the area archives and find something for your mud. http://areaarchives.servegame.com
[Go to top] top

Posted by Zeno   USA  (2,867 posts)  [Biography] bio   Moderator
Date Reply #2 on Wed 17 Sep 2003 07:16 PM (UTC)  quote  ]
Message
In comm.c its

            if (!sysdata.WAIT_FOR_AUTH)
              char_to_room( ch, get_room_index( ROOM_VNUM_SCHOOL ) );
            else
            {
              char_to_room( ch, get_room_index( ROOM_AUTH_START ) );
              ch->pcdata->auth_state = 0;
              SET_BIT(ch->pcdata->flags, PCFLAG_UNAUTHED);


I also changed ROOM_AUTH_START to 1300 to make sure. Its still getting the error.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Dace K   Canada  (169 posts)  [Biography] bio
Date Reply #3 on Thu 18 Sep 2003 04:48 AM (UTC)  quote  ]
Message
Hm. Only thing that makes sense to me would be if you had been editing the wrong mud.h file, or forgot to make clean before recompiling.

...you *did* make clean, right? :P

ASJ Games - .Dimension 2, Resident Evil, and snippets - oh my!
http://asj.mudmagic.com

Drop by the area archives and find something for your mud. http://areaarchives.servegame.com
[Go to top] top

Posted by Nick Gammon   Australia  (18,772 posts)  [Biography] bio   Forum Administrator
Date Reply #4 on Thu 18 Sep 2003 06:57 AM (UTC)  quote  ]
Message
Maybe in Char_to_room function, put in a display to show what room number it is attempting to transfer to, and failing.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Zeno   USA  (2,867 posts)  [Biography] bio   Moderator
Date Reply #5 on Thu 18 Sep 2003 07:21 PM (UTC)  quote  ]

Amended on Thu 18 Sep 2003 08:21 PM (UTC) by Zeno

Message
Yeah, only way mud.h would actually change the MUD is through a clean recomplile, and I've done that a few times so far.

Nick, you want to to display where it sends? I'll try that now, hold on.
[EDIT]
Ok, I did another make clean just in case, and now it lags when I try to connect. I got this bug.


Comm: Sock.sinaddr:  172.164.246.109, port 3393.
Log: [*****] BUG: ALARM CLOCK!  In section ALARM CLOCK!  In section ALARM CLOCK!  In section ALARM CLOCK!  In section
Alas, the hideous malevalent entity known only as 'Lag' rises once more!

Log: clearing newdesc
Comm: Sock.sinaddr:  172.164.246.109, port 3393.


And I've made sure that I did a make clean.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Nick Gammon   Australia  (18,772 posts)  [Biography] bio   Forum Administrator
Date Reply #6 on Thu 18 Sep 2003 10:53 PM (UTC)  quote  ]
Message
Hard to say what would cause that, other than a big pause.

A possible reason is that it is doing DNS lookups and you don't have a DNS server, so it can't find the IP address of the person connecting.

Try setting:

Nameresolving 0

in system.dat.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Zeno   USA  (2,867 posts)  [Biography] bio   Moderator
Date Reply #7 on Thu 18 Sep 2003 11:43 PM (UTC)  quote  ]

Amended on Sat 20 Sep 2003 04:30 AM (UTC) by Zeno

Message
Well, actually that was me testing if it would happen just once. I was on my immortal char and connected again through another char.


--- Connected on Thursday, September 18, 2003, 7:41 PM ---
Zeno

It stayed like that until 7:42:39, when it actually connected. I had Nameresolving set to 0 too.

[EDIT] All fixed. Lets get back to the start room, heh.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Zeno   USA  (2,867 posts)  [Biography] bio   Moderator
Date Reply #8 on Sun 21 Sep 2003 06:19 PM (UTC)  quote  ]
Message
Ugh, I can't figure out how to show it where its trying to send. Whats the variable I need to use? This is what I tried, and I knew it wouldn't work.

       bug( "Tried to send to %d", ch->in_room );

Of course they aren't in a room when you start.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Nick Gammon   Australia  (18,772 posts)  [Biography] bio   Forum Administrator
Date Reply #9 on Sun 21 Sep 2003 11:56 PM (UTC)  quote  ]
Message
In the code above you called get_room_index. Inside that is:

if ( fBootDb )
bug( "Get_room_index: bad vnum %d.", vnum );


This displays the bad room number when booting. To work out what is going on, comment out that first line:


// if ( fBootDb )
bug( "Get_room_index: bad vnum %d.", vnum );


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Zeno   USA  (2,867 posts)  [Biography] bio   Moderator
Date Reply #10 on Mon 22 Sep 2003 07:25 PM (UTC)  quote  ]

Amended on Tue 23 Sep 2003 04:49 AM (UTC) by Nick Gammon

Message
Alright, so I wasn't even close of what I was supposed to be doing. Anyways, its trying to send to 21001.


Log: [*****] BUG: Get_room_index: bad vnum 21001.
Log: [*****] BUG: Char_to_room: Ziona -> NULL room!  Putting char in limbo (2)
Log: [*****] BUG: Get_room_index: bad vnum 21001.


But... why? I've done multiple clean recompiles. The only thing thats defined as 21001 is #define ROOM_VNUM_TEMPLE. I'm going to try changing that now.

[EDIT]
Fine, so new characters were being sent to ROOM_VNUM_TEMPLE. I don't why, but I'll check it over.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[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,849 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]