Saves you from the fun of renaming dozens of "wrong" endings in larger projects...
Allow upper-case letters in FBI file endings
Moderator: Moderators
-
[Krogoth86]
- Posts: 1176
- Joined: 23 Aug 2007, 19:46
Allow upper-case letters in FBI file endings
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...
Saves you from the fun of renaming dozens of "wrong" endings in larger projects...
Re: Allow upper-case letters in FBI file endings
linux is case-sensitive, so your work is probably already FAIL on linux if you're not consistent with case.
- Felix the Cat
- Posts: 2383
- Joined: 15 Jun 2005, 17:30
Re: Allow upper-case letters in FBI file endings
Yet another reason why Linux is FAIL.
Re: Allow upper-case letters in FBI file endings
YOU FAILFelix the Cat wrote:Yet another reason why Linux is FAIL.
Re: Allow upper-case letters in FBI file endings
yet another reason why linux isn't fail:
windows also has a directory tree limited to 256 bytes deep
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
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...Pxtl wrote:linux is case-sensitive, so your work is probably already FAIL on linux if you're not consistent with case.
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...
-
Auswaschbar
- Spring Developer
- Posts: 1254
- Joined: 24 Jun 2007, 08:34
Re: Allow upper-case letters in FBI file endings
It doesn't need endings at all. You could even name it "image" or "image.xxx" and it will still open.[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...
Re: Allow upper-case letters in FBI file endings
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"[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...
Re: Allow upper-case letters in FBI file endings
ren *.JPG *.jpg
-
[Krogoth86]
- Posts: 1176
- Joined: 23 Aug 2007, 19:46
Re: Allow upper-case letters in FBI file endings
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...
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)...
But when I rename the buildpic into unitname.DDS and also put unitname.DDS in the FBI it suddenly works...
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
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
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...
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...
