Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 12 13 [14] 15 16 ... 108

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

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: DFHack 0.4.0.5 - tools and memory access library
« Reply #195 on: August 13, 2010, 08:58:32 pm »

oh man, this is way cool

need any help?
Logged

FleshForge

  • Bay Watcher
    • View Profile
Re: DFHack 0.4.0.5 - tools and memory access library
« Reply #196 on: August 13, 2010, 11:06:04 pm »

K. I'll add the utility. I've been hit by this bug more than once and this is just too useful :) There will be a Windows binary release very soon, last in the 0.4 series.

Hooray, that's a very useful bugfix!  Thanks!
Logged

chessepuff

  • Escaped Lunatic
    • View Profile
Re: DFHack 0.4.0.5 - tools and memory access library
« Reply #197 on: August 14, 2010, 07:11:42 am »

Im having some compilation problems im trying to compile for Linux all Dependencies are met and I've tried about everything i can think of to get this to compile so here goes oh and im working with the latest from the public git repo
here's the output from the terminal

Code: [Select]
joshua@joshua-laptop:~/Desktop/dfhgit/dfhack/build$ cmake -DCMAKE_BUILD_TYPE:string=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DMEMXML_DATA_PATH:path=/usr/share/dfhack \ -BUILD_DFHACK_DOCUMENTATION=ON \ BUILD_DFHACK_EXAMPLES=ON \ BUILD_DFHACK_PLAYGROUND=ON ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Looking for _POSIX_TIMERS
-- Looking for _POSIX_TIMERS - found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/joshua/Desktop/dfhgit/dfhack/build
joshua@joshua-laptop:~/Desktop/dfhgit/dfhack/build$ make
-- Configuring done
-- Generating done
-- Build files have been written to: /home/joshua/Desktop/dfhgit/dfhack/build
Scanning dependencies of target dfhack
[  1%] Building CXX object library/CMakeFiles/dfhack.dir/DFMemInfo.cpp.o
[  3%] Building CXX object library/CMakeFiles/dfhack.dir/DFMemInfoManager.cpp.o
[  4%] Building CXX object library/CMakeFiles/dfhack.dir/DFContextManager.cpp.o
[  6%] Building CXX object library/CMakeFiles/dfhack.dir/DFContext.cpp.o
[  7%] Building CXX object library/CMakeFiles/dfhack.dir/DFProcessEnumerator.cpp.o
[  9%] Building CXX object library/CMakeFiles/dfhack.dir/ContextShared.cpp.o
[ 10%] Building CXX object library/CMakeFiles/dfhack.dir/depends/md5/md5.cpp.o
[ 12%] Building CXX object library/CMakeFiles/dfhack.dir/depends/md5/md5wrapper.cpp.o
[ 13%] Building CXX object library/CMakeFiles/dfhack.dir/depends/tinyxml/tinystr.cpp.o
[ 15%] Building CXX object library/CMakeFiles/dfhack.dir/depends/tinyxml/tinyxml.cpp.o
[ 16%] Building CXX object library/CMakeFiles/dfhack.dir/depends/tinyxml/tinyxmlerror.cpp.o
[ 18%] Building CXX object library/CMakeFiles/dfhack.dir/depends/tinyxml/tinyxmlparser.cpp.o
[ 19%] Building CXX object library/CMakeFiles/dfhack.dir/modules/Buildings.cpp.o
[ 21%] Building CXX object library/CMakeFiles/dfhack.dir/modules/Constructions.cpp.o
[ 22%] Building CXX object library/CMakeFiles/dfhack.dir/modules/Creatures.cpp.o
[ 24%] Building CXX object library/CMakeFiles/dfhack.dir/modules/Gui.cpp.o
[ 25%] Building CXX object library/CMakeFiles/dfhack.dir/modules/Items.cpp.o
[ 27%] Building CXX object library/CMakeFiles/dfhack.dir/modules/Maps.cpp.o
[ 28%] Building CXX object library/CMakeFiles/dfhack.dir/modules/Materials.cpp.o
[ 30%] Building CXX object library/CMakeFiles/dfhack.dir/modules/Position.cpp.o
[ 31%] Building CXX object library/CMakeFiles/dfhack.dir/modules/Translation.cpp.o
[ 33%] Building CXX object library/CMakeFiles/dfhack.dir/modules/Vegetation.cpp.o
[ 34%] Building CXX object library/CMakeFiles/dfhack.dir/modules/World.cpp.o
[ 36%] Building CXX object library/CMakeFiles/dfhack.dir/DFProcess-linux.cpp.o
/home/joshua/Desktop/dfhgit/dfhack/library/DFProcess-linux.cpp: In member function ‘virtual void DFHack::NormalProcess::getMemRanges(std::vector<DFHack::t_memrange, std::allocator<DFHack::t_memrange> >&)’:
/home/joshua/Desktop/dfhgit/dfhack/library/DFProcess-linux.cpp:186: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 3 has type ‘uint32_t’
[ 37%] Building CXX object library/CMakeFiles/dfhack.dir/DFProcess-linux-SHM.cpp.o
/home/joshua/Desktop/dfhgit/dfhack/library/DFProcess-linux-SHM.cpp: In member function ‘void DFHack::SHMProcess::Private::FreeLocks()’:
/home/joshua/Desktop/dfhgit/dfhack/library/DFProcess-linux-SHM.cpp:178: warning: ignoring return value of ‘int lockf(int, int, __off_t)’, declared with attribute warn_unused_result
/home/joshua/Desktop/dfhgit/dfhack/library/DFProcess-linux-SHM.cpp: In member function ‘virtual void DFHack::SHMProcess::getMemRanges(std::vector<DFHack::t_memrange, std::allocator<DFHack::t_memrange> >&)’:
/home/joshua/Desktop/dfhgit/dfhack/library/DFProcess-linux-SHM.cpp:389: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 3 has type ‘pid_t’
[ 39%] Building CXX object library/CMakeFiles/dfhack.dir/DFProcess-linux-wine.cpp.o
/home/joshua/Desktop/dfhgit/dfhack/library/DFProcess-linux-wine.cpp: In member function ‘virtual void DFHack::WineProcess::getMemRanges(std::vector<DFHack::t_memrange, std::allocator<DFHack::t_memrange> >&)’:
/home/joshua/Desktop/dfhgit/dfhack/library/DFProcess-linux-wine.cpp:198: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 3 has type ‘uint32_t’
[ 40%] Building CXX object library/CMakeFiles/dfhack.dir/modules/WindowIO-linux.cpp.o
[ 42%] Building CXX object library/CMakeFiles/dfhack.dir/DFContext_C.cpp.o
[ 43%] Building CXX object library/CMakeFiles/dfhack.dir/DFTypes_C.cpp.o
[ 45%] Building CXX object library/CMakeFiles/dfhack.dir/modules/Buildings_C.cpp.o
[ 46%] Building CXX object library/CMakeFiles/dfhack.dir/modules/Constructions_C.cpp.o
[ 48%] Building CXX object library/CMakeFiles/dfhack.dir/modules/Creatures_C.cpp.o
[ 50%] Building CXX object library/CMakeFiles/dfhack.dir/modules/Gui_C.cpp.o
[ 51%] Building CXX object library/CMakeFiles/dfhack.dir/modules/Items_C.cpp.o
[ 53%] Building CXX object library/CMakeFiles/dfhack.dir/modules/Maps_C.cpp.o
[ 54%] Building CXX object library/CMakeFiles/dfhack.dir/modules/Position_C.cpp.o
[ 56%] Building CXX object library/CMakeFiles/dfhack.dir/modules/Materials_C.cpp.o
[ 57%] Building CXX object library/CMakeFiles/dfhack.dir/modules/Translation_C.cpp.o
[ 59%] Building CXX object library/CMakeFiles/dfhack.dir/modules/Vegetation_C.cpp.o
[ 60%] Building CXX object library/CMakeFiles/dfhack.dir/modules/WindowIO_C.cpp.o
[ 62%] Building CXX object library/CMakeFiles/dfhack.dir/modules/World_C.cpp.o
Linking CXX shared library ../../output/libdfhack.so
[ 62%] Built target dfhack
[ 63%] Generating qrc_resources.cxx
[ 65%] Generating dfedit.moc
[ 66%] Generating memxmlModel.moc
Scanning dependencies of target dfoffsetedit
[ 68%] Building CXX object offsetedit/src/CMakeFiles/dfoffsetedit.dir/dfedit.cpp.o
In file included from /home/joshua/Desktop/dfhgit/dfhack/offsetedit/src/dfedit.cpp:1:
/home/joshua/Desktop/dfhgit/dfhack/offsetedit/src/dfedit.h:5:21: error: ui_main.h: No such file or directory
In file included from /home/joshua/Desktop/dfhgit/dfhack/offsetedit/src/dfedit.cpp:1:
/home/joshua/Desktop/dfhgit/dfhack/offsetedit/src/dfedit.h:16: error: ‘Ui’ has not been declared
/home/joshua/Desktop/dfhgit/dfhack/offsetedit/src/dfedit.h:16: error: ISO C++ forbids declaration of ‘MainWindow’ with no type
/home/joshua/Desktop/dfhgit/dfhack/offsetedit/src/dfedit.h:16: error: expected ‘;’ before ‘ui’
/home/joshua/Desktop/dfhgit/dfhack/offsetedit/src/dfedit.cpp: In constructor ‘dfedit::dfedit(QWidget*)’:
/home/joshua/Desktop/dfhgit/dfhack/offsetedit/src/dfedit.cpp:8: error: ‘ui’ was not declared in this scope
/home/joshua/Desktop/dfhgit/dfhack/offsetedit/src/dfedit.cpp: In member function ‘void dfedit::slotOpen(bool)’:
/home/joshua/Desktop/dfhgit/dfhack/offsetedit/src/dfedit.cpp:53: error: ‘ui’ was not declared in this scope
make[2]: *** [offsetedit/src/CMakeFiles/dfoffsetedit.dir/dfedit.cpp.o] Error 1
make[1]: *** [offsetedit/src/CMakeFiles/dfoffsetedit.dir/all] Error 2
make: *** [all] Error 2

