thanks, i got the info i was looking for
Spree

--- Dennis <[EMAIL PROTECTED]> wrote:
> Well, if you'd look at your code, this question
> would answer itself.
> 
> You changed the table.  What structure was the table
> using?  You posted
> most of the table before.  You just left off the
> first few lines.  Such
> as the one declaring the type of the table:
> "const   struct  pc_race_type    pc_race_table   [] 
>     =".
> So yes, it is the pc_race_type in merc.h that you
> need to look at.
> 
> Now, for your previous question.  As SoullessKnightX
> pointed out, you
> need to pay attention to the structure you're using.
> You know it's the second field giving you trouble. 
> From the merc.h code
> you posted below, you can see that field is defined
> as "char who_name[6]",
> an array of 6 characters.  What are you putting in
> it?  "BioAnd", an
> array of 7 characters.  Unless my math is rusty, 7 >
> 6 is still true.
> So you've got 6 characters of text, and then
> whatever happens to come
> after it.  Note that you have the same problem with
> "Canine" and "Feline".
> You just happened to get lucky so far with those.
> 
> The two easy solutions?  Shrink your strings to fit
> in the 6 bytes you have,
> or take SoullessKnightX's suggestion and increase
> the size of the array
> to fit the strings you want to put in it.
> 
> 
> Dennis
> 
> 
> On Tue, 12 Mar 2002, Justin Strait wrote:
> 
> > oops i meant is it struct char_data in merc.h
> >
> > its this where your talking about or is it the
> struc
> > pc_race table?
> > struct pc_race_type                 /* additional
> data
> > for pc races    */
> > {
> >     char *  name;                   /* MUST be in
> > race_type            */
> >     char    who_name[6];
> >     sh_int  points;                 /* cost in
> points
> > of the race      */
> >     sh_int  class_mult[MAX_CLASS];  /* exp
> multiplier
> > for class, * 100 */
> >     char *  skills[5];              /* bonus
> skills
> > for the race       */
> >     sh_int  stats[MAX_STATS];       /* starting
> stats
> >                 */
> >     sh_int  max_stats[MAX_STATS];   /* maximum
> stats
> >                 */
> >     sh_int  size;                   /* aff bits
> for
> > the race           */
> > };
> >
> > --- [EMAIL PROTECTED] wrote:
> > > 1.) Do a clean compile.
> > > 2.) Check the string length. You may have to
> > > increase it in merc.h so it can
> > > fit. When I added in my races I wanted the whole
> > > name to appear on the who
> > > listing, and I changed the buffer to 10 instead
> of 5
> > > or something (Can't
> > > remember) and it worked fine.
> > > 3.) Make sure max_race has the correct amount.
> > >
> > > --
> > > ROM mailing list
> > > [email protected]
> > > http://www.rom.org/cgi-bin/mailman/listinfo/rom
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Try FREE Yahoo! Mail - the world's greatest free
> email!
> > http://mail.yahoo.com/
> >
> >
> 
> 


__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

Reply via email to