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 - Gamerlord

Pages: [1] 2 3 ... 661
1
In hack/scripts in a file with a .lua extension. Then type the name of the file (without the extension) in dfhack command prompt to run the script. See the documentation
Thanks, that worked! There was a weird error thing generated afterward, but the actual work details were still put in.

EDIT: No it didn't, it just spammed the first few work details in the list over and over.

Here's error:
...\steamapps\common\Dwarf Fortress//hack/scripts/labor.lua:58: Invalid index in enum.attrs[]
stack traceback:
        [C]: in metamethod '__index'
        ...\steamapps\common\Dwarf Fortress//hack/scripts/labor.lua:58: in local 'script_code'
        ...team\steamapps\common\Dwarf Fortress\hack\lua\dfhack.lua:808: in function 'dfhack.run_script_with_env'
        (...tail calls...)

EDIT2: Seems to be human error on my end, gonna try again.
EDIT3: Yup got it right this time. Including text of labor.lua if anyone else wants it - note, does not assign hauling/construction labors.

Spoiler (click to show/hide)

2
Damnit, having trouble figuring out how to do that Clement, is there a location I copy that code into?

3
Does the alpha release have a quick way of handling work details (like automatically making a single detail for each labour)?

Code: [Select]
local labors = {
"CARPENTER",
"STONE_CARVER",
"MASON",
"ANIMALTRAIN",
"ANIMALCARE",
"BUTCHER",
"TRAPPER"
}
for i,l in ipairs(labors) do
local detail = df.work_detail:new()
detail.name = df.unit_labor.attrs[l].caption
detail.work_detail_flags.enabled = true
detail.allowed_labors[df.unit_labor[l]] = true
detail.icon = 10+((i-1)%8)
df.global.plotinfo.hauling.work_details:insert('#', detail)
end
Fill the "labors" list from https://github.com/DFHack/df-structures/blob/c4d78c229aa0edd68a69cd5b19d5ad35a5b71098/df.skills.xml#L841
Thank you my friend. My OCD is truly grateful.

4
I'd rather not, the work detail system in concept isn't that bad, it works well for migrant waves imo. But it's the mandatory investment of time for a fort that might not even survive two years that is a problem.

5
Like, this is the biggest stumbling block keeping me from playing more. It takes me 10-20 minutes to set up work details alone every single time I play a new fortress. It's made worse by how slow back-spacing out the default title of the work detail is.

6
Does the alpha release have a quick way of handling work details (like automatically making a single detail for each labour)?

7
Utilities and 3rd Party Applications / Re: DFHack 0.47.05-r8
« on: January 11, 2023, 07:29:25 pm »
I would quite literally KILL for a script to run that creates individual work details for every labor and sets them all to Only Selected. I spend 5-10 minutes just setting that shit up every damn time I play.

8
DF Suggestions / Re: Keyboard Menu Navigation
« on: December 08, 2022, 06:14:23 pm »
Also you need to have the keybinds memorised and if you don't then you are screwed because they don't show unless you rollover.

9
DF Suggestions / Steam Release: Accessibility Via Hotkeys
« on: December 08, 2022, 02:51:51 am »
I have memory issues (we think due to autism/ADHD), and one of the great things about old-style DF was the way the hotkeys were right there. I could fly through menus and build options with a glance. The new updated UI on the Steam version lacks these hotkeys, and seemingly any setting to include them. Rolling over each icon takes exactly as much time as clicking on it, and I can't recall the hotkeys for long enough to settle into game flow. I adore a lot of things about the new UI, but this slows my play-speed down to a horrible crawl that I cannot endure. Please include options to permanently show the hotkeys for buttons on the screen, to make the beautiful new version accessible.

10
DF Gameplay Questions / Re: Steam Version: Hotkeys
« on: December 08, 2022, 02:47:12 am »
I think every single button with a hotkey option has the hotkey listed in the tooltip if you hover the mouse over.
I know that, but that takes takes just as long as just clicking. I'm looking for a way to append the hotkey to being right next to the option at all times, like it is in the original ui.
Interface sprites are all in data/vanilla/vanilla_interface/graphics/images.

Unless some of the buttons are missing, just edit these.
Looking through it now, looks like it's not gonna be possible. Every single image is the smallest possible size with no wasted space. You can't fit a hotkey onto any of them, and I have no idea how to modify the screen they're placed upon to display the hotkeys next to the icons. I think I'll just post a thread in suggestions.

11
DF Gameplay Questions / Re: Steam Version: Hotkeys
« on: December 07, 2022, 06:31:32 pm »
I think every single button with a hotkey option has the hotkey listed in the tooltip if you hover the mouse over.
I know that, but that takes takes just as long as just clicking. I'm looking for a way to append the hotkey to being right next to the option at all times, like it is in the original ui.

12
DF Gameplay Questions / Steam Version: Hotkeys
« on: December 07, 2022, 05:54:00 pm »
The discord won't answer the damn question, so I fired up this old account (been four years) to ask. Is there a way to get the hotkeys to show up next to the clickable buttons? At the moment I'm having to click everything because my memory isn't good enough to remember them for every menu and it's taking ages and making play tedious. Any help would be greatly appreciated.

13
Mod Releases / Re: [44.09] Dwarf Fortress: The Endless Dark 1.8 (beta)
« on: April 06, 2018, 01:32:24 am »
Installing Dfhack causes Dwarf Fortress not to open, giving an error.

14
Searching the - frankly horrifying - new site I cannot find any modpacks. As I want to get back into playing Cataclysm, that kinda sucks. Is there anywhere I can find a bundle of mods with a recent version of the game? Preferably PKs Rebalancing, lots of content mods, etc. If any of you guys has a personal bundle it'd be great if you could upload it or something. I just cannot muster the strength to sort through and download, then check mods to see if they fit together, only to lose the effort in a couple of months when I need to update again. So if anyone can help that'd be great.

15
Fuck, is the site down?

Pages: [1] 2 3 ... 661