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 MUD Levels

Changing MUD Levels

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


Posted by Dragontalon   (2 posts)  Bio
Date Thu 25 Dec 2003 06:07 AM (UTC)
Message
Okay, I realize this has been done a lot before and I apologize for going over this again, but none of it seemed to help. I'm new at this, and I want to start up a mud just so I can build areas offline and tweak with some stuff while I'm learning.
I want to change the max level to 115. I've changed it in mud.h and fixed everything up, but I can't figure out how to compile it all. I've tried the Borland compiler as I thought that it would handle C, but I'm obviously not doing something right :P. If someone could let me know what to do, step by step, I'd be very much appreciative.
Thanks.
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #1 on Thu 25 Dec 2003 07:37 AM (UTC)
Message
Where did you get your copy of SMAUG? What operating system are you running on? Since you mentioned the Borland compiler I assume you're running on Windows? If so, do you have a Windows distribution of SMAUG? Are you using Cygwin on Windows perhaps?

Here is a distribution from this site that comes with instructions:
http://www.gammon.com.au/smaug/smaug.htm

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

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

Posted by Dragontalon   (2 posts)  Bio
Date Reply #2 on Thu 25 Dec 2003 04:23 PM (UTC)
Message
Im running Windows 98 SE. I got my copy of Smaug from Zylara's homepage; its Smaug 1.4. I don't have Cygwin. It won't download onto my computer right and as someone told me, it works well only if you know exactly how to use it. Im afraid I don't :P.
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #3 on Thu 25 Dec 2003 08:05 PM (UTC)
Message
In that case you need to download a Win32 distribution; that link I gave has more details on where to get the file, and where to find instructions on setting it up.

To my knowledge, there is no guide for the Borland compiler; most (all?) people use MS Visual C++ 6.0 or MS VS.NET. If you know your way around the Borland compiler, however, and look at the guides for Visual C++, you should be able to adapt the settings to a Borland project.

You are entirely right about Cygwin- it's not to be messed with by people who aren't clear with what they're doing (note that generally it suffices to know Unix to be able to set up Cygwin.) That applies to the whole MUD coding scene as well; if you jump in without any/enough knowledge of programming you can very rapidly get discouraged and meet only frustration.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

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

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #4 on Fri 26 Dec 2003 10:29 PM (UTC)
Message
Quote:

It won't download onto my computer right and as someone told me, it works well only if you know exactly how to use it. Im afraid I don't


Unfortunately, although Borland (and Microsoft's compiler) have nice GUI interfaces with menus and cool stuff like that, you also have difficulties if you don't know how to use them. It is just that it feels like they *ought* to be easy to use.

For instance, when I first tried to compile SMAUG under Windows (using the Microsoft compiler) it took me about 2 to 3 days of full-time work to convert it from the Unix-style system calls to Windows ones, particularly in areas of file handling and TCP/IP - and I am a professional programmer.

Thus, the ease-of-use of the compiler was largely negated by the changes that were needed.

Have you read my page:

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

Half-way down is an example of compiling SMAUG using Cygwin, from scratch. You can compile and run SMAUG using only 7 lines of typing (taken from that page). Here they are, for the record:


tar xzf smaug1.4a_mxp.tgz
cd smaug/dist/src
mv Makefile Makefile.Unix
mv Makefile.Cygwin Makefile
make
cd ../area
../src/smaug.exe


Once you have got that working you can make changes (eg. to the number of levels) and then recompile. Recompiling is as simple as typing:


cd ../src
make


If you change an include file (eg. the number of area) you may need to recompile everything, which involves one more line:


rm *.o
make


Once compiled without errors you can test again:


cd ../area
../src/smaug.exe


It really isn't that bad.

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


14,060 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.