Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Yandex

Members: 0
Guests: 14
Stats
Files
Topics
Posts
Members
Newest Member
477
3,706
19,240
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » 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, 7: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, 2:52 pm   Last edited Jul 18, 2010, 2: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 >>