Greetings all,

Ok, so I figured since I didn't get a single reply the last time, maybe it was the subject, so I'm trying with this, if no one still replies, I guess I'm outta luck and no one really has any idea, thanks anyway...

What I'm trying to do is separate spells from skills as I'm working on a D&D 3rd Edition MUD and spells work differently than skills... I tried to make a new savetable in tablesave.c (btw I'M using Ivans OLC 2.0 on a Rom24b6 codebase), and tried changing save_skills so that if it encounters a spell it will save it differently. Apparently my approach does not work. The problem I come up with is this, when it tries to save the minimum position, i get an error from my save_struct under case FIELD_FUNCION_SHINT_TO_STR from the fprintf...

#0  0x400aaab7 in vfprintf () from /lib/libc.so.6
#1  0x400b32f3 in fprintf () from /lib/libc.so.6
#2 0x080ab6a9 in save_struct (fp=0x8111c18, typebase=0x810a200, tabla=0x80e756c, header=0x810adc8) at tablesave.c:540
#3  0x080ac564 in save_skills () at tablesave.c:1047
#4 0x080a8b1c in skedit (ch=0x4030c454, argument=0x4030ba01 "save") at skedit.c:132

-snip-
                        case FIELD_FUNCION_SHINT_TO_STR:
                                function = temp->argument;
pshint = (sh_int *) ((int) temp->header_field - (int) typebase + (int) header);
                                chain = (*function) ((void *) pshint);
540>>                   fprintf( fp, "%s %s~\n", temp->field, chain );
                                break;
-snip-
(btw I translated some of the stuff from Spanish to English, i.e. FIELD_FUNCION_SHINT_TO_STR was CAMPO_FUNCTION_SHINT_TO_STR)

If anyone could explain to me what exactly is going on in this function (save_struct, and the cases) I would be glad to give it another shot, but I really don't understand what its trying to do here...

Thanks for any information...

Xanth Nomeda


Reply via email to