Jump to content

Culpa Innata SFS files.


Pikor
Go to solution Solved by Ghylard,

Recommended Posts

Hi,

I have file with SFS expansion. I used QuickBMS to export from this file. It contain TXT files.
 

idstring "SFS1"
get FILES short
for i = 1 <= FILES
	get NAMEL short
	getDstring NAME NAMEL
	get OFFSET long
	savepos MYOFF
	goto OFFSET
	get SIZE long
	math OFFSET += 4
	goto MYOFF
	log NAME OFFSET SIZE
next i




So... QB work great when we replace file with the same or less size. Have you any idea where I find any "repacker" or how pack this file with different size of replace files?

PS. Forcing in the QB corrupts the file.

Subtitle.zip

Edited by Pikor
Link to comment
Share on other sites

  • Engineer
5 hours ago, Pikor said:

Hi,

[...]

So... QB work great when we replace file with the same or less size. Have you any idea where I find any "repacker" or how pack this file with different size of replace files?

PS. Forcing in the QB corrupts the file.

Hi, there may be game-specific repackers but quickbms is the only "universal" repacker I know of.

The problem with oversized repacked files is like so: say the white rectangle is a replacement file with bigger size. So it will damage the beginning of file 2 on repacking.

symbolic picture of packed archive

So you need to cut all 4 files from the archive and concatenate them (binary) again with file 1 replaced.

But there might be offsets in the archive header which need to be corrected then.

Generally it's not that simple. So you urgently need to understand the structure of the archive for such.

(Just a wild guess, maybe someone knows better?)

Edited by shak-otay
Link to comment
Share on other sites

5 minutes ago, EmptyMan said:

So, it's Culpa Innata, right? I can probably make text tool.

Yep 🙂 You probably know is an another file (CutScene.sfs) keeping cutscenes subtitle but not only txt (nif, KF, dat). I will be VERY thankfull if you try make a tool.

 

3 hours ago, shak-otay said:

Hi, there may be game-specific repackers but quickbms is the only "universal" repacker I know of.

The problem with oversized repacked files is like so: say the white rectangle is a replacement file with bigger size. So it will damage the beginning of file 2 on repacking.

symbolic picture of packed archive

So you need to cut all 4 files from the archive and concatenate them (binary) again with file 1 replaced.

But there might be offsets in the archive header which need to be corrected then.

Generally it's not that simple. So you urgently need to understand the structure of the archive for such.

(Just a wild guess, maybe someone knows better?)

Thanks for explanation. I trying the same method with another game file and there everything worked fine. Probably engine can handle that "messy" file 😛

Link to comment
Share on other sites

  • 2 weeks later...
  • Solution

Tools were made by Kurt, a member of a Spanish team who undertook to translate the game.

The team provided me with these tools, which also enabled me to undertake the French translation of the game.

These tools work perfectly and take care of all the changes that need to be made to the game to translate it, the sfs, nif and BG(x) files as well as the game.dat file, which contains a few texts.

 

Tools_CI_v0.3.rar CI_gamedat.7z

Link to comment
Share on other sites

On 9/16/2024 at 4:15 PM, Ghylard said:

The designer of these tools had designed a bms script for extraction and reimport, but the latest developments in Quickbms with the Repack functions have rendered his script useless.

Even with the included quickbms in Tools_CI_v0.3.zip? Presumably the code behind the browsing butons must have been removed in version 3, because in the other buttons show the "OpenFileDialog" (even run Tools_CI_v.0.3.exe alone without rest of files).

And file you attached seems be only importer.

 

Edited by Pikor
Link to comment
Share on other sites

  • 2 weeks later...
  • Pikor changed the title to Culpa Innata SFS files.
  • 3 weeks later...

@Ghylard I have a question. Do you happen to know where some of the puzzle.bg items are and how to access them? For example:


. obraz.png.796c27224f2646e9907439d04c8d6689.png

The puzzle.bg file is the background, but some of the tiles with graphics are in the charnorm.trk and chardown.trk file, I think.

Link to comment
Share on other sites

  • 4 weeks later...
On 9/16/2024 at 4:15 PM, Ghylard said:

Yes, indeed. the GUI drives bms scripts.
The one that handles SFS files is missing.

The designer of these tools had designed a bms script for extraction and reimport, but the latest developments in Quickbms with the Repack functions have rendered his script useless.

 

culpainnata_importar_cutscene_v081-Beta.7z 1.95 kB · 6 downloads


I have fixed this script. From now on, it can be used to package the CutScene.sfs file without worrying about text length.

Place the extracted files in the configuration below:

Extracted\Data\CutScene\<the rest of the folders>
Extracted\CutScene\<the rest of the folders>
Place CutScenes.sfs next to the BMS script file.
Run Import.bat -> command in: quickbms.exe -G -w -r -a "Data" culpainnata_importar_cutscene_v081-Beta.bms CutScene.sfs Extracted

CutScenesBMS.zip

Edited by Pikor
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...