War Front - Turning Point text compression/encoding

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
balcsida
Posts: 1
Joined: Sun May 31, 2020 11:18 am

War Front - Turning Point text compression/encoding

Post by balcsida »

So there is this older game that I would like to mod (War Front - Turning Point), but all the text files in it are encoded in some way that I can't identify.
It might be something obvious, but still...
As an example, I have the file logsystem2.inf. I choose this file because as a mistake, the game devs left untouched in the Multiplayer Demo version of the game, so I know how the file should look like:

Code: Select all


[: cLogSystem2]
{
   _RefID = 1

   [LogTargets *]
   {

      [: cLogFile]
      {
         _RefID = 2
         Name = "Default"
         Binary = 1
         Opened = 0
         Filter = ""
         BufferSize = 1048576
         AsynchronWrite = 1
         FileName = "ProgLog.prlog"

      }
      [: cLogTextFile]
      {
         _RefID = 3
         Name = "Text"
         Binary = 0
         Opened = 0
         Filter = ""
         FileName = "ProgLog.txt"

      }
   }
}



Using binwalk and offzip I can see that this is a zlib compressed stream and I can even uncompress it, but it is still have some kind of compression that I couldn't identify with anything (see 0000000c.dat attached).
I can see the textual forms in it (e.g. cLogSystem2) but still.

The developers also left a batch script titled converttobinary.bat which seems to do this conversion:

Code: Select all

bc "aaspot.base" B
...
bc "zsakutca.base" B
del *.bak


I tried to find this BC program, but I couldn't find anything on the net, I suspect this is some custom text to binary converter (but correct me if I'm wrong).