Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 22 23 [24] 25 26 ... 108

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

sizeak

  • Bay Watcher
    • View Profile
Re: DFHack 0.5.0.0 - tools and memory access library
« Reply #345 on: September 21, 2010, 08:10:35 pm »

Any news on .13 creature offsets?
Logged
Runesmith - http://www.bay12forums.com/smf/index.php?topic=59056.0 - A Dwarf Companion like tool

Glimmlampe

  • Escaped Lunatic
    • View Profile
Re: DFHack 0.5.0.0 - tools and memory access library
« Reply #346 on: September 23, 2010, 05:57:42 am »

i'm running df .13 on windows, most tools from dfhack work allright. only the most important tool (dfcleartask) got "missing offset for item vectors".
anything i could do, besides wait for a new release?
Logged

doomchild

  • Bay Watcher
  • Official Pace Car for the Apocalypse
    • View Profile
Re: DFHack 0.5.0.0 - tools and memory access library
« Reply #347 on: September 23, 2010, 09:14:33 am »

I know that items are pretty much completely broken right now, so that one may take some time.  I have no idea what the fix is, though, since I'm largely ignorant about the inner workings of dfhack.

DC
Logged
Quote from: webadict
I could care less what you are now, because what you will be is dead.

pkmnfrk

  • Bay Watcher
    • View Profile
Re: DFHack 0.5.0.0 - tools and memory access library
« Reply #348 on: September 23, 2010, 12:01:10 pm »

I know that items are pretty much completely broken right now, so that one may take some time.  I have no idea what the fix is, though, since I'm largely ignorant about the inner workings of dfhack.

DC

I get this too, in .12, when compiling from source. The version in the Lazy Newb pack works fine, though. :\

On the bright side, I'd like to submit a patch for dfreveal. You know how it reveals the entire map, and has a 20% chance of unleashing Fun even if you're paused? Well, I got annoyed at that, and modified it so that by default, it only reveals the current Z-level. You can still reveal everything, if you pass the -a command line option.

Code: [Select]
diff --git "a/C:\\Users\\Mike\\AppData\\Local\\Temp\\reveal_HEAD.cpp" "b/D:\\dfhack\\tools\\supported\\reveal.cpp"
index e2a1579..b1238fd 100644
--- "a/C:\\Users\\Mike\\AppData\\Local\\Temp\\reveal_HEAD.cpp"
+++ "b/D:\\dfhack\\tools\\supported\\reveal.cpp"
@@ -30,8 +30,25 @@ struct hideblock
     uint8_t hiddens [16][16];
 };
 