ok so everythings going good with the exception of a few warnings untill i hit this line

[ 68%] Building CXX object offsetedit/src/CMakeFiles/dfoffsetedit.dir/dfedit.cpp.o

the error chain that follows is what ends up causing the fatal error all because of the missing file ui_main.h that's included by dfedit.h that''s included by dfedit.cpp in the whole dfoffsetedit thing now the rest of the project does compile properly i went into the build/library and build/tools and build/docs folders and did make in each and it got though the compilation of those parts and put the resulting files in the output/ folder as expected though i havent tested them now i checked the entire source tree and i couldn't find an ui_main.h or ui_main.cpp or anything like that and it's not in the dwarf fortress game folder either so yeah it feels like im missing something stupid simple so any help would be much appreciated
Logged

MaximumZero

  • Bay Watcher
  • Stare into the abyss.
    • View Profile
Re: DFHack 0.4.0.5 - tools and memory access library
« Reply #198 on: August 14, 2010, 09:11:19 am »

Came over from the Runesmith thread to say:

Thank you for fixing the memory leak! THANKYOUTHANKYOUTHANKYOU!!!
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

Artanis00

  • Bay Watcher
    • View Profile
Re: DFHack 0.4.0.5 - tools and memory access library
« Reply #199 on: August 14, 2010, 01:52:44 pm »

