1. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

KAG KAG crashes after it's opened

Discussion in 'Help' started by Ghostsiroman, Dec 14, 2014.

Mods: makmoud98, Mazey
  1. Ghostsiroman

    Ghostsiroman Shark Slayer

    Messages:
    16
    Hello! I've just bought a new pc and i've put on it linux because it's free and a good operating system. I downloaded the Alpha version of KAG for Linux from https://kag2d.com/en/download. I opened it , extracted it and runned KAG file as a program. It firsts opens the launcher , i press ''Play'' button and it starts , but after 0.1-0.2 seconds it automatically closes. What shall i do?
     
  2. Asu

    Asu THD Team THD Team Forum Moderator

    Messages:
    1,580
    Check your logs and send them there. (KAG/Logs/)
     
  3. Ghostsiroman

    Ghostsiroman Shark Slayer

    Messages:
    16
    This is what i got in the log :
    [18:59:05] Config loaded from 'Scripts/autoconfig.gm'
    [18:59:05] * Config loaded from 'Scripts/config.gm'
    [18:59:05] Loading security from Base/Security/securitysetup.cfg
    [18:59:05] Config file not found 'Security/ignorelist.cfg'
    [18:59:05] Loading ignorelist from Base/Security/ignorelist.cfg
    [18:59:05] Loading ignorelist failed - file missing or corrupt. A blank ignorelist file will be generated for you.
    [18:59:05] Creating video device...
    [18:59:05] Desktop resolution is 1280x1024
    [18:59:05] Checking driver support...
    [18:59:05] Initializing new video device...
    [18:59:05] Irrlicht Engine version 1.8.0-alpha
    [18:59:05] Linux 3.16.0-4-686-pae #1 SMP Debian 3.16.7-2 (2014-11-06) i686
    [18:59:05] Using renderer: OpenGL 4.4.12968
    [18:59:05] AMD Radeon R9 200 Series: ATI Technologies Inc.
    [18:59:05] OpenGL driver version is 1.2 or better.
    [18:59:05] GLSL version: 4.4
    [18:59:05] PNG warning: Application was compiled with png.h from libpng-1.5.5
    [18:59:05] PNG warning: Application is running with png.c from libpng-1.2.50
    [18:59:05] PNG fatal error: Incompatible libpng version in application and library
    [18:59:05] LOAD PNG: Internal PNG create read struct failure
    : /home/dexter/Jocuri/kag-linux32/Base/GUI/Fonts/commodore.png
    [18:59:05] PNG warning: Application was compiled with png.h from libpng-1.5.5
    [18:59:05] PNG warning: Application is running with png.c from libpng-1.2.50
    [18:59:05] PNG fatal error: Incompatible libpng version in application and library
    [18:59:05] LOAD PNG: Internal PNG create read struct failure
    : /home/dexter/Jocuri/kag-linux32/Base/GUI/Fonts/commodore.png
    [18:59:05] Could not load console font 'GUI/Fonts/commodore.png'
    [18:59:05] PNG warning: Application was compiled with png.h from libpng-1.5.5
    [18:59:05] PNG warning: Application is running with png.c from libpng-1.2.50
    [18:59:05] PNG fatal error: Incompatible libpng version in application and library
    [18:59:05] LOAD PNG: Internal PNG create read struct failure
    : /home/dexter/Jocuri/kag-linux32/Base/GUI/Fonts/tempesta.png
    [18:59:05] PNG warning: Application was compiled with png.h from libpng-1.5.5
    [18:59:05] PNG warning: Application is running with png.c from libpng-1.2.50
    [18:59:05] PNG fatal error: Incompatible libpng version in application and library
    [18:59:05] LOAD PNG: Internal PNG create read struct failure
    : /home/dexter/Jocuri/kag-linux32/Base/GUI/Fonts/tempesta.png
    [18:59:05] PNG warning: Application was compiled with png.h from libpng-1.5.5
    [18:59:05] PNG warning: Application is running with png.c from libpng-1.2.50
    [18:59:05] PNG fatal error: Incompatible libpng version in application and library
    [18:59:05] LOAD PNG: Internal PNG create read struct failure
    : /home/dexter/Jocuri/kag-linux32/Base/GUI/Fonts/snes.png
    [18:59:05] PNG warning: Application was compiled with png.h from libpng-1.5.5
    [18:59:05] PNG warning: Application is running with png.c from libpng-1.2.50
    [18:59:05] PNG fatal error: Incompatible libpng version in application and library
    [18:59:05] LOAD PNG: Internal PNG create read struct failure
    : /home/dexter/Jocuri/kag-linux32/Base/GUI/Fonts/snes.png
    [18:59:05] PNG warning: Application was compiled with png.h from libpng-1.5.5
    [18:59:05] PNG warning: Application is running with png.c from libpng-1.2.50
    [18:59:05] PNG fatal error: Incompatible libpng version in application and library
    [18:59:05] LOAD PNG: Internal PNG create read struct failure
    : /home/dexter/Jocuri/kag-linux32/Base/GUI/Fonts/tempesta.png
    [18:59:05] PNG warning: Application was compiled with png.h from libpng-1.5.5
    [18:59:05] PNG warning: Application is running with png.c from libpng-1.2.50
    [18:59:05] PNG fatal error: Incompatible libpng version in application and library
    [18:59:05] LOAD PNG: Internal PNG create read struct failure
    : /home/dexter/Jocuri/kag-linux32/Base/GUI/Fonts/tempesta.png
    [18:59:05] PNG warning: Application was compiled with png.h from libpng-1.5.5
    [18:59:05] PNG warning: Application is running with png.c from libpng-1.2.50
    [18:59:05] PNG fatal error: Incompatible libpng version in application and library
    [18:59:05] LOAD PNG: Internal PNG create read struct failure
    : /home/dexter/Jocuri/kag-linux32/Base/GUI/Fonts/KAGFont_small_x2.png
    [18:59:05] PNG warning: Application was compiled with png.h from libpng-1.5.5
    [18:59:05] PNG warning: Application is running with png.c from libpng-1.2.50
    [18:59:05] PNG fatal error: Incompatible libpng version in application and library
    [18:59:05] LOAD PNG: Internal PNG create read struct failure
    : /home/dexter/Jocuri/kag-linux32/Base/GUI/Fonts/KAGFont_small_x2.png
    [18:59:05] PNG warning: Application was compiled with png.h from libpng-1.5.5
    [18:59:05] PNG warning: Application is running with png.c from libpng-1.2.50
    [18:59:05] PNG fatal error: Incompatible libpng version in application and library
    [18:59:05] LOAD PNG: Internal PNG create read struct failure
    : /home/dexter/Jocuri/kag-linux32/Base/GUI/Fonts/KAGFont_small_x2.png
    [18:59:05] PNG warning: Application was compiled with png.h from libpng-1.5.5
    [18:59:05] PNG warning: Application is running with png.c from libpng-1.2.50
    [18:59:05] PNG fatal error: Incompatible libpng version in application and library
    [18:59:05] LOAD PNG: Internal PNG create read struct failure
    : /home/dexter/Jocuri/kag-linux32/Base/GUI/Fonts/KAGFont_small_x2.png

    Is it bad? What i should do now?
     
  4. Asu

    Asu THD Team THD Team Forum Moderator

    Messages:
    1,580
  5. Ghostsiroman

    Ghostsiroman Shark Slayer

    Messages:
    16
    Yeah , it doesnt work. What should i do?
     
  6. Asu

    Asu THD Team THD Team Forum Moderator

    Messages:
    1,580
    I don't know. I'm not very good about linux. But if you know how to, remove libpng and install its 1.2.50 version.
    Otherwise, I guess @kaizokuroof would be of a better help here (if he has time)
     
  7. Ghostsiroman

    Ghostsiroman Shark Slayer

    Messages:
    16
    Tell him about this threat and maybe he'll have time and he'll respond.
     
  8. Asu

    Asu THD Team THD Team Forum Moderator

    Messages:
    1,580
    Adding a @ before an username will notify its user.
     
  9. Ghostsiroman

    Ghostsiroman Shark Slayer

    Messages:
    16
    Ok , thanks!
     
  10. kaizokuroof

    kaizokuroof Agkubuk|'Kaizokuroof' Cilobakil, Roofpointy Global Moderator Forum Moderator Donator Tester
    1. PumpkinStars - [Pk#] - Inactive

    Messages:
    909
    Yep, you gotta uninstall your old version and then install the new version of it.

    Im travelling at the moment with terrible internet, but it will be something like:

    Sudo apt-get remove libpng (you can use tab to auto complete commands) and then install the version that kag wants most likely by updating your repos or just instalking the later version.

    They're pretty shitty instructions but you could probably google it - just google the error and it should give you some useful instructions else ill reapond with detail when I get computer access :) best of luck
     
  11. Ghostsiroman

    Ghostsiroman Shark Slayer

    Messages:
    16
    So , i've tipped ''sudo apt-get remove libpng'' and it gaves me an error saying something about it can't locate libpng ( it is installed ) so i reinstalled it ( i've found 1.2.5 in SPM ) , but it still doesn't works. I need to install libpng 1.5.5?

    Edit: I reinstalled the same version of libpng.
     
  12. Bobinours

    Bobinours Ballista Bolt Thrower

    Messages:
    5
    Hi ! I'm not sure I am in the same case than you. I'm on Linux Mint Debian Edition 64 bits, and this is what I have done to run the game :

    # Install 32-bit libraries required for KAG:
    sudo apt-get install libc6:i386 libstdc++6:i386 libglapi-mesa:i386 libgl1-mesa-glx:i386 libxxf86vm1:i386 libxext6:i386 libx11-6:i386 libfreetype6:i386 libgcc1-dbg:i386 libxdamage1:i386 libxfixes3:i386 libx11-xcb1:i386 libxcb-glx0:i386 libxcb-dri2-0:i386 libxcb1:i386 libdrm2:i386 libxdmcp6:i386

    # Compile libpng :
    sudo apt-get install zlib1g-dev

    ( source : http://ubuntuforums.org/showthread.php?t=2138623 )

    http://sourceforge.net/projects/libpng/files/libpng15/
    cd ~/Downloads/libpng-1.5.19
    ./configure --prefix=/usr/local/libpng/i386/ --build=i386-pc-linux-gnu "CFLAGS=-m32" "CXXFLAGS=-m32" "LDFLAGS=-m32"
    make check
    sudo make install
    make check

    #Edit launcher file rungame.sh and add before line 6 :
    # to enable libpng1.5
    LD_PRELOAD=/usr/lib/i386-linux-gnu/libpng15.so.15 [...] /KAG [...]

    # KAG sound that doesn't work
    sudo apt-get install libasound2-dev:i386
    sudo apt-get install libasound2-plugins:i386

    Hope this help.
     
    Last edited: Dec 29, 2014
    kaizokuroof and Asu like this.
  13. Ghostsiroman

    Ghostsiroman Shark Slayer

    Messages:
    16
    Thank you guys for all your help , but i got nervous , i donwloaded the windows edition and runned it with wine and after a while it worked.
     
Mods: makmoud98, Mazey