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 ➜ Many probs.

Many probs.

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


Pages: 1 2  

Posted by Edasich   (10 posts)  Bio
Date Wed 22 Dec 2004 07:37 AM (UTC)
Message
Okay, first, im not used to smaug, i've only coded Lp and a few custom. And it was awhile ago so i forgot basic coding commands, like how to access files from within the game. So could someone give me the basics really quick? Plus heres a few things i need help with
1:How can i make it so their are infinite number of levels, imms dont have a set level they are just giving builder/immortal tags. and the privlages.

2.How can I change stat maxes

3.anyway to implement multiclassing?

4.I have my comp set up as a server, but when i give my friend ip/port/name ect. it wont let him join? anyone got an idea as to why?

Thx for the help. I'll probly be posting alot more :D
Top

Posted by Edasich   (10 posts)  Bio
Date Reply #1 on Wed 22 Dec 2004 07:41 AM (UTC)
Message
Hehe, forgot some stuff

Also want to know how to get rid of bludgeion/short blades/ that sort of stuff, and instead add skills like sword/hand to hand/ mace/axe/dagger and such.

uhm..i think thats all. thx again :)
Top

Posted by Frobozz   (75 posts)  Bio
Date Reply #2 on Wed 22 Dec 2004 12:06 PM (UTC)
Message
Quote:

1:How can i make it so their are infinite number of levels, imms dont have a set level they are just giving builder/immortal tags. and the privlages.

2.How can I change stat maxes

3.anyway to implement multiclassing?


1- Yes, but this is a bit more tricky because "immortality" is determined by Max_Level - 15, with Max_level being the highest immortal. I can explain more on this later. (late for work)

2- Yes, definately. Grep around for max_stats.

3- Visit Samson's site, he has a nice multiclassing snippet on there that will give you a good way to go.

"Also want to know how to get rid of bludgeion/short blades/ that sort of stuff, and instead add skills like sword/hand to hand/ mace/axe/dagger and such. "

Look at const.c for that.

sorry I couldnt be more percise, late already!
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #3 on Wed 22 Dec 2004 02:02 PM (UTC)

Amended on Wed 22 Dec 2004 04:39 PM (UTC) by Greven

Message
There is am inheirent problem with creating an infiniate level smaug, in that the levels are ingrained in the mud everywhere, it would be very, very difficult to do. As for having imms ignore levels and use jobs to assign commands, what I did was add a field for flags, and have each command with the same flags. If the immortal has any of the flags on the command, they have access to the command.

As for people not connecting, do you have this through a router?

Nobody ever expects the spanish inquisition!

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

Posted by Edasich   (10 posts)  Bio
Date Reply #4 on Wed 22 Dec 2004 08:52 PM (UTC)
Message
Ya, its running through a cable connection router
thx for all the help so far too
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #5 on Wed 22 Dec 2004 08:58 PM (UTC)
Message
Make sure that in your router settings, you have forwarded the connecting port to the server computer. Also make sure that you permit that port through on any firewalls your running, and make sure your using your external(the routers) IP, no your LAN IP.

Nobody ever expects the spanish inquisition!

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

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #6 on Wed 22 Dec 2004 09:47 PM (UTC)
Message
Have a search of this forum before posting lots of questions. A lot are already answered, so that saves you time, the answer is there already. For example, the "can't connect" problem comes up quite frequently. Try searching for "router" or "firewall".

As for infinite levels, you could probably quite easily add an "imm flag" rather than testing a level number.

- Nick Gammon

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

Posted by Edasich   (10 posts)  Bio
Date Reply #7 on Wed 22 Dec 2004 09:52 PM (UTC)
Message
Okay, does Smaug run only on the Cygwin when it comes to coding, or does it code like an LP and do self compiling?
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #8 on Wed 22 Dec 2004 10:07 PM (UTC)
Message
Smaug is not self compiling, no, you have to compile it after every change you make. Nick has a great guide to that available on this site.

Nobody ever expects the spanish inquisition!

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

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #9 on Wed 22 Dec 2004 11:06 PM (UTC)
Message
How would a MUD go about "compiling itself"? Unless you mean that it's fully scripted?

To answer your other question, SMAUG runs on nearly any Unix-based environment (as far as I know) and there are a few Win32 ports. In fact, I believe the stock SMAUG 1.4 comes with some Windows-port stuff in it. I also think Nick's version here has a Win32 port.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

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

Posted by Edasich   (10 posts)  Bio
Date Reply #10 on Wed 22 Dec 2004 11:23 PM (UTC)
Message
Okay,i figured out most of the coding, but i cant find the src file. where can i get it?
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #11 on Wed 22 Dec 2004 11:25 PM (UTC)
Message
You figured out the coding without the source files...?

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

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

Posted by Edasich   (10 posts)  Bio
Date Reply #12 on Wed 22 Dec 2004 11:29 PM (UTC)
Message
When i said i figured it out i mean now i know how to code, before i was confused on that part, now i got that down, but what i need is the src folder, becasue apparently the smaug d/l i got dident have it. where can i get it?
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #13 on Wed 22 Dec 2004 11:52 PM (UTC)
Message
Try http://www.gammon.com.au/downloads/dlsmaug.htm as a starting point.

- Nick Gammon

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

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #14 on Wed 22 Dec 2004 11:55 PM (UTC)
Message
Quote:

How would a MUD go about "compiling itself"? Unless you mean that it's fully scripted?


According to the first web page I found when Googling LPMUD:

Quote:

LPmuds are basically just an interpreter with a small runtime environment in it. The runtime environment takes care of some things like file access and network communications, and that is about it. All other aspects of the game are programmed in the interpreted language LPC (in real usually byte-compiled).


However I was under the impression the MUD did actually call the C compiler to compile itself on-the-fly. Maybe it does both.

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


51,317 views.

This is page 1, subject is 2 pages long: 1 2  [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.