Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: [solved] crash on any transformation (do-it-yourself language patch)  (Read 1399 times)

yaymeh

  • Bay Watcher
    • View Profile

Hi!

I tried manually setting the caste of a dwarf who seems to have swallowed ALL of my coins without transforming.

This is the workaround for this problem from the Masterwork manual:
Quote
1. Type "v" and move your cursor to the unit you want to change.
2. Switch to dfhack and type "lua". That will take you to the lua interpreter.
3. type "c = dfhack.gui.getSelectedUnit()" (case sensitive)
3. now "c.enemy.normal_caste = number" where number is one of the list below.
4. unpause the game, the dwarf should transform.
It works fine until step 4, at which point the game crashes instead of the dwarf transforming.

Any hints?

edit:
Gwah! I corrupted the DF binary due to too generous masterwork-language patching. Note to myself / or if anyone else ever gets that problem: remember that including such short words like "box/cof" in a bin patch equals Russian Roulette :3
« Last Edit: March 07, 2014, 04:05:47 pm by yaymeh »
Logged