Page 1 of 1

Allow upper-case letters in FBI file endings

Posted: 20 Feb 2008, 02:35
by [Krogoth86]
I just encountered Spring having "problems" with reading buildpics. As it is there is a difference between a xxx.DDS and xxx.dds image file. It would be very nice if you could fix that so that it doesn't matter if the file ending is written in upper-case or not...

Saves you from the fun of renaming dozens of "wrong" endings in larger projects... :wink:

Re: Allow upper-case letters in FBI file endings

Posted: 20 Feb 2008, 03:20
by Pxtl
linux is case-sensitive, so your work is probably already FAIL on linux if you're not consistent with case.

Re: Allow upper-case letters in FBI file endings

Posted: 20 Feb 2008, 03:35
by Felix the Cat
Yet another reason why Linux is FAIL.

Re: Allow upper-case letters in FBI file endings

Posted: 20 Feb 2008, 03:38
by LordMatt
Felix the Cat wrote:Yet another reason why Linux is FAIL.
YOU FAIL

Re: Allow upper-case letters in FBI file endings

Posted: 20 Feb 2008, 03:39
by aegis
yet another reason why linux isn't fail:
windows also has a directory tree limited to 256 bytes deep :(

Re: Allow upper-case letters in FBI file endings

Posted: 20 Feb 2008, 10:06
by [Krogoth86]
Pxtl wrote:linux is case-sensitive, so your work is probably already FAIL on linux if you're not consistent with case.
Well it's not so much being consistens but rather some converters being fixed to export .dds files with the ending written in upper-case only. This especially sucks when you are modding on something existant... :wink:

Well I could try out other converters or search for a batch renamer (BTW which batch dds tool can you recommend when you don't have Photoshop) but imo Spring shouldn't "force" you to use certain tools. Ok - this topic here isn't something serious at all but still would be nice to have...

Ehm - I now have a small question:
I have used Linux in quite a while but - well I cannot imagine that you can open an image.jpg but no image.JPG... :wink:

Re: Allow upper-case letters in FBI file endings

Posted: 20 Feb 2008, 14:04
by Auswaschbar
[Krogoth86] wrote:Ehm - I now have a small question:
I have used Linux in quite a while but - well I cannot imagine that you can open an image.jpg but no image.JPG... :wink:
It doesn't need endings at all. You could even name it "image" or "image.xxx" and it will still open.

Re: Allow upper-case letters in FBI file endings

Posted: 21 Feb 2008, 05:54
by theHive
[Krogoth86] wrote:Ehm - I now have a small question:
I have used Linux in quite a while but - well I cannot imagine that you can open an image.jpg but no image.JPG... :wink:
True, you can open both, but using the command line to open it wouldn't work if you typed in "image.jpg" when the file was "image.JPG"

Re: Allow upper-case letters in FBI file endings

Posted: 21 Feb 2008, 07:09
by KDR_11k
ren *.JPG *.jpg

Re: Allow upper-case letters in FBI file endings

Posted: 21 Feb 2008, 13:36
by [Krogoth86]
Well I now also found some strange behaviour for the buildpics. I redid some buildpics, converted them to .DDS and then "renamed" them to .dds as the BA basis uses this for the buildpic endings. The replaced buildpics also work fine but for the units I did myself / put in there seem to be some problems. I think they all dislike a unitname.dds as buildpic because with those setting they don't work (you get a plain white image ingame)...

But when I rename the buildpic into unitname.DDS and also put unitname.DDS in the FBI it suddenly works... :shock:

Does someone know something about this behaviour? I mean it cannot be about the dds files themselves as they work for the "old" units and buildings. It just happens for the new units (though I don't know if it behaved like that for ALL of them but at least I had to do that .DDS trick many times)...

Re: Allow upper-case letters in FBI file endings

Posted: 21 Feb 2008, 21:06
by rattle
Are there any double buildpics? As in unit_x.pcx and unit_x.dds?

Re: Allow upper-case letters in FBI file endings

Posted: 21 Feb 2008, 23:29
by [Krogoth86]
Nope - no doubled files. I'll play a bit with the FBIs to confirm this and maybe get a clue on why and when this happens...

BTW:
Something that came to my mind is that the possibility not to mind how you write the file ending should be in already. At least I remember that many tags in BA for example have everything written in upper-case i.e. UNITNAME.DDS although the buildpic file is named unitname.dds...