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

Fix mod manager invalid fallback icon #6663

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

lL1l1
Copy link
Contributor

@lL1l1 lL1l1 commented Feb 18, 2025

Issue

When a mod specifies an invalid icon in its mod info, it overwrites the default value from here:

fa/lua/MODS.LUA

Line 510 in 9a6ddd0

icon = '/textures/ui/common/dialogs/mod-manager/generic-icon_bmp.dds',

The mod manager verifies that this icon file exists, and it uses a fallback icon if it doesn't, but the fallback is invalid, so a warning gets printed to the log and the icon becomes a yellow missing texture.

Description of the proposed changes

fix the fallback file

Testing done on the proposed changes

Mods with invalid icons show the generic icon instead of a missing texture.

Checklist

- [ ] Changes are annotated, including comments where useful

  • Changes are documented in the changelog for the next game version

@lL1l1 lL1l1 added area: ui Anything to do with the User Interface of the Game ui: mod-manager related to the mod manager in the lobby labels Feb 18, 2025
@lL1l1 lL1l1 marked this pull request as ready for review February 18, 2025 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ui Anything to do with the User Interface of the Game ui: mod-manager related to the mod manager in the lobby
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant