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

Missing textures for Raising The Bar: Redux on Linux #82

Open
w23 opened this issue Sep 21, 2023 · 0 comments
Open

Missing textures for Raising The Bar: Redux on Linux #82

w23 opened this issue Sep 21, 2023 · 0 comments
Labels

Comments

@w23
Copy link
Owner

w23 commented Sep 21, 2023

https://www.moddb.com/mods/half-life-2-raising-the-bar-redux/downloads/raising-the-bar-redux-division-21-release

Some of the textures will be missing because of case mismatch between material names in BSP and on filesystem.
E.g. BUILDING_TEMPLATE/BUILDING_TRAINSTATION_TRUSS_TEMPLATE001F_BETA vs materials/building_template/Building_Trainstation_Truss_Template001f_beta.vmt on disk.

FilesystemCollection needs to be able to open files by case insensitive names. However, it's not straightforward. Loading resources by name needs to be done as follows:

  1. Try to load with exact name through entire chain
  2. Try to load in "fallback" mode with case insensitive checks

Maybe add special something like dir_ncase config option for such dirs explicitly to simplify?

Finding files insensitively is dumb: opendir(), list all files, compare insensitively. Or make a tolower() hashmap, or whatever.

@w23 w23 added the bug label Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant