Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 340 341 [342] 343 344 ... 360

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

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #5115 on: January 07, 2017, 02:32:08 pm »

Huh, the keybinding output looks okay on the screens that don't crash. I don't really see a difference between how the focus paths are returned for the different screens. What if you run "lua ~scr" on the screens in question?
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.

necrotic

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #5116 on: January 07, 2017, 03:50:55 pm »

For "dfhack/unitlabors"
Spoiler (click to show/hide)

for "dfhack/unitlabors/profession"
Spoiler (click to show/hide)

for "dfhack/unitlabors/batch"
Spoiler (click to show/hide)
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #5117 on: January 07, 2017, 04:46:13 pm »

Well, at least the ones that behave unpredictably seem to be the same each time. I'll try to figure it out, but I can't build on Win64 either, so perhaps somebody else will need to look into it.

Also, to clarify, the string length limit is way higher (as in orders of magnitude higher) than what the focus path for that screen should be, probably "dfhack/unitlabors/batch".
« Last Edit: January 07, 2017, 04:49:36 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.

necrotic

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #5118 on: January 07, 2017, 06:40:47 pm »

Yeah, it's odd. The profession one is longer!
Logged

Roses

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #5119 on: January 09, 2017, 07:09:58 pm »

Question, does anyone have a script that can tell you what an animal's butcher products are? Not necessarily the amount or anything like that, but just the names for everything that would be produced.

Also, does anyone know how, given an item id, to 'select' it like you would in arena mode. I ask because I figured that I could butcher bodies with scripts by changing modes and simulating the 'a' input. The only problem (so far at least) is that I already need to have the corpse selected. If I could figure out a way to select the corpse with a script I could make a script that simulates butchering.
Logged

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #5120 on: January 09, 2017, 07:17:47 pm »

Couldn't you search for the entry in df.global.world.items.other.CORPSE?
Logged

Roses

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #5121 on: January 09, 2017, 08:23:07 pm »

Couldn't you search for the entry in df.global.world.items.other.CORPSE?

Oh, I know how to find the corpse item itself. What I can't figure out is how to select it. In arena mode it would be simulating input 'k', moving the cursor to the location, then, if there is more than one item/creature at the location. selecting the correct corpse. You can then simulate input 'a' to butcher.
Logged

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #5122 on: January 09, 2017, 08:51:59 pm »

Ahhh, not sure then.
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #5123 on: January 09, 2017, 09:16:15 pm »

You could try changing ui.main.mode to LookAround, then adding an item to ui_look_list.items. (Note that I haven't tried this, and it could crash.)
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.

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #5124 on: January 09, 2017, 09:25:21 pm »

I've avoided screwing with ui_look_list because it's crashed every time I played with it in past versions, stable or not.
Logged

mifki

  • Bay Watcher
  • works secretly...
    • View Profile
    • mifki
Re: DFHack 0.43.03-r1
« Reply #5125 on: January 09, 2017, 09:38:19 pm »

I've avoided screwing with ui_look_list because it's crashed every time I played with it in past versions, stable or not.

I haven't had any problems with ui_look_list. Just make sure to access the correct item/unit/... field in a union there, based on type field value.
Oh, you're going to insert items there, sorry didn't read properly.

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #5126 on: January 09, 2017, 09:41:40 pm »

Have you been working with it in the lua interpreter or something? That could crash if you insert an item before you set it up properly, since DF might try to use a null/uninitialized unit pointer or something similar.
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.

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #5127 on: January 10, 2017, 02:10:06 am »

Yeah, I was just using gm-editor to slap things in with the insert function after that was added, and previously just messing around with existing entries, it's been crashy enough that I just stopped poking at it.
Logged

moisesjns

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #5128 on: January 17, 2017, 09:16:57 pm »

I have a question. Does the new DFhack no longer include military-training anymore? i remember that sped up training. And tweak military-training or without tweak does nothing now.
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #5129 on: January 17, 2017, 11:57:39 pm »

That appears to have been removed in 0.40.
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 ... 340 341 [342] 343 344 ... 360