ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Tue Nov 19, 2019 2:50 am

All times are UTC




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Tue Aug 13, 2019 10:15 pm 

Joined: Tue Aug 13, 2019 10:12 pm
Posts: 5
Is there any way to open Godfather 2 .str files? I'd like to change some mobster names and maybe available colors for clothes. Since I couldn't find anything to open these files, I turned to hex editor (which proved useful for editing Scarface TWIY music stored in .rsd files), but I only managed to find some Almeida and Cuban rebels names. I looked up every text file in game directory, but I couldn't find mobster names for Carmine Rosato, Tony Rosato, Granados, Manganos or Corleone gangsters. Also, I couldn't read major parts of text files since hex editor wasn't showing actual text. Any ideas?

Sample file:
https://filebin.net/1nulofzjqfdsqlr9


Top
   
PostPosted: Mon Sep 30, 2019 4:37 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10822
Link expired


Top
   
PostPosted: Tue Oct 01, 2019 1:28 am 

Joined: Tue Aug 13, 2019 10:12 pm
Posts: 5
Updated link:
https://filebin.net/1nulofzjqfdsqlr9

It would be great to crack this file format


Top
   
PostPosted: Tue Oct 01, 2019 11:06 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10822
There is already a topic about these files I guess:
viewtopic.php?t=1840

The str files are compressed with the RefPack algorithm:
Code:
comtype dk2
goto 0x34
get SIZE long
goto 0x44
get ZSIZE long
savepos OFFSET
get NAME basename
clog NAME OFFSET ZSIZE SIZE
The decompressed file has the LCH2 magic at the beginning.

Anyway already exist tools so find and use them.


Top
   
PostPosted: Thu Oct 03, 2019 9:54 pm 

Joined: Tue Aug 13, 2019 10:12 pm
Posts: 5
Sorry for late reply, I was really busy.

I already tried using strtool, but I'm not quite sure how it works (although I've edited files for several games, I never used command line to do it). How would I, for example, use that tool to extract text from .str files? And since the topic about .str format was last replied almost 2 years ago, I don't expect to get help there, also that topic is about Godfather 1 and I wonder if the file format is the same as in the Godfather 2.

I'm not a programmer, modding game files is just my hobby. Any help is greatly appreciated.


Top
   
PostPosted: Sat Oct 05, 2019 12:27 am 
User avatar

Joined: Tue Oct 13, 2015 1:26 pm
Posts: 488
aluigi wrote:
The str files are compressed with the RefPack algorithm:
Code:
comtype dk2
goto 0x34
get SIZE long
goto 0x44
get ZSIZE long
savepos OFFSET
get NAME basename
clog NAME OFFSET ZSIZE SIZE
The packages could have many files and they are chunked, and not all chunks are always compressed, only when they have the "kapR" identificator. Something like this (Pascal):
Code:
type
   TDataChunk = packed record
      Magic: Array[0 .. 3] of AnsiChar;
      ZSize: UInt32;
      ComType: Array[0 .. 3] of AnsiChar;
   end;

type
   TData = record
      Magic: Array[0 .. 3] of AnsiChar;
      HeaderSize: UInt32;
      RDHS: Array[0 .. 3] of AnsiChar;
      Unknown: Array[0 .. 27] of Byte;
      DataSize: UInt32;
      Chunks: TArray<TDataChunk>;
   end;

type
   TStr = record
      Magic: Array[0 .. 3] of AnsiChar;
      HeaderSize: UInt32;
      Unknown: UInt32;
      Files: TArray<TData>;
   end;

_________________
Tribo Gamer Brasil


Top
   
PostPosted: Sat Oct 05, 2019 10:39 pm 

Joined: Tue Aug 13, 2019 10:12 pm
Posts: 5
Ok...

But I'm not trying to 'dissect' the file and analyze its structure. My goal, for example, is to change Corleone gangster name from Matt Pettifer to e.g. Salvatore Salerno (just an example, I have many ideas for gangsters from all crime families). Can that be archieved, and is there any application or tool that would allow viewing and editing text stored in .str files? All I'm trying to do is to change some gangster names, but considering the fact that Godfather 2 was never very popular, it proved to be much trickier than I thought


Top
   
PostPosted: Thu Oct 10, 2019 12:19 pm 

Joined: Tue Aug 13, 2019 10:12 pm
Posts: 5
https://filebin.net/h86v2axc97f2y2mx

These are all text files I could find inside game directory


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 8 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited