comp500 / Indium

Sodium addon providing support for the Fabric Rendering API, based on Indigo
https://modrinth.com/mod/indium
Apache License 2.0
386 stars 87 forks source link

It shows it's unsupported when launching game with Sodium 0.5.9 #306

Closed PingGai closed 3 months ago

PingGai commented 3 months ago

【logs】 [07:48:15] [main/WARN]: Mod resolution failed [07:48:15] [main/INFO]: Immediate reason: [HARD_DEP_NO_CANDIDATE indium 1.0.31+mc1.20.4 {depends sodium @ [0.5.8]}, ROOT_FORCELOAD_SINGLE indium 1.0.31+mc1.20.4] [07:48:15] [main/INFO]: Reason: [HARD_DEP indium 1.0.31+mc1.20.4 {depends sodium @ [0.5.8]}, HARD_DEP cotton-client-commands 1.1.0+1.15.2 {depends minecraft @ [1.14.x || 1.15.x]}, HARD_DEP viafabric-mc1144 0.4.14+72-dev {depends minecraft @ [1.14.4]}, HARD_DEP viafabric-mc1152 0.4.14+72-dev {depends minecraft @ [1.15.2]}, HARD_DEP viafabric-mc1165 0.4.14+72-dev {depends minecraft @ [1.16.5]}, HARD_DEP viafabric-mc1171 0.4.14+72-dev {depends minecraft @ [1.17.1]}, HARD_DEP viafabric-mc1182 0.4.14+72-dev {depends minecraft @ [1.18.2]}, HARD_DEP viafabric-mc1194 0.4.14+72-dev {depends minecraft @ [1.19.4]}, HARD_DEP viafabric-mc1201 0.4.14+72-dev {depends minecraft @ [1.20.1]}, HARD_DEP viafabric-mc1204 0.4.14+72-dev {depends minecraft @ [1.20.3 || 1.20.4]}] [07:48:15] [main/INFO]: Fix: add [], remove [], replace [[sodium 0.5.9] -> add:sodium 0.5.9 ([[0.5.9,0.5.9]]), [indium 1.0.31+mc1.20.4] -> add:indium 1 ([(-∞,∞)])] [07:48:15] [main/ERROR]: Incompatible mods found! net.fabricmc.loader.impl.FormattedException: Some of your mods are incompatible with the game or each other! It says “replace [[sodium 0.5.9] -> add:sodium 0.5.9”

dev-kamran2001 commented 3 months ago

Same thing here, I returned to the game to try some new mods involving Distant Horizon but ran into this issue. Indium has only support for Sodium 0.5.8 with MC 1.20+ but Iris on the other hand has only support for Sodium 0.5.9 with MC 1.20.4+.

I found Iris 1.7.0 on their github which works with Sodium 0.5.8 and so does Indium, but still no hope for newer minecraft versions above 1.20.4

comp500 commented 3 months ago

I am well aware that there's new versions of Sodium and Minecraft! Please be patient, I have a full time job and limited free time, which I would rather spend updating the mod than closing all 9 (!) of these issues 🙃

PingGai commented 2 months ago

I am well aware that there's new versions of Sodium and Minecraft! Please be patient, I have a full time job and limited free time, which I would rather spend updating the mod than closing all 9 (!) of these issues 🙃

It seems that it's not because Sodium was updated to a newer version. The version of Sodium I'm using is the same as the one required by this mod, but for some reason, it's identified as an incompatible version. Removing or modifying the line in fabric.mod.json from "depends": {"sodium": "0.5.9", "0.5.10"} to "depends": {"sodium": ["0.5.9", "0.5.10", "0.5.9+mc1.20.6"]} allows it to run normally. I guess it might be because the version of Sodium is "version": "0.5.9+mc1.20.6" and not 0.5.9 which causes it to be recognized as an incompatible version(?)

PingGai commented 2 months ago

I am well aware that there's new versions of Sodium and Minecraft! Please be patient, I have a full time job and limited free time, which I would rather spend updating the mod than closing all 9 (!) of these issues 🙃

@comp500 I don’t know what caused this issue, but I tried loading only indium and sodium. This parameter does not prevent indium from depending on sodium to run. However, the fact is that many people have encountered this problem. Should we try removing this line of dependency judgment or add the full version number of sodium at this judgment, such as ‘0.5.9+mc1.21’?

I am also willing to submit a PR to contribute to this mod, but facing such a large project with so many version branches, I don’t know how to propose a PR. I also don’t know if this line of judgment has any significant importance, so for now, I am sharing the information I know with you. Should we try to fix this problem? (Because it is indeed very easy to solve) (Even when only Sodium and indium are present, it does not occur).

comp500 commented 2 months ago

Should we try removing this line of dependency judgment or add the full version number of sodium at this judgment, such as ‘0.5.9+mc1.21’?

Use the new version of Indium for Sodium 0.5.9. As for why I use these version dependency restrictions, it ensures that people don't launch the game with versions that aren't compatible and encounter more cryptic error messages.