Pikor Posted September 3 Share Posted September 3 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 Link to comment Share on other sites More sharing options...
shak-otay Posted September 3 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 Wednesday at 11:43 AM Share Posted Wednesday at 11:43 AM 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 Wednesday at 03:01 PM Author Share Posted Wednesday at 03:01 PM (edited) Works perfectly 😉 I'm uploading all of them if you'd need any of them. https://gofile.me/7i7Sv/6RqswHVvw Meanwhile I check how to edit nif files (texure for fonts, pa and main menu). NifSkope can export to dds (from NiPixelData) but not import, I looking something else. Edit --------------------- Ok, I figured out. NifSkope 1.3 (in 2.0 not work, error) can insert dds in nif. Ofc I cropped dds because for a test I used QuickBMS to pack the file (smaller size). For others if they want do something with this game. Load original nif file. Insert block NiSourceTexture. Load dds texture to it. Embedding texture. We got the same block like in original. Now we can compare old and new data. Remove old NiPixelData and NiSourceTexture. Stay only new one NiPixelData. Save file. Edited Thursday at 06:14 PM 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