races

Posted by Blackhawk on Wed 02 May 2001 08:18 PM — 10 posts, 41,496 views.

USA #0
We were editing the race files, which came to us like this:

Name Human~
Race 0
Classes 512
Str_Plus 0
Dex_Plus 0
Wis_Plus 0
Int_Plus 0
Con_Plus 0
Cha_Plus 0
Lck_Plus 0
Hit 0
Mana 0
Affected 0
Resist 0
Suscept 0
Language 1
Align 0
Min_Align -1000
Max_Align 1000
AC_Plus 0
Exp_Mult 100
Attacks 0
Defenses 0
Height 66
Weight 150
Hunger_Mod 0
Thirst_mod 0
End

And went tried to edit the saving throw mod online, with “setrace human saving_poison_death 1” and then looked at it with showrace and it looked fine, then we saved with “setrace human save” and all seemed well, but this is what the file looked like afterwards:

Name Human~
Race 0
Classes 512
Str_Plus 0
Dex_Plus 0
Wis_Plus 0
Int_Plus 0
Con_Plus 0
Cha_Plus 0
Lck_Plus 0
Hit 0
Mana 0
Affected 0
Resist 0
Suscept 0
Language 1
Align 0
Min_Align -1000
Max_Align 1000
AC_Plus 0
Exp_Mult 100
Attacks 0
Defenses 0
Height 66
Weight 150
Hunger_Mod 0
Thirst_mod 0
Mana_Regen 0
HP_Regen 0
Race_Recall 0
WhereName <used as light> ~
WhereName <worn on finger> ~
WhereName <worn on finger> ~
WhereName <worn around neck> ~
WhereName <worn around neck> ~
WhereName <worn on body> ~
WhereName <worn on head> ~
WhereName <worn on legs> ~
WhereName <worn on feet> ~
WhereName <worn on hands> ~
WhereName <worn on arms> ~
WhereName <worn as shield> ~
WhereName <worn about body> ~
WhereName <worn about waist> ~
WhereName <worn around wrist> ~
WhereName <worn around wrist> ~
WhereName <wielded> ~
WhereName <held> ~
WhereName <dual wielded> ~
WhereName <worn on ears> ~
WhereName <worn on eyes> ~
WhereName <missile wielded> ~
WhereName <worn on back> ~
WhereName <worn over face> ~
WhereName <worn around ankle> ~
WhereName <worn around ankle> ~
WhereName <BUG Inform Nivek> ~
WhereName <BUG Inform Nivek> ~
WhereName <BUG Inform Nivek> ~
WhereName (null)~
End

I am new to this and puzzled. I have been trying to get rid of a race or two and add some other ones.

Thanks!
Australia Forum Administrator #1

Sounds like a bug in the race saving code. I would edit the race files manually (ie. with Notepad).

For some helpful hints on setting up SMAUG, including adding classes, races, and so on, see http://www.cs.utk.edu/~london/smaug/.

There is also another very useful set of pages: Herne's SMAUG Building Guides, at: http://webhome.idirect.com/~helspawn/smaug.html.

Amended on Wed 02 May 2001 10:31 PM by Nick Gammon
USA #2
Thanks i have read both of those links and am still having a problem. I am using a notepad type editor (UltraEdit) for the race files. and editting them while smaug is 'off-line'.
I have been able to add a race called Wood-Elf, and modify it with no problems at all, but i can't seem to add a race called Silver-Elf. Or more exactly, i can add the race (silver-elf.race) but when i log on as a new player and choose a class and then try and choose a race, silver-elf is never among the races i can choose. Even though all the allowed classes are set in the silver-elf.race file. (no dis-allowed classes)
The silver-elf race is in the race.lst file. and also shows up just fine with a "showrace silver-elf" command or just "showrace" or "showrace 5".
Any ideas?
Australia Forum Administrator #3
There is a field in the server, MAX_RACES, which needs to be increased if you are adding a race. I found that when I added a new race, it would list all available races, less one (for some reason).

You need to recompile to change that field.
USA #4
Yeah, i thought about that, but there are only 8 races in the races.lst file.
showrace lists 0-7 races used, and 8-19 unused.
Australia Forum Administrator #5
OK, but I still found (for some obscure reason that I didn't pursue) that if I had 9 races it only showed the first 8. So, I needed one extra one, that wasn't on the list. Try making yet another one, and then seeing if one of your new ones appears. If it works, don't ask why. :)

USA #6
Hmm... Well, your advice gave me some ideas.

"showrace" does show all the races, and "showrace silver-elf" works fine too.

But I added back one of the races that i had taken out earlier, lizardman. Added him to the end of the races.lst file. quit and logged on as new, and he showed up, no problems, but still no silver-elf. so, then i got the bright idea to swap silver-elf and lizardman's places in the races.lst (really just reordered them so lizardman was #5 in the list) and sure enough silver-elf shows up when i logged on as new.
interesting. seems to be a hole where race #5 is when you log on and choose your race. this is not a BIG problem, as i can put an unwanted race there, but still. interesting. have to track this down eventually.
i haven't modified the source, yet....

Thanks!
#7
This is hardcoded to prevent anyone from using RACE_VAMPIRE,
there are two fixes for this, either remove the RACE_VAMPIRE checks in comm.c, or simply move RACE_VAMPIRE to the end of the list in mud.h
Nivek
#8
This gets to a question on another thread I was asking about. I need a race vampire, so why does the code prevent anyone from using RACE_VAMPIRE?
USA #9
Perhaps because it's not finished?