Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 306 307 [308] 309 310 ... 360

Author Topic: DFHack 0.43.03-r1  (Read 1077471 times)

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4605 on: August 22, 2016, 07:43:57 pm »

T.T too much 4chan for Max I guess.
Logged

Ghills

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4606 on: August 22, 2016, 09:05:21 pm »

I can safely say that is something I never expected to hear a grown adult doing.
Logged
I AM POINTY DEATH INCARNATE
Ye know, being an usurper overseer gone mad with power isn't too bad. It's honestly not that different from being a normal overseer.
To summarize:
They do an epic face. If that fails, they beat said object to death with their beard.

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4607 on: August 22, 2016, 09:15:40 pm »

Note to self: next time source kitten blood for wall art.
Logged

milo christiansen

  • Bay Watcher
  • Something generic here
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4608 on: August 23, 2016, 01:04:39 pm »

Back to the proper topic:

I identified the three unknown fields in the totem item: The first is the creature race ID, the second is the caste index, and the third is the body part index.
Logged
Rubble 8 - The most powerful modding suite in existence!
After all, coke is for furnaces, not for snorting.
You're not true dwarven royalty unless you own the complete 'Signature Collection' baby-bone bedroom set from NOKEAS

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4609 on: August 23, 2016, 01:07:44 pm »

It's really better to report that sort of thing on Github. I'll add names for those, but it would have been easy for that to get buried here.
Logged
DFHack - Dwarf Manipulator (Lua) - DF Wiki talk

There was a typo in the siegers' campfire code. When the fires went out, so did the game.

milo christiansen

  • Bay Watcher
  • Something generic here
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4610 on: August 23, 2016, 01:10:32 pm »

I usually don't have anything to do with github, so I kinda forget it exists...

I guess I'll go report that unk10 in the prepared food ingredient struct is the ingredient quality there then...

BTW: Could items that have received names be listed in the changelog or something, sometimes scripts break for no apparent reason, only to find that something finally got a name...

EDIT: Where should I report identified fields? The bug tracker?

EDIT2: Apparently such things are done in the df-structures bug tracker, and there is already an issue for the totem fields... Opened on april 30?! WTF?
« Last Edit: August 23, 2016, 01:22:57 pm by milo christiansen »
Logged
Rubble 8 - The most powerful modding suite in existence!
After all, coke is for furnaces, not for snorting.
You're not true dwarven royalty unless you own the complete 'Signature Collection' baby-bone bedroom set from NOKEAS

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4611 on: August 23, 2016, 01:23:05 pm »

Issues and/or pull requests at https://github.com/dfhack/df-structures/ would be best for structures research.

I'm honestly not sure what a good solution for summarizing structure changes is. I guess listing simple name additions/changes wouldn't be too hard, but there are some things that are difficult to summarize in a changelog. I think Expwnent tried to come up with a full list of changes between 0.34.11-r4 and r5, and it was a lot of work. I think one of the least error-prone ways would be to come up with a diff of just XML files in df-structures between two versions, but I don't think it's possible to exclude non-XML files (where there are often many more changes).

Edit: regarding the "WTF", unk_a2 was undetermined and there were no field names, so presumably the issue was left open to allow kane-t a chance to continue researching.
« Last Edit: August 23, 2016, 01:27:20 pm by lethosor »
Logged
DFHack - Dwarf Manipulator (Lua) - DF Wiki talk

There was a typo in the siegers' campfire code. When the fires went out, so did the game.

milo christiansen

  • Bay Watcher
  • Something generic here
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4612 on: August 23, 2016, 01:30:50 pm »

OK, issue for the prepared meal ingredient quality field has been filed, I checked my code and it is definitely unk_10.

EDTI: And I am bookmarking the df-structures issues page, because sometimes I identify fields, and I really should remember to report them.
« Last Edit: August 23, 2016, 01:33:46 pm by milo christiansen »
Logged
Rubble 8 - The most powerful modding suite in existence!
After all, coke is for furnaces, not for snorting.
You're not true dwarven royalty unless you own the complete 'Signature Collection' baby-bone bedroom set from NOKEAS

kane_t

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4613 on: August 23, 2016, 02:01:49 pm »

Edit: regarding the "WTF", unk_a2 was undetermined and there were no field names, so presumably the issue was left open to allow kane-t a chance to continue researching.

Haha, sorry, I wasn't quite comfortable at that time with proposing names, so I figured I'd just post the information so that someone else could verify it and do something with it.  I should've been more clear about that.

I remember being really sure that a2 was some sort of left/right side thing, but after testing it again it clearly isn't.  Guess it's a good thing I didn't propose a name for that one!
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4614 on: August 27, 2016, 02:48:51 pm »

Some recent development updates:

Lua was updated to Lua 5.3 (actually some time ago, but nobody seems to have mentioned it here yet). This was necessary to support 64-bit integers properly, since Lua 5.2 didn't support those. Unfortunately, this will cause a few things to fail that used to work before:
  • Assigning a floating-point number to a DF field that is an integer
  • Assigning a string to a DF integer field
  • Passing a floating-point number to a C function (DF/DFHack) that expects an integer


