Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: using DFhack for unit id and ????  (Read 2929 times)

guard123

  • Bay Watcher
    • View Profile
using DFhack for unit id and ????
« on: June 07, 2020, 12:45:04 pm »

Hey guys, alot of info here to help out a newcomer like myself. The game is great so far but a few things i could not for the life of me find in both bay12 forums and reddit.

1. how to find unit ids in adventure mode with DFhack? The answers i found online were for questions that was years ago and i dont know if it applies in the current version now.


2. I am not quite sure how to revive corpses in adventure mode?  I am testing some modded weapons right now and not wanting to turn the place into a corpse den, im trying to using the same creature to test how effective something against it is.

 
Logged

PatrikLundell

  • Bay Watcher
    • View Profile
Re: using DFhack for unit id and ????
« Reply #1 on: June 08, 2020, 01:07:16 am »

People who actually play adventurer mode will have to answer the technical questions, but it can be noted that reviving a corpse for repeated testing might not be ideal, because your character will learns things, and I don't know to what extent the reviving method used would counter cumulative damages, but that could be a factor as well.

Killing DF (with the DFHack 'die' command) and restarting with the same save repeatedly would make a more reliably stable test baseline. Also, people typically use Arena Mode for that kind of testing (I haven't used that mode myself, though).
Logged

Atomic Chicken

  • Bay Watcher
    • View Profile
Re: using DFhack for unit id and ????
« Reply #2 on: June 08, 2020, 04:28:26 am »

Since these questions are specific to DFHack, I'd recommend asking them in the DFHack thread or elsewhere in the Utilities subforum next time. They're more likely to be missed here.

1) Assuming you want the unit ID of a creature currently on the map, select the creature and open its status screen or description, then enter the following in the DFHack console:
Code: [Select]
gui/gm-editorThen search the list for the "id" field.

2) Select the corpse, view its description and enter the following in the console:
Code: [Select]
full-heal -rThis should resurrect and fully heal the creature whilst removing its corpse. The documentation for this script is found here.
Logged
As mentioned in the previous turn, the most exciting field of battle this year will be in the Arstotzkan capitol, with plenty of close-quarter fighting and siege warfare.  Arstotzka, accordingly, spent their design phase developing a high-altitude tactical bomber.