KSP-CKAN / NetKAN-Infra

NetKAN Infrastructure Repo
MIT License
3 stars 6 forks source link

Craft install stanzas, fix brand folders in mod analyzer #257

Closed HebaruSan closed 2 years ago

HebaruSan commented 2 years ago

Problem

The mod analyzer can generate a bad install stanza for a mod that installs to GameData/AuthorBrandName/Identifier. It's dangerous for automated tools to generate bad data that has to be caught and corrected by humans.

Cause

The mod analyzer checks for a folder named after the identifier first, and if found, that folder is installed to GameData. This doesn't work well for mods that use GameData/AuthorBrandName/Identifier because the identifier is found but would be installed directly to GameData, leaving out the intermediate AuthorBrandName folder.

Motivation

In addition, the mod analyzer currently doesn't do anything to handle craft files. Ideally we would install them to the Ships folder.

Changes