Package Details: dwarffortress-lnp-git 44.03-2

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: None
Last Packager: metamer
Votes: 23
Popularity: 0.000131
First Submitted: 2016-03-06 03:30
Last Updated: 2018-01-12 03:15

Dependencies (29)

Required by (0)

Sources (25)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 Next › Last »

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)

TheCatWizard commented on 2017-06-28 01:14

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 /home/me/.dwarfortress-lnp-git/df_linux/df,

[distro_fixes] [INFO] Checking whether any distro specific fixes are required...
[distro_fixes] [INFO] OS: arch
[distro_fixes] [INFO] ARCH: x86_64
[distro_fixes] [INFO] VER:
[distro_fixes] [INFO] DF_ARCH: 64-bit
[distro_fixes] [INFO] DF_BIN_LOCATION: /home/technomancer/.dwarffortress-lnp-git/df_linux/libs/Dwarf_Fortress
[distro_fixes] [INFO] PRELOAD_LIB:
[distro_fixes] [INFO] LD_LIBRARY_PATH:
[distro_fixes] [INFO] Done

(Dwarf_Fortress:10470): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",

(Dwarf_Fortress:10470): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",
Loading bindings from data/init/interface.txt


Main index file missing/corrupted. The file "index" must be in the "data" folder. Make sure DF decompressed into its folders properly.

when running /home/me/.dwarfortress-lnp-git/df_linux/dfhack, and

Main index file missing/corrupted. The file "index" must be in the "data" folder. Make sure DF decompressed into its folders properly.

in a popup window on every attempt after I launched the main interface as sudo.

metamer commented on 2017-06-25 12:51

Apologies for the hiatus. I've updated to v43.05 . Note that some defaults for the LNP have changed. For example, multilevel rendering is now for TWBT is now disabled by default (to enable, select "Enable TWBT Multilevel" under the DFHack tab in the LNP window). Also, stonesense does not seem to work yet with v43.05.

After the update, the aforementioned issues seem to be fixed. Please let me know if they aren't. In particular:

@TheCatWizard : I have verified that dwarftherapist works without segfaulting
@ShaneRoach: I have verified that soundsense works as expected. I do see the same message about OpenAL Soft as you do, but this does not seem to be causing any issues. Make sure you point to ~/.dwarffortress-lnp-git/df_linux/gamelog.txt when prompted by soundsense (you may have to type this path in manually into the Flie Name field in the file chooser that pops up).
@FreelancePolice and @aleph476 : I was able to play with the Spacefox and Obsidian graphics with dfhack enabled without issues (I see some error output regarding it being unable to read an unrelated colorscheme, but this does not seem to affect functionality).

TheCatWizard commented on 2017-06-23 15:59

This package causes a segmentation fault when run with dwarf therapist.