Login
User Name:

Password:



Register

Forgot your password?
Hi - Clean SmaugFuss map/description issue..
Dec 15, 2024 7:29 pm
By Samson
AFKMud 2.2.4
Dec 10, 2024 4:09 pm
By Samson
I3 and IMC
Dec 8, 2024 6:35 pm
By Remcon
Ubuntu 22.04.5 LTS
Dec 5, 2024 5:10 pm
By Remcon
SmaugFUSS 1.8/1.9
Nov 29, 2024 11:46 am
By Remcon
SWFOTEFUSS 1.5.1
Author: Various
Submitted by: Samson
SWRFUSS 1.4.1
Author: Various
Submitted by: Samson
SmaugFUSS 1.9.5
Author: Various
Submitted by: Samson
AFKMud 2.2.4
Author: AFKMud Team
Submitted by: Samson
LOP 1.5
Author: Remcon
Submitted by: Remcon
Users Online
Bing, AhrefsBot

Members: 0
Guests: 39
Stats
Files
Topics
Posts
Members
Newest Member
494
3,808
19,707
588
Mortrex

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 >>