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
Now we check the child folders of GameData first, and if we can determine a good folder to install, we use that. The identifier folder is checked if that fails.
Now if there are craft files, we filter them out of the main install stanza and generate additional install stanzas to install them to the Ships folder. Since mods have a lot of variety in how they structure their craft folders, we parse the craft files themselves to determine whether to install them to VAB or SPH.
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 useGameData/AuthorBrandName/Identifier
because the identifier is found but would be installed directly toGameData
, leaving out the intermediateAuthorBrandName
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
GameData
first, and if we can determine a good folder to install, we use that. The identifier folder is checked if that fails.Ships
folder. Since mods have a lot of variety in how they structure their craft folders, we parse the craft files themselves to determine whether to install them to VAB or SPH.