Basically, strings and integers can be converted to floating point numbers automatically, but not to integers. If your scripts do any of those things above, you'll need to update them. In most cases, "math.floor()" should be enough to convert anything to an integer, and it should be consistent with the previous behavior.

DFHack changes:
  • The manager-quantity script was re-added as gui/manager-quantity after Enay pointed out that it's still useful for changing work order quantities (oops).
  • The lua interpreter (both the interactive and single-expression uses) and gui/gm-editor now support exactly the same "shortcuts" - e.g. scr, screen, world, building, bld, enabler, unit, etc.. These have been moved to utils.lua, so it should be easy for other scripts to use them too.


Structures:
  • The viewscreen_setupadventurest layout has been incorrect for a long time, but I finally managed to get it mostly aligned properly and identified a bunch of new fields. (Having both 32 and 64-bit support was really helpful here, incidentally.)
  • enabler was incorrect on x64 due to the "flags" bitfield varying in size, which was just fixed. This bitfield will have 32 flags or 64 flags on OS X/Linux depending on the architecture, but only the first two are used regardless of the platform/build.


(Also, I recently discovered that [x] can be used for bulleted lists.)
Logged
DFHack - Dwarf Manipulator (Lua) - DF Wiki talk

There was a typo in the siegers' campfire code. When the fires went out, so did the game.

Roses

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4615 on: August 27, 2016, 02:51:22 pm »

Does anyone know if you can find out the wealth of an npc fortress or civilization?
Logged

TheFlame52

  • Bay Watcher
  • Master of the randomly generated
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4616 on: August 27, 2016, 03:02:27 pm »

That sounds like something that isn't tracked, but what do I know.

jecowa

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4617 on: August 27, 2016, 04:49:53 pm »

Some recent development updates:

Lua was updated to Lua 5.3 (actually some time ago, but nobody seems to have mentioned it here yet). This was necessary to support 64-bit integers properly, since Lua 5.2 didn't support those. Unfortunately, this will cause a few things to fail that used to work before:
  • Assigning a floating-point number to a DF field that is an integer
  • Assigning a string to a DF integer field
  • Passing a floating-point number to a C function (DF/DFHack) that expects an integer


Basically, strings and integers can be converted to floating point numbers automatically, but not to integers. If your scripts do any of those things above, you'll need to update them. In most cases, "math.floor()" should be enough to convert anything to an integer, and it should be consistent with the previous behavior.

DFHack changes:
  • The manager-quantity script was re-added as gui/manager-quantity after Enay pointed out that it's still useful for changing work order quantities (oops).
  • The lua interpreter (both the interactive and single-expression uses) and gui/gm-editor now support exactly the same "shortcuts" - e.g. scr, screen, world, building, bld, enabler, unit, etc.. These have been moved to utils.lua, so it should be easy for other scripts to use them too.


Structures:
  • The viewscreen_setupadventurest layout has been incorrect for a long time, but I finally managed to get it mostly aligned properly and identified a bunch of new fields. (Having both 32 and 64-bit support was really helpful here, incidentally.)
  • enabler was incorrect on x64 due to the "flags" bitfield varying in size, which was just fixed. This bitfield will have 32 flags or 64 flags on OS X/Linux depending on the architecture, but only the first two are used regardless of the platform/build.


(Also, I recently discovered that [x] can be used for bulleted lists.)

That floating point and double float stuff sounds like the type of errors I was getting when trying to compile DFHack. Maybe I need to install Lua.
Spoiler (click to show/hide)
Logged

PeridexisErrant

  • Bay Watcher
  • Dai stihó, Hrasht.
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4618 on: August 28, 2016, 06:50:48 am »

Some recent development updates:

Great to have this in the thread, but shouldn't it also go in NEWS.rst (the changelog file)?
Logged
I maintain the DF Starter Pack - over a million downloads and still counting!
 Donations here.

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4619 on: August 28, 2016, 04:51:16 pm »

That floating point and double float stuff sounds like the type of errors I was getting when trying to compile DFHack. Maybe I need to install Lua.
No, you don't need to install Lua. Lua is included in the DFHack tree. I'm not really sure what the issue is there, but it looks like you're using one of my GCC builds :/ . Someone here ran into a similar issue when using a version of GCC built on a newer OS X version, so that could be it. I suppose if you don't want to compile GCC, you could try removing the occurrences of "__header_always_inline" from /gcc/4.8.5p/lib/gcc/x86_64-apple-darwin13.4.0/4.8.5/include-fixed/math.h (make a backup!), but otherwise, I think you'd get better results with a native GCC (one you build on your OS).

Great to have this in the thread, but shouldn't it also go in NEWS.rst (the changelog file)?
I put it in this thread because people kept getting directed to here, where there weren't any recent updates. Of course it'll go in NEWS.rst when I get around to updating it (or someone else does), which I always do at least before releases, if not more often. (I won't be copying it verbatim, though, to keep the size reasonable.)
Logged
DFHack - Dwarf Manipulator (Lua) - DF Wiki talk

There was a typo in the siegers' campfire code. When the fires went out, so did the game.
Pages: 1 ... 306 307 [308] 309 310 ... 360