[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Compiling the server
. . -> [Subject]  more RACES problems

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: more RACES problems
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Posted by Conner   USA  (381 posts)  [Biography] bio
Date Mon 08 Jan 2007 11:43 PM (UTC)  quote  ]
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
[Go to top] top

Posted by Yaakov   USA  (10 posts)  [Biography] bio
Date Mon 08 Jan 2007 08:29 PM (UTC)  quote  ]
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
[Go to top] top

Posted by Conner   USA  (381 posts)  [Biography] bio
Date Mon 08 Jan 2007 08:00 PM (UTC)  quote  ]
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
[Go to top] top

Posted by Yaakov   USA  (10 posts)  [Biography] bio
Date Mon 08 Jan 2007 05:04 PM (UTC)  quote  ]
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
[Go to top] top

Posted by Conner   USA  (381 posts)  [Biography] bio
Date Sun 07 Jan 2007 10:26 PM (UTC)  quote  ]
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
[Go to top] top

Posted by Yaakov   USA  (10 posts)  [Biography] bio
Date Sun 07 Jan 2007 09:02 PM (UTC)  quote  ]
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
[Go to top] top

Posted by Nick Gammon   Australia  (18,772 posts)  [Biography] bio   Forum Administrator
Date Tue 15 Jan 2002 02:17 AM (UTC)  quote  ]
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
[Go to top] top

Posted by Akula   (24 posts)  [Biography] bio
Date Tue 15 Jan 2002 01:30 AM (UTC)  quote  ]
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
[Go to top] 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.


3,073 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]