Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extraction is not achieved #7

Closed
mario50245 opened this issue Jul 15, 2024 · 5 comments
Closed

extraction is not achieved #7

mario50245 opened this issue Jul 15, 2024 · 5 comments

Comments

@mario50245
Copy link

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
Copy link
Owner

sk-zk commented Jul 15, 2024

-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
Copy link
Author

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
Copy link
Owner

sk-zk commented Jul 16, 2024

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
Copy link
Author

mario50245 commented Jul 16, 2024

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
Copy link
Owner

sk-zk commented Jul 31, 2024

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.

@sk-zk sk-zk closed this as completed Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants