DFHack / dfhack

Memory hacking library for Dwarf Fortress and a set of tools that use it
Other
1.84k stars 462 forks source link

`color-scheme` and `gui/color-scheme` error when trying to load colour schemes. #2878

Open TheBloke opened 1 year ago

TheBloke commented 1 year ago

The following error is thrown by both color-scheme and gui/color-scheme when a colour scheme is loaded:

...ps\common\Dwarf Fortress//hack/scripts/color-schemes.lua:263: Cannot read field enabler.ccolor: not found.
stack traceback:
        [C]: in metamethod '__index'
        ...ps\common\Dwarf Fortress//hack/scripts/color-schemes.lua:263: in method 'load'
        ...ps\common\Dwarf Fortress//hack/scripts/color-schemes.lua:396: in global 'load'
        ...ps\common\Dwarf Fortress//hack/scripts/color-schemes.lua:846: in method '_action'
        ...ps\common\Dwarf Fortress//hack/scripts/color-schemes.lua:786: in function <...ps\common\Dwarf Fortress//hack/scripts/color-schemes.lua:773>
        (...tail calls...)
        ...ps\common\Dwarf Fortress//hack/scripts/color-schemes.lua:819: in method 'parse'
        ...ps\common\Dwarf Fortress//hack/scripts/color-schemes.lua:895: in local 'script_code'
        ...team\steamapps\common\Dwarf Fortress\hack\lua\dfhack.lua:810: in f

Are these scripts still doing anything theoretically useful for v50? With the new UI, is change colours still something the user might want to do, and which could be done?

lethosor commented 1 year ago

Yes, colors.txt still exists and can be edited. The in-game fields just moved around.