Problems with new races

Posted by Bob The Hydra on Tue 17 Apr 2001 11:42 PM — 9 posts, 32,631 views.

#0
When I add a race it doesn't show up in the race selection but I can still select them and thier stats and things are completely screwed up. I add the information in const.c to both tables and adjust the max races. Am I missing something?
USA #1
could be one of 2 things, first in the source code(not sure exactly what file, may be comm.c) there is a place where it says max race -1, you need to remove the -1 so it will show new races on the selection screen, second in mud.h i believe there is a define for max race that you have to raise. just remember it has been awhile since i had this problem :)
#2
I have already altered the MAX_PC_RACE in merc.h. And i can't find the other thing your talking about.
#3
I figured it out... I put the race stats at the end of the structure but I needed to put it right after the last pc race.
Now when I tried adding a class everything compiles, I sstart the server create a new character give password, select race but right after I select a sex the server crashes... =( I'm havin a bad week.
#4
I forgot the server gives me this error:
Thu Apr 19 15:43:00 2001 :: ROM is ready to rock on port 4000.
Thu Apr 19 15:43:05 2001 :: Sock.sinaddr: 127.0.0.1
0 [main] rom 267633 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
1643 [main] rom 267633 stackdump: Dumping stack trace to ROM.EXE.stackdump
Segmentation fault (core dumped)

Australia Forum Administrator #5
You could try using gdb (the GNU debugger) to debug it. Don't ask me how to use it as I never have, but it might help.

Try typing: man gdb

to find more about it.
#6
On the races try changing the value of:

#define MAX_PC_RACE 5

to one more than the number of races you have

Once you do this it will show up in the race selection etc

Let me know if this works for you

DrCode
#7
On the sex crash issue:

it will crash when you choose sex because right after that it wants to check the classes table - make sure you have the right number of classes in the MAX_CLASS define:

#define MAX_CLASS 4

If this does not work let me know

DrCode
#8
One more thing these comments in my posts above assume
ROM2.4b6 if you do not have this version I highly recommend it

DrCode