Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: How to turn off DFHack's lock of alchemy?  (Read 2786 times)

New man

  • Bay Watcher
    • View Profile
How to turn off DFHack's lock of alchemy?
« on: December 12, 2016, 05:08:24 pm »

Hi, guys!

I had create a little simple mod  two years ago than dropped DF for long time. Little description of mod here
Now I ported it in DF 0.43.05 and started new game but I had faced problem - DFHack lock the ability to assign alchemist labor. It is bad because it is used in dwarven reactions in alchemist lab and elven reactions in enchanter's pentagram.

How can I change settings of DFHack to make this profession unlocked?
« Last Edit: December 12, 2016, 05:10:34 pm by New man »
Logged

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: How to turn off DFHack's lock of alchemy?
« Reply #1 on: December 12, 2016, 06:58:33 pm »

Well, with dfhack you use any of the various methods to select a unit and do unit[k].status.labors.ALCHEMIST==true to set it directly.
Logged

New man

  • Bay Watcher
    • View Profile
Re: How to turn off DFHack's lock of alchemy?
« Reply #2 on: December 12, 2016, 07:34:31 pm »

Yes, it may work. However, I want to use standart ingame method of labors assign but DFHack prevent it. In the game without hack all works perfectly.

I believe that there are setting to change this behaviour of DFHack but can't find it.
Logged

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: How to turn off DFHack's lock of alchemy?
« Reply #3 on: December 12, 2016, 09:33:38 pm »

Huh, not sure how that would work.
Logged

milo christiansen

  • Bay Watcher
  • Something generic here
    • View Profile
Re: How to turn off DFHack's lock of alchemy?
« Reply #4 on: December 13, 2016, 01:21:09 pm »

I assume you mean you can't set the labor in manipulator (u-l)? In this case simply allow the labor in the entity.
Logged
Rubble 8 - The most powerful modding suite in existence!
After all, coke is for furnaces, not for snorting.
You're not true dwarven royalty unless you own the complete 'Signature Collection' baby-bone bedroom set from NOKEAS

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: How to turn off DFHack's lock of alchemy?
« Reply #5 on: December 13, 2016, 03:15:23 pm »

That would work as well, didn't even think about that.
Logged

New man

  • Bay Watcher
    • View Profile
Re: How to turn off DFHack's lock of alchemy?
« Reply #6 on: December 14, 2016, 01:22:20 pm »

I assume you mean you can't set the labor in manipulator (u-l)? In this case simply allow the labor in the entity.
Yes, allowing labor for entity works well. Many thanks!
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: How to turn off DFHack's lock of alchemy?
« Reply #7 on: December 14, 2016, 02:22:51 pm »

The tool here is "tweak block-labors". You can disable it with "tweak block-labors disable".

But yes, the proper way to do this in a mod is to enable the labor in the entity raws (otherwise enabling the labor won't do anything elsewhere, or at least it's limited).
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.

New man

  • Bay Watcher
    • View Profile
Re: How to turn off DFHack's lock of alchemy?
« Reply #8 on: December 15, 2016, 06:10:05 pm »

The tool here is "tweak block-labors". You can disable it with "tweak block-labors disable".

But yes, the proper way to do this in a mod is to enable the labor in the entity raws (otherwise enabling the labor won't do anything elsewhere, or at least it's limited).
In the vanilla it works a little. If you disable whole group of labors (for example, all engineering), this labors will not be accessible.

Thanks for explanation.
Logged