sk-zk / Extractor

cross-platform .scs extractor
GNU General Public License v2.0
20 stars 2 forks source link

extraction is not achieved #7

Closed mario50245 closed 1 month ago

mario50245 commented 1 month ago

Hello. I tried to do the extraction but it asks me to use --raw when using it, it still doesn't allow me to use -p, -a,

image

image

... I don't know if giving up this hashfs thing for someone who is basic in computing is too complicated. You have to know a lot about cybersecurity to specify the issue of hashes and especially with hexadecimal code.

sk-zk commented 1 month ago

-a is used to extract all .scs files in a directory; don't use it for a single file. Try -p=/def,/manifest.sii to get started.

mario50245 commented 1 month ago

Hello how are you ?? I only managed to unlock the def.

The command that appeared above -p=/def,/manifest.sii indicates that it does not work.

and it doesn't work when /manifest.sii is left blank

image

where the arrow indicates cuts the command completely

image

and in what is an example in the sound folder it worked on 1 bus and on the other it didn't work. here is an example in a single image

image

https://drive.google.com/file/d/1vhIGMbg13fdNi1DNmubZCmLXhKU6g2GL/view?usp=sharing

The link I attached is the mod (bus) that does not work

sk-zk commented 1 month ago

The command that appeared above -p=/def,/manifest.sii indicates that it does not work [...] where the arrow indicates cuts the command completely

TIL that commas have a special meaning in PowerShell. I've never used it so I didn't know about that. Wrap the parameter in single quotes: '-p=/def,/manifest.sii'

and in what is an example in the sound folder it worked on 1 bus and on the other it didn't work. here is an example in a single image

The extractor can't find /sound in the second mod because the modder has intentionally left out that directory listing as an obfuscation technique. This means that you can only extract the sound files if you know their absolute paths, which you can find in /def.

I'm a bit out of my depth here because I don't actually know how the sound system works, but searching for definition files containing "sound" in their name yields the following:

/def/vehicle/truck/mp135.mx/cabin/sound.sui
/def/vehicle/truck/mp135.mx/chassis/sound.sui
/def/vehicle/truck/mp135.mx/engine/sound_mp6x2.sui
/def/vehicle/truck/mp135.mx/interior/sound_effects.sui
/def/vehicle/truck/mp135.mx/interior/sound_effects_units.sui
/def/vehicle/truck/mp135.mx/interior/sound_mp6x2.sui
/def/vehicle/truck/mp135.mx/transmission/sound.sui

Starting with the first, we find the following paths:

/def/vehicle/truck/mp135.mx/cabin/buzina_ar.soundref
/def/vehicle/truck/mp135.mx/cabin/buzina.soundref

And in those files, we find this path, which can be extracted:

/sound/truck/claxon/buzina.bank

Along with the accompanying guids file: /sound/truck/claxon/buzina.bank.guids

And so on, and so forth. You get the idea.

mario50245 commented 1 month ago

Indeed, my dear, I was right, indeed, it was with a single quote.

Could it be that this is specifically obfuscated as the hashfs was reinforced there by this line in the hexadecimal editor.

image Previously, the options that I marked were not there in versions 1.47, 1.48 and in 1.49 that was already added. Could it be that that is why they are reinforced and blocked there?

sk-zk commented 1 month ago

The first field you highlighted is the salt. The second field is the offset of the entry table. Nothing about this is new in any way, and nothing is being "reinforced" or "blocked" here.