thunderstore-io / Thunderstore

Thunderstore is a mod database and API for downloading mods. Thunderstore Discord: https://discord.thunderstore.io/
https://thunderstore.io/
GNU Affero General Public License v3.0
127 stars 28 forks source link

Mod does not have internal folder structure when downloaded with Thunderstore Mod Manager #1010

Closed Stellavir closed 7 months ago

Stellavir commented 7 months ago

Uploaded a Mod to Thunderstore (Lethal company mod, BryceScav). Upon downloading it from thunderstore with TS modman to check, the internal folder structure of the uploaded zip was gone, and all files were in the main directory. Example;

Uploaded Zip:

/Mod
>Mod.DLL
>Manifest
>Icon
>Readme
/Mod/Folder
>>Image1.PNG
>>Image2.PNG

Downloaded Mod in Thunderstore Mod manager plugin folder:

/Mod
>Mod.DLL
>Manifest
>Icon
>Readme
>Image1.PNG
>Image2.PNG

This means that the mod downloaded from Thunderstore does not work, as the folder structure is required for its dependency.

Downloading the Mod manually from the website DOES have the uploaded file structure. Tested on two different computers, multiple profiles, downloaded multiple times, to make sure it wasnt a fluke.

Stellavir commented 7 months ago

Just checked, same issue with my other mod (LuxScav). Downloading it manually has the proper file structure, installing through Thunderstore ModManager all the files are shoved into the main directory of the mod

MythicManiac commented 7 months ago

Hey, the behavior you're noticing exists mainly due to legacy support, but as you already noticed it's something the mod manager does rather than the website.

The documentation for how the mod manager installs packages is being maintained here: https://github.com/ebkr/r2modmanPlus/wiki/Structuring-your-Thunderstore-package