Fix case sensitivity on Linux
Opened this issue · 0 comments
Currently, in both the shell and the Python script, we transform certain map names so that their case matches. This is required as file/directory names on Linux are case-sensitive, unlike on Windows. However, the solution is hacky and works only for the set of maps that both Luxor and Luxor: Amun Rising provides. The problem is there is a virtually infinite number of mods for these games that we want to support, and each provides their own map names with potentially their own case mismatches. This makes the current solution not feasible in the long run.
The solution would be to scan the maps folder (or the level files) for all of the map names, and whenever that map name appears in any path - regardless of case - it should be replaced with the exact name from that list.
The reason why we are not going to just bring all file names and paths in files to lowercase is because it looks ugly and hard to read, especially when considering that the map names almost always consist of several words.