Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - lethosor

Pages: 1 ... 42 43 [44] 45 46 ... 268
646
Utilities and 3rd Party Applications / Re: DFHack 0.44.12-r2
« on: May 06, 2019, 05:08:07 pm »
An issue with what specifically?

I don't believe there's a way to tell those apart.

647
Utilities and 3rd Party Applications / Re: DFHack 0.44.12-r2
« on: May 01, 2019, 07:37:37 pm »
What do you mean by "exist"? Are you looking for the animals on the map, or animals that could appear on the map? Regular creatures or vermin? Is this before or after embarking?

648
Utilities and 3rd Party Applications / Re: DFHack 0.44.12-r2
« on: April 21, 2019, 12:36:20 am »
Nope, it'll fail the DFHack version check in both cases.

649
Utilities and 3rd Party Applications / Re: DFHack 0.44.12-r2
« on: April 20, 2019, 05:04:22 pm »
There's already a "repeat" script that can run other scripts periodically, if that's what you want. If it doesn't work for you, it uses a separate timeout API that's probably easier to use than eventful for your purposes.

650
Utilities and 3rd Party Applications / Re: DFHack 0.44.12-r2
« on: April 19, 2019, 07:50:55 pm »
They don't really have names like that. Here's the XML definition for unit_wound. I'd guess "parts" has some stuff that's useful for you.

651
Utilities and 3rd Party Applications / Re: DFHack 0.44.12-r2
« on: April 18, 2019, 06:26:04 pm »
Not sure where to ask this as I've scoured google for an answer..

I'm looking to cure only infection from my adventurer. I tried forking full-heal, but alas I can't seem to figure it out. I can get a list of wounds in unit.body.wounds, but they just look like memory addresses. Example:

<unit_wound: 0000025C0216BC10>
<unit_wound: 0000025C0216BD60>
<unit_wound: 0000025C0216C540>
<unit_wound: 0000025C0216BCF0>
<unit_wound: 0000025C0216BF90>
<unit_wound: 0000025C0216D420>

Any pointers?
Looks like you found the pointers just fine to me! :)

Anyway, those are pointers to objects. You can access properties of each individual object, e.g. wounds[0] will be a unit_wound object. I've done this enough that I'm not really sure how to explain it better than that. If that doesn't help, can you post exactly what you're doing to get that output?

652
Utilities and 3rd Party Applications / Re: DFHack 0.44.12-r2
« on: April 09, 2019, 10:07:23 am »
Patrik/Roses, is it possible to identify the issue programmatically (i.e. not just by visual inspection)? A script to at least detect the issue would be somewhat useful, even if it's not recoverable at the moment.

653
Utilities and 3rd Party Applications / Re: DFHack 0.44.12-r2
« on: March 31, 2019, 10:35:55 am »
OK, apologies if this is a dumb question, but google and readthedocs have failed me, so...

In the enhanced stocks view, some items have a blue asterix right before the quality marker. I have been unable to find anything that tells what this asterix is intended to indicate, nor can I find any pattern in which items have it and which items don't. It's driving me batty :).

So, what does the blue asterix indicate?
According to the code it's for improved items. It does seem like something that ought to be in a legend somewhere.

654
Utilities and 3rd Party Applications / Re: DFHack 0.44.12-r2
« on: March 26, 2019, 11:40:18 am »
Yeah, it'd change some symbol names. There would still be the issue of calling non-const virtual methods on a const object, though, which would be harder to fix (and would require codegen changes to work properly). It's not impossible, and a temporary solution could make only "const" additions that compile, but it's potentially tedious.
I think your easiest solution at the moment (even though it's bad) is to just cast away the const for library functions that require it.

655
Utilities and 3rd Party Applications / Re: DFHack 0.44.12-r2
« on: March 25, 2019, 09:53:00 pm »
A lot of functions in modules don't need to mutate anything but take a non-const pointer anyway. (Some are related to all methods from df-structures being non-const, from what I remember, even if they're const in DF.)

656
Utilities and 3rd Party Applications / Re: DFHack 0.44.12-r2
« on: March 20, 2019, 12:01:30 pm »
Is there a function to find the center of the viewport that works with things like TWBT?
Gui::getDwarfmodeViewDims() is modified by TWBT (specifically the map_* fields). I'm guessing you can use that to find the center of whatever you need.

657
Thanks so much, Strainer! I was hoping some crashes I didn't mention would be fixed, but that's not how this works, haha.  :P I'm getting similar crashes with this most recent version. When I arrow through my dwarf list after u-k, there are at least a couple of dwarves who'll crash the game immediately. For example, the first one gives me the following error -- I hope it is of use to you:
Spoiler (click to show/hide)
I can provide a save if needed.
That message is harmless, actually (it's just related to the fact that a non-df screen was open).

658
DF Wiki Discussion / Re: Lets Encrypt
« on: March 17, 2019, 11:09:42 pm »
Locriani tried this a few years back. The major issue was that (at the time) few ads were capable of being served over HTTPS, which made the upgrade infeasible. That may have changed by now.

659
For reference, there are circular dependencies between DF and libgraphics (at least one of which is a vtable). Linux's linker handles that fine, and macOS's should be able to with an extra flag. Windows really doesn't like that, though - I tried coming up with a way to make it work involving dynamically loading symbols a few years back, and ended up confusing Toady and myself. It's probably doable, but would take a questionable amount of effort.

660
Utilities and 3rd Party Applications / Re: DFHack 0.44.12-r2
« on: February 24, 2019, 08:32:02 pm »
That translates pretty directly to createitem, by the way (I'm copying the materials you gave, so hopefully they're correct):
Code: [Select]
createitem TOOL:ITEM_TOOL_QUIRE PLANT:GRASS_TAIL_PIG:THREAD
This will select a valid unit ID automatically if one isn't selected.

Pages: 1 ... 42 43 [44] 45 46 ... 268