Question from Windows user on case sensitivity.

For discussion of ports to POSIX based systems, especially using GNUStep.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
LittleBear
---- E L I T E ----
---- E L I T E ----
Posts: 2886
Joined: Tue Apr 04, 2006 7:02 pm
Location: On a survey mission for GalCop. Ship: Cobra Corvette: Hidden Dragon Rated: Deadly.

Question from Windows user on case sensitivity.

Post by LittleBear »

I know some of my OXPs contain dat files with this bug ('cos playtesters have had to fix them :oops: ). I'm trying to fix this with an update patch. This is probabley a silly question, but:

If the texture is :-

bb1_mainhull do i have it as bb1_mainhull.png or mainhull.PNG ?

When I look at the texture in Windows it describes as PNG (in caps).

On Davfaci's list of the textures eg:-

DWCobra3_flf.png WaspLrgBooster.png
hitsplanet11.PNG

Does this mean I need in the dat file hitsplanet11.PNG and hitsplanet11.png would cause the bug?
OXPS : The Assassins Guild, Asteroid Storm, The Bank of the Black Monks, Random Hits, The Galactic Almanac, Renegade Pirates can be downloaded from the Elite Wiki here.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Depends what it says in the .dat file (which is a human-readable text file).
User avatar
TGHC
---- E L I T E ----
---- E L I T E ----
Posts: 2157
Joined: Mon Jan 31, 2005 4:16 pm
Location: Berkshire, UK

Post by TGHC »

Ahruman wrote:
Depends what it says in the .dat file (which is a human-readable text file).
I love that! :)
The Grey Haired Commander has spoken!
OK so I'm a PC user - "you know whats scary? Out of billions of sperm I was the fastest"
User avatar
davcefai
---- E L I T E ----
---- E L I T E ----
Posts: 400
Joined: Sun Dec 03, 2006 9:07 pm

Post by davcefai »

I hadn't seen this thread before.

In all the *nix OSes you get strict case sensitivity. So the filename searched for to be loaded must be an exact match.

If you build up a filename from a number of strings then (if you're as forgetful as I am) then you could easily get into a case sensitivity problem when naming files. Generally I find that the smart thing is to always use lower case for the extensions. Windows doesn't care and it is easier to keep things straight.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

davcefai wrote:
In all the *nix OSes you get strict case sensitivity. So the filename searched for to be loaded must be an exact match.
Actually, on UNIX systems it depends on the file system. Mac OS X, for instance, is a UNIX system, but uses a case-insensetive file system by default.
Post Reply