Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: modtools/moddable-gods fix  (Read 854 times)

BeardedShrimp

  • Bay Watcher
    • View Profile
modtools/moddable-gods fix
« on: September 09, 2021, 03:28:06 pm »

Almost year ago I posted a question about this DFHack script on this forum http://www.bay12forums.com/smf/index.php?topic=177655.msg8221773

Almost a year later, I came back to this problem, inspected the script in VS Code and messed around with LUA and gui/gm-editor, and found that if you replace the line:
Code: [Select]
godFig.info.spheres:insert('#',df.sphere_type[sphere])with
Code: [Select]
godFig.info.spheres.anon_1:insert('#',df.sphere_type[sphere])
It seems to work as intended.
Code: [Select]
modtools/moddable-gods -name testGod2 -spheres [ DREAMS ART ] -depictedAs HUMAN -gender male
You would also need to change
Code: [Select]
godFig.caste = 0 to the argument given at the command line or else Legends Viewer may display the wrong value:

Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: modtools/moddable-gods fix
« Reply #1 on: September 14, 2021, 02:13:19 pm »

Hmm, alright. That's super hackish, anon entries shouldn't be used... I'll open a PR to change it to an "unk", I guess.