save.c (SMAUG 1.4a)

Posted by AlaricX on Sat 25 May 2002 12:16 AM — 4 posts, 16,233 views.

#0
Whenever i add a field to f*_char in save.c, compile, then load up my character, it gives me a segmentation fault, i am trying to add my own IMMTITLE and PRETITLE, like

instead of
(Immortal) Alaric the supreme entity is before you.
it is
(Coder) Lord Alaric the Supreme Entity is before you.

but whenever i edit save.c it segfaults on character load, as i said.. how do i fix?
Australia Forum Administrator #1
You probably didn't recompile everything. If you change a structure like that you need to recompile everything that uses it. Try this:


rm *.o
make
#2
K, thanks...i was thinking along those lines, but i normally (i know its a bad habit ) dont MAKE CLEAN or rm any o files because it takes too long for me... thanks for your help
#3
Also, i have a magic0flagged container but when i SAVE it is a non-magic container, i had something in code that i found it said /* Munch magic-flagged containers for now - bandaid */.. i commented that whole bit of code, it worked, but wen i reloadedmmy char the items in it were obliterated... how do i get magic-flagged containers working? ( has to do with save.c... i think )