Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 90 91 [92]

Author Topic: Dwarf Therapist v42.1.13 | DF 51.11  (Read 453720 times)

Clément

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist v42.1.12 | DF 51.10
« Reply #1365 on: April 07, 2025, 08:40:13 am »

No, I don't think so. But it should not be too hard to write a DFHack script that does that.


Edit:

Test that to make sure it works.

Create hack/scripts/saved-labors.lua
Code: [Select]
function save()
local data = {}
for _,u in ipairs(df.global.world.units.active) do
if dfhack.units.isCitizen(u) then
print("Save labors for "..dfhack.translation.translateName(u.name))
data[u.id] = {}
for labor,enabled in pairs(u.status.labors) do
data[u.id][labor] = enabled
end
end
end
dfhack.persistent.saveSiteData("saved-labors", data)
end

function load()
local data = dfhack.persistent.getSiteData("saved-labors")
for id,labors in pairs(data) do
local u = df.unit.find(id)
if u then
print("Restore labors for "..dfhack.translation.translateName(u.name))
for labor,enabled in pairs(labors) do
u.status.labors[labor] = enabled
end
end
end
end

local action = ...

if action == "save" then
save()
elseif action == "load" then
load()
else
print("Missing action: save or load")
end
Run "saved-labors save" or "saved-labors load" in dfhack command prompt.
« Last Edit: April 07, 2025, 09:13:18 am by Clément »
Logged

amade

  • Bay Watcher
    • View Profile
    • amade's illustrations
Re: Dwarf Therapist v42.1.12 | DF 51.10
« Reply #1366 on: April 08, 2025, 09:41:13 am »

Can I request that the Animal grid view include another column for chained creatures?
Logged
┬─┬ ︵ /(.□. \)

Clément

  • Bay Watcher
    • View Profile
Logged

Inarius

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist v42.1.12 | DF 51.10
« Reply #1368 on: April 26, 2025, 12:35:53 pm »

Thanks !
Logged

Clément

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist v42.1.13 | DF 51.11
« Reply #1369 on: April 27, 2025, 10:06:09 am »

New version released: 42.1.13

Changelog:
  • added memory layouts for 51.11

Note: The Linux AppImage is now built on Ubuntu 22.04 instead of 20.04. This may break compatibility with old distros. There was no code change, so, if you have to, you can keep using an older version and add the new memory layouts to it.
Edit: Actually AppImage is broken on Ubuntu 22.04. So no AppImage until I can fix this.
« Last Edit: April 27, 2025, 10:18:47 am by Clément »
Logged
Pages: 1 ... 90 91 [92]