-int main (void)
+bool viewAll = false;
+
+void parseArguments(int argc, char* argv[]) {
+    for(int i = 1; i < argc; i++) {
+        if(argv[i][0] == '-') {
+            switch(argv[i][1]) {
+                case 'a':
+                case 'A':
+                    viewAll = true;
+                    break;
+            }
+        }
+    }
+}
+
+int main (int argc, char* argv[])
 {
+    parseArguments(argc, argv);
+
     uint32_t x_max,y_max,z_max;
     DFHack::designations40d designations;
     
@@ -80,11 +97,20 @@ int main (void)
     Maps->getSize(x_max,y_max,z_max);
     vector <hideblock> hidesaved;
 
+    uint32_t minz = 0, maxz = z_max;
+
+    if(!viewAll) {
+        int32_t viewx, viewy, viewz;
+        DF->getPosition()->getViewCoords(viewx, viewy, viewz);
+        minz = viewz;
+        maxz = viewz + 1;
+    }
+
     for(uint32_t x = 0; x< x_max;x++)
     {
         for(uint32_t y = 0; y< y_max;y++)
         {
-            for(uint32_t z = 0; z< z_max;z++)
+            for(uint32_t z = minz; z< maxz;z++)
             {
                 if(Maps->isValidBlock(x,y,z))
                 {
Logged

MaximumZero

  • Bay Watcher
  • Stare into the abyss.
    • View Profile
Re: DFHack 0.5.0.0 - tools and memory access library
« Reply #349 on: September 23, 2010, 12:20:08 pm »

I don't understand the code at all, nor what to do with it, but from the description it sounds as if it would be something I would use on a regular basis.
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

pkmnfrk

  • Bay Watcher
    • View Profile
Re: DFHack 0.5.0.0 - tools and memory access library
« Reply #350 on: September 23, 2010, 12:27:52 pm »

It's a patch, you just have to apply it directly to the forehead source code :)
Logged

devek

  • Bay Watcher
  • [KILL_EVERYTHING]
    • View Profile
Re: DFHack 0.5.0.0 - tools and memory access library
« Reply #351 on: September 23, 2010, 01:16:47 pm »

static/global initialized vectors for .14

Spoiler (click to show/hide)
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?"

Zwaryczuk

  • Bay Watcher
    • View Profile
Re: DFHack 0.5.0.0 - tools and memory access library
« Reply #352 on: September 24, 2010, 01:06:32 am »

static/global initialized vectors for .14

 I'm assuming this is not some type of patch to apply to the old version but merely vector info that will lead to a speedy launch. Either way I hope its fully operational for the weekend as I plan to change up my whole fort design and go for an aquifer map.

Hope all goes well with the update!
Logged

Gearheart

  • Bay Watcher
    • View Profile
Re: DFHack 0.5.0.0 - tools and memory access library
« Reply #353 on: September 24, 2010, 02:55:39 pm »

Indeed. Looking forward to the new version.
Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: DFHack 0.5.0.0 - tools and memory access library
« Reply #354 on: September 24, 2010, 08:58:00 pm »

This seems to be enough to get dfreveal and dfcleanmap working in 0.31.14 on Windows:

Code: [Select]
    <Version name="v0.31.14 SDL" os="windows" base="v0.31.13 SDL" rebase="0x1000">
        <PETimeStamp value="0x4C9B6EFB" />
    </Version>
« Last Edit: September 24, 2010, 09:05:53 pm by Quietust »
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

Zwaryczuk

  • Bay Watcher
    • View Profile
Re: DFHack 0.5.0.0 - tools and memory access library
« Reply #355 on: September 25, 2010, 06:31:19 am »

This seems to be enough to get dfreveal and dfcleanmap working in 0.31.14 on Windows:


Any thoughts if this could work with dfliquids also? Or is that going to need some updated vector data?
Logged

Leeko

  • Bay Watcher
  • Wab.
    • View Profile
Re: DFHack 0.5.0.0 - tools and memory access library
« Reply #356 on: September 26, 2010, 02:21:19 am »

This seems to be enough to get dfreveal and dfcleanmap working in 0.31.14 on Windows:

Code: [Select]
    <Version name="v0.31.14 SDL" os="windows" base="v0.31.13 SDL" rebase="0x1000">
        <PETimeStamp value="0x4C9B6EFB" />
    </Version>

How would I go about applying this?
Logged
"Asen Zoz, 'The Gravel of Pondering' - This is a Alunite Harp. All craftsdwarfship is of the highest quality. On the item is an image of Blossomeven the Cold Tactics the perfect precious fire opal in Precious fire opal."

Antilope

  • Bay Watcher
    • View Profile
Re: DFHack 0.5.0.0 - tools and memory access library
« Reply #357 on: September 26, 2010, 11:09:00 am »

This seems to be enough to get dfreveal and dfcleanmap working in 0.31.14 on Windows:

Code: [Select]
    <Version name="v0.31.14 SDL" os="windows" base="v0.31.13 SDL" rebase="0x1000">
        <PETimeStamp value="0x4C9B6EFB" />
    </Version>

How would I go about applying this?

Don't know if this is the perfectly right method to do it, but it worked for me:

open memory.xml with any editor and look for the windows/wine section and copy/pastee the <version></version> tag directly beneath.
Logged

Zwaryczuk

  • Bay Watcher
    • View Profile
Re: DFHack 0.5.0.0 - tools and memory access library
« Reply #358 on: September 26, 2010, 12:52:01 pm »

Don't know if this is the perfectly right method to do it, but it worked for me:

open memory.xml with any editor and look for the windows/wine section and copy/pastee the <version></version> tag directly beneath.

Works like a charm for DFliquids too
Logged

Heliman

  • Bay Watcher
  • I knew you were coming. Nonetheless, welcome.
    • View Profile
Re: DFHack 0.5.0.0 - tools and memory access library
« Reply #359 on: September 26, 2010, 05:42:29 pm »

is there any place where I can get detailed  descriptions of all the features? I'd say this wasn't attempting to go over my head but I'd be lying.
Logged
Pages: 1 ... 22 23 [24] 25 26 ... 108