What needs to happen to get the Python bindings working?
Logged
Git - fast, efficient, distributed version control system
Github - Free public repositories, issue tracking, wikis, downloads...

peterix

  • Bay Watcher
    • View Profile
    • Dethware
Re: DFHack 0.4.0.5 - tools and memory access library
« Reply #200 on: August 14, 2010, 02:06:18 pm »

Im having some compilation problems im trying to compile for Linux all Dependencies are met and I've tried about everything i can think of to get this to compile so here goes oh and im working with the latest from the public git repo
here's the output from the terminal...

... stuff ...

it feels like im missing something stupid simple so any help would be much appreciated
You aren't missing anything, it was a bug. dfedit is just a part of the thing that will eventually become the memory.xml editor. I fixed it, added a switch for building it and set it to disabled by default for now. It's not really useful right now.
What needs to happen to get the Python bindings working?
Hmm... I'd say ask doomchild.

chessepuff

  • Escaped Lunatic
    • View Profile
Re: DFHack 0.4.0.5 - tools and memory access library
« Reply #201 on: August 14, 2010, 03:33:07 pm »

Ahh ok that makes sense now yeah the new one compiles just fine thanks for the update and for the great tool
Logged

peterix

  • Bay Watcher
    • View Profile
    • Dethware
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #202 on: August 14, 2010, 04:29:11 pm »

A new binary version appears! :D

FleshForge

  • Bay Watcher
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #203 on: August 14, 2010, 06:16:09 pm »

Excellent, I'm sure that will fix A LOT of problems - I notice that when people carrying a corpse for burial or butchering are interrupted, the corpse becomes stuck, so your map is littered with deaders even in a good scenario!
Logged

FleshForge

  • Bay Watcher
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #204 on: August 14, 2010, 08:11:27 pm »

Hmm, the corpses thing seems to be another matter I guess, this utility doesn't get them moving again.  Still should fix MANY problems though!
Logged

keda

  • Bay Watcher
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #205 on: August 15, 2010, 07:30:46 pm »

Today pread caused me a lot of headache, until I figured out that it was pread's fault. Whoever made it take a signed integer and throw errors at negative numbers must have had a screw lose. I had to switch to pread64 just to read the full 4G address space :(

strich

  • Bay Watcher
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #206 on: August 16, 2010, 05:48:38 am »

I've started my own little project using DFhack but I'm struggling to gain an understanding of how it all works. Is there any decent documentation I've missed or do I have to rely on the examples?
Logged

Serird

  • Escaped Lunatic
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #207 on: August 16, 2010, 08:08:44 am »

Is it possible to add cut/copy/paste to DFhack?
Logged

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #208 on: August 16, 2010, 08:14:44 am »

that would be something that goes into a client utility, rather than DFhack itself
Logged

mLegion

  • Bay Watcher
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #209 on: August 16, 2010, 10:54:33 am »

What is the current standard for any sort of GUI given that DFHack is supposed to be crossplatform?
« Last Edit: August 19, 2010, 05:51:52 am by mLegion »
Logged
Pages: 1 ... 12 13 [14] 15 16 ... 108