Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2 3

Author Topic: DFHack Script: Unbutcherable Sentient Workaround for fortress and adventure mode  (Read 19583 times)

burrito25man

  • Bay Watcher
    • View Profile

EDIT:

Hey all,

What it says on the tin. This script fixes the dead_dwarf bug, which would prevent a civ from butchering sentient beings even with correct ethics. Your dwarves will throw sentient corpses into the refuse pile rather than the corpse pile as well.

While I wrote this with fortress mode in mind, it also allows for an adventurer to butcher a sentient being so long as the being is from a different civ. Enjoy your elf cakes!

You can either download it as a txt from DFFD, or just copy paste below. Save the file as a lua and have it run on dfhack.

Enjoy!

The script works just fine for 43.05 and 44.02  ;D

DFFD:

http://dffd.bay12games.com/file.php?id=13324

Spoiler (click to show/hide)
« Last Edit: February 07, 2018, 05:08:39 pm by burrito25man »
Logged
It's a slippery slope.  You start out modding, then move on to hard DFHacking, and next thing you know you're making your own games...

LUA Script: Workaround for butchering Sentients
 - http://www.bay12forums.com/smf/index.php?topic=165414.0

Fleeting Frames

  • Bay Watcher
  • Spooky cart at distance
    • View Profile
Re: DFHack Script: Unbutcherable Sentient Workaround for fortress mode
« Reply #1 on: September 02, 2017, 05:28:31 am »

I take setting everything on a square to dead dwarf = false is intended to deal with cut-off limbs, but they usually fly off in an arc. Might be more comprehensive to search all items for corpsepieces which are linked to/named after the dead unit, though that is more computationally expensive.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DFHack Script: Unbutcherable Sentient Workaround for fortress mode
« Reply #2 on: September 02, 2017, 06:21:14 am »

really not that much more tbh, it's still O(n) and the size of n, what, doubles on average? and that's probably overestimating, it's really not that big a problem

burrito25man

  • Bay Watcher
    • View Profile
Re: DFHack Script: Unbutcherable Sentient Workaround for fortress mode
« Reply #3 on: September 02, 2017, 04:08:45 pm »

Thanks for the input guys! You are absolutely right. I modified the script to do just that  :P :P

Spoiler (click to show/hide)
Logged
It's a slippery slope.  You start out modding, then move on to hard DFHacking, and next thing you know you're making your own games...

LUA Script: Workaround for butchering Sentients
 - http://www.bay12forums.com/smf/index.php?topic=165414.0

FantasticDorf

  • Bay Watcher
    • View Profile
Re: DFHack Script: Unbutcherable Sentient Workaround for fortress mode
« Reply #4 on: October 12, 2017, 12:37:08 pm »

[Edit] - what was here was defunct, PTW and good work OP.
« Last Edit: May 06, 2019, 01:38:40 pm by FantasticDorf »
Logged

Roses

  • Bay Watcher
    • View Profile
Re: DFHack Script: Unbutcherable Sentient Workaround for fortress mode
« Reply #5 on: October 12, 2017, 01:37:08 pm »

Does this allow butchering of any and all sentients? I am currently getting around this by using a script that butchers the body(part) for you, but that script was more written for total conversion mods that want to get rid of all vanilla buildings and still be able to butcher animals.
Logged

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: DFHack Script: Unbutcherable Sentient Workaround for fortress mode
« Reply #6 on: October 13, 2017, 01:10:15 am »

sed s/sentient/sapient
Logged

Paxiecrunchle

  • Bay Watcher
  • I'm just here, because actually I don't know*shrug
    • View Profile
Re: DFHack Script: Unbutcherable Sentient Workaround for fortress mode
« Reply #8 on: November 01, 2017, 04:41:52 am »

Sorry for bumping but wow, I just really want to thank you for making this. ;D

burrito25man

  • Bay Watcher
    • View Profile
Re: DFHack Script: Unbutcherable Sentient Workaround for fortress mode
« Reply #9 on: November 15, 2017, 05:05:45 pm »

Wow, I really should check back in the forums more often haha.

Does this allow butchering of any and all sentients? I am currently getting around this by using a script that butchers the body(part) for you, but that script was more written for total conversion mods that want to get rid of all vanilla buildings and still be able to butcher animals.

Sorry for the delay Roses. It should. The script scans the map for deaths and if said creature is NOT part of your current civ, the script changes it's dead_dwarf tag from true to false. Then your cannibalistic little guys will carry on with making elf biscuits  :P :P

Hopefully Toady fixes this bug with the new update, but if he doesn't I'll be at at the ready to update the script to do so (once dfhack is updated of course  ;D)
Logged
It's a slippery slope.  You start out modding, then move on to hard DFHacking, and next thing you know you're making your own games...

LUA Script: Workaround for butchering Sentients
 - http://www.bay12forums.com/smf/index.php?topic=165414.0

Paxiecrunchle

  • Bay Watcher
  • I'm just here, because actually I don't know*shrug
    • View Profile
Re: DFHack Script: Unbutcherable Sentient Workaround for fortress mode
« Reply #10 on: November 15, 2017, 06:20:22 pm »

Wow, I really should check back in the forums more often haha.

Does this allow butchering of any and all sentients? I am currently getting around this by using a script that butchers the body(part) for you, but that script was more written for total conversion mods that want to get rid of all vanilla buildings and still be able to butcher animals.

Sorry for the delay Roses. It should. The script scans the map for deaths and if said creature is NOT part of your current civ, the script changes it's dead_dwarf tag from true to false. Then your cannibalistic little guys will carry on with making elf biscuits  :P :P

Hopefully Toady fixes this bug with the new update, but if he doesn't I'll be at at the ready to update the script to do so (once dfhack is updated of course  ;D)

Except Dwarves eating elves isn't cannibalism at all, rather elves eating elves is.

Fleeting Frames

  • Bay Watcher
  • Spooky cart at distance
    • View Profile
Re: DFHack Script: Unbutcherable Sentient Workaround for fortress mode
« Reply #11 on: November 16, 2017, 09:28:53 am »

True. Though the eaters may be elves part of your civ.

Kat

  • Bay Watcher
    • View Profile
Re: DFHack Script: Unbutcherable Sentient Workaround for fortress mode
« Reply #12 on: December 16, 2017, 07:38:14 pm »

does this work in the latest version ?
Logged

burrito25man

  • Bay Watcher
    • View Profile
Re: DFHack Script: Unbutcherable Sentient Workaround for fortress mode
« Reply #13 on: December 18, 2017, 03:30:59 pm »

Looking at the current version of dfhack, it should still work. I'll playtest it tonight to confirm
Logged
It's a slippery slope.  You start out modding, then move on to hard DFHacking, and next thing you know you're making your own games...

LUA Script: Workaround for butchering Sentients
 - http://www.bay12forums.com/smf/index.php?topic=165414.0

pikachu17

  • Bay Watcher
  • PADORU PADORU
    • View Profile

PTW
Logged
Sigtext!
dwarf 4tress from scratch
The Pikachu revolution!
Thank you NatureGirl19999 for the avatar switcher at http://signavatar.com

A warforged bard named Gender appears and says"Hello. I am a social construct."
Pages: [1] 2 3