Bay 12 Games Forum

Please login or register.

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

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

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #5100 on: January 04, 2017, 04:37:28 am »

Well, those addresses must be wrong. I'm not sure how exactly they were located, but as long as they're within the section of memory that contains globals, which they probably are, you'll get unpredictable values instead of crashes.

Incidentally, it could be easier to locate the correct address if you know exactly what those values should be, as long as they're not particularly low.

Code: [Select]
activity_next_id -1802810881 > 22785
artifact_next_id -159036100 > 44417
item_next_id 2055948296 > 1903806 
unit_next_id -2079390469 > 71293
hist_event_next_id 1149847552  > 720562
hist_figure_next_id -11891208 > 76043
squad_next_id -2092433408 > 110
Those should be right, I just checked a few which changed while I was checking (hist_event_next_id should have been and the newest entry in events was indeed 720562) so yeah, they're pretty whacky, but that would be why launch/advfort crash me and artifake just spits errors but so many other scripts work fine.
Logged

YetAnotherLurker

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #5101 on: January 05, 2017, 02:46:18 pm »

I've got a suggestion for an addition to the view-item-info script that takes maybe five seconds, but that I've found rather useful: Add the line append(list,"Dimension: "..item.dimension) somewhere in function GetMatPropertiesStringList (item) so that when you view cloth or thread, it shows you the dimensions and therefore lets you find out which thread/cloth has been used by your suturers and wound dressers. Wouldn't be difficult to display it as a fraction of a fresh/full piece either.
Logged

necrotic

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #5102 on: January 06, 2017, 12:04:47 am »

I don't see any messages in logs, but I have an occasional crash when setting custom profession names in manipulator.

Using 0.43.05-alpha4 + TWBT.
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #5103 on: January 06, 2017, 08:09:31 am »

Randomly or when you press a specific key? Have you tried it without TwbT?
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 #5104 on: January 06, 2017, 02:20:12 pm »

Randomly or when you press a specific key? Have you tried it without TwbT?

Looks like its consistently the letter "p". TWBT does not seem to matter.

edit: looks like I have a keybind for "p" in dfhack.init. Removing it resolves the issue. It is in the example init file, however.

Code: [Select]
# assign weapon racks to squads so that they can be used
keybinding add P@dwarfmode/QueryBuilding/Some/Weaponrack gui/assign-rack

edit2: this error also appears when opening manipulator

Code: [Select]
...df_43.05/hack/scripts/gui/extended-status.lua:172: Cannot invoke field (global).getCurFocus(): C++ exception: string too long.
stack traceback:
[C]: in field 'getCurFocus'
...df_43.05/hack/scripts/gui/extended-status.lua:172: in function <...df_43.05/hack/scripts/gui/extended-status.lua:171>
...df_43.05/hack/scripts/gui/load-screen.lua:471: Cannot invoke field (global).getCurFocus(): C++ exception: string too long.
stack traceback:
[C]: in field 'getCurFocus'
...df_43.05/hack/scripts/gui/load-screen.lua:471: in function <...df_43.05/hack/scripts/gui/load-screen.lua:468>
...df_43.05/hack/scripts/view-item-info.lua:386: Cannot invoke field (global).getCurViewscreen(): C++ exception: string too long.
stack traceback:
[C]: in field 'getCurViewscreen'
...df_43.05/hack/scripts/view-item-info.lua:386: in function <...df_43.05/hack/scripts/view-item-info.lua:380>
« Last Edit: January 06, 2017, 02:25:04 pm by necrotic »
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #5105 on: January 06, 2017, 02:42:34 pm »

Are you sure those show up when you open manipulator? They look like ones that showed up earlier.

Anyway, something is badly broken. That keybinding shouldn't even be run on that screen. What platform are you using?
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.

wooks

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #5106 on: January 06, 2017, 03:47:09 pm »

Perhaps my search-fu isn't good enough, but could someone show me how to delete a building with DFHack please? Thanks in advance!
Logged
In a game like Dwarf Fortress, going to the wiki being cheating is like saying bringing a parachute is cheating for skydiving.
"Has it been 4 days? Better check if my penis is still there again."

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #5107 on: January 06, 2017, 04:56:37 pm »

Like in a town?

It isn't something you can just show someone.

Get the world_sites_and_pops.txt number of the site and subtract 1 to get k:
gui/gm-editor df.global.world.world_data.sites[k].realization.buildings has entries with the walls and keeps and such and their dimensions/shape/inhabitants, deleting them CAN work but it is buggy, using buildings instead of realization is the zone-related stuff like tavern/hall/temple/etc I think.
Logged

necrotic

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #5108 on: January 06, 2017, 06:39:46 pm »

Are you sure those show up when you open manipulator? They look like ones that showed up earlier.

Anyway, something is badly broken. That keybinding shouldn't even be run on that screen. What platform are you using?

Windows 10.

And the error happens when I hit "e" (for single-unit edit) or "b" (for batch edit).
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #5109 on: January 06, 2017, 07:05:32 pm »

I thought it happened when you were editing profession names. Could you clarify where it's occurring?

Also, what happens when you run "lua ~unit" with a unit selected in manipulator?
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 #5110 on: January 06, 2017, 07:13:03 pm »

The gui/load-screen.lua error happens when I open either the single-unit ("e") or batch edit ("b") screens in manipulator.

The consistent crash happens if I have a keybind for "p" and press "p" while editing a profession. I added back to hotkey and did a few more tests and pressing "p" crashes the game at any point after hitting "e" or "b", even before choosing Nickname or Custom Profession. Pressing "p" at the manipulator main screen brings up profession selection as expected.

Given the three errors about string length on what appears to be an "active view" getter I'd imagine its related to nested view names length being too long in the 64-bit release somehow. I no longer have a setup to build DFHack so I'm unable to poke at it currently.
« Last Edit: January 06, 2017, 07:15:28 pm by necrotic »
Logged

lethosor

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

Yeah, it sounds like the focus string (or context, path, etc) being determined incorrectly. Did you try running that lua command?

Edit: also, try running "keybinding" on all of the screens in question and see what it says for the current context (near the end of its output).
« Last Edit: January 06, 2017, 09:53:14 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 #5112 on: January 06, 2017, 11:29:56 pm »

keybinding immediately crashes.

I did not try running any of those 3 lua commands in the error output.
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #5113 on: January 07, 2017, 12:16:14 am »

No, try running this command with a unit selected (anywhere, really):
Code: [Select]
lua ~unit

Does keybinding give any output at all? If so, can you paste it here? (You can copy text by right-clicking in the title bar on Windows, rather than taking a screenshot.)

Just to confirm, this is 0.43.05-alpha4, and the issue occurs without TwbT, yes?
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 #5114 on: January 07, 2017, 02:04:52 pm »

lua ~unit works (with our without a unit selected) and spits out data.

Spoiler (click to show/hide)

keybinding outputs nothing on the viewscreen_unitbatchopst screen (or either subscreen) and immediately crashes.

On the main manipulator screen it outputs:
Spoiler (click to show/hide)

On the profession assignment ("p") screen it outputs
Spoiler (click to show/hide)
Logged
Pages: 1 ... 339 340 [341] 342 343 ... 360