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