Allow upper-case letters in FBI file endings

Allow upper-case letters in FBI file endings

Requests for features in the spring code.

Moderator: Moderators

Post Reply
[Krogoth86]
Posts: 1176
Joined: 23 Aug 2007, 19:46

Allow upper-case letters in FBI file endings

Post 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:
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: Allow upper-case letters in FBI file endings

Post by Pxtl »

linux is case-sensitive, so your work is probably already FAIL on linux if you're not consistent with case.
User avatar
Felix the Cat
Posts: 2383
Joined: 15 Jun 2005, 17:30

Re: Allow upper-case letters in FBI file endings

Post by Felix the Cat »

Yet another reason why Linux is FAIL.
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

Re: Allow upper-case letters in FBI file endings

Post by LordMatt »

Felix the Cat wrote:Yet another reason why Linux is FAIL.
YOU FAIL
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Allow upper-case letters in FBI file endings

Post by aegis »

yet another reason why linux isn't fail:
windows also has a directory tree limited to 256 bytes deep :(
[Krogoth86]
Posts: 1176
Joined: 23 Aug 2007, 19:46

Re: Allow upper-case letters in FBI file endings

Post 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:
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Allow upper-case letters in FBI file endings

Post 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.
User avatar
theHive
Posts: 124
Joined: 13 May 2007, 06:54

Re: Allow upper-case letters in FBI file endings

Post 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"
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: Allow upper-case letters in FBI file endings

Post by KDR_11k »

ren *.JPG *.jpg
[Krogoth86]
Posts: 1176
Joined: 23 Aug 2007, 19:46

Re: Allow upper-case letters in FBI file endings

Post 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)...
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Re: Allow upper-case letters in FBI file endings

Post by rattle »

Are there any double buildpics? As in unit_x.pcx and unit_x.dds?
[Krogoth86]
Posts: 1176
Joined: 23 Aug 2007, 19:46

Re: Allow upper-case letters in FBI file endings

Post 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...
Post Reply

Return to “Feature Requests”