Package Details: dwarffortress-lnp-git 43.05-1

Git Clone URL: https://aur.archlinux.org/dwarffortress-lnp-git.git (read-only)
Package Base: dwarffortress-lnp-git
Description: Installer for the Lazy Newb Pack to run Dwarf Fortress. Includes vanilla dwarf fortress, dfhack and graphics
Upstream URL: None
Licenses: custom
Submitter: metamer
Maintainer: metamer
Last Packager: metamer
Votes: 18
Popularity: 0.673924
First Submitted: 2016-03-06 03:30
Last Updated: 2017-06-25 12:38

Dependencies (29)

Required by (0)

Sources (25)

Latest Comments

GinjaNinja32 commented on 2017-12-17 11:34

distro-fixes-64-bit.patch appears to have been merged into the LNP repo, which causes the patch to fail to apply - https://github.com/Lazy-Newb-Pack/Lazy-Newb-Pack-Linux/commit/64020490ea4acf3c7ac751de3ec0e0d6492b6844

Commenting out the patch in the PKGBUILD makes it work again for me.

metamer commented on 2017-09-28 05:32

Thanks for the issue reports - this looks like an issue with the upstream (https://bitbucket.org/Pidgeot/python-lnp), I'll take a look sometime over the next few days.

sirus20x6 commented on 2017-09-25 02:26

[ 3%] Building CXX object depends/protobuf/CMakeFiles/protobuf.dir/google/protobuf/descriptor.cc.o
Can't locate XML/LibXSLT.pm in @INC (you may need to install the XML::LibXSLT module) (@INC contains: xml /usr/lib/perl5/5.26/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.26/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.26/core_perl /usr/share/perl5/core_perl) at xml/codegen.pl line 15.
BEGIN failed--compilation aborted at xml/codegen.pl line 15.
make[2]: *** [library/CMakeFiles/generate_headers.dir/build.make:121: ../library/include/df/codegen.out.xml] Error 2
make[1]: *** [CMakeFiles/Makefile2:692: library/CMakeFiles/generate_headers.dir/all] Error 2

sloppy_joes commented on 2017-09-21 14:36

This package is partially broken for me. The function read_graphics:

def read_graphics():
"""Returns a list of tuples of (graphics dir, FONT, GRAPHICS_FONT)."""
packs = [os.path.basename(o) for o in
glob.glob(paths.get('graphics', '*')) if os.path.isdir(o)
and manifest.is_compatible('graphics', os.path.basename(o))]
result = []
for p in packs:
if not validate_pack(p):
continue
init_path = paths.get('graphics', p, 'data', 'init', 'init.txt')
#pylint: disable=unbalanced-tuple-unpacking
font, graphics = DFRaw(init_path).get_values('FONT', 'GRAPHICS_FONT')
result.append((p, font, graphics))
return tuple(sorted(result, cmp=helpers.sort_underscore_first))

Puts graphics packs into a tuple of tuples, but it tries to sort them using the function sort_underscore_first, which expects strings.
This then errors like this:

Traceback (most recent call last):
File "./PyLNP", line 11, in <module>
File "/home/sloppy_joes/.dwarffortress-lnp-git/python-lnp/core/lnp.py", line 119, in __init__
self.initialize_ui()
File "/home/sloppy_joes/.dwarffortress-lnp-git/python-lnp/core/lnp.py", line 212, in initialize_ui
self.ui = TkGui()
File "./tkgui/tkgui.py", line 182, in __init__
self.create_tab(GraphicsTab, 'Graphics')
File "./tkgui/tkgui.py", line 304, in create_tab
tab = class_(self.n, pad=(4, 2))
File "./tkgui/tab.py", line 30, in __init__
self.read_data()
File "./tkgui/graphics.py", line 36, in read_data
self.read_graphics()
File "./tkgui/graphics.py", line 200, in read_graphics
packs = self.packs = [p[0] for p in graphics.read_graphics()]
File "/home/sloppy_joes/.dwarffortress-lnp-git/python-lnp/core/graphics.py", line 79, in read_graphics
return tuple(sorted(result, cmp=helpers.sort_underscore_first))
File "/home/sloppy_joes/.dwarffortress-lnp-git/python-lnp/core/helpers.py", line 91, in sort_underscore_first
if a.startswith('_') == b.startswith('_'):
AttributeError: 'tuple' object has no attribute 'startswith'

But, if you add:

a = a[0]
b = b[0]

at the start of the sort_underscore_first function then it works for me.

carbolymer commented on 2017-09-21 04:57

Does not work. I think it needs python 2 instead of 3.

% lnp
LNP/utilities/dwarf_therapist/DwarfTherapist (No such file or directory)
WARNING: Can't load or change keybinds with missing baseline!
Traceback (most recent call last):
File "./PyLNP", line 11, in <module>
File "/home/mgalazyn/.dwarffortress-lnp-git/python-lnp/core/lnp.py", line 119, in __init__
self.initialize_ui()
File "/home/mgalazyn/.dwarffortress-lnp-git/python-lnp/core/lnp.py", line 212, in initialize_ui
self.ui = TkGui()
File "./tkgui/tkgui.py", line 182, in __init__
self.create_tab(GraphicsTab, 'Graphics')
File "./tkgui/tkgui.py", line 304, in create_tab
tab = class_(self.n, pad=(4, 2))
File "./tkgui/tab.py", line 30, in __init__
self.read_data()
File "./tkgui/graphics.py", line 36, in read_data
self.read_graphics()
File "./tkgui/graphics.py", line 200, in read_graphics
packs = self.packs = [p[0] for p in graphics.read_graphics()]
File "/home/mgalazyn/.dwarffortress-lnp-git/python-lnp/core/graphics.py", line 79, in read_graphics
return tuple(sorted(result, cmp=helpers.sort_underscore_first))
TypeError: 'cmp' is an invalid keyword argument for this function
[WARNING] startlnp: Failed to start PyLNP

eskimod commented on 2017-09-05 01:25

@metamer dfhack 0.43.05-r2 is out with numerous features and fixes. I was able to build it with your PKGBUILD however I had to disable the stonesense plugin which to my knowledge is not currently working for 43.05 anyway. See linked:
https://gist.github.com/anonymous/6dce60922389eb2dfc2fa4881cb825c3

metamer commented on 2017-08-01 01:04

@TheCatWizard: No problem - your error message/solution will be helpful for anyone that runs into a similar issue. Good to know that you got it fixed.

TheCatWizard commented on 2017-07-29 23:09

Just a note to anyone who has the same issue as I had on 2017-06-29,

I had KDE set as my terminal and apparently that didn't work, setting the terminal to xterm (File > Configure Terminal...) fixed it.

Sorry for bothering you metamer.

TheCatWizard commented on 2017-06-29 17:45

Now I get:

./libs/Dwarf_Fortress: /usr/lib/dwarffortress-lnp-git/df_linux/libs/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/lib/dwarffortress-lnp-git/df_linux/libs/libgraphics.so)
./libs/Dwarf_Fortress: /usr/lib/dwarffortress-lnp-git/df_linux/libs/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/dwarffortress-lnp-git/df_linux/libs/libgraphics.so)

