Make sure you're doing a clean compile every time you alter merc.h. That is, remove all of the files with a .o extension, remove the executable, and compile again. That's most likely your problem. The compiler converts structure members to a memory address offset in machine code. This makes it a lot faster than languages like Java, where all member locations have to be looked up at execution time.. But if you add a field to the structure, it's going to screw up all of the offsets in already compiled modules. Anyway, most of that isn't important.. just remember to clean compile every time you change the structures in merc.h. --Palrich.
Michael Weiss wrote: > > I'm a newbie coder and have been doing fairly well with one exception. I am > having a hard time adding fields to the pfiles. Whenever I modify save.c to > add a field (and add it in merc.h as well). It compiles fine.. but upon > reboot, a number of various results ensue.... > > The most common of which is the age field gets altered significantly > I've also had it where immortal permissions are disallowed and players exp > and tnl are affected as well. (fortunately only on the code port). > > Any suggestions as to why I can not seem to be able to add a field without > problems? > > Thanks for any help/guidance you can offer! > > -Mike

