Janrupf / mod-director

Automated mod downloading
https://www.curseforge.com/minecraft/mc-mods/moddirector
MIT License
13 stars 13 forks source link

Suggestion: `fileName` for CurseForge files #21

Open Krutoy242 opened 3 years ago

Krutoy242 commented 3 years ago

In my pack, /Dank/Null mod should load after other mods, so i need to rename it.

I though i could load it with mod director and option fileName:

{
    "addonId": 272514,
    "fileId": 2920596,
    "fileName": "zz_DankNull.jar"
}

But got an error:

[20:16:45] [main/ERROR] [ModDirector[CORE]]: ============================================================
[20:16:45] [main/ERROR] [ModDirector[CORE]]: Summary of 1 encountered errors:
[20:16:45] [main/ERROR] [ModDirector[CORE]]: Failed to open a configuration for reading
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "fileName" (class net.jan.moddirector.core.configuration.type.CurseRemoteMod), not marked as ignorable (7 known properties: "inject", "fileId", "addonId", "installationPolicy", "options", "metadata", "folder"])
 at [Source: (sun.nio.ch.ChannelInputStream); line: 5, column: 2] (through reference chain: net.jan.moddirector.core.configuration.type.CurseRemoteMod["fileName"])
    at com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:61) ~[mod-director-launchwrapper-1.5.1-SNAPSHOT-all.jar:1.5.1-SNAPSHOT]

Could you add support for "fileName" for .curse.json, or i should use .url.json somehow?