df-lnp-installer icon indicating copy to clipboard operation
df-lnp-installer copied to clipboard

Not found: data/art/curses_square_16x16.png

Open mattias opened this issue 11 years ago • 9 comments

Running Arch Linux and just found this script. it installs everything fine but when I try to run df I get the error in the title, and in terminal I also see: "libpng error: bad parameters to zlib"

If I install dwarffortress-phoebus or dwarffortress-ironhand from AUR I don't have this issue, df starts fine.

If I switch graphics set the error just changes to something like "Not found: data/art/Phoebus_16x16.png" instead...

I have no idea what's causing this. The png is there...

I can't be the first to get this? I see other people have something similar with "mouse.png", but this seems to be slightly different.

mattias avatar Oct 31 '13 23:10 mattias

I have had this problem. To solve this, I think you can have 2 solutions :

  • compile the libgraphics.so from here, and remplace the old libgraphics.so by the new
  • or (copy of the installation page of the DF wiki) "edit the /data/init/init.txt file and set the game to use the BMP variants of the art files, instead of the default PNG"

ytterbium avatar Nov 01 '13 08:11 ytterbium

Awesome, got it solved. After I compiled that and replaced the old libgraphics.so, I got this: ./libs/Dwarf_Fortress: /home/mattias/Games/df/df_linux/libs/libstdc++.so.6: version GLIBCXX_3.4.18' not found (required by /home/mattias/Games/df/df_linux/libs/libgraphics.so) ./libs/Dwarf_Fortress: /home/mattias/Games/df/df_linux/libs/libstdc++.so.6: versionCXXABI_1.3.5' not found (required by /home/mattias/Games/df/df_linux/libs/libgraphics.so) ./libs/Dwarf_Fortress: /home/mattias/Games/df/df_linux/libs/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /home/mattias/Games/df/df_linux/libs/libgraphics.so)

What I did to solve this was simply to delete df_linux/libs/libstdc++.so.6 so it would use system default instead. Dwarf Fortress is probably shipped with ancient libs. Now it runs!

mattias avatar Nov 01 '13 11:11 mattias

This should get linked somewhere in the "common issuses" section in the wiki ... took me ages to find.

fhaust avatar Dec 24 '13 21:12 fhaust

There are two issues here. The first, being the BMP vs PNG issue. I'm having a hard time reproducing it on both of my Debian 64-bit boxes. I'll see what I can do.

The ancient libstdc++ issue should be resolved as of 0.5.4 where I rename the ancient lib during install and force the system lib. I didn't bother including it in the dependency check because the gcc check should pull it in.

andrewd18 avatar Feb 10 '14 16:02 andrewd18

If you want to reproduce easily the bug, without installing arch, you can use manjaro : it share the same problem.

ytterbium avatar Feb 11 '14 14:02 ytterbium

Experiencing this bug on Fedora 20 as well

Ramblurr avatar Apr 26 '14 18:04 Ramblurr

Still relevant on Fedora 23.

Underlying error seems to be as follows:

** (Dwarf_Fortress:11327): WARNING **: Pixbuf theme: Cannot load pixmap file /usr/share/themes/Adwaita/gtk-2.0/Buttons/button-default.png: Failed to load image '/usr/share/themes/Adwaita/gtk-2.0/Buttons/button-default.png': Fatal error in PNG image file: bad parameters to zlib

minexew avatar Apr 27 '16 21:04 minexew

As per the big announcement on the front page, this repository is unmaintained. I will not be fixing this bug.

I recommend you check out the pack being maintained at http://lazynewbpack.com/linux

On Wed, Apr 27, 2016 at 4:24 PM, Minexew [email protected] wrote:

Still relevant on Fedora 23.

Underlying error seems to be as follows:

** (Dwarf_Fortress:11327): WARNING **: Pixbuf theme: Cannot load pixmap file /usr/share/themes/Adwaita/gtk-2.0/Buttons/button-default.png: Failed to load image '/usr/share/themes/Adwaita/gtk-2.0/Buttons/button-default.png': Fatal error in PNG image file: bad parameters to zlib

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/andrewd18/df-lnp-installer/issues/36#issuecomment-215234131

andrewd18 avatar Apr 27 '16 21:04 andrewd18

Sorry, I didn't realize this wasn't an official repository for DF. This issue is still one of the top results when googling the error message.

minexew avatar Apr 28 '16 13:04 minexew