Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Poll

What would be the most convenient release format for the LinuxDwarfPack?

Redhat RPM
Ubuntu SNAP
Debian DEB
Arch XZ
Docker
AppImage
Current tbz2
Other
Flatpak
Alpine

Pages: 1 2 3 [4] 5 6 ... 14

Author Topic: LinuxDwarfPack-0.47.05-r8 (with DFHack r8)  (Read 90736 times)

McArcady

  • Bay Watcher
  • working on a mysterious construction
    • View Profile
    • LinuxDwarfPack - a ready-to-play pack for Linux
Re: LinuxDwarfPack / lnp-forge
« Reply #45 on: October 29, 2020, 04:34:40 pm »

Fixed. At first execution, the startup script creates .local/share/linux-dwarf-pack and,
 if necessary, moves old user data to it.
Thanks guys for the suggestion.
« Last Edit: October 29, 2020, 05:08:34 pm by McArcady »
Logged

muleet

  • Escaped Lunatic
    • View Profile
Re: LinuxDwarfPack / lnp-forge
« Reply #46 on: December 25, 2020, 06:15:28 pm »

Code: [Select]
Running PyLNP 0.14a (OS: linux, Compiled: False)
WARNING: JSONConfiguration: File PyLNP.user does not exist
['Traceback (most recent call last):\n', '  File "/home/muleet/Downloads/df/launch.py", line 12, in <module>\n    lnp.PyLNP()\n', '  File "/home/muleet/Downloads/df/core/lnp.py", line 119, in __init__\n    self.initialize_ui()\n', '  File "/home/muleet/Downloads/df/core/lnp.py", line 211, in initialize_ui\n    from tkgui.tkgui import TkGui\n', '  File "/home/muleet/Downloads/df/tkgui/tkgui.py", line 16, in <module>\n    from . import controls, binding\n', '  File "/home/muleet/Downloads/df/tkgui/controls.py", line 11, in <module>\n    from . import binding\n', '  File "/home/muleet/Downloads/df/tkgui/binding.py", line 12, in <module>\n    from tkinter import END\n', "ModuleNotFoundError: No module named 'tkinter'\n"]
Hello, I tried to download the LinuxDwarfPack, but I got that error. I'm using Linux Mint 19. Any idea what I should do ?
I simply extracted the files of the last version of the LNP, and launched "startlnp.sh".
Logged

McArcady

  • Bay Watcher
  • working on a mysterious construction
    • View Profile
    • LinuxDwarfPack - a ready-to-play pack for Linux
Re: LinuxDwarfPack / lnp-forge
« Reply #47 on: December 26, 2020, 05:28:32 pm »

It seems that a dependency is missing  (python3-tk)
On Debian-like systems (such as Mint), the dependencies may be installed with:
Code: [Select]
$ sudo apt install libsdl-image1.2 libsdl-ttf2.0-0 gnome-terminal openjdk-8-jre python3-tk qt5-default unionfs-fuseor by selecting the packages above in the package manager.

BTW: have you tried instead the Debian package available here? it handles dependencies and user-data more gracefully than the tar.bz2 version.
« Last Edit: December 26, 2020, 05:40:32 pm by McArcady »
Logged

McArcady

  • Bay Watcher
  • working on a mysterious construction
    • View Profile
    • LinuxDwarfPack - a ready-to-play pack for Linux
Re: LinuxDwarfPack / lnp-forge
« Reply #48 on: December 27, 2020, 12:53:10 pm »

A nightly build with dfhack-0.47.04-r4 is available on github.

muleet

  • Escaped Lunatic
    • View Profile
Re: LinuxDwarfPack / lnp-forge
« Reply #49 on: December 29, 2020, 03:22:12 pm »

