df-lnp-installer
df-lnp-installer copied to clipboard
Solve the problem of "tileset not found" which prevent from launching DF on all Arch Linux based distribution
When detecting that libpng is not in version 1.5, the script will now download and compile a new libgraphics.so from dwarf_fortress_unfuck to replace the old of Dwarf Fortress. It will normally solve all the problems of tileset "not found" on distributions based on arch linux (which have libpng in version 1.6). It should solve this issue
The other solution could be to replace for each graphic pack the png by bmp in the init.txt and to symlink art/mouse.png by art/mouse.bmp. I think the solution I used needs more code and time to download and compile, but is "cleaner" : there is no modification to do when a graphic pack is added or modified.
Hell, I just experienced that problem just as you submitted this issue, 8 hours ago. I hope this gets merged soon
In the meantime, you can use my repository, branch libgraphics
I like this a lot and I agree it is the cleaner solution rather than editing all the graphics packs.
My only question is the reasoning behind the --use-free-libs argument and corresponding config file. I don't think it's necessary. If we're checking for libpng anyway, does the user really need to have a say in forcing it to be true? If they have the bug, we'll compile something for them automagically. If they don't have the bug, then they'll never notice.
Well, I thought it could be useful to let to force to use the new lib in case of bug even with libpng1.5. But I agree, it may be a little too overkill.
Do you want I remove this part, or do you do it ?
I'll throw some time at getting both of these pull requests in this morning.
libgraphics.so is not cross-compiling cleanly on my Debian boxes. I've narrowed it down to a libs issue and I'm waiting on some assistance from Debian devs as to why I can't seem to get pkg-config to point the linker at 32-bit libs.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=689097 suggests this is not going to be an easy fix.
For those on Arch who just want to play Dwarf Fortress right now, I recommend this page: https://wiki.archlinux.org/index.php/Dwarf_Fortress which suggests some packages in the AUR. I'm playing with the Ironhand tileset right now.
I really like this installer, but maybe for Arch systems a PKGBUILD like (https://aur.archlinux.org/packages/dw/dwarffortress-ironhand/PKGBUILD) might be appropriate?
The PKGBUILD is great, but it can only install DF system-wide, and this is not very practical to use utilities.
On Fedora 20 I'm experiencing "Not found: data/art/CLA.png" on startup and subsequently DF closes. It happens with all graphics packs, and yea, the file exists.
Is this related to this issue?