>
>Emil Nilimaa wrote:
> >
> > Ok,
> > this is a continue on the char_player_data
> > problem, with a few more things.
> >
> > Trying to add "something" in struct char_player_data
> > crashed the mud when using olc.
> > The things i tried to add were the afk snippet from ceramic mouse,
> > and some extra titles.. everything failed.
> > Olc crashed the mud.
> >
> > Now i tried another thing,
> > adding an attribute.. just to check...
> >
> > so added in class.c where the other stats are rolled:
> >
> > ch->orig_abils.voi = number(1, 10);
> >
> > and in structs.h with the other stats:
> >
> > sbyte emp;
> > sbyte wis;
> > sbyte cha;
> > sbyte intui;
> > sbyte voi; <-----------
> > };
> >
> > Now i didnt want this saved so didnt add it to the save functions
> > for ascii pfiled in db.c
> >
> > compiling code works, but this gives EXACTLY same thing
> > as the stuff i was trying to add in char_player_data,
> > the char *afk_message things etc.
> >
> > gdb gives:
> >
> > Program terminated with signal 11, segementation fault:
> >
> > #0 do_oasis (ch=0x82e2f40, argument=0xbffff881 "", cmd=205, subcmd=0)
> > at oasis.c:148
> >
> > in oasis.c at line 148 you find:
> >
> > if (d->olc) { <---------- 148
> > mudlog("SYSERR: do_oasis: Player already had olc structure.", BRF,
> > LVL_IMMORT, TRUE);
> > free(d->olc);
> > }
> > CREATE(d->olc, struct oasis_olc_data, 1);
>
>what value does d have, is it NULL? what about the contents of ch? does
>it look ok? what's the value of ch->desc? What version of oasis is
>this? 1.5,1.6,1.7, 2.0? (I think it's stock 2.0?) if you step the code
>does it set the value of d correcly to ch->desc a few lines back? Your
>alteration of the structs should have no bearing on this problem (but
>circle can sometimes do odd things :)
>
>Chris
>
yup oasis 2.0,
d is null yup, and ch->desc is null.. (0x0)
ch is (struct char_data *) 0x82e3270
Am not that good with gdb, so no clue how to step the code.. *chuckle*
/emil
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST