OpenLara icon indicating copy to clipboard operation
OpenLara copied to clipboard

Linux: case sensitive

Open legluondunet opened this issue 5 years ago • 8 comments

Hello,

I just found an issue on Linux (Ubuntu 20.04): OpenLara is case sensitive and for example it can recognize ".TR2" but not ".tr2" extension, it can recognize "level" folder but not "LEVEL"...

Thank you for your help.

legluondunet avatar May 25 '20 23:05 legluondunet

The original PC version of Tomb Raider 2 has weird levels naming: https://github.com/XProger/OpenLara/blob/master/src/gameflow.h#L1084 image but I'll add full upper and full lower case support, thanks

XProger avatar May 26 '20 06:05 XProger

More info: I installed Tomb Raider 2 GOG version and OpenLara launches only if I rename "level/2/TITLE.tr2" to "level/2/TITLE.TR2".

legluondunet avatar May 26 '20 21:05 legluondunet

Instead of renaming, maybe just create a symlink to the original file so it points to the correct name which should avoid having the case sensitive issue.

TITLE.TR2 -> TITLE.tr.2
level -> LEVEL
Emprtomb.TR2 -> Emprtom.tr2

alkaris2 avatar Nov 19 '20 20:11 alkaris2

use the original game folder structure instead of web version style (level/2/...)

XProger avatar Dec 30 '20 01:12 XProger

Hello, I don't understand why you closed this issue, I just downloaded and compiled latest Openlara git version and it is still case sensitive on Linux. That is a very annoying bug, for example:

  • for audio file it asks lowercase
  • for png file it asks for uppercase... Please make Openlara case insensitive or only uppercase or only lowercase, but please do not let this mix.

legluondunet avatar Jan 02 '21 20:01 legluondunet

because OpenLara uses the original files naming, so I move this task to features list

XProger avatar Jan 02 '21 23:01 XProger

original file naming depends on release and on probably language. For example on my original TR1 Italian disc all levels names and .phd extension was lowercase, so I have renamed all in uppercase for run OpenLara.

paolo-caroni avatar May 25 '21 06:05 paolo-caroni

I try to maintain a Lutris script to install OpenLara easily for Linux users and this case issue is very complicated to manage. Thank you for your help.

legluondunet avatar Feb 23 '23 11:02 legluondunet