Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 17 18 [19] 20 21 ... 108

Author Topic: DFHack 0.5.15 (legacy)  (Read 405156 times)

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #270 on: September 04, 2010, 06:14:44 pm »

I wonder is building spawning from utility checking for an item out of the question? if so then building walls in adventure mode is out of the question.
Logged
I thought I would I had never hear my daughter's escapades from some boy...
DAMN YOU RUMRUSHER!!!!!!!!
"body swapping and YOU!"
Adventure in baby making!Adv Homes

devek

  • Bay Watcher
  • [KILL_EVERYTHING]
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #271 on: September 04, 2010, 07:04:58 pm »

I wonder is building spawning from utility checking for an item out of the question? if so then building walls in adventure mode is out of the question.

I'm not sure I understand your question.

You can build obsidian walls in adventure mode with dfliquids.
Logged
"Why do people rebuild things that they know are going to be destroyed? Why do people cling to life when they know they can't live forever?"

mLegion

  • Bay Watcher
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #272 on: September 04, 2010, 08:18:10 pm »

i think he means spawning a construction if you use/have an item ingame.

personally i just look forward to the day we can do all fortress mode stuff in adv. mode.
Logged

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #273 on: September 05, 2010, 03:22:34 pm »

i think he means spawning a construction if you use/have an item ingame.

personally i just look forward to the day we can do all fortress mode stuff in adv. mode.
yes this would make building stairs for towers easier especially with the wanderer mod.
now the only two major huddles for me is learning DFhack so I can start this project and see If the game just cut off access to the fort mode options and one can build in adventure mode. know where to start screwing around in the game code.
Logged
I thought I would I had never hear my daughter's escapades from some boy...
DAMN YOU RUMRUSHER!!!!!!!!
"body swapping and YOU!"
Adventure in baby making!Adv Homes

dierre

  • Bay Watcher
  • Fear not the Reaper
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #274 on: September 07, 2010, 04:44:28 pm »

Hi! I'm having trouble compiling dfhack on linux.

I have this error:

Quote
dierre@cox:~/Programmi/dfhack/build$ cmake .. -DCMAKE_BUILD_TYPE:string=Release
-- Wide-character ncurses library not found - veinlook can't be built
CMake Error at tools/supported/CMakeLists.txt:120 (install):
  install TARGETS given target "dfveinlook" which does not exist in this
  directory.


-- Configuring incomplete, errors occurred!

I have libncurses5 and libncurses5-dev
Logged

peterix

  • Bay Watcher
    • View Profile
    • Dethware
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #275 on: September 07, 2010, 04:49:51 pm »

Hi! I'm having trouble compiling dfhack on linux.

I have this error:

Quote
dierre@cox:~/Programmi/dfhack/build$ cmake .. -DCMAKE_BUILD_TYPE:string=Release
-- Wide-character ncurses library not found - veinlook can't be built
CMake Error at tools/supported/CMakeLists.txt:120 (install):
  install TARGETS given target "dfveinlook" which does not exist in this
  directory.


-- Configuring incomplete, errors occurred!

I have libncurses5 and libncurses5-dev
Well, you should have the wide-character version of them. Otherwise it won't build veinlook. Probably not much of a loss tho. The real bug here is in the build system, because it should be able to ignore such errors and just print the first line (-- Wide-character ncurses library not found - veinlook can't be built). I'll fix that ASAP :)

Artanis00

  • Bay Watcher
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #276 on: September 07, 2010, 05:23:13 pm »

Hi! I'm having trouble compiling dfhack on linux.

I have this error:

Quote
dierre@cox:~/Programmi/dfhack/build$ cmake .. -DCMAKE_BUILD_TYPE:string=Release
-- Wide-character ncurses library not found - veinlook can't be built
CMake Error at tools/supported/CMakeLists.txt:120 (install):
  install TARGETS given target "dfveinlook" which does not exist in this
  directory.


-- Configuring incomplete, errors occurred!

I have libncurses5 and libncurses5-dev

On Ubuntu 10.04 at least, you need libncursesw5 and libncursesw5-dev.

