A question. I've compiled dfhack to run stonesense. Now it's running but not able to connect because, I think, the Memory.xml file is for windows. Should I use the one from dfhack or is it the same?
Should be about the same. It's safer to overwrite the stonesense Memory.xml with the one from dfhack tho. Ideally, it would use the system-installed memory file along with the library, but that requires some more changes to stonesense.
Note: the Memory.xml in data/ is NOT the real deal. I changed the format of the file and it's there simply for reference. You can use either Memory-ng.xml from data/, the Memory.xml file that is placed in output/ after building DFHack or the one placed into /usr/share/dfhack/ after installing DFHack globally (they should be identical).
Also note that you can't run more than one DF tool at the same time on Linux.
pread failed: can't read 0x30 bytes at address 0xb2e80710
errno: 16
terminate called after throwing an instance of 'DFHack::Error::MemoryAccessDenied'
what(): SHM ACCESS DENIED
Aborted
Using Memory-ng.xml with stonesense and df running.
Strange.
OK. Let's check one thing.
1. Run DF
2. Run this command and post the results:
cat /proc/`pidof Dwarf_Fortress`/maps | grep Dwarf
Should look a bit like this for DF 31.12:
08048000-08b39000 r-xp 00000000 08:01 303572 /home/peterix/DF2010/libs/Dwarf_Fortress
08b39000-08b3a000 r--p 00af0000 08:01 303572 /home/peterix/DF2010/libs/Dwarf_Fortress
08b3a000-08b3b000 rw-p 00af1000 08:01 303572 /home/peterix/DF2010/libs/Dwarf_Fortress
If the first numbers don't match, try using a -pae kernel. See if anything changes
You can also use this:
less /proc/`pidof Dwarf_Fortress`/maps
and look for a bigger chunk:
08048000-08b39000 r-xp 00000000 08:01 303572 /home/peterix/DF2010/libs/Dwarf_Fortress
08b39000-08b3a000 r--p 00af0000 08:01 303572 /home/peterix/DF2010/libs/Dwarf_Fortress
08b3a000-08b3b000 rw-p 00af1000 08:01 303572 /home/peterix/DF2010/libs/Dwarf_Fortress
08b3b000-09578000 rw-p 00000000 00:00 0
Second thing to check is this:
http://www.bay12forums.com/smf/index.php?topic=65326.0The new ubuntu release will have some extra security stuff that needs disabling ...