sk-zk / Extractor

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

Full mod unlock #5

Closed mario50245 closed 4 days ago

mario50245 commented 2 weeks ago

Hello

I tell you that I tried the extractor but it only works in some mods, not in all since they have the reinforced hashfs v2, even if I try to unlock it, it doesn't work. image

here is an example

In fact, I drag the mod to the extractor but it closes immediately, the extractor cannot extract it and that is because the hash does not detect it as it is blocked with that scs# city

sk-zk commented 2 weeks ago

That's actually HashFS v1 based on the header. Can you run the extractor from a commmand prompt and post the error message?

mario50245 commented 1 week ago

hello

How are you, here I leave you a common error that the file is not unzipped and it is because it is not executed by the version of hashfs

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

and the truth is that I don't know how to use C# to unlock it :(

and here is another video with another extractor that exists and you will give details of the specific error

https://drive.google.com/file/d/1AzAHZApG0-dOhj7wXugzEf2NQdQ8dbmE/view?usp=sharing

sk-zk commented 1 week ago

That second extractor is just a wrapper around mine actually, so those error messages are very useful.

Two things are happening here. Problem No. 1 is that the mod author, as stated by the error message, chose to omit the top level directory listing, so a simple one-click extraction is not possible. Instead, you need to do partial extractions of paths that are known to exist – start with /def and work forward from there.

Problem No. 2 is that the extractor, as CrVault's wrapper attempts to do this, hits an edge case I forgot to handle. Do you have a link to the mod? It'd make it easier for me to fix this.

mario50245 commented 1 week ago
  1. Regarding the first. Query is it difficult to extract range by range? And do I have to use a specific command?

  2. https://drive.google.com/file/d/1RPZoL8mph6pQRvrbyR1VWuLQfrdPb7_E/view?usp=sharing here I uploaded the mod

  3. The only thing I want to unlock the bus example mods for is to only add specific engine sounds and change some data but in the folders. Edit the mod itself in blender not because it doesn't even deal with blender :(

  4. and I also want to unlock maps that have that lock to edit them for personal use. In fact, I don't publish any photos or anything for that matter since I keep everything confidential :( Is there any way these mods can be unlocked simply or with some command in CMD?

  5. I knew how to unlock the AEMs through hex neo editor, which replaces a hexadecimal column, but unlocking hashfs is the most difficult thing I have ever seen. Not even SXC was able to do it :(

mario50245 commented 1 week ago

I tried it with -P and it gives me this error
I tried -a, -s, -p, -P and in all of them it gave me an error image

mario50245 commented 1 week ago

image

otro error con el -a

image

sk-zk commented 1 week ago
  1. [...] here I uploaded the mod

Great, thanks

  1. [...] Is there any way these mods can be unlocked simply or with some command in CMD?

That's what CrVault's tool is for. I've never used it though so I don't know how well it works.

  1. Regarding the first. Query is it difficult to extract range by range?

What do you mean by range?

And do I have to use a specific command?

Yep, the option is -p, note the lowercase p. Here's a sample call (paths are separated by commas):

extractor "path/to/the/mod.scs" -p=/manifest.sii,/def

(Alternatively, you can write paths to a plain text file, separated by line breaks, and pass it with -P=bla.txt, with an uppercase P.)

This will extract the manifest as well as the /def directory, which will almost always have a directory listing present and is therefore easily extractable. You can then look through the .siis to discover the direct paths to other files in the archive, and then extract those. This is the part which CrVault's tool can do automatically.

I tried it with -P and it gives me this error I tried -a, -s, -p, -P and in all of them it gave me an error

I've added some usage samples to the readme which should help you out.


Anyway, I fixed the crash you ran into, and I'll release a new version of the extractor which includes the fix sometime next week.

mario50245 commented 5 days ago

image Hello, this error appears on a Turkish bus.

sk-zk commented 5 days ago

Please open a separate issue for this, and include a link to the mod

sk-zk commented 4 days ago

Fixed in 2024-07-15