Coder Social home page Coder Social logo

Comments (2)

lVlyke avatar lVlyke commented on June 30, 2024 1

Thanks for the bug report.

I’m also able to reproduce this issue on Linux, and after some digging, it appears that the zip files for these mods are using backslashes for path separators instead of slashes, which causes issues when extracting the files on Linux (and is also invalid according to the .ZIP file spec):

      4.4.17.1 The name of the file, with optional relative path.
       The path stored MUST NOT contain a drive or
       device letter, or a leading slash.  All slashes
       MUST be forward slashes '/' as opposed to
       backwards slashes '\' for compatibility with Amiga
       and UNIX file systems etc.  If input came from standard
       input, there is no file name field. 

Most filesystems on Linux use forward slashes for path separators and allow backslashes as part of the file name. When these zip files are extracted on Linux, the backslashes are interpreted as part of the file name, resulting in a file being created with the path as part of the file name itself (i.e. Data\SFSE\Plugins\BakaAchievementEnabler.dll). You can see the issue here when opening one of the zips with an archive utility like File Roller, where it shows a file with the backslash’d path as part of the file name:

Screenshot 2024-06-27 215307

Unfortunately, there’s not much I can do on my side for this issue. I could try to code in a workaround to detect this case and try to fix the folder structure on the fly, but it would be messy platform-specific code that could cause other issues, so I would rather avoid it, especially since this seems to be a pretty rare issue.

I would let the author of these mods know about the issue. Hopefully they can correct the problem with the tool they’re using to generate these zip files to make sure they are created with forward slashes.

As a workaround until then, you should be able to extract the files manually and then create the correct folder structure and fix the file names. You can then import the corrected files directly into the mod loader. Alternatively, if you have access to a Windows machine, you could extract the files on it first and then copy them over to import into the mod loader.

from starfield-mod-loader.

Alkali-V2 avatar Alkali-V2 commented on June 30, 2024

A simple fix is good enough for me. I was able to extract the items, create valid directories and get it imported correctly so that is all I needed. Not sure why he made the directory like that but for now I'll use the workaround. Thank you for confirming it wasn't just on my side and for your help getting this sorted out!

from starfield-mod-loader.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.