Pikor Posted September 3 Share Posted September 3 (edited) 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 September 28 by Pikor Link to comment Share on other sites More sharing options...
Engineer shak-otay Posted September 3 Engineer Share Posted September 3 (edited) 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 September 3 by shak-otay Link to comment Share on other sites More sharing options...
EmptyMan Posted September 3 Share Posted September 3 8 hours ago, Pikor said: Have you any idea where I find any "repacker" or how pack this file with different size of replace files? So, it's Culpa Innata, right? I can probably make text tool. 1 Link to comment Share on other sites More sharing options...
Pikor Posted September 3 Author Share Posted September 3 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 More sharing options...
EmptyMan Posted September 4 Share Posted September 4 15 hours ago, Pikor said: Yep Text tool @Pikor, please upload the CutScene.sfs file for analysis. Link to comment Share on other sites More sharing options...
Pikor Posted September 4 Author Share Posted September 4 (edited) Works perfectly 😉 I'm uploading all of them if you'd need any of them. https://gofile.me/7i7Sv/6RqswHVvw Edited September 19 by Pikor Link to comment Share on other sites More sharing options...
Solution Ghylard Posted September 13 Solution Share Posted September 13 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 More sharing options...
Pikor Posted September 15 Author Share Posted September 15 In Tools_CI_v0.3 don't work SFS section. After I press Browse Button nothing happen, but rest seems work perfect. Thanks 🙂 Link to comment Share on other sites More sharing options...
Ghylard Posted September 16 Share Posted September 16 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 Link to comment Share on other sites More sharing options...
Pikor Posted September 18 Author Share Posted September 18 (edited) 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 September 19 by Pikor Link to comment Share on other sites More sharing options...
michalss Posted September 27 Share Posted September 27 fix the topic name on the base of Rules. Link to comment Share on other sites More sharing options...
Pikor Posted October 13 Author Share Posted October 13 @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: . 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 More sharing options...
Pikor Posted Monday at 12:37 AM Author Share Posted Monday at 12:37 AM (edited) 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 Monday at 12:38 AM by Pikor Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now