Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ ROM ➜ Running the server ➜ BUG: Save_skills : NULL fpn

BUG: Save_skills : NULL fpn

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Thornan   (8 posts)  Bio
Date Sun 30 Oct 2005 10:45 PM (UTC)
Message
What does this bug mean and how do I fix it?

I installed OLC 201 on Rom24b6 after I put in lopes colour and copyover 4. And this is the bug I get. I have tried figuring it out but I cannot figure it out. please help me with it.
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #1 on Sun 30 Oct 2005 11:33 PM (UTC)
Message
Could you search the code for that bug message, and post the related code?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Thornan   (8 posts)  Bio
Date Reply #2 on Mon 31 Oct 2005 12:32 AM (UTC)
Message
grep -r Save_skills ./
Binary file ./tablesave.o matches
./tablesave.c: bug( "Save_skills : NULL fpn", 0 );
Binary file ./rom matches

In tablesave.c is this:

void grabar_skills( void )
{
FILE *fpn;
int i;

fpn = fopen( SKILL_FILE, "w" );

if ( !fpn )
{
bug( "Save_skills : NULL fpn", 0 );
fclose( fpn );
return;
}

fprintf( fpn, "%d\n", MAX_SKILL );

for ( i = 0; i < MAX_SKILL; ++i )
{
fprintf( fpn, "#SKILL\n" );
save_struct( fpn, &sk, skillsavetable, &skill_table[i] );
fprintf( fpn, "#END\n\n" );
}

fprintf( fpn, "#!\n" );

fclose( fpn );
}


I am not sure what to do here. I am still learning to code so I sometimes get stumped.
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #3 on Mon 31 Oct 2005 12:34 AM (UTC)
Message
This means that the SKILL_FILE is either missing or has the wrong permissions. Check in the header file for what SKILL_FILE is, and see if it exists.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Thornan   (8 posts)  Bio
Date Reply #4 on Mon 31 Oct 2005 12:38 AM (UTC)
Message
This is what's in the tablesave.h (header) file. But I think it is in another language. Atleast part of it. I don't recognize these "grabar" "cargar" words.



void grabar_skills( void );
void grabar_razas( void );
void grabar_progs( int minvnum, int maxvnum );
void grabar_tabla_comandos( void );
void grabar_socials( void );
MPROG_CODE * pedir_prog( int vnum );
void cargar_comandos(void);
void cargar_razas(void);
void cargar_socials(void);
void cargar_skills(void);
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #5 on Mon 31 Oct 2005 12:40 AM (UTC)
Message
Well they could be a short name, like cargar could mean "C Arg Ar" which could be short for something. But nothing there relates to SKILL_FILE.

Do this command in the shell:
grep SKILL_FILE *.h

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Thornan   (8 posts)  Bio
Date Reply #6 on Mon 31 Oct 2005 12:42 AM (UTC)
Message
ok. It returned nothing. Just back to prompt.
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #7 on Mon 31 Oct 2005 12:44 AM (UTC)
Message
If it's not even defined, that's a bigger problem. Try searching for SKILL_FILE in all files. Was that grabar_skills function part of stock Rom, or the snippet you put in?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Thornan   (8 posts)  Bio
Date Reply #8 on Mon 31 Oct 2005 12:46 AM (UTC)
Message
grabar is part of the olc that I am installing. not part of stock rom. I tried a search in all files and it didn't return anything either.
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #9 on Mon 31 Oct 2005 12:48 AM (UTC)
Message
Ah well then, three things are possible. Something was missed in the installation of the snippet (it should have told you to define SKILL_FILE as something), the snippet forgot to include that instruction, or it was assumed SKILL_FILE was already defined. I'm not familar with ROM. Double check the snippet and make sure there is nothing else about SKILL_FILE. If there isn't, you'll have to ask the original snippet author, or wait for someone who knows a bit more about ROM than myself.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Thornan   (8 posts)  Bio
Date Reply #10 on Mon 31 Oct 2005 12:50 AM (UTC)
Message
ok thanks for the help you have given me. I appreciate it. If you know of anyone who knows more about ROM please could you point them toward this thread? Thanks again. Oh and I found out what grabar means. It's spanish for: to record
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #11 on Mon 31 Oct 2005 12:53 AM (UTC)
Message
Ah okay, in Spanish eh.

Anyways, mudmagic.com has their own section of the forum for ROM. You could try asking there.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


25,731 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.