#162 unable to find movies in Linux

closed-fixed
nobody
None
5
2009-02-19
2009-02-13
No

gemrb is unable to find the movies in bg1 in Linux if the directory is named "movies"
if I rename the directory to "Movies" gemrb is able to find the movie files.

Discussion

  • Jaka Kranjc

    Jaka Kranjc - 2009-02-16

    Do you have CaseSensitive=1 in your configuration file? As I'm sure you know, the filesystems on linux are case sensitive.

     
  • Joachim Metz

    Joachim Metz - 2009-02-17

    Checked it: case sensitive is on (set to 1).

    To me it looks like gemrb is looking for the path named "Movies".
    Although during the installation using wine the directory was named "movies".
    It would be nice to detect this or ignore the directory case on case sensitive file systems.
    Although you might also want to handle the situation when two directories with the same name (different case) are present.

     
  • Jaka Kranjc

    Jaka Kranjc - 2009-02-17

    I don't have bg1 to test, but I see no mention of hardcoding any kind of "movies" string in gemrb. It looks at what is stored in chitin.key and my bg2 copy has the movie entries under data or movies. gemrb also checks for the existance of files with the initial uppercased (movies/x -> Movies/X). Perhaps bg1 has this mixed (movies/X in chitin and Movies/x on disk) and both paths fail (no movies/X or Movies/X)?

     
  • Joachim Metz

    Joachim Metz - 2009-02-17

    I'll take a look at what chitin.key contains and let you know.

     
  • Joachim Metz

    Joachim Metz - 2009-02-17

    > Perhaps bg1 has this mixed (movies/X in chitin and Movies/x on disk)
    Exactly the other way around.

    The chitin.key contains references to Movies/X while the installer (under wine) named the directory movies.

    When I renamed the path to Movies, gemrb could find the movie files.

     
  • Jaka Kranjc

    Jaka Kranjc - 2009-02-17

    So we'll have to try lowercasing as well.

     
  • Joachim Metz

    Joachim Metz - 2009-02-19

    Wouldn't be a case insensitive search in the directory a more generic approach?

    (You'll need to handle multiple matches.)

     
  • Jaka Kranjc

    Jaka Kranjc - 2009-02-19

    We already do a case insensitive search, but first the basename is appended to the search path (if the key has one). So in your case, it is looking for any-kind—of-cased movies under gamepath/Movies, while the basename matching should be done insensitively too (any kind of movies).

    However, upon implementing that, I see that it doesn't help much, since the movies directories are under CDx, not in the game dir. So some more searches will be needed.
    File Added: basename.patch

     
  • Jaka Kranjc

    Jaka Kranjc - 2009-02-19

    This one works for me.
    File Added: basename.patch

     
  • Jaka Kranjc

    Jaka Kranjc - 2009-02-19

    check cds too

     
  • Jaka Kranjc

    Jaka Kranjc - 2009-02-19

    This is fixed for me in subversion, please reopen if you still have the problem.

     
  • Jaka Kranjc

    Jaka Kranjc - 2009-02-19
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks