Closed minimusubi closed 2 weeks ago
Seems like an issue with r2modman. On the left is the manifest that gale created, on the right the profile r2modman got from that, which is all jumbled up
It also happens in Thunderstore, definitly a problem how Gale generates profiles (files and codes).
I have no idea what Gale could be doing wrong here, from the screenshot above it really seems r2modman is scrambling them up
I think I understand now. Looks like r2modman orders mods by the author's name when importing, whereas Gale takes the order from the export manifest.
Here you can see a profile I first exported from Gale, then imported into r2 and finally exported from r2. You can see the that in r2modman, mods with an author starting with A comes first, B after that and so on. If I import the file that r2 exported into r2 again, the mods are in the same order.
I believe gale has the correct behavior here, since you don't want any custom ordering to be undone.
If I copy a code from r2/thunderstore the mod order is saved after importing to r2/thunderstore, so the codes/files from gale are at fault
Yeah that's super weird. Maybe it reads gale from the source
field and does something different based on that? Seems unlikely though, as r2modman doesn't even populate that field itself
It seems that r2modman is using a mods.yml
file to define a custom sort order. Gale does not generate this file, while r2modman does.
mods.yml
from the r2modman export into Gale's export@Kesomannen is this worth adding to Gale (even a stripped down version of mods.yml
, if that works in r2modman) to fix this issue
Seems like something really broke with the latest update of r2modman. Now profile codes from gale import into r2 but without anything showing up in the mod list (but the mods and config are still imported fine). It's weird because I can't find anywhere in the r2 code where it reads from the mods.yml
file, only export.r2x
. I'll keep digging but I guess gale is going to have to generate a mods.yml file to fix this :/
Seems to be fixed now
Description
When you export a mod profile from Gale (with either a file or a code) and import it into r2modman, the custom mod sorting order is lost. Seeing as how this does not happen when exporting from r2modman to r2modman and from r2modman to Gale, this appears to be a Gale bug.
Reproduction