Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Erasing a unit outside of your fort  (Read 1466 times)

Kainelawless

  • Bay Watcher
    • View Profile
Erasing a unit outside of your fort
« on: July 06, 2020, 04:51:13 am »

Is it possible to delete someone outside your fort?

My game is effected by a known game crash where a Were creature (in this case a Camel) gives birth and i was hoping there was a way to remove her from the game before it happens?  Or is my game a lost cause?
Logged

PatrikLundell

  • Bay Watcher
    • View Profile
Re: Erasing a unit outside of your fort
« Reply #1 on: July 06, 2020, 07:23:01 am »

I don't know if it's been tested, but in principle it ought to be possible to remove a historical figure from the list of historical figures. DF is capable if handling culling of unimportant hist figs that result in references to HFs that no longer exist, so it might work (I'd probably try to remove the nemesis entry as well if there is one, as it has a pointer to the hist fig data).
I suspect it would be safer to try an "abortion", i.e. modify the hist fig record of the were to indicate she's not pregnant, or to change the gender of the offspring to a female, but having bugged creatures that are weres "naturally" is probably not good (even though they don't crash at birth, according to what I've read). Note that all of this is speculation.
Logged

Leonidas

  • Bay Watcher
    • View Profile
Re: Erasing a unit outside of your fort
« Reply #2 on: July 06, 2020, 08:33:28 am »

You could retire the fort, start an adventurer, hunt down the werebeast, and kill it before it gives birth. The downside: unretirement is a complete PITA.
Logged

Kainelawless

  • Bay Watcher
    • View Profile
Re: Erasing a unit outside of your fort
« Reply #3 on: July 06, 2020, 08:37:10 am »

I tried that.  The game crashes even as it generates a week in the background.  In theory if i could do this, my character would have about 2 seconds to hunt her down.
Logged

Kainelawless

  • Bay Watcher
    • View Profile
Re: Erasing a unit outside of your fort
« Reply #4 on: July 06, 2020, 08:39:44 am »

Save file if anyone wants to test their suggestions.

https://dffd.bay12games.com/file.php?id=15134
Logged

Leonidas

  • Bay Watcher
    • View Profile
Re: Erasing a unit outside of your fort
« Reply #5 on: July 06, 2020, 08:43:48 am »

That's the only file? You don't have any seasonal autosaves?
Logged

Kainelawless

  • Bay Watcher
    • View Profile
Re: Erasing a unit outside of your fort
« Reply #6 on: July 06, 2020, 08:54:18 am »

Unfortunately i do not.
Logged

Leonidas

  • Bay Watcher
    • View Profile
Re: Erasing a unit outside of your fort
« Reply #7 on: July 06, 2020, 09:22:00 am »

How did you determine that the problem was a werebeast giving birth?
Logged

Kainelawless

  • Bay Watcher
    • View Profile
Re: Erasing a unit outside of your fort
« Reply #8 on: July 06, 2020, 09:28:22 am »

The people at the Dwarf fortress bug tracker did that for me

https://www.bay12games.com/dwarves/mantisbt/view.php?id=11571
Logged

KevinM

  • Bay Watcher
    • View Profile
Re: Erasing a unit outside of your fort
« Reply #9 on: July 06, 2020, 12:34:42 pm »

I assume DFHack would have something that allows you to either kill, or severely damage something enough to be able to do so.  But it does mean installing another program, renaming and copying certain files to allow it to work, and someone telling you how to make it work.  I haven't used it enough to know but I know some of the repliers have
Logged

Kainelawless

  • Bay Watcher
    • View Profile
Re: Erasing a unit outside of your fort
« Reply #10 on: July 06, 2020, 12:37:05 pm »

I use the LNP so I have DFhack installed

There is an extreminate command but im not sure there is a way to use it on entity's outside of your fort.
Logged

KevinM

  • Bay Watcher
    • View Profile
Re: Erasing a unit outside of your fort
« Reply #11 on: July 06, 2020, 12:45:31 pm »

Hopefully one of them have an answer, otherwise you'll be asking for a script to do so in the DFHack subforum here http://www.bay12forums.com/smf/index.php?board=29.0
Logged