Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action resources placeholders are shown after update 7 instead of the true icon #377

Open
elirasza opened this issue Nov 16, 2024 · 4 comments

Comments

@elirasza
Copy link

Hello, the issue reported in #286 seems to have come back since patch 7. Mods adding custom resources like Mori's Astral Elves or Warlock Undead have their icons replaced by the red stars placeholders :

image

Adding back the patch 6 IUI Assets in a patch 7 IUI corrects the problem, but makes all non custom classes icon disappear :

image

Would there be a way to merge both mods in order to have both icons without anything missing ?

@RandoRuda
Copy link

This is going to be up to the mod authors to update to the new methods since the Patch 7 update.

@elirasza
Copy link
Author

Do you have a quick migration process ? I would be eager to patch this but don't really know where to find the solution.

@RandoRuda
Copy link

Do you have a quick migration process ? I would be eager to patch this but don't really know where to find the solution.

I was going to provide some resources, but I see from Nexus that you have figured it all out.

@elirasza
Copy link
Author

elirasza commented Nov 18, 2024

That is true ! For future people searching a solution, here it is. Not only have paths changed, but file names have too.

  1. Move all files in the Public/Game/GUI/Assets/MODNAME subdirectory to its Public/Game/GUI/Assets parent folder.

  2. The resources icons should be moved in a special directory for each type :

  • OLDRESOURCEFILENAME_h.dds should be moved to a same level Highlight/OLDRESOURCEFILENAME_h.dds
  • OLDRESOURCEFILENAME_missing.dds should be moved to a same level Missing/OLDRESOURCEFILENAME_missing.dds
  • OLDRESOURCEFILENAME_spent.dds should be moved to a same level Used/OLDRESOURCEFILENAME_spent.dds
  • OLDRESOURCEFILENAME_d should stay at the same place
  1. All resource icons should be renamed to the exact resource name (found in the Public/MODNAME/ActionResourceDefinitions/ActionResourceDefinitions.lsx file, in the ActionResourceDefinition node, in the Name attribute), for instance ico_OLDRESOURCEFILENAME_h.dds will simply become RESOURCENAME.dds

  2. All class icons should be renamed to the exact class name (found in the Public/MODNAME/Races/Races.lsx file, in the Race node, in the Name attribute), for instance OLDRACEFILENAME_h.dds will simply become RACENAME.dds

For instance, before :

image

Should become :

image

The solution was found partly with reverse-engineering, partly with understanding the https://github.com/TheRealDjmr/BG3ImprovedUI/tree/1.5.0.32/ImpUI_26922ba9-6018-5252-075d-7ff2ba6ed879/GUI/Assets folder structure and most importantly with the https://mod.io/g/baldursgate3/r/implementing-custom-action-resources-with-impui guide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants