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

7-zip library missing in Linux/macOS bundles #58

Open
cristian64 opened this issue Dec 12, 2023 · 7 comments
Open

7-zip library missing in Linux/macOS bundles #58

cristian64 opened this issue Dec 12, 2023 · 7 comments
Labels
enhancement New feature or request

Comments

@cristian64
Copy link

Description:

The following error message can be seen on startup:

Warning: 7-zip DLL could not be found!

If an archive is encountered during extraction, the following error is seen:

[01] Exception: foobar.zip 7z.dll not found
@cristian64
Copy link
Author

I naively tried to copy the x64 and x86 directories from the Windows bundle, to no avail. Although the .dll can then be found, an exception is still raised when an archive is encountered:

[01] Exception: foobar.zip Unable to initialize SevenZipHandle

@cristian64
Copy link
Author

From a developer stand, a potential solution to bring support to Linux/macOS could be to unpack archives using the 7z command-line tool provided by the system, which most Unix systems will have available.

The overhead of spawning the 7z process would be negligible, specially if the alternative is not having support at all.

@Venomalia
Copy link
Owner

The wrapper https://github.com/adoconnection/SevenZipExtractor only supports windows as far as i know.
Overall, I know of one game that benefits from the 7-zip library, so it's not a big problem.
I don't give the whole thing much priority.

@cristian64
Copy link
Author

The use case I had in mind is support for mods; not necessarily vanilla games; as mods are often distributed in .zip archives.

The workaround is simple enough, though: just unpack archives [recursively] with an external tool before running the DTE tool against the mods directory.

@Venomalia
Copy link
Owner

.zip are actually supported natively in C#, they just run via the 7-zip library because I have not built in the function.

when I get the time, I will change that

  • .zip use native c# library
  • .cab support for Linux and macOS

@Venomalia Venomalia added the enhancement New feature or request label Dec 12, 2023
@iwubcode
Copy link
Contributor

The use case I had in mind is support for mods

Curious what you mean by mods? Riivolution files are usually already extracted.

@cristian64
Copy link
Author

The use case I had in mind is support for mods

Curious what you mean by mods? Riivolution files are usually already extracted.

I wasn't referring to a specific mod type but, in the MKDD modding community, mods are shared in the ZIP format. It'd be nice to be able to extract textures from them in other platforms too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants