bcssov / IronyModManager

Mod Manager for Paradox Games. Official Discord: https://discord.gg/t9JmY8KFrV
https://bcssov.github.io/IronyModManager/
MIT License
346 stars 41 forks source link

Merged mod collection load incorrectly in hoi4 #415

Closed aldev814 closed 1 year ago

aldev814 commented 1 year ago

Describe the bug The merged mod collection can't be loaded in hoi4. Then with the same mods and don't merge them, the game run correctly.

To Reproduce Steps to reproduce the behavior:

  1. add some mods that not comflict into the collection.
  2. run the game and it works correctly.
  3. use merged mods (either in basic or in compress modes) to run the game and it can't be loaded.

Expected behavior The merged mods can be loaded correctly.

Screenshots game with no mods: 屏幕截图 2022-11-26 210151 屏幕截图 2022-11-26 205611

game with non-merged mods: 屏幕截图 2022-11-26 205722 屏幕截图 2022-11-26 205825

game with compress merged mods: 屏幕截图 2022-11-26 205851 屏幕截图 2022-11-26 210001

game with basic merged mods: 屏幕截图 2022-11-26 210029 屏幕截图 2022-11-26 210057

Logs If the application crashed add error logs related to the crash.

Version:

Additional context I've also tested other supported games, and only found this problem in hoi4. I don't know what to do to find that which thing cause this problem. If somebody needs more information, please tell me how to get that.

bcssov commented 1 year ago

NOTE: HOI4 doesn't support modifying the load order. Therefore:

aldev814 commented 1 year ago

Thanks for your reply. I've tried the solution, but it didn't work either.

I've done the things below:

disable editing load order 屏幕截图 2022-11-27 104428

make the basic merge 屏幕截图 2022-11-27 105123

and it didn't work.

Then I even tried to use the PDX launcher to run the merged mods, it didn't work either. 屏幕截图 2022-11-27 105017

I don't know which one cause this problem, the mods I enabled or other things.

bcssov commented 1 year ago

These were notes for me, though now that I had a chance to think through. I should probably just leave stuff as is. Merges could allow people to bypass mod load order issues in HOI4 if editing load order directly does not work.

Anyway back to your issue I did investigate it and the problem is that your collection name is in Chinese. This is HOI4 limitation it seems. When you merge mods mod names are prefixed with certain prefix to prevent duplication issue known for all paradox games ie if you have duplicate mods (with the same name) some games refuse to work. So to circumvent this Irony adds prefix to merged mods. It also makes it easier to navigate to know from where a certain mod comes from.

Using the identical setup such as your but with collection name using latin alphabet characters the game works without problems. I guess you should complain to paradox for this.

Solution for now rename mod collection to use latin alphabet.

aldev814 commented 1 year ago

Thanks for your early reply! I've rename the collection in English and it worked perfectly. It's definitely the reason. Thx for your help.