Code: [Select]
sudo apt-get install libncursesw5 libncursesw5-dev
Logged
Git - fast, efficient, distributed version control system
Github - Free public repositories, issue tracking, wikis, downloads...

dierre

  • Bay Watcher
  • Fear not the Reaper
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #277 on: September 07, 2010, 05:57:26 pm »

I've updated the repository and now is working. :D
Logged

dierre

  • Bay Watcher
  • Fear not the Reaper
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #278 on: September 07, 2010, 06:08:50 pm »

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?
Logged

peterix

  • Bay Watcher
    • View Profile
    • Dethware
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #279 on: September 07, 2010, 07:33:42 pm »

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.
« Last Edit: September 07, 2010, 07:44:42 pm by peterix »
Logged

dierre

  • Bay Watcher
  • Fear not the Reaper
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #280 on: September 07, 2010, 08:08:45 pm »

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.
Logged

peterix

  • Bay Watcher
    • View Profile
    • Dethware
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #281 on: September 07, 2010, 08:46:46 pm »

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.0
The new ubuntu release will have some extra security stuff that needs disabling ...
« Last Edit: September 07, 2010, 08:50:25 pm by peterix »
Logged

MaximumZero

  • Bay Watcher
  • Stare into the abyss.
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #282 on: September 07, 2010, 10:20:52 pm »

Wow, I'm really glad I'm not on Linux. That stuff seems to be way over my head, until next semester.
Logged
  
Holy crap, why did I not start watching One Punch Man earlier? This is the best thing.
probably figured an autobiography wouldn't be interesting

snooptodd

  • Bay Watcher
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #283 on: September 08, 2010, 12:00:44 am »

peterix,

Just so you know the pae kernel didn't really help with dfhack not able to connect reliably to df.

I should have said something earlier but I still haven't really figured out how to consistently/reliably cause dfhack not to connect.

this is what i know
I did a git pull last week,
dfhack will connect after a reboot when i first start df before being unpaused.
after the fort runs for a while dfhack may or may not connect.
Ubuntu has had ASLR turned on since 6.06 and fully turned on since 9.04. source
I tried disabling ASLR, dfhack would not connect at all. (i don't have the command i used handy.)

This isn't a big deal to me, it forces me to only use dfvdig when i start playing and not rain obsidian  when a colossus shows up.
Logged

dierre

  • Bay Watcher
  • Fear not the Reaper
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #284 on: September 08, 2010, 03:18:06 am »

New update:

Code: [Select]
dierre@cox:~$ cat /proc/`pidof Dwarf_Fortress`/maps | grep Dwarf
08048000-08b39000 r-xp 00000000 08:01 657242     /home/dierre/Programmi/df_linux/libs/Dwarf_Fortress
08b39000-08b3a000 r--p 00af0000 08:01 657242     /home/dierre/Programmi/df_linux/libs/Dwarf_Fortress
08b3a000-08b3b000 rw-p 00af1000 08:01 657242     /home/dierre/Programmi/df_linux/libs/Dwarf_Fortress

I do not have 4GB of ram so do you think is necessary a kernel-pae?

I'm not using ubuntu 10.10 so there is no /proc/sys/kernel/yama/ptrace_scope

And then I tried dfhack tools:

Code: [Select]
dierre@cox:~/Programmi/dfhack/output$ ./dfreveal
Pausing...
pause set
pread failed: can't read 0x30 bytes at address 0xb5e06188
errno: 16
terminate called after throwing an instance of 'DFHack::Error::MemoryAccessDenied'
  what():  SHM ACCESS DENIED
Aborted

but

Code: [Select]
dierre@cox:~/Programmi/dfhack/output$ ./dfweather
The sky is clear.
Options:
'r' to make it rain.
's' to make it snow.
'q' to quit.
anything else to refresh
>s
It is snowing.
Options:
'c' to clear the sky.
'r' to make it rain.
'q' to quit.
anything else to refresh
>
But it actually does nothing.
Maybe this can help you.
« Last Edit: September 08, 2010, 03:27:06 am by dierre »
Logged
Pages: 1 ... 17 18 [19] 20 21 ... 108