Dwarf Fortress: DFHack not launching automatically, loading to black screen
Issue description
In dwarf-fortress-full:
dfhack halts on a black screen after world load.
dwarf-fortress does not open a dfhack instance.
Steps to reproduce
Install package dwarf-fortress-packages.dwarf-fortress-full from unstable Nix channel.
Run dwarf-fortress. Note that DFHack does not open automatically as indicated by the DFHack manual.
Run dfhack. Note that a dwarf-fortress instance launches. Menu looks good, world selection looks good. But after world load the screen goes black.
Technical details
- system:
"x86_64-linux" - host os:
Linux 4.17.19, NixOS, 18.03.133400.138f2cc707d (Impala) - multi-user?:
yes - sandbox:
no - version:
nix-env (Nix) 2.0.4 - channels(root):
"nixos-18.03, unstable, nixos-unstable-19.03pre166987.bc41317e243" - channels(matt):
"unstable" - nixpkgs:
/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixpkgs
Issue goes away with the following override:
dwarf-fortress-packages.dwarf-fortress-full.override (o: { enableTWBT = false; })
Thank you for your contributions.
This has been automatically marked as stale because it has had no activity for 180 days.
If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.
Here are suggestions that might help resolve this more quickly:
- Search for maintainers and people that previously touched the related code and @ mention them in a comment.
- Ask on the NixOS Discourse.
- Ask on the #nixos channel on irc.freenode.net.
still important to me. The issue has changed somewhat though, dwarf fortress isnt going black but dfhack complains that twbt is out of date.
@hjones2199 This is because twbt is out of date -- mifki has not update their repo since 2019. However, there is a fork by thurin (found here: https://github.com/thurin/df-twbt/), which appears up-to-date. Applying the following diff, I get Warning: Plugin twbt compiled for DFHack 0.47.04-alpha0-84-g24ceff8f, running DFHack 0.47.04-alpha0-unknown (but it still works, because everything looks better):
diff --git a/pkgs/games/dwarf-fortress/twbt/default.nix b/pkgs/games/dwarf-fortress/twbt/default.nix
index b5bff0e9b7a..eb8033e295a 100644
--- a/pkgs/games/dwarf-fortress/twbt/default.nix
+++ b/pkgs/games/dwarf-fortress/twbt/default.nix
@@ -42,8 +42,8 @@ let
prerelease = false;
};
"0.47.04" = {
- twbtRelease = "6.61";
- sha256 = "07bqy9rkd64h033sxdpigp5zq4xrr0xd36wdr1b21g649mv8j6yw";
+ twbtRelease = "6.xx";
+ sha256 = "sha256-DWuSUSq7UpjBh3KapOVd2NcdCOEksuiY/2oGwF2xh2k=";
prerelease = false;
};
};
@@ -58,7 +58,7 @@ stdenvNoCC.mkDerivation rec {
version = release.twbtRelease;
src = fetchurl {
- url = "https://github.com/mifki/df-twbt/releases/download/v${version}/twbt-${version}-linux.zip";
+ url = "https://github.com/thurin/df-twbt/releases/download/0.47.04-alpha0-200322005/twbt-6.xx-linux64-200322005.zip";
sha256 = release.sha256;
};
Do note that I hardcoded the url, so it might not work for anything but version 0.47.04-alpha0 of dfhack.
I've opened https://github.com/NixOS/nixpkgs/pull/95934, which includes the above fix. Please check it out!