REIMPORT2 mode - no size limits

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: REIMPORT2 mode - no size limits

Post by aluigi »

If quickbms gives that error then it means there is nothing to do.
Anyway what's the script you are using?
Qnoops
Posts: 39
Joined: Thu Aug 04, 2016 8:03 pm

Re: REIMPORT2 mode - no size limits

Post by Qnoops »

Unreal tournament 4.bms
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: REIMPORT2 mode - no size limits

Post by aluigi »

Honestly I don't know and I can't check now but you correctly used the 4gb_files version so that's excluded (because reimport.bat uses quickbms.exe and it causes conflicts).
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: REIMPORT2 mode - no size limits

Post by aluigi »

Ah right, UE4 has the TOC located at the end of the archive and therefore you can't use reimport2 with it.
Yeah quickbms is perfectly correct returning that error :D
Qnoops
Posts: 39
Joined: Thu Aug 04, 2016 8:03 pm

Re: REIMPORT2 mode - no size limits

Post by Qnoops »

So it's mean there is no current solution for now, right? : D
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: REIMPORT2 mode - no size limits

Post by aluigi »

It means that there will be no solution forever since it's a logic problem due to the fact that no new content can be appended to the archive.
Sure, it would be possible to "prepend" the new content but that causes big troubles and it's technically a mess (moreover with huge files like the UE4 paks)... so it will never be available.
Shokoniraya
Posts: 416
Joined: Sat Sep 15, 2018 5:22 am

Re: REIMPORT2 mode - no size limits

Post by Shokoniraya »

QuickBMS cant import2 a script with such tag and stuck in importing2

Code: Select all

math OFFSET - 1024
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: REIMPORT2 mode - no size limits

Post by aluigi »

I don't see any problem, I created a file and a script with OFFSET - 1024 and in fact reimport2 works perfectly.

Do you have a game sample file?
What's the output of quickbms?
Shokoniraya
Posts: 416
Joined: Sat Sep 15, 2018 5:22 am

Re: REIMPORT2 mode - no size limits

Post by Shokoniraya »

aluigi wrote:I don't see any problem, I created a file and a script with OFFSET - 1024 and in fact reimport2 works perfectly.

Do you have a game sample file?
What's the output of quickbms?

sorry, my archive was corrupt
i tested again and no problem, sorry, my bad.
Shokoniraya
Posts: 416
Joined: Sat Sep 15, 2018 5:22 am

Shadow of Mordor archive editing and files appending via reimport2

Post by Shokoniraya »

Shokoniraya wrote:QuickBMS cant import2 a script with such tag and stuck in importing2

Code: Select all

math OFFSET - 1024

How can i add exantion in Script?
x\02\xBF == ".rate"
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: REIMPORT2 mode - no size limits

Post by aluigi »

@Shokoniraya
you are off-topic, anyway you can't add additional guessed extensions. They are hardcoded in quickbms.
Qnoops
Posts: 39
Joined: Thu Aug 04, 2016 8:03 pm

Re: REIMPORT2 mode - no size limits

Post by Qnoops »

I'm trying to reimport a language file (locres) to .pak.

But the edited locres file is bigger than the original locres file, so it's importing with errors. Half of the texts doesn't show up in the game. I can't delete anything from locres file to make it smaller.


Any solution for that?

im using latest unreal script and latest quickbms.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: REIMPORT2 mode - no size limits

Post by aluigi »

The reason why reimport2 can't work on archives like those of UE4 is the following: the TOC ("table of content", the information about the archived files) is located at the end of the archive.

For example this is the format of an UE4 archive:

Code: Select all

########################TOC***
|                       |  |
|                       |  tail info with offset of TOC
|                       TOC containing info of the files
archived files

If reimport2 tries to add a bigger file at the end of the archive, UE4 will be no longer able to read the offset of the TOC (it's occupied by the new files).

Quickbms is a generic tool that must work with any type of format, therefore a soluton like copying the *** part at the end of the edited archive is not possible because quickbms does not know where that part starts and if the TOC offset is relative (like negative offset or the "size of TOC") or absolute (like in UE4).

What I can try to do is telling quickbms to check the "goto -OFFSET" instructions and record them as starting offset of ***, then copying that data after the reimport process.
It may work and it costs me nothing to try :)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: REIMPORT2 mode - no size limits

Post by aluigi »

I implemented the new code in my quickbms 0.9.1 beta in few minutes and tested reimport2 with an encrypted UE4 archive: apparently everything works great :D
Qnoops
Posts: 39
Joined: Thu Aug 04, 2016 8:03 pm

Re: REIMPORT2 mode - no size limits

Post by Qnoops »

thank you brother from another mother father! : - D
hackspeedok
Posts: 404
Joined: Mon Oct 06, 2014 6:41 pm

Re: REIMPORT2 mode - no size limits

Post by hackspeedok »

I cant reimport with bigger files. This script: viewtopic.php?f=9&t=644
Can you help me ? Thanks
Qnoops
Posts: 39
Joined: Thu Aug 04, 2016 8:03 pm

Re: REIMPORT2 mode - no size limits

Post by Qnoops »

aluigi wrote:I implemented the new code in my quickbms 0.9.1 beta in few minutes and tested reimport2 with an encrypted UE4 archive: apparently everything works great :D


Where can i get the 0.9.1 beta? i need to reimport a bigger file to a .pak folder, thanks!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: REIMPORT2 mode - no size limits

Post by aluigi »

@hackspeedok
because TOC is compressed and therefore the new offset and size can't be rewritten.

@Qnoops
it's a private beta
hackspeedok
Posts: 404
Joined: Mon Oct 06, 2014 6:41 pm

Re: REIMPORT2 mode - no size limits

Post by hackspeedok »

aluigi wrote:@hackspeedok
because TOC is compressed and therefore the new offset and size can't be rewritten.

Here are the files I need to reimport. Can you help me ?
Link: https://drive.google.com/open?id=1eNWl9 ... wZzJAtg2ks

If that is not possible, thank you for your interest
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: REIMPORT2 mode - no size limits

Post by aluigi »

Not possible