McArcady > Thanks ! It worked !
(I'm not surprised, I noticed there was a global issue with executables on my OS...)
Logged

Clément

  • Bay Watcher
    • View Profile
Re: LinuxDwarfPack for DF 0.47.04 with DFHack r4
« Reply #50 on: December 30, 2020, 06:12:26 am »

Hi McArcady, one user has some issue with Dwarf Therapist packaged in your pack. Maybe you could have a look.

The first issue is related to Qt using either OpenSSL 1.0 or 1.1 depending on its version and the user system having only one of those installed. It's hard to fix for everyone and not really important, you can ignore it.

The second issue with DT unable to find memory layouts is the important one. From the path, it looks like an appimage but running in portable mode, this is not possible as the directories inside the appimage are not writable. If you want to tweak the files location you can use the XDG_{DATA,CONFIG,CACHE}_{DIRS,HOME} vars instead.

File location used by DT are:
  • XDG_DATA_DIRS/dwarftherapist for memory layouts, grid views, game data. XDG_DATA_HOME/dwarftherapist needs to be writable
  • XDG_CONFIG_HOME/dwarftherapist/ for settings
  • XDG_CACHE_HOME/dwarftherapist/log for logs
« Last Edit: December 30, 2020, 06:15:42 am by Clément »
Logged

McArcady

  • Bay Watcher
  • working on a mysterious construction
    • View Profile
    • LinuxDwarfPack - a ready-to-play pack for Linux
Re: LinuxDwarfPack for DF 0.47.04 with DFHack r4
« Reply #51 on: December 30, 2020, 05:31:11 pm »

Hi Clément,
Thanks for the report! I'm looking into in.
The DT provided in the LinuxDwarfPack is indeed started with option --portable, but it is meant to work this way (even in the AppImage version of the pack): actually the directory /tmp/.mount_dwarfXXXX is a temporary overlay of:
- the read-only files from the pack/appimage
- the read-write files from ~/.local/share/linux-dwarf-pack/.
All files modified by a binary of the pack are copied (copy-on-write) to ~/.local/share/linux-dwarf-pack/ and used in place of the original (this is sometimes called the "unionfs trick"), so DT should have no problems writing to any file inside  /tmp/.mount_dwarfXXXX/....
I will contact Milopolitan and investigate this on your thread, I'm curious to know which version and what kind of package (.deb, appimage, tbz2 ?) he uses.

McArcady

  • Bay Watcher
  • working on a mysterious construction
    • View Profile
    • LinuxDwarfPack - a ready-to-play pack for Linux
Re: LinuxDwarfPack for DF 0.47.04 with DFHack r4
« Reply #52 on: December 30, 2020, 05:58:51 pm »

There was an error in the DFFD listing for "LinuxDwarfPack-0.47.04-r5 (DFHack-r4)":
- the version of the pack should have been 0.47.04-r5 from the start
- the link to the github artifacts was pointing to an older version
It is now fixed.

legolegs

  • Escaped Lunatic
    • View Profile
Re: LinuxDwarfPack for DF 0.47.04 with DFHack r4
« Reply #53 on: January 05, 2021, 04:12:33 pm »

Does LinuxDwarfPack 0.47.04-r5 have working stonesense in it?
Logged

McArcady

  • Bay Watcher
  • working on a mysterious construction
    • View Profile
    • LinuxDwarfPack - a ready-to-play pack for Linux
Re: LinuxDwarfPack for DF 0.47.04 with DFHack r4
« Reply #54 on: January 05, 2021, 04:19:34 pm »

it does.

cj2025

  • Escaped Lunatic
    • View Profile
Re: LinuxDwarfPack for DF 0.47.04 with DFHack r4
« Reply #55 on: January 10, 2021, 11:30:19 am »

Hello, long-time lurker, first-time poster.  First, I'm extremely grateful that you and the other modders have been so amazing at updating these packs and making them accessible for noobs like me!  Unfortunately, I'm running into an error with the install.  I'm on Ubuntu 20.04 and used the .deb LDP posted here: https://dffd.bay12games.com/file.php?id=15220.  This is what the Terminal responds when I try to launch the LNP:

Code: [Select]
$ ./startlnp.sh
['Traceback (most recent call last):\n', '  File "./launch.py", line 12, in <module>\n    lnp.PyLNP()\n', '  File "/home/cj2025/Games/LinuxDwarfPack-0.47.04-r5/core/lnp.py", line 113, in __init__\n    self.initialize_program()\n', '  File "/home/cj2025/Games/LinuxDwarfPack-0.47.04-r5/core/lnp.py", line 132, in initialize_program\n    self.detect_basedir()\n', '  File "/home/cj2025/Games/LinuxDwarfPack-0.47.04-r5/core/lnp.py", line 288, in detect_basedir\n    from . import df\n', '  File "/home/cj2025/Games/LinuxDwarfPack-0.47.04-r5/core/df.py", line 10, in <module>\n    from distutils import dir_util\n', "ImportError: cannot import name 'dir_util' from 'distutils' (/usr/lib/python3.8/distutils/__init__.py)\n"]

A window also appears with the same text displaying.  I attempted to fix by installing the dependencies recommended here:

It seems that a dependency is missing  (python3-tk)
On Debian-like systems (such as Mint), the dependencies may be installed with:
Code: [Select]
$ sudo apt install libsdl-image1.2 libsdl-ttf2.0-0 gnome-terminal openjdk-8-jre python3-tk qt5-default unionfs-fuseor by selecting the packages above in the package manager.

BTW: have you tried instead the Debian package available here? it handles dependencies and user-data more gracefully than the tar.bz2 version.

but while all packages installed without a problem, unfortunately this doesn't seem to have solved the issue.  Please let me know what you think and if there's a way to fix these errors.  I'm like a baby when it comes to Linux btw so if the answer is obvious please be patient! 

There is a snap version of DF available in the Ubuntu Software app which works and runs DF Vanilla so I can get my fix of Fun but I miss the tilesets and having dfhack so I'd love to get this pack running if possible.  Thank you so much again for maintaining this pack and responding to questions!
Logged

McArcady

  • Bay Watcher
  • working on a mysterious construction
    • View Profile
    • LinuxDwarfPack - a ready-to-play pack for Linux
Re: LinuxDwarfPack for DF 0.47.04 with DFHack r4
« Reply #56 on: January 10, 2021, 12:28:26 pm »

Hello cj2025,
Good catch, there is a dependency missing from the list.
The next release of the pack will pull it automatically, but meanwhile you have to install it manually with:
Code: [Select]
$ sudo apt install python3-distutils
To start the pack, instead of 'startlnp.sh',
use:
Code: [Select]
$ /opt/linux-dwarf-pack/linux-dwarf-pack.shor the shortcut in: Applications > Games > Dwarf Fortress.

cj2025

  • Escaped Lunatic
    • View Profile
Re: LinuxDwarfPack for DF 0.47.04 with DFHack r4
« Reply #57 on: January 10, 2021, 12:44:15 pm »

Hello cj2025,
Good catch, there is a dependency missing from the list.
The next release of the pack will pull it automatically, but meanwhile you have to install it manually with:
Code: [Select]
$ sudo apt install python3-distutils
To start the pack, instead of 'startlnp.sh',
use:
Code: [Select]
$ /opt/linux-dwarf-pack/linux-dwarf-pack.shor the shortcut in: Applications > Games > Dwarf Fortress.

That's fixed it!!  The LNP runs perfectly now.  Thanks so much, I really appreciate it!

Edit: I spoke too soon.  The LNP runs perfectly, however I ran into an error that seems to be unique to all releases of Ubuntu and has popped up in the past, where this error would display in Terminal and no sound would be played:

Code: [Select]
Dynamically loading the OpenAL library failed, disabling sound
Initializing OpenAL failed, no sound will be played

I was able to solve the problem using advice from past threads:

Code: [Select]
$ sudo apt-get install libsdl-ttf2.0-0
$ sudo apt-get install libopenal-dev
$ sudo apt-get install libsndfile-dev
$ ln -s /usr/lib/libsndfile.so.1 df_47_04_linux/libs/libsndfile.so
$ ln -s /usr/lib/libopenal.so.1 df_47_04_linux/libs/libopenal.so
$ echo "drivers = alsa," > .alsoftrc

I don't know if there's a way to integrate this code into future releases of the pack, but if not, the code is here for anyone who runs into the same issue. 

Edit 2: There was also an error that displayed:

Code: [Select]
Failed to load module “canberra-gtk-module”
Which was easily rectified with the simple line:

Code: [Select]
sudo apt-get install libcanberra-gtk-module
Cheers!
« Last Edit: January 10, 2021, 04:12:34 pm by cj2025 »
Logged

McArcady

  • Bay Watcher
  • working on a mysterious construction
    • View Profile
    • LinuxDwarfPack - a ready-to-play pack for Linux
Experimental LinuxDwarfPack for DF 0.47.05 (DT, no DFHack)
« Reply #58 on: January 30, 2021, 04:51:25 am »

Experimental pack for 0.47.05 available here!
(with DT, but no DFHack)

McArcady

  • Bay Watcher
  • working on a mysterious construction
    • View Profile
    • LinuxDwarfPack - a ready-to-play pack for Linux
LinuxDwarfPack for DF 0.47.05 with DFHack alpha0
« Reply #59 on: February 02, 2021, 01:43:44 pm »

With DFHack-alpha right here.
« Last Edit: February 02, 2021, 02:55:22 pm by McArcady »
Logged
Pages: 1 2 3 [4] 5 6 ... 14