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
➜ Compiling the server
➜ more RACES problems
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Akula
(24 posts) Bio
|
Date
| Tue 15 Jan 2002 01:30 AM (UTC) |
Message
| I know there are problems with races on Smaug 1.4 but this is absurd.
It won't let me choose from the DEFAULT race 'gnome'.
Also how do I make it that ANY class can choose any race?
Thanks
AK
| Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #1 on Tue 15 Jan 2002 02:17 AM (UTC) |
Message
| I would change this code in comm.c, function nanny:
if (iRace != RACE_VAMPIRE
&& race_table[iRace]->race_name && race_table[iRace]->race_name[0] != '\0'
&& !IS_SET(race_table[iRace]->class_restriction, 1 << ch->class)
&& str_cmp(race_table[iRace]->race_name,"unused") )
The line in bold appears to be the class restriction. Delete that and you should be able to select any class.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Yaakov
USA (10 posts) Bio
|
Date
| Reply #2 on Sun 07 Jan 2007 09:02 PM (UTC) |
Message
| I was reading old posts and I seemed to run into the same difficulty as this gentleman. When a player started a new character they were unable to see all of the races after they selected their class. When I removed the line in code as Nick advised in this post, all of the races included in the Race.lst showed up, HOWEVER, you still could not select all of them from the list (That is not a Race, what IS your Race?)
Before I attempt to solve this myself I would like to know if anyone else has run into any similiar problems and would be able to help me.
I am using SmaugFuss17 and have not altered the sourcecode so this is how the package comes.
(One of my ideas is changing the 'class' value to 0 in all of the races files but this may be absurd).
Thanks,
Yaakov |
Yaakov | Top |
|
Posted by
| Conner
USA (381 posts) Bio
|
Date
| Reply #3 on Sun 07 Jan 2007 10:26 PM (UTC) |
Message
| Which race are you not able to select? |
-=Conner=-
--
Come test your mettle in the Land of Legends at telnet://tcdbbs.zapto.org:4000
or, for a little family oriented medieval fun, come join us at The Castle's Dungeon BBS at telnet://tcdbbs.zapto.org
or, if you just want information about either, check our web page at http://tcdbbs.zapto.org | Top |
|
Posted by
| Yaakov
USA (10 posts) Bio
|
Date
| Reply #4 on Mon 08 Jan 2007 05:04 PM (UTC) |
Message
| After applying the '0' for the 'class' on all the racefiles included in the .lst, and after removing the line above, the only race currently that does not show up is 'troll' - originally half-troll but I renamed it. However, I renamed half-orc to orc and this one shows up.
Yaakov
|
Yaakov | Top |
|
Posted by
| Conner
USA (381 posts) Bio
|
Date
| Reply #5 on Mon 08 Jan 2007 08:00 PM (UTC) |
Message
| Setting the class value to 0 should just mean that any class can be that race. Is the renamed troll file listed in your races.lst file? and within the troll race file, is the race number still right (i.e., it doesn't conflict with any of the others)? |
-=Conner=-
--
Come test your mettle in the Land of Legends at telnet://tcdbbs.zapto.org:4000
or, for a little family oriented medieval fun, come join us at The Castle's Dungeon BBS at telnet://tcdbbs.zapto.org
or, if you just want information about either, check our web page at http://tcdbbs.zapto.org | Top |
|
Posted by
| Yaakov
USA (10 posts) Bio
|
Date
| Reply #6 on Mon 08 Jan 2007 08:29 PM (UTC) |
Message
| Well, Conner, I did find a solution to my problem - it was a bit obvious from my end but on the same note a bit unexpected.
Race #5 was supposed to be _Vampire_ and it was now Troll. I made a _Robot_ race in place of it and just set all the numbers up one digit and now I can select any race and they all appear quite nicely (all 8 of them).
I guess _Vampire_ was supposed to be a throw away race since it never showed up from the begining :P
All comments are welcome,
Yaakov
|
Yaakov | Top |
|
Posted by
| Conner
USA (381 posts) Bio
|
Date
| Reply #7 on Mon 08 Jan 2007 11:43 PM (UTC) |
Message
| I think Thoric had decided to make vampires strictly a class rather than a race but the code for the vampire race was only hidden rather than removed. On my mud I've re-enabled the vampire race (I still have the vampire class too), but if you're replacing the vampire race, then yes, you'd want to remove the code that was used to hide it too. Personally, I think they left the vampire race in there as a hidden race initially while they were converting vamps from a race to a class and then either left it for NPCs or forgot about it. *shrug* |
-=Conner=-
--
Come test your mettle in the Land of Legends at telnet://tcdbbs.zapto.org:4000
or, for a little family oriented medieval fun, come join us at The Castle's Dungeon BBS at telnet://tcdbbs.zapto.org
or, if you just want information about either, check our web page at http://tcdbbs.zapto.org | 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.
25,132 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top