I'm not sure if this package will be able to be updated, it seems like the development of the TWBT plugin is no longer active as far as I can tell.
Search Criteria
Package Details: dfhack-twbt 0.47.05-12
Package Actions
Git Clone URL: | https://aur.archlinux.org/dfhack-twbt.git (read-only, click to copy) |
---|---|
Package Base: | dfhack-twbt |
Description: | memory hacking library for Dwarf Fortress and a set of tools that use it |
Upstream URL: | https://dfhack.readthedocs.io/en/stable/ |
Keywords: | dwarffortress |
Licenses: | custom |
Conflicts: | dfhack, dfhack-bin, dfhack-git, dfhack-twbt-bin |
Provides: | dfhack |
Submitter: | dangersalad |
Maintainer: | dangersalad |
Last Packager: | dangersalad |
Votes: | 3 |
Popularity: | 0.78 |
First Submitted: | 2020-03-13 00:22 (UTC) |
Last Updated: | 2022-01-25 23:22 (UTC) |
Dependencies (15)
- dwarffortress (dwarffortress-ironhandAUR)
- freetype2 (freetype2-qdoledAUR, freetype2-macosAUR, freetype2-gitAUR)
- libglvnd (libglvnd-gitAUR)
- libjpeg6 (jpegli-gitAUR, libjpeg6-turbo)
- libpng12
- libxcursor
- libxinerama (libxinerama-randr-gitAUR)
- libxrandr (libxrandr-gitAUR)
- lua
- protobuf (protobuf-gitAUR)
- cmake (cmake-gitAUR) (make)
- git (git-gitAUR, git-glAUR) (make)
- perl-xml-libxml (make)
- perl-xml-libxslt (make)
- python-sphinx (python-sphinx-gitAUR) (make)
Required by (1)
- armok-vision (requires dfhack)
Sources (14)
dangersalad commented on 2024-03-14 16:05 (UTC)
softmoth commented on 2023-05-11 14:53 (UTC)
The problem with this build is that it's using an outdated branch tag. It should be using https://github.com/thurin/df-twbt/releases/tag/0.47.05-r8 or else the master branch.
nilsw commented on 2023-02-05 07:26 (UTC)
Why does this package bundle dfhack
instead of depending on the existing dfhack
AUR package?
matthiakl commented on 2022-06-13 18:36 (UTC)
Is it intentional, that this is the only dfhack package where stonesense is disabled? If so, why? Also note, that twbt does not compile with gcc 12.1.0:
[100%] Built target RemoteFortressReader
g++ twbt.cpp -o dist/0.47.05-r3/twbt.plug.so -DDFHACK_VERSION=\"0.47.05-r3\" -DDF_`echo 0.47.05-r3 | sed -e s/-.*// -e s/\\\\.//g` -DTWBT_VER=\""6.xx"\" -I"/tmp/trizen/dfhack-twbt/src/dfhack/library/include" -I"/tmp/trizen/dfhack-twbt/src/dfhack/library/proto" -I"/tmp/trizen/dfhack-twbt/src/dfhack/depends/protobuf" -I"/tmp/trizen/dfhack-twbt/src/dfhack/depends/lua/include" -m64 -DLINUX_BUILD -O3 -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++0x -fPIC -L"/tmp/trizen/dfhack-twbt/src/dfhack/build/library" -ldfhack -ldfhack-version -shared
In Datei, eingebunden von twbt.cpp:93:
renderer_twbt.h:69:32: Warnung: Zeichenkonstante mit mehreren Zeichen [-Wmultichar]
69 | return (this->dummy == 'TWBT');
| ^~~~~~
In Datei, eingebunden von twbt.cpp:446:
renderer.hpp:55:13: Warnung: Zeichenkonstante mit mehreren Zeichen [-Wmultichar]
55 | dummy = 'TWBT';
| ^~~~~~
In Datei, eingebunden von twbt.cpp:452:
config.hpp: In Funktion »bool load_overrides()«:
config.hpp:578:77: Fehler: Adresse eines rvalues wird ermittelt [-fpermissive]
578 | static_cast<std::ostringstream*>(&(std::ostringstream() << idx))->str();
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
make: *** [Makefile:46: dist/0.47.05-r3/twbt.plug.so] Fehler 1
==> FEHLER: Ein Fehler geschah in build().
Breche ab...
:: Unable to build dfhack-twbt - makepkg exited with code: 4
Solution:
Replace static_cast<std::ostringstream*>(&(std::ostringstream() << idx))->str();
with (std::ostringstream() << idx).str();
(or do something with compiler flags...)
brknrobot commented on 2021-12-10 22:06 (UTC)
dfhack only compiles with gcc. Perhaps you could add
export CC=gcc
export CXX=g++
for those of us who have switched our default compiler to clang :)
astewartau commented on 2021-03-29 23:36 (UTC) (edited on 2021-03-29 23:38 (UTC) by astewartau)
Just commenting in case anybody else gets this problem because it took me a few hours to solve. If you get this error on launch:
Main index file missing/corrupted. The file "index" must be in the "data" folder. Make sure DF decompressed into its folders properly.
This can be caused if you installed an earlier version of DF and didn't clean up everything. The solution for me was to run:
sudo cp /opt/dwarffortress/data/index ~/.local/share/dwarffortress/data/index
The $XDG_DATA_HOME
directory mentioned in dangersalad's pinned comment is an unused variable on my system.
Yamakaky commented on 2020-06-16 17:00 (UTC)
Would it be possible to add provide = dfhack ? It would make it compatible with armok-vision for example.
dangersalad commented on 2020-05-11 15:23 (UTC)
@Feanor1397 fixed it, that should be the last one
Feanor1397 commented on 2020-05-08 15:54 (UTC)
d_init.txt still can't pass validity check. other files are ok
dangersalad commented on 2020-05-07 19:58 (UTC)
@Feanor1397 Looks like there were windows line endings getting gobbled by git, fixed in the next version with the update to r1
Pinned Comments
dangersalad commented on 2020-03-13 00:29 (UTC) (edited on 2020-05-08 15:14 (UTC) by dangersalad)
This package uses a different directory layout than the default
dwarffortress
package.The main run directory is in
$XDG_DATA_HOME/dwarffortress
which should not be edited. Saves are in$XDG_DATA_HOME/dwarffortress/data/saves
(XDG_DATA_HOME
defaults to$HOME/.local/share
)The files available for config are in
$XDG_CONFIG_HOME/dwarffortress
(XDG_CONFIG_HOME
defaults to$HOME/.config
).Currently there are "extra" files in config, but I will work on cleaning that up.
This should allow you to keep separate saves for vanilla df and hacked df.
This will also copy an "opinionated" dfhack/df config which enables seasonal colors (included in the raws, you can edit them in the data directory if you want to change them) and multilevel rendering for twbt.
It also includes some settings for pops/invaders in
d_init.txt
, you can copy the default config from/opt/dwarffortress/data/init/d_init.txt
as this original file is still intact.The other twbt settings are set up in the customised
init.txt
which will point to the provided graphics. You can either edit this file to change them or simply overwrite thetext.png
andgraphics.png
files in$XDG_CONFIG_HOME/data/art
.