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 ➜ SMAUG coding ➜ Changing the starting vnum for new players

Changing the starting vnum for new players

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


Posted by Zune   (76 posts)  Bio
Date Tue 01 Jan 2008 04:58 PM (UTC)
Message
I can't seem to find any documentation on this relatively simple task, so I figured I'd ask the wise denizens of Gammon's space. :)

How do I change the room vnum where new players spawn? Running smaugFUSS.

- Zune
Top

Posted by Corey   (54 posts)  Bio
Date Reply #1 on Tue 01 Jan 2008 05:35 PM (UTC)
Message
You mean where they start out in the game the first time they enter? it's hard coded. the code says dump them into room 100. err, I forget where thou in the files.
Top

Posted by Corey   (54 posts)  Bio
Date Reply #2 on Tue 01 Jan 2008 05:41 PM (UTC)
Message
Ok, I found it, it's in mud.h
rhese rooms are all hard coded.

#define ROOM_VNUM_LIMBO 2
#define ROOM_VNUM_POLY 3
#define ROOM_VNUM_CHAT 1200
#define ROOM_VNUM_TEMPLE 21001
#define ROOM_VNUM_ALTAR 21194
#define ROOM_VNUM_SCHOOL 10300
#define ROOM_AUTH_START 100
#define ROOM_VNUM_HALLOFFALLEN 21195
#define ROOM_VNUM_DEADLY 3009
#define ROOM_VNUM_HELL 6

enjoy
Top

Posted by Conner   USA  (381 posts)  Bio
Date Reply #3 on Tue 01 Jan 2008 06:05 PM (UTC)

Amended on Tue 01 Jan 2008 06:06 PM (UTC) by Conner

Message
In mud.h find:
#define ROOM_VNUM_SCHOOL        10300
#define ROOM_AUTH_START        100

and change them as desired. The first one is where players start if you turn player authorization off in cset and the second one is the room they start in if player authorization is turned on.

-=Conner=-
--
Come test your mettle in the Land of Legends at telnet://tcdbbs.zapto.org:4000
or, for a little family oriented medieval fun, come join us at The Castle's Dungeon BBS at telnet://tcdbbs.zapto.org
or, if you just want information about either, check our web page at http://tcdbbs.zapto.org
Top

Posted by Zune   (76 posts)  Bio
Date Reply #4 on Tue 01 Jan 2008 08:46 PM (UTC)
Message
Thanks gents. Princes among men. One other novice question: after editing .c files in smaugFUSS/src/, do I have to have to use MAKE in cygwin to make the changes final?
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #5 on Tue 01 Jan 2008 09:03 PM (UTC)
Message
Yes.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Zune   (76 posts)  Bio
Date Reply #6 on Tue 01 Jan 2008 11:53 PM (UTC)
Message
Sorry for these noobish questions, guys.

I edited the vnum and saved the mud.h file in VIM. I opened cygwin, went to the smaugFUSS/src directory, and typed "make". I then had "make -s smaug" show. I rebooted the MUD and tried it and the new vnum isn't being used.

I'm almost sure this is a newbie programming problem related to compiling or something. Any suggestions?
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #7 on Tue 01 Jan 2008 11:57 PM (UTC)
Message
If you edit .h files, you need to make clean.

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


23,816 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.