Login
User Name:

Password:



Register

Forgot your password?
do_owhere recursive
Author: Khonsu
Submitted by: Khonsu
Changes list / Addchange
Author: Khonsu
Submitted by: Khonsu
6Dragons mp3 sound pack
Author: Vladaar
Submitted by: Vladaar
AFKMud 2.2.3
Author: AFKMud Team
Submitted by: Samson
SWFOTEFUSS 1.5
Author: Various
Submitted by: Samson
Users Online
AhrefsBot

Members: 0
Guests: 33
Stats
Files
Topics
Posts
Members
Newest Member
489
3,791
19,644
596
Elwood

Today's Birthdays
There are no member birthdays today.
» SmaugMuds » Codebases » SWR FUSS » File complaints
Forum Rules | Mark all | Recent Posts

File complaints
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Jul 18, 2010 9:51 am   
Go to the top of the page
Go to the bottom of the page

Banner
Magician
GroupMembers
Posts169
JoinedNov 29, 2005

 
This makes no sense.

Sun Jul 18 10:43:32 2010 :: Done loading Structure Data..
Sun Jul 18 10:43:32 2010 :: Loading Player Memory Module
Sun Jul 18 10:43:32 2010 :: Loading Player Accounts
Sun Jul 18 10:43:32 2010 :: [*****] FILE: $ LINE: 25
Sun Jul 18 10:43:32 2010 :: [*****] BUG: fread_word: EOF encountered on read.

Sun Jul 18 10:43:32 2010 :: [*****] FILE: $ LINE: 25
Sun Jul 18 10:43:32 2010 :: [*****] BUG: loadAccountFile: bad section: ()
Sun Jul 18 10:43:32 2010 :: [*****] FILE: $ LINE: 25
Sun Jul 18 10:43:32 2010 :: [*****] BUG: loadAccountFile: # not found.
Sun Jul 18 10:43:32 2010 ::  Done Player Accounts 
Sun Jul 18 10:43:32 2010 :: Reading in Vendors


bool loadAccountFile( const char *file )
{                 
   char filename[256];
   ACCOUNT_DATA *account;
   FILE *fp;
   extern FILE *fpArea;
   bool found;

   account = new ACCOUNT_DATA;
   account->alts = 0;

   found = FALSE;
   sprintf( filename, "%s%s", ACCOUNT_DIR, file );

   if( ( fp = FileOpen( filename, "r" ) ) != NULL )
   {

      fpArea = fp;
      found = TRUE;
      for( ;; )
      {
         char letter;
         const char *word;  

         letter = fread_letter( fp );
         if( letter == '*' )
         {
            fread_to_eol( fp );
            continue;
         }

         if( letter != '#' )
         {
            bug( "loadAccountFile: # not found.", 0 );
            break;
         }

         word = fread_word( fp );
         if( !str_cmp( word, "ACCOUNT" ) )
         {
            freadAccount( account, fp );
            continue;
         }
         else if( !str_cmp( word, "PLAYER" ) )
         {
            freadPlayer( account, fp );
            continue;
         }
         else if( !str_cmp( word, "END" ) )
            break;
         else
         {
            bug( "loadAccountFile: bad section: (%s)", word );
            continue;    
         }  
      }                
      FileClose( fp );
      fpArea = NULL;
   }

   if( !found )
      delete account;

   return found;
}


#ACCOUNT
Name         Banner~
Password     x~
Host         x~
Email        x~
Created      1279463271
LastOn       1279463271
VerifString  x~
Verified     1
VerifTimes   3
RPP          0
End

#PLAYER
Name    Banner~
Level   0
Created 1279464079
LogOff  1279464079
LogOn  1279464079
Logons 0
Room    100
End

#END

Post is unread #2 Jul 18, 2010 4:52 pm   Last edited Jul 18, 2010 4:53 pm by Banner
Go to the top of the page
Go to the bottom of the page

Banner
Magician
GroupMembers
Posts169
JoinedNov 29, 2005

 
Fix'd.
         word = fread_word( fp );
         if( !str_cmp( word, "ACCOUNT" ) )
         {
            freadAccount( account, fp );
            continue;
         }
         else if( !str_cmp( word, "PLAYER" ) )
         {
            freadPlayer( account, fp );
            break;
         }

Pages:<< prev 1 next >>