How to decrease file size to repack again (Aluigi)? (Shadow of War)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Qnoops
Posts: 39
Joined: Thu Aug 04, 2016 8:03 pm

How to decrease file size to repack again (Aluigi)? (Shadow of War)

Post by Qnoops »

I am trying to re-import some files with shadow of mordor bms script but i am getting CHUNK_SIZE error. It's telling me "New size is bigger than old size." even i didn't change anything it's still extracting as bigger size and can't import it again.

Game: Shadow of War
Files extensions trying to extract-repack; .ebmm, .strdb
Script used; ShadowOfMordor.bms

quickbms

Waiting for answers.. thanks! Especially aLuigi


" - save file3.jpg and be sure that it's size is SMALLER or EQUAL than
the original"

You are saying this on ReadMe file but how we can make it smaller?
I need to repack strdb files after i modified them with smaller size..
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: How to decrease file size to repack again (Aluigi)? (Shadow of War)

Post by aluigi »

Unfortunately there is not much to do for various reasons, first of all the archives used deflate or zlib depending by the platform (ps3 uses deflate) so in reimport mode it will use zlib only, chunked files are ever a problem in reimport mode although in this case it "may" work, there is nothing I can do against the larger compressed size (even if the file is exactly the original one) because it depends by the implementation of the algorithm and its settings (quickbms already uses the best available for free [zlib, zopfli, kzip] with max settings).

Usually when you encounter these problems the only solution is trying to reduce the "entropy" of the file you want to reimport, long story short:
high entropy: "this is a string"
low entropy: " " (sequence of same character)
kornix3
Posts: 42
Joined: Wed Oct 18, 2017 3:47 am

Re: How to decrease file size to repack again (Aluigi)? (Shadow of War)

Post by kornix3 »

Oh thats too bad. Thanks!