When running /.dwarffortress-lnp-git/df_linux/df or clicking start dwarf fortress in the launcher without dfhack enabled,

Traceback (most recent call last):
File "/home/technomancer/.dwarffortress-lnp-git/python-lnp/core/launcher.py", line 93, in run_program
run_args = terminal.get_terminal_command([path,])
File "/home/technomancer/.dwarffortress-lnp-git/python-lnp/core/terminal.py", line 25, in get_terminal_command
term = get_configured_terminal().get_command_line()
File "/home/technomancer/.dwarffortress-lnp-git/python-lnp/core/terminal.py", line 121, in get_command_line
'--key', 'TerminalApplication', '--default', 'konsole']).replace(
File "/usr/lib/python3.6/subprocess.py", line 336, in check_output
**kwargs).stdout
File "/usr/lib/python3.6/subprocess.py", line 403, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.6/subprocess.py", line 707, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.6/subprocess.py", line 1326, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'kreadconfig'
ERROR: Could not launch ./../df_linux/dfhack
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python3.6/tkinter/__init__.py", line 1699, in __call__
return self.func(*args)
File "/home/technomancer/.dwarffortress-lnp-git/python-lnp/core/launcher.py", line 55, in run_df
raise Exception('Failed to run Dwarf Fortress.')
Exception: Failed to run Dwarf Fortress.

When clicking start dwarf fortress in the launcher with dfhack enabled, and when I run /.dwarffortress-lnp-git/df_linux/dfhack the game starts without issue.
At least Dwarf Therapist is working.

metamer commented on 2017-06-29 05:42

@TheCatWizard: The game was updated from 32-bit to 64-bit between 43.03 (the previous version of this package) and 43.05, which means that the new package is not backward compatible with old game data. If you haven't already, try removing ~/.dwarffortress-lnp-git (which will remove old game data), and then try running the pack (which will create a new copy of the game data)

All comments