Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Can I run a certain DFHack command on a specific in-game date [solved, I'm dumb]  (Read 1410 times)

molkemon

  • Bay Watcher
    • View Profile

Hi, I'm making extensive use of the cleanowned plugin to work around the cloth hoarding bug and since there is never a shortage of freshly produced clothing in my fortress, I run "cleanowned x" once a year and then export it to the three caravans (pretty op actually, I have bins full of xpig fiber cloth socksx that are worth upwards of 30k per bin, but I digress).

I usually run it somewhen in winter because theres no caravans there so the dwarfs can take their time to haul all the xclothingx stuff from their cabinets up to the garbage dump and then back into nearby clothing stockpiles next to the trade depot. However, sometimes I forget for a year or two and that becomes a pretty big problem as it will then take several month for all the stuff to be hauled into the stockpiles, in addition to severe fps death.

So after all this really not so relevant information now my question: Can I set dfhack to run "cleanowned x" every year on a specific date?
Never mind I just found repeat.lua lol.

Bonus Question: I am producing every piece of clothing that dwarfs will equip and layer themselves, but there is one problem: LOINCLOTH. My regular goblin visitors will drop those nasty things and dwarfs will equip them in addition to their pig tail and leather trousers. However, since I cannot produce them there is usually not a large supply and they will often wear them til they rot (or well til i press cleanowned x, but even then they often already have unhappy thoughts about it). Now i could dump them after every siege, but that would be incredibly tedious. Is there a way I can modify the raws so dwarfs will simply refute to wear them at all? I realise I could also change the layer permit so they just couldnt be worn, but that would affect the goblins aswell, no? I still want the goblins to have them .
« Last Edit: December 08, 2013, 11:52:01 am by molkemon »
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile

I think repeat.lua only works with lua commands specifically...