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 ... 21 22 [23] 24 25 ... 268
331
Utilities and 3rd Party Applications / Re: DFHack 0.47.04-r3
« on: October 30, 2020, 10:23:45 pm »
That sounds to me like this issue, which was reported recently: https://github.com/DFHack/dfhack/issues/1681
Unless that's you under a different name, it's not just you having the issue, although I'm not aware of any further attempts at diagnosing/fixing it at this point.

332
Utilities and 3rd Party Applications / Re: DFHack 0.47.04-r3
« on: October 27, 2020, 10:36:07 am »
Since the forum software messed up the formatting, what Patrik posted was
Code: [Select]
df.need_type[x]

DF enums are exposed to Lua as a bidirectional map - here's some examples from the lua interpreter:
Code: [Select]
[lua]# ~df.need_type[0]
Socialize
[lua]# ~df.need_type.Socialize
0
[lua]# ~df.need_type['Socialize']
0

I guess this is another thing that is a bit lacking in documentation - https://docs.dfhack.org/en/stable/docs/Lua%20API.html#named-types contains the following, but doesn't go into much more detail:
In addition to this, enum and bitfield types contain a bi-directional mapping between key strings and values, and also map _first_item and _last_item to the min and max values.

If you need to iterate over the enum, you can use ipairs(df.need_type) for that (but there's no need to do that just to build the table you want, since it already exists).

333
Utilities and 3rd Party Applications / Re: DFHack 0.47.04-r3
« on: October 19, 2020, 04:25:04 pm »
is there a way to use dfhack to fix the "void tiles" that appear from d-z'ing ice ramps?

the wiki mentions that casting ice on the void tile and channeling it out again can fix it, but i'm hoping for a way to just have the computer do the work...

https://docs.dfhack.org/en/stable/docs/Plugins.html#tiletypes

Additionally, the "probe" command will give you some relevant information about any tile you select with "k", which you could use to compare the problematic tile(s) to existing tiles and figure out which attributes to copy. "tiletypes" doesn't yet have a more user-friendly wrapper, unfortunately, but people here might be able to help if you run into issues with it.

334
So wait, will a new namespace create whole new pages to be filled in for that namespace, or will it copy the old pages into the new namespace?
In the past, we have used a bot to copy pages into the new namespace and add/update a template indicating that they may need additional review. I'm unaware if the scripts we used in the past still exist/work, or if we would need to come up with something new.

335
Utilities and 3rd Party Applications / Re: DFHack 0.47.04-r3
« on: October 15, 2020, 08:25:00 pm »
dfhack.world.ReadCurrentDay()
dfhack.world.ReadCurrentMonth()
dfhack.world.ReadCurrentYear()

These are unfortunately not documented. Looks to me like the day ranges from 1-28 and the month ranges from 0-11 (inclusive).
https://dwarffortresswiki.org/index.php/DF2014:Calendar goes into a bit more detail about how DF handles time.

336
Utilities and 3rd Party Applications / Re: DFHack 0.47.04-r3
« on: October 15, 2020, 07:04:39 pm »
I would also suggest taking a look at the Lua announcements API: https://docs.dfhack.org/en/stable/docs/Lua%20API.html#announcements
You can use this to create native DF announcements, that can optionally pause the game and/or show an in-game popup (similar to the cavern discovery message). If you don't need to customize their appearance, this may be an easier approach than warn-starving and gui/hello-world. Pausing announcements also wouldn't need "fpause".

I would definitely recommend "repeat" or the repeat-util module to get something to run e.g. every in-game day.

337
Utilities and 3rd Party Applications / Re: DFHack 0.47.04-r3
« on: October 12, 2020, 10:16:41 am »
Biome Manipulator is one of PatrikLundell's scripts: http://www.bay12forums.com/smf/index.php?topic=164658.0

338
Utilities and 3rd Party Applications / Re: DFHack 0.47.04-r3
« on: October 11, 2020, 01:32:02 pm »
If you're using something Debian-based, I would expect the binaries from https://github.com/dfhack/dfhack/releases/0.47.04-r3 to work. Probably the 32-bit ones if you have a 32-bit userspace. https://docs.dfhack.org/en/latest/docs/Installing.html explains the difference between the various builds a bit more.

It looks like bits/types.h is from the "libc6-dev" package on Debian. Do you have that package installed? If so, what version?

Edit: off_t might also be defined in sys/types.h.

339
Utilities and 3rd Party Applications / Re: DFHack 0.47.04-r3
« on: October 11, 2020, 09:20:11 am »
Edit2:

Tried doing it again with "git checkout master" and "git submodule update" to check out the master branch.  It compiled just fine, but when I went to load it up it says it's version "0.47.04-r2 (release)".

help? :-\
I forgot to update master so it was still on r2. Fixed. For reference, you can see when the branch was last updated at https://github.com/dfhack/dfhack/tree/master - previously, it said "0.47.04-r2" and "August 8".

Quote
Code: [Select]
/* #undef SIZEOF_OFF_T */

This is a problem. It looks like either your compiler doesn't define off_t (unlikely) or libzip can't find it somehow.

What Linux distro are you using?

340
Utilities and 3rd Party Applications / Re: DFHack 0.47.04-r3
« on: October 10, 2020, 10:54:49 pm »
What OS are you compiling on?
What compiler are you using?
In your build folder, what does running the following command print?
Code: [Select]
grep SIZEOF_OFF_T ./depends/libzip/config.h

341
Utilities and 3rd Party Applications / Re: DFHack 0.47.04-r3
« on: October 10, 2020, 07:41:35 pm »
I forgot to link it in my post, but you can find the downloads and release notes here: https://github.com/DFHack/dfhack/releases/tag/0.47.04-r3

Some more details about the issue you're encountering would be helpful - we can't fix it without more information. Are you sure that a matching site exists?

342
Utilities and 3rd Party Applications / Re: DFHack 0.47.04-r3
« on: October 10, 2020, 06:17:49 pm »
0.47.04-r3 is up! Featuring a new DFHack-native Quickfort implementation, among other things. Please let us know of any feedback - ideally on the issue tracker, but this thread or the quickfort script thread would also work.

Release notes and download: https://github.com/DFHack/dfhack/releases/tag/0.47.04-r3
Docs (including new quickfort user guide): https://docs.dfhack.org/en/0.47.04-r3/

343
How would you use this to add a vampire curse?
This thread is quite old - you would likely get more visibility if you asked in the DFHack thread. (I don't know the answer myself.)

344
Interesting. By "cursor" are you referring to the selected dwarf in the Kloker screen, the 'v' cursor in the main fortress mode screen, or something else? If it's outside of the Kloker screen, does the issue persist if you unload the plugin with "unload kloker"?

345
Any updates on a 47.04 on Linux? I'm using a build I made through the LNP-forge and it's been giving me crashes.
If the plugin loads, then you built it correctly - the source code hasn't changed recently, so any crashes likely aren't 0.47.04-specific.

Is there anything specific that you're doing when it crashes? If you have GDB installed and know how to use it, you could start DFHack with "./dfhack -g" to run it under GDB, which would give you a more detailed error report when a crash happens.

Pages: 1 ... 21 22 [23] 24 25 ... 268