Server Help

General Questions - .blo

Agurus - Sat May 08, 2004 12:29 am
Post subject: .blo
What reads .blo files?
SuSE - Sat May 08, 2004 12:39 am
Post subject:
http://www.molgen.mpg.de/~xdigitise/

http://www.molgen.mpg.de/~xdigitise/xddtools/man/xdd2blo.html

http://www.molgen.mpg.de/~xdigitise/xddtools/man/blo2xdd.html

...although considering the obscurity of that and the likelihood of you having much to do with genetic research...it's probably for something else
Mr Ekted - Sat May 08, 2004 12:43 am
Post subject:
If anyone publicly released a utility to extract graphics from Infantry/CR, Sony would probably get upset. That's not to say people don't already know the file format, or already have said utilities.
Anonymous - Sat May 08, 2004 9:56 pm
Post subject:
Didn't one come with the OLDOLDOLDOLD file that i think is no longer hosted on shanky's site that was like shanky.com/infantry back when infantry was just out of beta? Because i remember a .blo file viewer......
Mr Ekted - Sat May 08, 2004 10:08 pm
Post subject:
I remember a viewer too, but it didn't let you extract all the frames from animation.
Anonymous - Sun May 09, 2004 11:14 am
Post subject:
I have all the beta software.

Blob Editor reads .blo files, which really all it does is allow you to assign graphic and sound files under a single file title (maybe with a bit of compression).

The gfx files themselves, however, are encoded within a specifically designed, by Jeff himself, encryption.
I believe I have something which can unencrypt the old ones.


SONY CAN SUCK MY COCK!

Rod's dead, he's a sellout. icon_cry.gif

Love live Jeff! icon_twisted.gif
Mr Ekted - Sun May 09, 2004 11:52 am
Post subject:
They are not encrypted. They are just encoded in a way that allows for them to be drawn on-the-fly as is. They are stored as one-byte-per-pixel data (palettized), loaded and converted to 16-bit-per-pixel data pseudo code (draw blue pixel, skip 27 pixels, draw red pixel...).
Anonymous - Mon May 10, 2004 1:50 am
Post subject:
Encoding, encryption, same thing. icon_smile.gif
Well, ok, sure, of course it's not, but I tend to get confused since it's english.

I did say it was encoded, did I not?

Eitherway, Juan's models own.
Mr Ekted - Mon May 10, 2004 3:26 am
Post subject:
Grav(FU OL) wrote:
...encoded within a specifically designed, by Jeff himself, encryption...


This implies you meant encryption. biggrin.gif
Anonymous - Mon May 10, 2004 11:53 am
Post subject:
W-H-A-T- -E-V-E-R

[quote=quote of requote of requote of a quote or something]encoded[/quote]

Juan still owns.

Bahaha!
Anonymous - Mon May 17, 2004 8:33 pm
Post subject:
can i still have one email?
Death+ - Sun May 30, 2004 6:02 am
Post subject: Are you looking for this ?


Hey Agurus,

The BlobEditor is for combining graphics and sound files together into a single file. (kind of like an archive)

I would offer to extract any files you need. The thing is all of the Infantry/Cosmic Rift gfx's are encoded as ".cfs" the Infantry/Cosmic Rift image format Jeff or Rod made. I only have a .bmp to .ctfs converter. Sorry Agurus icon_sad.gif


I am not going to be releasing any of the editors or server software for Infantry / Cosmic Rift. Don't even ask me.
CypherJF - Sun May 30, 2004 2:07 pm
Post subject:
icon_sad.gif always were trying to figure out a program to extract some infantry images; but like said before, Sony would be very very upset. :-/
Siaon - Mon Dec 19, 2005 2:06 pm
Post subject:
Edit: As far as I know, the .cfs files are simple 16bits bitmap files. (And definately not encrypted)


Code: Show/Hide
//////////////////////////////////////////////////////////////////////////////
//   unpacking Infantry Archive                     Version 1.00.09.15   //
//   programmed by Raoul Laurentiis with GPL                           //
//////////////////////////////////////////////////////////////////////////////

//   file format
//   0000-0003                        :   BLO Header
//   0004-0007                        :   Number of Files
//   0008-+SFAT1 or STAF2 * Number of files   :   File Allocation Tables
//   ++++-EOF                        :   Data Files

//   BLO Header
//   0x01   :   File Allocation Table Version 1
//   0x02   :   File Allocation Table Version 2

//   File Allocation Table Version 1
//   byte[14]   :   File Name
//   word      :   Data File Position
//   word      :   Data File Size

//   File Allocation Table Version 2
//   byte[32]   :   File Name
//   word      :   Data File Position
//   word      :   Data File Size


#include <stdio.h>

#pragma pack(1)
struct SFAT1 {
   char   szFileName[14];
   int      nFilePos;
   int      nFileSize;
};

struct SFAT2 {
   char   szFileName[32];
   int      nFilePos;
   int      nFileSize;
};

struct SHead {
   int      nHead;
   int      nFile;
};

int main(int argc, char* argv[]) {
   long   lFileSize;
   char*   lpszBuffer;
   SHead*   lpSH;
   SFAT1*   lpFAT1;
   SFAT2*   lpFAT2;

   if(argc==1)   {printf("Usage: upinf [filename]\n");   return 0;}
   if(argc!=2)   {printf("argument error\n");         return 1;}

   FILE*   fp=fopen(argv[1],"rb");
   if(!fp)      {printf("File not found\n");         return 2;}


   fseek(fp, 0L, SEEK_END);
   lFileSize   = ftell(fp);
   
   if(!lFileSize)   {printf("file size error\n");      return 3;}

   fseek(fp,0L,SEEK_SET);

   lpszBuffer   = new char[lFileSize];
   fread(lpszBuffer,sizeof(char),lFileSize,fp);

   fclose(fp);
   lpSH   = new SHead;
   lpSH   = (SHead*)lpszBuffer;

   if(!lpSH->nHead) {printf("not BLO file\n");delete   lpSH;delete[]   lpszBuffer;return 4;}

   if(lpSH->nHead==1) {
      lpFAT1   = new SFAT1[lpSH->nFile];
      lpFAT1   = (SFAT1*)(lpszBuffer+sizeof(SHead));
   }
   if(lpSH->nHead==2) {
      lpFAT2   = new SFAT2[lpSH->nFile];
      lpFAT2   = (SFAT2*)(lpszBuffer+sizeof(SHead));
   }


   for(int i=0;i<lpSH->nFile;i++) {
      if(lpSH->nHead==1) {
         fp   = fopen(lpFAT1[i].szFileName,"wb");
         fwrite(lpszBuffer+lpFAT1[i].nFilePos,sizeof(char),lpFAT1[i].nFileSize,fp);
         fclose(fp);
      }
      if(lpSH->nHead==2) {
         fp   = fopen(lpFAT2[i].szFileName,"wb");
         fwrite(lpszBuffer+lpFAT2[i].nFilePos,sizeof(char),lpFAT2[i].nFileSize,fp);
         fclose(fp);
      }
   }

   lpSH   = NULL;
   lpFAT1   = NULL;
   lpFAT2   = NULL;
   delete[]   lpszBuffer;
   lpszBuffer   = NULL;

   return 0;
}

SpecShip - Mon Dec 19, 2005 4:26 pm
Post subject:
LoL.
1. Good job ressurecting a dead thread.
2. Don't you have the cfs editor?
Cyan~Fire - Tue Dec 20, 2005 10:25 am
Post subject:
There's nothing wrong with resurrecting an old thread as long as you contribute something...
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group