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
➜ Adding new Races/Classes, Changing Levels
Adding new Races/Classes, Changing Levels
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Harsk
USA (47 posts) Bio
|
Date
| Thu 15 Nov 2001 08:14 AM (UTC) |
Message
| I was wondering how to add new races and classes to the precompiled server. I was able to do so online, but they wouldn't show up in the player logon sequence for character creation. Do you have to change some things in the code in order for the new races to appear?
Also, with the source code, I tried to set the levels higher for hero, and imm both. After I compiled, the server kept shutting down, and I keep getting the stack dump error. How can I resolve this? | Top |
|
Posted by
| Mudman10977
USA (2 posts) Bio
|
Date
| Reply #1 on Thu 15 Nov 2001 09:00 AM (UTC) |
Message
| Hey,
I'm not sure about the adjustment of the levels, but I know that there is a problem with the online race/class creation that doesn't actually save it to the class list online. You have to manually add your new classes to the class.lst. That worked for me in my old Smaug1.02 server, and I've heard that Smaug1.4a has the same problem, but I'm not sure as I haven't done any class/race editting yet (still working on the skill system).
The only thing I do know about the level limit issue is that you have to adjust more than just MAX_LEVELS, but I have no idea what all you'd have to change.
Hope this helps a bit.
|
MudMan
'Strange visitor from the planet NOCRYPTon.'
| Top |
|
Posted by
| Rok
(41 posts) Bio
|
Date
| Reply #2 on Thu 15 Nov 2001 10:17 PM (UTC) |
Message
| I Can help you wit changing levels but not today, I will tell you about the level change tomorrow, I am short on time, just know that help is on the way. |
The always thankful
~ROK~
(~Hey you~) | Top |
|
Posted by
| Elric
USA (51 posts) Bio
|
Date
| Reply #3 on Thu 15 Nov 2001 10:22 PM (UTC) |
Message
| And I can help with the addition of Classes and Races.. It isn't very hard.. In fact.. I added some of the strangest ones AD&D has on my MUD.. Heh.. Ever hear of TallFellows?
|
"By the pricking of my thumbs, something wicked this way comes. Open locks, whoever knocks!" MacBeth, Shakespeare | Top |
|
Posted by
| Harsk
USA (47 posts) Bio
|
Date
| Reply #4 on Wed 21 Nov 2001 03:45 PM (UTC) |
Message
| Can't say that I have, sounds interesting. Thanks for the help so far guys :) | Top |
|
Posted by
| Praylon
(3 posts) Bio
|
Date
| Reply #5 on Sat 01 Dec 2001 08:12 PM (UTC) Amended on Sat 01 Dec 2001 08:39 PM (UTC) by Praylon
|
Message
| Since no one else has answered this yet, thought I would try to see if I could help you out a bit.
First the levels. Easiest way to explain is show you what I did first.
In ../src/mud.h somewhere around line# 242 you will see;
#define MAX_LEVEL 180
#define MAX_CLAN 150
#define MAX_DEITY 150
a few lines lower...
#define LEVEL_HERO (MAX_LEVEL - 30)
#define LEVEL_IMMORTAL (MAX_LEVEL - 29)
#define LEVEL_SUPREME MAX_LEVEL
#define LEVEL_INFINITE (MAX_LEVEL - 1)
#define LEVEL_ETERNAL (MAX_LEVEL - 3)
#define LEVEL_IMPLEMENTOR (MAX_LEVEL - 5)
#define LEVEL_SUB_IMPLEM (MAX_LEVEL - 7)
#define LEVEL_ASCENDANT (MAX_LEVEL - 9)
#define LEVEL_GREATER (MAX_LEVEL - 11)
#define LEVEL_GOD (MAX_LEVEL - 13)
#define LEVEL_LESSER (MAX_LEVEL - 15)
#define LEVEL_TRUEIMM (MAX_LEVEL - 17)
#define LEVEL_DEMI (MAX_LEVEL - 19)
#define LEVEL_SAVIOR (MAX_LEVEL - 21)
#define LEVEL_CREATOR (MAX_LEVEL - 23)
#define LEVEL_ACOLYTE (MAX_LEVEL - 25)
#define LEVEL_NEOPHYTE (MAX_LEVEL - 27)
#define LEVEL_AVATAR (MAX_LEVEL - 29)
I wanted the highest level immortal 180, and heros 150. I simply stagered all the levels of immortals they provided, since I wasn't sure what affect deleting them would have.
After this step you will also want to change all your command levels also. Otherwise, all level 51 mortals will have all your imm commands, and even wizhelp won't show you what commands you have. So find ../system/commands.dat
each command looks like this;
#COMMAND
Name checkvnums~
Code do_check_vnums
Position 100
Level 160
Log 0
End
All you want to chage here is the levels, in my case builders will start at level 160 so that is where I set it.
At this point everything should run fine, but you will also want to chage the levels on all your coresponding help files.
WARNING: Do not just randomly delete anything unless you are sure EXACTLY how it works. I changed the Half-Elf race to a True Elf. So, all I did was delete the word Half, but now my helpfile was not in alfabetical order and the mud would not come up at all. Took me a week, and replacing the original help file, not to mention all the hours I had already edited it. Well you get the picture.
OK now on the Races. Find the ../race/race.lst
Originally it was something like;
Human.race
Elf.race
Dwarf.race
Halfling.race
Pixie.race
_Vampire_.race
Half-Ogre.race
Half-Orc.race
Half-Troll.race
Half-Elf.race
Lizardman.race
Sea-Elf.race
Gith.race
Drow.race
Gnome.race
$
Mine currently (after changes) looks like;
../races/Human.race
../races/Elf.race
../races/Centaur.race
../races/Fairy.race
../races/Ogre.race
../races/Troll.race
../races/Merfolk.race
../races/Draconian.race
../races/Etherial.race
../races/Djinn.race
../races/Giant.race
$
I started editing this by hand and simply deleting, or renameing the race files. However, I discovered that as long as there are no gaps in the race numbers the online setrace commands work great. So I highly recommend only edit by hand what you absolutly need to. You will find the number associated with each race in the file with the same name in that directory.
Name Etherial~
Race 8 <- This is all you realy need
Classes 0
The second line is the number of the race, and you must start at 0 for the first race (originaly human).
In other word, in the example above Human is race 0, Elf 1, Centaur 2, ... Now if say the #4 race was not on this list (Ogre), then everything from there down would not work right.
Also note when testing this that say I choose Paladin as a class, Ogres, Trolls, and Draconians can not be Paladins in my mud, so those races will be eliminated from the choice of races.
If there is anything I left out someone please let me know!
Hope this helps some,
Praylon | 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.
20,458 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top