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 ... 19 20 [21] 22 23 ... 268
301
DF General Discussion / Re: PeridexisErrant's DF Starter Pack
« on: December 28, 2020, 11:00:59 pm »
Just to clarify: Quickfort itself isn't new in this release, but one of the main improvements in this release is better integration with the buildingplan plugin, which now supports pretty much every building type in DF (previously, tool-based buildings like hives/altars and multi-item buildings like workshops and wells weren't supported). Thanks again to myk002 for all his work there.

The "fix/corrupt-equipment" script is also worth mentioning - it could help fix some military-related crashes. (I'll avoid diving into the full DFHack changelog in this thread, but for anyone coming directly to this thread, you can find it here.)

302
DF General Discussion / Re: PeridexisErrant's DF Starter Pack
« on: December 28, 2020, 07:32:15 pm »
Does the file "Dwarf Fortress 0.47.04\Dwarf Fortress.exe" exist, and are you able to launch it manually? If not, my first guess would be that some antivirus software quarantined it. (It's also possible, but unlikely, that it got corrupted somehow, which re-extracting or re-downloading could fix.)

303
Unfortunately that doesn't give any more details (looks like Windows is particularly unhelpful here compared to other platforms):
Code: [Select]
loading plugin twbt
Can't load plugin twbt

The only other possibility I could think of is that you have 32-bit DF and DFHack, but stderr.log also indicates that you have 64-bit DF (and therefore must have 64-bit DFHack too):
Code: [Select]
Version: v0.47.04 SDL win64

If redownloading TWBT as Clément suggested doesn't help, uploading a copy of hack/plugins/twbt.plug.dll might be useful. Do you have any antivirus software that could be quarantining this file? If not, my only other guess is that the plugin was simply built incorrectly somehow, but I don't understand how nobody else would have run into that issue. You are using an older version of DFHack, though - any reason you can't upgrade? I know there's a build of TWBT from the same source for 0.47.04-r3 currently (not r4 yet): https://github.com/thurin/df-twbt/releases/

304
Could you upload your stderr.log file from a run of DFHack that triggered this error? I'm not sure if any additional details will be in it, but they would be more likely to be printed there than to the console.

305
Utilities and 3rd Party Applications / Re: DFHack plugin embark-assistant
« on: December 25, 2020, 05:03:31 pm »
Why embark assistant don't differentiating of lairs? Mound and burrow are different in game code.
Are you talking about on the local map when embarking? What DFHack version are you using? 0.47.04-r4 (released yesterday) adds support for this (PR, changelog)

306
Utilities and 3rd Party Applications / Re: DFHack 0.47.04-r4
« on: December 24, 2020, 02:41:31 pm »
0.47.04-r4 is up! https://github.com/DFHack/dfhack/releases/tag/0.47.04-r4

Lots of buildingplan and quickfort improvements here, as well as several fixes.

307
Utilities and 3rd Party Applications / Re: DFHack 0.47.04-r3
« on: December 23, 2020, 11:33:40 am »
In case it wasn't clear: the 32k limit only applied to the old backend that stored data in histfigs. Since 0.44.12-r3, that isn't an issue, so you can make keys and values as long as you want (within reason, of course).

308
Utilities and 3rd Party Applications / Re: DFHack 0.47.04-r3
« on: December 19, 2020, 12:03:00 am »
The first one would also warrant a bug report.

As for persistent data: the limitations of the "old" system were due to it saving data in histfigs - specifically, creating histfigs with negative IDs and using fields of their language_name allowed for storing a string name, a string value (both of these limited to around 32k characters), and 7 integers. The underlying storage backend uses JSON now and no longer has these limitations, but the APIs on top of it (including dfhack.persistent and persist-table) haven't changed much yet (the main difference is that the string limitation no longer applies; we could also bump up the number of integers allowed as an intermediate improvement).

You are correct that there is a "pre-save" sort of hook that allows plugins to make any last-minute changes before data is saved (although it could also be used for any custom data-saving logic). The exact logic that triggers it is here: https://github.com/DFHack/dfhack/blob/de21e0cdb86b9002cdcadabd5e8f1dbb68270467/library/Core.cpp#L2008-L2013
Unfortunately, this doesn't appear to be exposed to Lua yet. You could likely catch regular saves with an onStateChange handler, but not autosaves/"quicksave"s. Assuming this would be useful to have in Lua, a GitHub issue would help keep track of this as well.

309
Utilities and 3rd Party Applications / Re: DFHack 0.47.04-r3
« on: December 14, 2020, 11:44:49 am »
3. That works great. I got a little confused because I was looking under the df-structures git repo and only saw like two pull requests. But now I realize that each repo under the DFHack account has it's own list of pull requests. On a side note, has it always been that way? I thought I remembered them being in a single repo.

"df-structures" has been its own repo since structure definitions were implemented in XML (around 2011). "scripts" was split out in 2016, and has issues disabled, since it usually makes more sense to report them in the "dfhack" repo anyway. PRs always need to be made in the repo containing the code being modified, though.

I loosely keep track of issues/PRs with projects, to make it a bit easier to see what issues/PRs were addressed in a release, but they need to be manually added currently: https://github.com/orgs/DFHack/projects/

310
Explicit targets can be used across documents (strictly speaking, this is a Sphinx feature - the RST spec itself only focuses on single documents).

311
Very nice!

FYI DFHack could enable docs previews for pull requests, if you wanted to have an online HTML version of your current draft  ;D
Neat, I've enabled that - didn't realize it was a feature, but it's been something I've wanted to investigate for a while.

Worth noting that it'll only work for PRs in the main "dfhack" repo, but that's where this particular change would be made anyway.

312
DF Wiki Discussion / Re: Firefox security alert thread
« on: December 03, 2020, 04:38:40 pm »
Same fix seems to have worked - thanks for the report!

313
Yeah, a pointer to the docs is probably best in that case. Release builds of DFHack also include docs in hack/docs, so you could additionally point users there for an offline copy.

314
Utilities and 3rd Party Applications / Re: DFHack 0.47.04-r3
« on: November 29, 2020, 12:12:04 pm »
I need Catsplosion script analogue that can breed creatures of specie selected by cursor (like for full-heal). For breeding necro's experiments.

You could likely adapt catsplosion fairly easily - this section appears to be the code that creates/shortens pregnancies, and creating a script containing just the highlighted code, as well as the following line before it, should work:
Code: [Select]
female = dfhack.gui.getSelectedUnit()
Edit: you'll also need to remove the lines referencing variables with "total_" in their names.

A longer-term solution could be to add support for "catsplosion this", similar to "exterminate this" - it would be more complicated than the process I described above, but if that's something that would be useful, we could add support for it.

315
Utilities and 3rd Party Applications / Re: DFHack 0.47.04-r3
« on: November 25, 2020, 10:55:43 am »
Quote
Code: [Select]
unk_2c= forv.unk_2c,
unk_28= forv.unk_28,
unk_1= forv.unk_1,
unk_30= forv.unk_30,
unk_34= forv.unk_34})
Is there a particular reason you're assigning these fields and not the other "unk" fields? Do you know what they are? If you do, we should give them proper names.

Pages: 1 ... 19 20 [21] 22 23 ... 268