Issue #55 resolved

Failed to open library crash

Tuomas Lähteenmäki
created an issue

./ja2 Configuration file: '/home/valvoja/.ja2/ja2.ini' Root game resources directory: 'home/valvoja/.ja2' Data directory: 'home/valvoja/.ja2/data' Tilecache directory: 'home/valvoja/.ja2/data/tilecache'


ERROR: Failed to open library "data.slf" Library 'data.slf' is not found in folder 'home/valvoja/.ja2/data'.

Please make sure that 'home/valvoja/.ja2' contains files of the original game. You can change this path by editing file '/home/valvoja/.ja2/ja2.ini'.

data.slf is correct place but game not loading.

im using Ubuntu 12.10 and im using english version of game.

Comments (9)

  1. Gennady Trafimenkov repo owner

    Hello Tuomas. Thank you for reporting this bug. Could you please execute following commands from the console (terminal) and post the results?

    ls -l ~/.ja2
    ls -l ~/.ja2/[Dd]ata
    
  2. Tuomas Lähteenmäki reporter

    ls -l ~/.ja2 drwx------ 5 valvoja valvoja 4096 kesä 26 00:43 Data -rw-rw-r-- 1 valvoja valvoja 93 kesä 26 00:25 ja2.ini -rw-rw-r-- 1 valvoja valvoja 88 kesä 26 00:22 ja2.ini~ -rw------- 1 valvoja valvoja 76 kesä 26 00:44 Ja2.set drwxr-xr-x 2 valvoja valvoja 4096 kesä 26 00:41 SavedGames drwx------ 2 valvoja valvoja 4096 kesä 26 00:19 tmp

    ls -l ~/.ja2/[Dd]ata yhteensä 880364 -rw-rw-r-- 1 valvoja valvoja 281098 heinä 16 1998 ambient.slf -rw-rw-r-- 1 valvoja valvoja 59226796 huhti 8 1999 anims.slf -rw-rw-r-- 1 valvoja valvoja 16177338 maali 15 1999 battlesnds.slf -rw-rw-r-- 1 valvoja valvoja 589854 kesä 14 1999 bigitems.slf -rw-rw-r-- 1 valvoja valvoja 2047959 kesä 22 1999 binarydata.slf -rw-rw-r-- 1 valvoja valvoja 213001 huhti 5 1999 cursors.slf -rw-rw-r-- 1 valvoja valvoja 2057190 huhti 5 1999 data.slf -rw-rw-r-- 1 valvoja valvoja 2057190 huhti 5 1999 DATA.SLF -rw-rw-r-- 1 valvoja valvoja 6016442 huhti 28 1999 faces.slf -rw-rw-r-- 1 valvoja valvoja 399352 huhti 5 1999 fonts.slf -rw------- 1 valvoja valvoja 804 kesä 25 22:06 IMP.dat -rw-rw-r-- 1 valvoja valvoja 8663775 kesä 14 1999 interface.slf -rw-rw-r-- 1 valvoja valvoja 72223192 kesä 16 1999 intro.slf -rw-rw-r-- 1 valvoja valvoja 9105761 touko 6 1999 laptop.slf -rw-rw-r-- 1 valvoja valvoja 26843078 touko 6 1999 loadscreens.slf -rw-rw-r-- 1 valvoja valvoja 78864275 touko 5 1999 maps.slf -rw-rw-r-- 1 valvoja valvoja 3757205 huhti 28 1999 mercedt.slf -rw-rw-r-- 1 valvoja valvoja 104434204 kesä 16 1998 music.slf -rw-rw-r-- 1 valvoja valvoja 2245528 kesä 14 1999 npcdata.slf -rw-rw-r-- 1 valvoja valvoja 182015718 maali 6 1999 npc_speech.slf -rw-rw-r-- 1 valvoja valvoja 1678333 huhti 8 1999 radarmaps.slf -rw-rw-r-- 1 valvoja valvoja 19030241 huhti 20 1999 sounds.slf -rw-rw-r-- 1 valvoja valvoja 231850918 maali 2 1999 speech.slf drwxrwxr-x 2 valvoja valvoja 4096 kesä 25 21:37 stsounds drwxr-xr-x 2 valvoja valvoja 4096 kesä 26 00:44 Temp drwxrwxr-x 2 valvoja valvoja 4096 kesä 25 21:37 tilecache -rw-rw-r-- 1 valvoja valvoja 71646928 kesä 14 1999 tilesets.slf

    Game files is installed cd-version and im not upgraded. Do I need to update the game to latest offical 1.12 version?

  3. Gennady Trafimenkov repo owner

    Hmm... This is quite strange. It seems that the game thinks that your data directory is 'home/valvoja/.ja2/data' when actually it is 'home/valvoja/.ja2/Data'.

    I will install Finnish localization of Ubuntu (you are using Finnish localization, right?) and check how it works.

    In the mean time you can try to rename 'home/valvoja/.ja2/Data' to 'home/valvoja/.ja2/data' (Rename folder Data to lowercase). It might help.

    Do I need to update the game to latest offical 1.12 version?

    No, it is not necessary.

  4. Tuomas Lähteenmäki reporter

    yes im using Finnish localization. But now im getting game working. This is quite strange. Data dir is data_dir = /home/valvoja/.ja2/

    Im added / ini file. And game working. Sorry by this.

  5. Gennady Trafimenkov repo owner

    Sorry by this.

    Don't be sorry. This is actually a bug I think.

    You see, when game files are installed there is no guarantee that the files will have any consistent naming convention. E.g. maps.slf can be named Maps.slf, maps.slf, MAPS.slf or MAPS.SLF. This difference doesn't matter on Windows because the file system on Windows is not case-sensitive. But on Linux we need to know exact names of all files.

    One approach is to rename all data files to lowercase before starting the game. That was necessary before, but recently I added some code that detects the correct names of all files, so the renaming is not necessary.

    I think there is a bug with this detection algorithm on Finnish localization of Ubuntu. So, thanks for reporting the issue.

  6. Log in to comment