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 ➜ Running the server ➜ New to creating muds

New to creating muds

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


Pages: 1  2 3  4  5  

Posted by Reshad   (61 posts)  Bio
Date Reply #15 on Tue 28 Dec 2004 01:27 PM (UTC)
Message
Jeez... Whats wrong with helping someone? Thanks for helping and you don't need to say I am a master with php all the time...
This is my site:
www.filarn.com

But, please, just one question; After you choose which style you want, for example, you choose RIP style, and then you login, and then you get a message: Place your RIP Title screen here.............................

Where to edit that?

Please!
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #16 on Tue 28 Dec 2004 03:41 PM (UTC)
Message
Quote:
Whats wrong with helping someone?
Nothing's wrong with helping somebody. But it's a waste of your time and my time for me to spoon-feed you the answers, especially if you're a competent programmer as you said you were. I'm not here only to give you answers but also to help you find the answers yourself.

I don't know where the RIP title screen message is. I don't have a magic wand or anything: I would have to search for it using e.g. the Windows explorer search button or cygwin's grep command. But since it's your question, you might as well do the searching yourself. :-)

It's either hard-coded in the code somewhere, or in one of the helpfiles, or the system configuration files. You should be able to find something like that rather easily. I looked at it doesn't seem to be on the version I have; and I don't feel like downloading it when the answer can be found so simply by using a search button.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Reshad   (61 posts)  Bio
Date Reply #17 on Tue 28 Dec 2004 04:48 PM (UTC)
Message
Thanks for answering for the questions you could answer :-)

But, may I ask what codebase you are using and where to download? :-P
Top

Posted by Nick Cash   USA  (626 posts)  Bio
Date Reply #18 on Tue 28 Dec 2004 06:20 PM (UTC)
Message
About 45 seconds of searching turned up these 3 files:

mudtitle.rip
mudtitle.ans
mudtitle.asc

All say something like:
Draw your title screen here.........

Try editing those. They are found in the system directory.

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

Posted by Reshad   (61 posts)  Bio
Date Reply #19 on Tue 28 Dec 2004 06:27 PM (UTC)
Message
Wow, thanks alot! Your holy! Thanks!!!
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #20 on Tue 28 Dec 2004 07:00 PM (UTC)
Message
As Ksilyan said though, you want to learn how to use the search function. It will be invaluable in future development. Before you can apply any changes, you have to know where to change, right? So learn to use these functions like the back of your hand and you'll have a huge advantage that you didn't start with.

Also, since you've made some cosmetic changes to the log in process, you might want to read through the code that controls this. It is all in comm.c, and this is a very good place to look to understand how this specific codebase works if your a veteran programmer. If you search through there, for example, you will find things like calls to 'do_help(ch, "nmotd")' and the call to the mudtitle.* files.

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

Posted by Reshad   (61 posts)  Bio
Date Reply #21 on Tue 28 Dec 2004 07:44 PM (UTC)
Message
Is it possible to make it so, that you do not have to be level 2 to save your character?
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #22 on Tue 28 Dec 2004 08:09 PM (UTC)

Amended on Tue 28 Dec 2004 08:10 PM (UTC) by Nick Gammon

Message
Of course it's possible, but I must agree with my colleagues here that it is important to understand how things work, and work it out for yourself rather than posting simple questions. Here are some clues:


  • The message about "You must be at least second level to save" appears when you save, right? So it must be something to do with saving.

  • Most commands in SMAUG are handled by a function do_xxxx where xxxx is the command.

  • Thus, you want the do_save command.

  • If you go to the src (source) directory of SMAUG, and type:


    grep do_save *.c


    You will soon find which file do_save is.

  • Another approach is to use "ctags" (or gctags as it seems to be these days). To do this, type (in the src directory):


    gctacs *.c *.h


    Then you can just type:


    vi -t do_save


    This will open the vi editor pointing to the do_save function.

  • If you do that you will see something that makes it pretty obvious what the answer to your question is:

    
    void do_save( CHAR_DATA *ch, char *argument )
    {
      if ( IS_NPC(ch) )
          return;
      if ( ch->level < 2 ) {
          send_to_char_color( 
        "&BYou must be at least second level to save.\n\r", ch );
          return;
        }
      WAIT_STATE( ch, 2 ); /* For big muds with save-happy players, like RoD */
      update_aris(ch);     /* update char affects and RIS */
      save_char_obj( ch );
      saving_char = NULL;
      send_to_char( "Saved...\n\r", ch );
      return;
    }
    




A lot of this is covered in my web page:


http://www.gammon.com.au/smaug/howtocompile.htm


Read it. Try the examples. You will save us the effort of explaining everything again, and save yourself time while you wait for someone else to answer your questions.



- Nick Gammon

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

Posted by Reshad   (61 posts)  Bio
Date Reply #23 on Tue 28 Dec 2004 08:23 PM (UTC)
Message
Thanks, but how do I do a ''grep''

Sorry, I promise this is my last question!
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #24 on Tue 28 Dec 2004 09:19 PM (UTC)
Message
Grep is a *nix comamnd that is used to search through files. If you want to make any substantial changes, you will need to change the code, and to do this you will need a way to compile your source files. One popular choice is a *nix emulator called "cygwin". Nick has a guide on how to download and install it, I would suggest you read through that. The grep function, if downloaded during installation, will work in cygwin.

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #25 on Tue 28 Dec 2004 11:02 PM (UTC)
Message
You can also use explorer's built-in search function. Go to the directory you want to search in (includes subfolders by default) and press the search button. Then, don't specify a file name; specify what you're searching for. Other programs such as Visual Studio also have find-in-files support that you can use.

Quote:
But, may I ask what codebase you are using and where to download? :-P
I have an old heavily modified SMAUG 1.0 codebase, in addition to stock 1.4a from smaug.org. I already gave you the download link, Nick's site.

You might really want to look into getting Cygwin, though. It really is a nice environment, especially for any kind of work with MUDs.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Reshad   (61 posts)  Bio
Date Reply #26 on Wed 29 Dec 2004 11:23 AM (UTC)
Message
Ah, oke thanks. Lol, I had promised that I wouldn't ask anymore... Well, I still have lots of questions;

How to choose which vnum a players goes when he/she dies?
Top

Posted by Reshad   (61 posts)  Bio
Date Reply #27 on Wed 29 Dec 2004 12:08 PM (UTC)
Message
And does anyone know how to make a mob so that it stays on 1 vnum so it doesnt move?
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #28 on Wed 29 Dec 2004 01:57 PM (UTC)
Message
For the second one, you can look into your help files, they should have an explanation of what needs to be done. The other is defined in mud.h, something that I would recommend you look through, many helpfil things to know in there.


If you've never code a mud before and don't know how to build on one, I would suggest you try to get some direct help with an experienced person. A good builder is worth their weight in gold, and most builders are willing to teach people as well.

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

Posted by Reshad   (61 posts)  Bio
Date Reply #29 on Wed 29 Dec 2004 02:11 PM (UTC)
Message
Thanks for answering...

Well, ok, which builder is willing to help me? I just have a few small questions, nothing more, nothing less.

Please?
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.


151,021 views.

This is page 2, subject is 5 pages long:  [Previous page]  1  2 3  4  5  [Next page]

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.