FIFE forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

FIFE 0.4.0 has been released on 15th of January, 2017!

Author Topic: FIFE vfs code chokes on filenames with more than one DOT on *NIX systems  (Read 3111 times)

mvBarracuda

  • Administrator
  • Sr. Member
  • *
  • Posts: 411
    • View Profile

See this ticket:
http://fife.trac.cvsdude.com/engine/ticket/362

Is anyone familiar with the vfs code and take a look into it? I'm rather puzzled if the FIFE vfs code (boost vfs library) is to blame or if Python is the culprit.
Logged

phoku

  • Developer
  • Full Member
  • *
  • Posts: 102
    • View Profile
    • IZ dev blog

Probably an uppercase vs. lowercase problem.
See the comment on the ticket.

-phoku
Logged

mvBarracuda

  • Administrator
  • Sr. Member
  • *
  • Posts: 411
    • View Profile

See my reply there. The actual frames of the animation for revision 257 are uppercase: S_I.<frame_number>.png. The filenames are the same in the animation.xml files so it seems that FIFE doesn't like uppercase files, any idea why is that or am I missing something obvious? Unfortunately I can't reproduce the bug on win32 so I can't test things there.
Logged

phoku

  • Developer
  • Full Member
  • *
  • Posts: 102
    • View Profile
    • IZ dev blog

Unless something changed in VFS, it transforms all filenames
to lowercase.

I think this was done since FO DATs had only lowercase (???)
files and the references to files in those FO DATs were mixed case.

I think.

However this means, VFS for the hostsystem will only load
lowercase files.

Wether or not this is good, I can't say but it's not documented.
Bad enough.

So if you just use lower case filenames you're good,
on windows and *nix.

Glad to help :)

-phoku

Logged

vtchill

  • Developer
  • Full Member
  • *
  • Posts: 206
    • View Profile

replied to ticket.
Logged

mvBarracuda

  • Administrator
  • Sr. Member
  • *
  • Posts: 411
    • View Profile

Alrighty, thanks for clearing that up guys :-) I'll advise our team to simply stick to lowercase filenames.
Logged